]> git.sur5r.net Git - openldap/blob - configure
Regenerate with sssvlv
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.25 2009/07/22 20:02:20 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SSSVLV
922 BUILD_SYNCPROV
923 BUILD_TRANSLUCENT
924 BUILD_UNIQUE
925 BUILD_VALSORT
926 LDAP_LIBS
927 SLAPD_LIBS
928 BDB_LIBS
929 SLAPD_NDB_LIBS
930 SLAPD_NDB_INCS
931 LTHREAD_LIBS
932 LUTIL_LIBS
933 WRAP_LIBS
934 SLAPD_MODULES_CPPFLAGS
935 SLAPD_MODULES_LDFLAGS
936 SLAPD_NO_STATIC
937 SLAPD_STATIC_BACKENDS
938 SLAPD_DYNAMIC_BACKENDS
939 SLAPD_STATIC_OVERLAYS
940 SLAPD_DYNAMIC_OVERLAYS
941 PERL_CPPFLAGS
942 SLAPD_PERL_LDFLAGS
943 MOD_PERL_LDFLAGS
944 KRB4_LIBS
945 KRB5_LIBS
946 SASL_LIBS
947 TLS_LIBS
948 MODULES_LIBS
949 SLAPI_LIBS
950 LIBSLAPI
951 LIBSLAPITOOLS
952 AUTH_LIBS
953 ICU_LIBS
954 SLAPD_SLP_LIBS
955 SLAPD_GMP_LIBS
956 SLAPD_SQL_LDFLAGS
957 SLAPD_SQL_LIBS
958 SLAPD_SQL_INCLUDES
959 LTLIBOBJS'
960 ac_subst_files=''
961       ac_precious_vars='build_alias
962 host_alias
963 target_alias
964 CC
965 CFLAGS
966 LDFLAGS
967 LIBS
968 CPPFLAGS
969 CPP'
970
971
972 # Initialize some variables set by options.
973 ac_init_help=
974 ac_init_version=false
975 # The variables have the same names as the options, with
976 # dashes changed to underlines.
977 cache_file=/dev/null
978 exec_prefix=NONE
979 no_create=
980 no_recursion=
981 prefix=NONE
982 program_prefix=NONE
983 program_suffix=NONE
984 program_transform_name=s,x,x,
985 silent=
986 site=
987 srcdir=
988 verbose=
989 x_includes=NONE
990 x_libraries=NONE
991
992 # Installation directory options.
993 # These are left unexpanded so users can "make install exec_prefix=/foo"
994 # and all the variables that are supposed to be based on exec_prefix
995 # by default will actually change.
996 # Use braces instead of parens because sh, perl, etc. also accept them.
997 # (The list follows the same order as the GNU Coding Standards.)
998 bindir='${exec_prefix}/bin'
999 sbindir='${exec_prefix}/sbin'
1000 libexecdir='${exec_prefix}/libexec'
1001 datarootdir='${prefix}/share'
1002 datadir='${datarootdir}'
1003 sysconfdir='${prefix}/etc'
1004 sharedstatedir='${prefix}/com'
1005 localstatedir='${prefix}/var'
1006 includedir='${prefix}/include'
1007 oldincludedir='/usr/include'
1008 docdir='${datarootdir}/doc/${PACKAGE}'
1009 infodir='${datarootdir}/info'
1010 htmldir='${docdir}'
1011 dvidir='${docdir}'
1012 pdfdir='${docdir}'
1013 psdir='${docdir}'
1014 libdir='${exec_prefix}/lib'
1015 localedir='${datarootdir}/locale'
1016 mandir='${datarootdir}/man'
1017
1018 ac_prev=
1019 ac_dashdash=
1020 for ac_option
1021 do
1022   # If the previous option needs an argument, assign it.
1023   if test -n "$ac_prev"; then
1024     eval $ac_prev=\$ac_option
1025     ac_prev=
1026     continue
1027   fi
1028
1029   case $ac_option in
1030   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1031   *)    ac_optarg=yes ;;
1032   esac
1033
1034   # Accept the important Cygnus configure options, so we can diagnose typos.
1035
1036   case $ac_dashdash$ac_option in
1037   --)
1038     ac_dashdash=yes ;;
1039
1040   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1041     ac_prev=bindir ;;
1042   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1043     bindir=$ac_optarg ;;
1044
1045   -build | --build | --buil | --bui | --bu)
1046     ac_prev=build_alias ;;
1047   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1048     build_alias=$ac_optarg ;;
1049
1050   -cache-file | --cache-file | --cache-fil | --cache-fi \
1051   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1052     ac_prev=cache_file ;;
1053   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1054   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1055     cache_file=$ac_optarg ;;
1056
1057   --config-cache | -C)
1058     cache_file=config.cache ;;
1059
1060   -datadir | --datadir | --datadi | --datad)
1061     ac_prev=datadir ;;
1062   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1063     datadir=$ac_optarg ;;
1064
1065   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1066   | --dataroo | --dataro | --datar)
1067     ac_prev=datarootdir ;;
1068   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1069   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1070     datarootdir=$ac_optarg ;;
1071
1072   -disable-* | --disable-*)
1073     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1074     # Reject names that are not valid shell variable names.
1075     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1076       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1077    { (exit 1); exit 1; }; }
1078     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1079     eval enable_$ac_feature=no ;;
1080
1081   -docdir | --docdir | --docdi | --doc | --do)
1082     ac_prev=docdir ;;
1083   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1084     docdir=$ac_optarg ;;
1085
1086   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1087     ac_prev=dvidir ;;
1088   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1089     dvidir=$ac_optarg ;;
1090
1091   -enable-* | --enable-*)
1092     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1093     # Reject names that are not valid shell variable names.
1094     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1095       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1096    { (exit 1); exit 1; }; }
1097     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1098     eval enable_$ac_feature=\$ac_optarg ;;
1099
1100   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1101   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1102   | --exec | --exe | --ex)
1103     ac_prev=exec_prefix ;;
1104   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1105   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1106   | --exec=* | --exe=* | --ex=*)
1107     exec_prefix=$ac_optarg ;;
1108
1109   -gas | --gas | --ga | --g)
1110     # Obsolete; use --with-gas.
1111     with_gas=yes ;;
1112
1113   -help | --help | --hel | --he | -h)
1114     ac_init_help=long ;;
1115   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1116     ac_init_help=recursive ;;
1117   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1118     ac_init_help=short ;;
1119
1120   -host | --host | --hos | --ho)
1121     ac_prev=host_alias ;;
1122   -host=* | --host=* | --hos=* | --ho=*)
1123     host_alias=$ac_optarg ;;
1124
1125   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1126     ac_prev=htmldir ;;
1127   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1128   | --ht=*)
1129     htmldir=$ac_optarg ;;
1130
1131   -includedir | --includedir | --includedi | --included | --include \
1132   | --includ | --inclu | --incl | --inc)
1133     ac_prev=includedir ;;
1134   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1135   | --includ=* | --inclu=* | --incl=* | --inc=*)
1136     includedir=$ac_optarg ;;
1137
1138   -infodir | --infodir | --infodi | --infod | --info | --inf)
1139     ac_prev=infodir ;;
1140   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1141     infodir=$ac_optarg ;;
1142
1143   -libdir | --libdir | --libdi | --libd)
1144     ac_prev=libdir ;;
1145   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1146     libdir=$ac_optarg ;;
1147
1148   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1149   | --libexe | --libex | --libe)
1150     ac_prev=libexecdir ;;
1151   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1152   | --libexe=* | --libex=* | --libe=*)
1153     libexecdir=$ac_optarg ;;
1154
1155   -localedir | --localedir | --localedi | --localed | --locale)
1156     ac_prev=localedir ;;
1157   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1158     localedir=$ac_optarg ;;
1159
1160   -localstatedir | --localstatedir | --localstatedi | --localstated \
1161   | --localstate | --localstat | --localsta | --localst | --locals)
1162     ac_prev=localstatedir ;;
1163   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1164   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1165     localstatedir=$ac_optarg ;;
1166
1167   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1168     ac_prev=mandir ;;
1169   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1170     mandir=$ac_optarg ;;
1171
1172   -nfp | --nfp | --nf)
1173     # Obsolete; use --without-fp.
1174     with_fp=no ;;
1175
1176   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1177   | --no-cr | --no-c | -n)
1178     no_create=yes ;;
1179
1180   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1181   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1182     no_recursion=yes ;;
1183
1184   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1185   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1186   | --oldin | --oldi | --old | --ol | --o)
1187     ac_prev=oldincludedir ;;
1188   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1189   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1190   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1191     oldincludedir=$ac_optarg ;;
1192
1193   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1194     ac_prev=prefix ;;
1195   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1196     prefix=$ac_optarg ;;
1197
1198   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1199   | --program-pre | --program-pr | --program-p)
1200     ac_prev=program_prefix ;;
1201   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1202   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1203     program_prefix=$ac_optarg ;;
1204
1205   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1206   | --program-suf | --program-su | --program-s)
1207     ac_prev=program_suffix ;;
1208   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1209   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1210     program_suffix=$ac_optarg ;;
1211
1212   -program-transform-name | --program-transform-name \
1213   | --program-transform-nam | --program-transform-na \
1214   | --program-transform-n | --program-transform- \
1215   | --program-transform | --program-transfor \
1216   | --program-transfo | --program-transf \
1217   | --program-trans | --program-tran \
1218   | --progr-tra | --program-tr | --program-t)
1219     ac_prev=program_transform_name ;;
1220   -program-transform-name=* | --program-transform-name=* \
1221   | --program-transform-nam=* | --program-transform-na=* \
1222   | --program-transform-n=* | --program-transform-=* \
1223   | --program-transform=* | --program-transfor=* \
1224   | --program-transfo=* | --program-transf=* \
1225   | --program-trans=* | --program-tran=* \
1226   | --progr-tra=* | --program-tr=* | --program-t=*)
1227     program_transform_name=$ac_optarg ;;
1228
1229   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1230     ac_prev=pdfdir ;;
1231   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1232     pdfdir=$ac_optarg ;;
1233
1234   -psdir | --psdir | --psdi | --psd | --ps)
1235     ac_prev=psdir ;;
1236   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1237     psdir=$ac_optarg ;;
1238
1239   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240   | -silent | --silent | --silen | --sile | --sil)
1241     silent=yes ;;
1242
1243   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1244     ac_prev=sbindir ;;
1245   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1246   | --sbi=* | --sb=*)
1247     sbindir=$ac_optarg ;;
1248
1249   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1250   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1251   | --sharedst | --shareds | --shared | --share | --shar \
1252   | --sha | --sh)
1253     ac_prev=sharedstatedir ;;
1254   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1255   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1256   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1257   | --sha=* | --sh=*)
1258     sharedstatedir=$ac_optarg ;;
1259
1260   -site | --site | --sit)
1261     ac_prev=site ;;
1262   -site=* | --site=* | --sit=*)
1263     site=$ac_optarg ;;
1264
1265   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1266     ac_prev=srcdir ;;
1267   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1268     srcdir=$ac_optarg ;;
1269
1270   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1271   | --syscon | --sysco | --sysc | --sys | --sy)
1272     ac_prev=sysconfdir ;;
1273   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1274   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1275     sysconfdir=$ac_optarg ;;
1276
1277   -target | --target | --targe | --targ | --tar | --ta | --t)
1278     ac_prev=target_alias ;;
1279   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1280     target_alias=$ac_optarg ;;
1281
1282   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1283     verbose=yes ;;
1284
1285   -version | --version | --versio | --versi | --vers | -V)
1286     ac_init_version=: ;;
1287
1288   -with-* | --with-*)
1289     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1290     # Reject names that are not valid shell variable names.
1291     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1292       { echo "$as_me: error: invalid package name: $ac_package" >&2
1293    { (exit 1); exit 1; }; }
1294     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1295     eval with_$ac_package=\$ac_optarg ;;
1296
1297   -without-* | --without-*)
1298     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1299     # Reject names that are not valid shell variable names.
1300     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1301       { echo "$as_me: error: invalid package name: $ac_package" >&2
1302    { (exit 1); exit 1; }; }
1303     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1304     eval with_$ac_package=no ;;
1305
1306   --x)
1307     # Obsolete; use --with-x.
1308     with_x=yes ;;
1309
1310   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311   | --x-incl | --x-inc | --x-in | --x-i)
1312     ac_prev=x_includes ;;
1313   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315     x_includes=$ac_optarg ;;
1316
1317   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319     ac_prev=x_libraries ;;
1320   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322     x_libraries=$ac_optarg ;;
1323
1324   -*) { echo "$as_me: error: unrecognized option: $ac_option
1325 Try \`$0 --help' for more information." >&2
1326    { (exit 1); exit 1; }; }
1327     ;;
1328
1329   *=*)
1330     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1331     # Reject names that are not valid shell variable names.
1332     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1333       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1334    { (exit 1); exit 1; }; }
1335     eval $ac_envvar=\$ac_optarg
1336     export $ac_envvar ;;
1337
1338   *)
1339     # FIXME: should be removed in autoconf 3.0.
1340     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1344     ;;
1345
1346   esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351   { echo "$as_me: error: missing argument to $ac_option" >&2
1352    { (exit 1); exit 1; }; }
1353 fi
1354
1355 # Be sure to have absolute directory names.
1356 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1357                 datadir sysconfdir sharedstatedir localstatedir includedir \
1358                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1359                 libdir localedir mandir
1360 do
1361   eval ac_val=\$$ac_var
1362   case $ac_val in
1363     [\\/$]* | ?:[\\/]* )  continue;;
1364     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1365   esac
1366   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1367    { (exit 1); exit 1; }; }
1368 done
1369
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1373 build=$build_alias
1374 host=$host_alias
1375 target=$target_alias
1376
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379   if test "x$build_alias" = x; then
1380     cross_compiling=maybe
1381     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382     If a cross compiler is detected then cross compile mode will be used." >&2
1383   elif test "x$build_alias" != "x$host_alias"; then
1384     cross_compiling=yes
1385   fi
1386 fi
1387
1388 ac_tool_prefix=
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1390
1391 test "$silent" = yes && exec 6>/dev/null
1392
1393
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397   { echo "$as_me: error: Working directory cannot be determined" >&2
1398    { (exit 1); exit 1; }; }
1399 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1400   { echo "$as_me: error: pwd does not report name of working directory" >&2
1401    { (exit 1); exit 1; }; }
1402
1403
1404 # Find the source files, if location was not specified.
1405 if test -z "$srcdir"; then
1406   ac_srcdir_defaulted=yes
1407   # Try the directory containing this script, then the parent directory.
1408   ac_confdir=`$as_dirname -- "$0" ||
1409 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1410          X"$0" : 'X\(//\)[^/]' \| \
1411          X"$0" : 'X\(//\)$' \| \
1412          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1413 echo X"$0" |
1414     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1415             s//\1/
1416             q
1417           }
1418           /^X\(\/\/\)[^/].*/{
1419             s//\1/
1420             q
1421           }
1422           /^X\(\/\/\)$/{
1423             s//\1/
1424             q
1425           }
1426           /^X\(\/\).*/{
1427             s//\1/
1428             q
1429           }
1430           s/.*/./; q'`
1431   srcdir=$ac_confdir
1432   if test ! -r "$srcdir/$ac_unique_file"; then
1433     srcdir=..
1434   fi
1435 else
1436   ac_srcdir_defaulted=no
1437 fi
1438 if test ! -r "$srcdir/$ac_unique_file"; then
1439   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1440   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1441    { (exit 1); exit 1; }; }
1442 fi
1443 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1444 ac_abs_confdir=`(
1445         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1446    { (exit 1); exit 1; }; }
1447         pwd)`
1448 # When building in place, set srcdir=.
1449 if test "$ac_abs_confdir" = "$ac_pwd"; then
1450   srcdir=.
1451 fi
1452 # Remove unnecessary trailing slashes from srcdir.
1453 # Double slashes in file names in object file debugging info
1454 # mess up M-x gdb in Emacs.
1455 case $srcdir in
1456 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1457 esac
1458 for ac_var in $ac_precious_vars; do
1459   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1460   eval ac_env_${ac_var}_value=\$${ac_var}
1461   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1462   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1463 done
1464
1465 #
1466 # Report the --help message.
1467 #
1468 if test "$ac_init_help" = "long"; then
1469   # Omit some internal or obsolete options to make the list less imposing.
1470   # This message is too long to be a string in the A/UX 3.1 sh.
1471   cat <<_ACEOF
1472 \`configure' configures this package to adapt to many kinds of systems.
1473
1474 Usage: $0 [OPTION]... [VAR=VALUE]...
1475
1476 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1477 VAR=VALUE.  See below for descriptions of some of the useful variables.
1478
1479 Defaults for the options are specified in brackets.
1480
1481 Configuration:
1482   -h, --help              display this help and exit
1483       --help=short        display options specific to this package
1484       --help=recursive    display the short help of all the included packages
1485   -V, --version           display version information and exit
1486   -q, --quiet, --silent   do not print \`checking...' messages
1487       --cache-file=FILE   cache test results in FILE [disabled]
1488   -C, --config-cache      alias for \`--cache-file=config.cache'
1489   -n, --no-create         do not create output files
1490       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1491
1492 Installation directories:
1493   --prefix=PREFIX         install architecture-independent files in PREFIX
1494                           [$ac_default_prefix]
1495   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1496                           [PREFIX]
1497
1498 By default, \`make install' will install all the files in
1499 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1500 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1501 for instance \`--prefix=\$HOME'.
1502
1503 For better control, use the options below.
1504
1505 Fine tuning of the installation directories:
1506   --bindir=DIR           user executables [EPREFIX/bin]
1507   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1508   --libexecdir=DIR       program executables [EPREFIX/libexec]
1509   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1510   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1511   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1512   --libdir=DIR           object code libraries [EPREFIX/lib]
1513   --includedir=DIR       C header files [PREFIX/include]
1514   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1515   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1516   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1517   --infodir=DIR          info documentation [DATAROOTDIR/info]
1518   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1519   --mandir=DIR           man documentation [DATAROOTDIR/man]
1520   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1521   --htmldir=DIR          html documentation [DOCDIR]
1522   --dvidir=DIR           dvi documentation [DOCDIR]
1523   --pdfdir=DIR           pdf documentation [DOCDIR]
1524   --psdir=DIR            ps documentation [DOCDIR]
1525 _ACEOF
1526
1527   cat <<\_ACEOF
1528
1529 Program names:
1530   --program-prefix=PREFIX            prepend PREFIX to installed program names
1531   --program-suffix=SUFFIX            append SUFFIX to installed program names
1532   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1533
1534 System types:
1535   --build=BUILD     configure for building on BUILD [guessed]
1536   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1537   --target=TARGET   configure for building compilers for TARGET [HOST]
1538 _ACEOF
1539 fi
1540
1541 if test -n "$ac_init_help"; then
1542
1543   cat <<\_ACEOF
1544
1545 Optional Features:
1546   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1547   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1548   --enable-debug          enable debugging no|yes|traditional [yes]
1549   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1550   --enable-syslog         enable syslog support [auto]
1551   --enable-proctitle      enable proctitle support [yes]
1552   --enable-ipv6           enable IPv6 support [auto]
1553   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1554
1555 SLAPD (Standalone LDAP Daemon) Options:
1556   --enable-slapd          enable building slapd [yes]
1557     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1558     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1559     --enable-cleartext    enable cleartext passwords [yes]
1560     --enable-crypt        enable crypt(3) passwords [no]
1561     --enable-lmpasswd     enable LAN Manager passwords [no]
1562     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1563     --enable-modules      enable dynamic module support [no]
1564     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1565     --enable-rlookups     enable reverse lookups of client hostnames [no]
1566     --enable-slapi        enable SLAPI support (experimental) [no]
1567     --enable-slp          enable SLPv2 support [no]
1568     --enable-wrappers     enable tcp wrapper support [no]
1569
1570 SLAPD Backend Options:
1571     --enable-backends     enable all available backends no|yes|mod
1572     --enable-bdb          enable Berkeley DB backend no|yes|mod [yes]
1573     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1574     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1575     --enable-ldap         enable ldap backend no|yes|mod [no]
1576     --enable-meta         enable metadirectory backend no|yes|mod [no]
1577     --enable-monitor      enable monitor backend no|yes|mod [yes]
1578     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1579     --enable-null         enable null backend no|yes|mod [no]
1580     --enable-passwd       enable passwd backend no|yes|mod [no]
1581     --enable-perl         enable perl backend no|yes|mod [no]
1582     --enable-relay        enable relay backend no|yes|mod [yes]
1583     --enable-shell        enable shell backend no|yes|mod [no]
1584     --enable-sock         enable sock backend no|yes|mod [no]
1585     --enable-sql          enable sql backend no|yes|mod [no]
1586
1587 SLAPD Overlay Options:
1588     --enable-overlays     enable all available overlays no|yes|mod
1589     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1590     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1591     --enable-collect      Collect overlay no|yes|mod [no]
1592     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1593     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1594     --enable-deref        Dereference overlay no|yes|mod [no]
1595     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1596     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1597     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1598     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1599     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1600     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1601     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1602     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1603     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1604     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1605     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1606     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1607     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1608     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1609
1610 Library Generation & Linking Options
1611   --enable-static[=PKGS]  build static libraries [default=yes]
1612   --enable-shared[=PKGS]  build shared libraries [default=yes]
1613   --enable-fast-install[=PKGS]
1614                           optimize for fast installation [default=yes]
1615   --disable-dependency-tracking  speeds up one-time build
1616   --enable-dependency-tracking   do not reject slow dependency extractors
1617   --disable-libtool-lock  avoid locking (might break parallel builds)
1618
1619 Optional Packages:
1620   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1621   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1622   --with-subdir=DIR       change default subdirectory used for installs
1623   --with-cyrus-sasl       with Cyrus SASL support [auto]
1624   --with-fetch            with fetch(3) URL support [auto]
1625   --with-threads          with threads [auto]
1626   --with-tls              with TLS/SSL support auto|openssl|gnutls [auto]
1627   --with-yielding-select  with implicitly yielding select [auto]
1628   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1629   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1630   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1631   --with-pic              try to use only PIC/non-PIC objects [default=use
1632                           both]
1633   --with-tags[=TAGS]      include additional configurations [automatic]
1634
1635 See INSTALL file for further details.
1636
1637 Some influential environment variables:
1638   CC          C compiler command
1639   CFLAGS      C compiler flags
1640   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1641               nonstandard directory <lib dir>
1642   LIBS        libraries to pass to the linker, e.g. -l<library>
1643   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1644               you have headers in a nonstandard directory <include dir>
1645   CPP         C preprocessor
1646
1647 Use these variables to override the choices made by `configure' or to help
1648 it to find libraries and programs with nonstandard names/locations.
1649
1650 _ACEOF
1651 ac_status=$?
1652 fi
1653
1654 if test "$ac_init_help" = "recursive"; then
1655   # If there are subdirs, report their specific --help.
1656   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1657     test -d "$ac_dir" || continue
1658     ac_builddir=.
1659
1660 case "$ac_dir" in
1661 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1662 *)
1663   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1664   # A ".." for each directory in $ac_dir_suffix.
1665   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1666   case $ac_top_builddir_sub in
1667   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1668   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1669   esac ;;
1670 esac
1671 ac_abs_top_builddir=$ac_pwd
1672 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1673 # for backward compatibility:
1674 ac_top_builddir=$ac_top_build_prefix
1675
1676 case $srcdir in
1677   .)  # We are building in place.
1678     ac_srcdir=.
1679     ac_top_srcdir=$ac_top_builddir_sub
1680     ac_abs_top_srcdir=$ac_pwd ;;
1681   [\\/]* | ?:[\\/]* )  # Absolute name.
1682     ac_srcdir=$srcdir$ac_dir_suffix;
1683     ac_top_srcdir=$srcdir
1684     ac_abs_top_srcdir=$srcdir ;;
1685   *) # Relative name.
1686     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1687     ac_top_srcdir=$ac_top_build_prefix$srcdir
1688     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1689 esac
1690 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1691
1692     cd "$ac_dir" || { ac_status=$?; continue; }
1693     # Check for guested configure.
1694     if test -f "$ac_srcdir/configure.gnu"; then
1695       echo &&
1696       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1697     elif test -f "$ac_srcdir/configure"; then
1698       echo &&
1699       $SHELL "$ac_srcdir/configure" --help=recursive
1700     else
1701       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1702     fi || ac_status=$?
1703     cd "$ac_pwd" || { ac_status=$?; break; }
1704   done
1705 fi
1706
1707 test -n "$ac_init_help" && exit $ac_status
1708 if $ac_init_version; then
1709   cat <<\_ACEOF
1710 configure
1711 generated by GNU Autoconf 2.61
1712
1713 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1714 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1715 This configure script is free software; the Free Software Foundation
1716 gives unlimited permission to copy, distribute and modify it.
1717
1718 Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
1719 Restrictions apply, see COPYRIGHT and LICENSE files.
1720 _ACEOF
1721   exit
1722 fi
1723 cat >config.log <<_ACEOF
1724 This file contains any messages produced by compilers while
1725 running configure, to aid debugging if configure makes a mistake.
1726
1727 It was created by $as_me, which was
1728 generated by GNU Autoconf 2.61.  Invocation command line was
1729
1730   $ $0 $@
1731
1732 _ACEOF
1733 exec 5>>config.log
1734 {
1735 cat <<_ASUNAME
1736 ## --------- ##
1737 ## Platform. ##
1738 ## --------- ##
1739
1740 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1741 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1742 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1743 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1744 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1745
1746 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1747 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1748
1749 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1750 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1751 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1752 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1753 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1754 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1755 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1756
1757 _ASUNAME
1758
1759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1760 for as_dir in $PATH
1761 do
1762   IFS=$as_save_IFS
1763   test -z "$as_dir" && as_dir=.
1764   echo "PATH: $as_dir"
1765 done
1766 IFS=$as_save_IFS
1767
1768 } >&5
1769
1770 cat >&5 <<_ACEOF
1771
1772
1773 ## ----------- ##
1774 ## Core tests. ##
1775 ## ----------- ##
1776
1777 _ACEOF
1778
1779
1780 # Keep a trace of the command line.
1781 # Strip out --no-create and --no-recursion so they do not pile up.
1782 # Strip out --silent because we don't want to record it for future runs.
1783 # Also quote any args containing shell meta-characters.
1784 # Make two passes to allow for proper duplicate-argument suppression.
1785 ac_configure_args=
1786 ac_configure_args0=
1787 ac_configure_args1=
1788 ac_must_keep_next=false
1789 for ac_pass in 1 2
1790 do
1791   for ac_arg
1792   do
1793     case $ac_arg in
1794     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1795     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1796     | -silent | --silent | --silen | --sile | --sil)
1797       continue ;;
1798     *\'*)
1799       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1800     esac
1801     case $ac_pass in
1802     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1803     2)
1804       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1805       if test $ac_must_keep_next = true; then
1806         ac_must_keep_next=false # Got value, back to normal.
1807       else
1808         case $ac_arg in
1809           *=* | --config-cache | -C | -disable-* | --disable-* \
1810           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1811           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1812           | -with-* | --with-* | -without-* | --without-* | --x)
1813             case "$ac_configure_args0 " in
1814               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1815             esac
1816             ;;
1817           -* ) ac_must_keep_next=true ;;
1818         esac
1819       fi
1820       ac_configure_args="$ac_configure_args '$ac_arg'"
1821       ;;
1822     esac
1823   done
1824 done
1825 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1826 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1827
1828 # When interrupted or exit'd, cleanup temporary files, and complete
1829 # config.log.  We remove comments because anyway the quotes in there
1830 # would cause problems or look ugly.
1831 # WARNING: Use '\'' to represent an apostrophe within the trap.
1832 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1833 trap 'exit_status=$?
1834   # Save into config.log some information that might help in debugging.
1835   {
1836     echo
1837
1838     cat <<\_ASBOX
1839 ## ---------------- ##
1840 ## Cache variables. ##
1841 ## ---------------- ##
1842 _ASBOX
1843     echo
1844     # The following way of writing the cache mishandles newlines in values,
1845 (
1846   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1847     eval ac_val=\$$ac_var
1848     case $ac_val in #(
1849     *${as_nl}*)
1850       case $ac_var in #(
1851       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1852 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1853       esac
1854       case $ac_var in #(
1855       _ | IFS | as_nl) ;; #(
1856       *) $as_unset $ac_var ;;
1857       esac ;;
1858     esac
1859   done
1860   (set) 2>&1 |
1861     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1862     *${as_nl}ac_space=\ *)
1863       sed -n \
1864         "s/'\''/'\''\\\\'\'''\''/g;
1865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1866       ;; #(
1867     *)
1868       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1869       ;;
1870     esac |
1871     sort
1872 )
1873     echo
1874
1875     cat <<\_ASBOX
1876 ## ----------------- ##
1877 ## Output variables. ##
1878 ## ----------------- ##
1879 _ASBOX
1880     echo
1881     for ac_var in $ac_subst_vars
1882     do
1883       eval ac_val=\$$ac_var
1884       case $ac_val in
1885       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1886       esac
1887       echo "$ac_var='\''$ac_val'\''"
1888     done | sort
1889     echo
1890
1891     if test -n "$ac_subst_files"; then
1892       cat <<\_ASBOX
1893 ## ------------------- ##
1894 ## File substitutions. ##
1895 ## ------------------- ##
1896 _ASBOX
1897       echo
1898       for ac_var in $ac_subst_files
1899       do
1900         eval ac_val=\$$ac_var
1901         case $ac_val in
1902         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1903         esac
1904         echo "$ac_var='\''$ac_val'\''"
1905       done | sort
1906       echo
1907     fi
1908
1909     if test -s confdefs.h; then
1910       cat <<\_ASBOX
1911 ## ----------- ##
1912 ## confdefs.h. ##
1913 ## ----------- ##
1914 _ASBOX
1915       echo
1916       cat confdefs.h
1917       echo
1918     fi
1919     test "$ac_signal" != 0 &&
1920       echo "$as_me: caught signal $ac_signal"
1921     echo "$as_me: exit $exit_status"
1922   } >&5
1923   rm -f core *.core core.conftest.* &&
1924     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1925     exit $exit_status
1926 ' 0
1927 for ac_signal in 1 2 13 15; do
1928   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1929 done
1930 ac_signal=0
1931
1932 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1933 rm -f -r conftest* confdefs.h
1934
1935 # Predefined preprocessor variables.
1936
1937 cat >>confdefs.h <<_ACEOF
1938 #define PACKAGE_NAME "$PACKAGE_NAME"
1939 _ACEOF
1940
1941
1942 cat >>confdefs.h <<_ACEOF
1943 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1944 _ACEOF
1945
1946
1947 cat >>confdefs.h <<_ACEOF
1948 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1949 _ACEOF
1950
1951
1952 cat >>confdefs.h <<_ACEOF
1953 #define PACKAGE_STRING "$PACKAGE_STRING"
1954 _ACEOF
1955
1956
1957 cat >>confdefs.h <<_ACEOF
1958 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1959 _ACEOF
1960
1961
1962 # Let the site file select an alternate cache file if it wants to.
1963 # Prefer explicitly selected file to automatically selected ones.
1964 if test -n "$CONFIG_SITE"; then
1965   set x "$CONFIG_SITE"
1966 elif test "x$prefix" != xNONE; then
1967   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1968 else
1969   set x "$ac_default_prefix/share/config.site" \
1970         "$ac_default_prefix/etc/config.site"
1971 fi
1972 shift
1973 for ac_site_file
1974 do
1975   if test -r "$ac_site_file"; then
1976     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1977 echo "$as_me: loading site script $ac_site_file" >&6;}
1978     sed 's/^/| /' "$ac_site_file" >&5
1979     . "$ac_site_file"
1980   fi
1981 done
1982
1983
1984 # Check that the precious variables saved in the cache have kept the same
1985 # value.
1986 ac_cache_corrupted=false
1987 for ac_var in $ac_precious_vars; do
1988   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1989   eval ac_new_set=\$ac_env_${ac_var}_set
1990   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1991   eval ac_new_val=\$ac_env_${ac_var}_value
1992   case $ac_old_set,$ac_new_set in
1993     set,)
1994       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1995 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1996       ac_cache_corrupted=: ;;
1997     ,set)
1998       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1999 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2000       ac_cache_corrupted=: ;;
2001     ,);;
2002     *)
2003       if test "x$ac_old_val" != "x$ac_new_val"; then
2004         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2005 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2006         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2007 echo "$as_me:   former value:  $ac_old_val" >&2;}
2008         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2009 echo "$as_me:   current value: $ac_new_val" >&2;}
2010         ac_cache_corrupted=:
2011       fi;;
2012   esac
2013   # Pass precious variables to config.status.
2014   if test "$ac_new_set" = set; then
2015     case $ac_new_val in
2016     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2017     *) ac_arg=$ac_var=$ac_new_val ;;
2018     esac
2019     case " $ac_configure_args " in
2020       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2021       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2022     esac
2023   fi
2024 done
2025 if $ac_cache_corrupted; then
2026   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2027 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2028   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2029 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2030    { (exit 1); exit 1; }; }
2031 fi
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049 ac_ext=c
2050 ac_cpp='$CPP $CPPFLAGS'
2051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082 ac_aux_dir=
2083 for ac_dir in build "$srcdir"/build; do
2084   if test -f "$ac_dir/install-sh"; then
2085     ac_aux_dir=$ac_dir
2086     ac_install_sh="$ac_aux_dir/install-sh -c"
2087     break
2088   elif test -f "$ac_dir/install.sh"; then
2089     ac_aux_dir=$ac_dir
2090     ac_install_sh="$ac_aux_dir/install.sh -c"
2091     break
2092   elif test -f "$ac_dir/shtool"; then
2093     ac_aux_dir=$ac_dir
2094     ac_install_sh="$ac_aux_dir/shtool install -c"
2095     break
2096   fi
2097 done
2098 if test -z "$ac_aux_dir"; then
2099   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2100 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2101    { (exit 1); exit 1; }; }
2102 fi
2103
2104 # These three variables are undocumented and unsupported,
2105 # and are intended to be withdrawn in a future Autoconf release.
2106 # They can cause serious problems if a builder's source tree is in a directory
2107 # whose full name contains unusual characters.
2108 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2109 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2110 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2111
2112
2113 eval `$ac_aux_dir/version.sh`
2114 if test -z "$OL_STRING"; then
2115         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2116 echo "$as_me: error: could not determine version" >&2;}
2117    { (exit 1); exit 1; }; }
2118 fi
2119
2120 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2121         ac_cv_shtool="$ac_aux_dir/shtool"
2122 else
2123         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2124 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2125    { (exit 1); exit 1; }; }
2126 fi
2127
2128 SHTOOL="$ac_cv_shtool"
2129
2130 TB="" TN=""
2131 if test -t 1; then
2132         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2133         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2134 fi
2135
2136 OPENLDAP_CVS=""
2137 if test -d $ac_aux_dir/CVS; then
2138         OPENLDAP_CVS="(from CVS sources) "
2139 fi
2140
2141 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_CVS}..."
2142
2143 # Make sure we can run config.sub.
2144 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2145   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2146 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2147    { (exit 1); exit 1; }; }
2148
2149 { echo "$as_me:$LINENO: checking build system type" >&5
2150 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2151 if test "${ac_cv_build+set}" = set; then
2152   echo $ECHO_N "(cached) $ECHO_C" >&6
2153 else
2154   ac_build_alias=$build_alias
2155 test "x$ac_build_alias" = x &&
2156   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2157 test "x$ac_build_alias" = x &&
2158   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2159 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2160    { (exit 1); exit 1; }; }
2161 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2162   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2163 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2164    { (exit 1); exit 1; }; }
2165
2166 fi
2167 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2168 echo "${ECHO_T}$ac_cv_build" >&6; }
2169 case $ac_cv_build in
2170 *-*-*) ;;
2171 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2172 echo "$as_me: error: invalid value of canonical build" >&2;}
2173    { (exit 1); exit 1; }; };;
2174 esac
2175 build=$ac_cv_build
2176 ac_save_IFS=$IFS; IFS='-'
2177 set x $ac_cv_build
2178 shift
2179 build_cpu=$1
2180 build_vendor=$2
2181 shift; shift
2182 # Remember, the first character of IFS is used to create $*,
2183 # except with old shells:
2184 build_os=$*
2185 IFS=$ac_save_IFS
2186 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2187
2188
2189 { echo "$as_me:$LINENO: checking host system type" >&5
2190 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2191 if test "${ac_cv_host+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test "x$host_alias" = x; then
2195   ac_cv_host=$ac_cv_build
2196 else
2197   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2198     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2199 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2200    { (exit 1); exit 1; }; }
2201 fi
2202
2203 fi
2204 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2205 echo "${ECHO_T}$ac_cv_host" >&6; }
2206 case $ac_cv_host in
2207 *-*-*) ;;
2208 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2209 echo "$as_me: error: invalid value of canonical host" >&2;}
2210    { (exit 1); exit 1; }; };;
2211 esac
2212 host=$ac_cv_host
2213 ac_save_IFS=$IFS; IFS='-'
2214 set x $ac_cv_host
2215 shift
2216 host_cpu=$1
2217 host_vendor=$2
2218 shift; shift
2219 # Remember, the first character of IFS is used to create $*,
2220 # except with old shells:
2221 host_os=$*
2222 IFS=$ac_save_IFS
2223 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2224
2225
2226 { echo "$as_me:$LINENO: checking target system type" >&5
2227 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2228 if test "${ac_cv_target+set}" = set; then
2229   echo $ECHO_N "(cached) $ECHO_C" >&6
2230 else
2231   if test "x$target_alias" = x; then
2232   ac_cv_target=$ac_cv_host
2233 else
2234   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2235     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2236 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2237    { (exit 1); exit 1; }; }
2238 fi
2239
2240 fi
2241 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2242 echo "${ECHO_T}$ac_cv_target" >&6; }
2243 case $ac_cv_target in
2244 *-*-*) ;;
2245 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2246 echo "$as_me: error: invalid value of canonical target" >&2;}
2247    { (exit 1); exit 1; }; };;
2248 esac
2249 target=$ac_cv_target
2250 ac_save_IFS=$IFS; IFS='-'
2251 set x $ac_cv_target
2252 shift
2253 target_cpu=$1
2254 target_vendor=$2
2255 shift; shift
2256 # Remember, the first character of IFS is used to create $*,
2257 # except with old shells:
2258 target_os=$*
2259 IFS=$ac_save_IFS
2260 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2261
2262
2263 # The aliases save the names the user supplied, while $host etc.
2264 # will get canonicalized.
2265 test -n "$target_alias" &&
2266   test "$program_prefix$program_suffix$program_transform_name" = \
2267     NONENONEs,x,x, &&
2268   program_prefix=${target_alias}-
2269
2270 am__api_version="1.9"
2271 # Find a good install program.  We prefer a C program (faster),
2272 # so one script is as good as another.  But avoid the broken or
2273 # incompatible versions:
2274 # SysV /etc/install, /usr/sbin/install
2275 # SunOS /usr/etc/install
2276 # IRIX /sbin/install
2277 # AIX /bin/install
2278 # AmigaOS /C/install, which installs bootblocks on floppy discs
2279 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2280 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2281 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2282 # OS/2's system install, which has a completely different semantic
2283 # ./install, which can be erroneously created by make from ./install.sh.
2284 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2285 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2286 if test -z "$INSTALL"; then
2287 if test "${ac_cv_path_install+set}" = set; then
2288   echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 for as_dir in $PATH
2292 do
2293   IFS=$as_save_IFS
2294   test -z "$as_dir" && as_dir=.
2295   # Account for people who put trailing slashes in PATH elements.
2296 case $as_dir/ in
2297   ./ | .// | /cC/* | \
2298   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2299   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2300   /usr/ucb/* ) ;;
2301   *)
2302     # OSF1 and SCO ODT 3.0 have their own names for install.
2303     # Don't use installbsd from OSF since it installs stuff as root
2304     # by default.
2305     for ac_prog in ginstall scoinst install; do
2306       for ac_exec_ext in '' $ac_executable_extensions; do
2307         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2308           if test $ac_prog = install &&
2309             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2310             # AIX install.  It has an incompatible calling convention.
2311             :
2312           elif test $ac_prog = install &&
2313             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314             # program-specific install script used by HP pwplus--don't use.
2315             :
2316           else
2317             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2318             break 3
2319           fi
2320         fi
2321       done
2322     done
2323     ;;
2324 esac
2325 done
2326 IFS=$as_save_IFS
2327
2328
2329 fi
2330   if test "${ac_cv_path_install+set}" = set; then
2331     INSTALL=$ac_cv_path_install
2332   else
2333     # As a last resort, use the slow shell script.  Don't cache a
2334     # value for INSTALL within a source directory, because that will
2335     # break other packages using the cache if that directory is
2336     # removed, or if the value is a relative name.
2337     INSTALL=$ac_install_sh
2338   fi
2339 fi
2340 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2341 echo "${ECHO_T}$INSTALL" >&6; }
2342
2343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2344 # It thinks the first close brace ends the variable substitution.
2345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2346
2347 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2348
2349 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2350
2351 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2352 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2353 # Just in case
2354 sleep 1
2355 echo timestamp > conftest.file
2356 # Do `set' in a subshell so we don't clobber the current shell's
2357 # arguments.  Must try -L first in case configure is actually a
2358 # symlink; some systems play weird games with the mod time of symlinks
2359 # (eg FreeBSD returns the mod time of the symlink's containing
2360 # directory).
2361 if (
2362    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2363    if test "$*" = "X"; then
2364       # -L didn't work.
2365       set X `ls -t $srcdir/configure conftest.file`
2366    fi
2367    rm -f conftest.file
2368    if test "$*" != "X $srcdir/configure conftest.file" \
2369       && test "$*" != "X conftest.file $srcdir/configure"; then
2370
2371       # If neither matched, then we have a broken ls.  This can happen
2372       # if, for instance, CONFIG_SHELL is bash and it inherits a
2373       # broken ls alias from the environment.  This has actually
2374       # happened.  Such a system could not be considered "sane".
2375       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2376 alias in your environment" >&5
2377 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2378 alias in your environment" >&2;}
2379    { (exit 1); exit 1; }; }
2380    fi
2381
2382    test "$2" = conftest.file
2383    )
2384 then
2385    # Ok.
2386    :
2387 else
2388    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2389 Check your system clock" >&5
2390 echo "$as_me: error: newly created file is older than distributed files!
2391 Check your system clock" >&2;}
2392    { (exit 1); exit 1; }; }
2393 fi
2394 { echo "$as_me:$LINENO: result: yes" >&5
2395 echo "${ECHO_T}yes" >&6; }
2396 test "$program_prefix" != NONE &&
2397   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2398 # Use a double $ so make ignores it.
2399 test "$program_suffix" != NONE &&
2400   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2401 # Double any \ or $.  echo might interpret backslashes.
2402 # By default was `s,x,x', remove it if useless.
2403 cat <<\_ACEOF >conftest.sed
2404 s/[\\$]/&&/g;s/;s,x,x,$//
2405 _ACEOF
2406 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2407 rm -f conftest.sed
2408
2409 # expand $ac_aux_dir to an absolute path
2410 am_aux_dir=`cd $ac_aux_dir && pwd`
2411
2412 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2413 # Use eval to expand $SHELL
2414 if eval "$MISSING --run true"; then
2415   am_missing_run="$MISSING --run "
2416 else
2417   am_missing_run=
2418   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2419 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2420 fi
2421
2422 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2423   # We used to keeping the `.' as first argument, in order to
2424   # allow $(mkdir_p) to be used without argument.  As in
2425   #   $(mkdir_p) $(somedir)
2426   # where $(somedir) is conditionally defined.  However this is wrong
2427   # for two reasons:
2428   #  1. if the package is installed by a user who cannot write `.'
2429   #     make install will fail,
2430   #  2. the above comment should most certainly read
2431   #     $(mkdir_p) $(DESTDIR)$(somedir)
2432   #     so it does not work when $(somedir) is undefined and
2433   #     $(DESTDIR) is not.
2434   #  To support the latter case, we have to write
2435   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2436   #  so the `.' trick is pointless.
2437   mkdir_p='mkdir -p --'
2438 else
2439   # On NextStep and OpenStep, the `mkdir' command does not
2440   # recognize any option.  It will interpret all options as
2441   # directories to create, and then abort because `.' already
2442   # exists.
2443   for d in ./-p ./--version;
2444   do
2445     test -d $d && rmdir $d
2446   done
2447   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2448   if test -f "$ac_aux_dir/mkinstalldirs"; then
2449     mkdir_p='$(mkinstalldirs)'
2450   else
2451     mkdir_p='$(install_sh) -d'
2452   fi
2453 fi
2454
2455 for ac_prog in gawk mawk nawk awk
2456 do
2457   # Extract the first word of "$ac_prog", so it can be a program name with args.
2458 set dummy $ac_prog; ac_word=$2
2459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2461 if test "${ac_cv_prog_AWK+set}" = set; then
2462   echo $ECHO_N "(cached) $ECHO_C" >&6
2463 else
2464   if test -n "$AWK"; then
2465   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2466 else
2467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 for as_dir in $PATH
2469 do
2470   IFS=$as_save_IFS
2471   test -z "$as_dir" && as_dir=.
2472   for ac_exec_ext in '' $ac_executable_extensions; do
2473   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2474     ac_cv_prog_AWK="$ac_prog"
2475     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2476     break 2
2477   fi
2478 done
2479 done
2480 IFS=$as_save_IFS
2481
2482 fi
2483 fi
2484 AWK=$ac_cv_prog_AWK
2485 if test -n "$AWK"; then
2486   { echo "$as_me:$LINENO: result: $AWK" >&5
2487 echo "${ECHO_T}$AWK" >&6; }
2488 else
2489   { echo "$as_me:$LINENO: result: no" >&5
2490 echo "${ECHO_T}no" >&6; }
2491 fi
2492
2493
2494   test -n "$AWK" && break
2495 done
2496
2497 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2498 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2499 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2500 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   cat >conftest.make <<\_ACEOF
2504 SHELL = /bin/sh
2505 all:
2506         @echo '@@@%%%=$(MAKE)=@@@%%%'
2507 _ACEOF
2508 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2509 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2510   *@@@%%%=?*=@@@%%%*)
2511     eval ac_cv_prog_make_${ac_make}_set=yes;;
2512   *)
2513     eval ac_cv_prog_make_${ac_make}_set=no;;
2514 esac
2515 rm -f conftest.make
2516 fi
2517 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2518   { echo "$as_me:$LINENO: result: yes" >&5
2519 echo "${ECHO_T}yes" >&6; }
2520   SET_MAKE=
2521 else
2522   { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2524   SET_MAKE="MAKE=${MAKE-make}"
2525 fi
2526
2527 rm -rf .tst 2>/dev/null
2528 mkdir .tst 2>/dev/null
2529 if test -d .tst; then
2530   am__leading_dot=.
2531 else
2532   am__leading_dot=_
2533 fi
2534 rmdir .tst 2>/dev/null
2535
2536 # test to see if srcdir already configured
2537 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2538    test -f $srcdir/config.status; then
2539   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2540 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2541    { (exit 1); exit 1; }; }
2542 fi
2543
2544 # test whether we have cygpath
2545 if test -z "$CYGPATH_W"; then
2546   if (cygpath --version) >/dev/null 2>/dev/null; then
2547     CYGPATH_W='cygpath -w'
2548   else
2549     CYGPATH_W=echo
2550   fi
2551 fi
2552
2553
2554 # Define the identity of the package.
2555  PACKAGE=$OL_PACKAGE
2556  VERSION=$OL_VERSION
2557
2558
2559 # Some tools Automake needs.
2560
2561 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2562
2563
2564 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2565
2566
2567 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2568
2569
2570 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2571
2572
2573 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2574
2575 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2576
2577 # Installed binaries are usually stripped using `strip' when the user
2578 # run `make install-strip'.  However `strip' might not be the right
2579 # tool to use in cross-compilation environments, therefore Automake
2580 # will honor the `STRIP' environment variable to overrule this program.
2581 if test "$cross_compiling" != no; then
2582   if test -n "$ac_tool_prefix"; then
2583   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2584 set dummy ${ac_tool_prefix}strip; ac_word=$2
2585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2587 if test "${ac_cv_prog_STRIP+set}" = set; then
2588   echo $ECHO_N "(cached) $ECHO_C" >&6
2589 else
2590   if test -n "$STRIP"; then
2591   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2592 else
2593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2594 for as_dir in $PATH
2595 do
2596   IFS=$as_save_IFS
2597   test -z "$as_dir" && as_dir=.
2598   for ac_exec_ext in '' $ac_executable_extensions; do
2599   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2600     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2601     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2602     break 2
2603   fi
2604 done
2605 done
2606 IFS=$as_save_IFS
2607
2608 fi
2609 fi
2610 STRIP=$ac_cv_prog_STRIP
2611 if test -n "$STRIP"; then
2612   { echo "$as_me:$LINENO: result: $STRIP" >&5
2613 echo "${ECHO_T}$STRIP" >&6; }
2614 else
2615   { echo "$as_me:$LINENO: result: no" >&5
2616 echo "${ECHO_T}no" >&6; }
2617 fi
2618
2619
2620 fi
2621 if test -z "$ac_cv_prog_STRIP"; then
2622   ac_ct_STRIP=$STRIP
2623   # Extract the first word of "strip", so it can be a program name with args.
2624 set dummy strip; ac_word=$2
2625 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2627 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2628   echo $ECHO_N "(cached) $ECHO_C" >&6
2629 else
2630   if test -n "$ac_ct_STRIP"; then
2631   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2632 else
2633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 for as_dir in $PATH
2635 do
2636   IFS=$as_save_IFS
2637   test -z "$as_dir" && as_dir=.
2638   for ac_exec_ext in '' $ac_executable_extensions; do
2639   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2640     ac_cv_prog_ac_ct_STRIP="strip"
2641     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2642     break 2
2643   fi
2644 done
2645 done
2646 IFS=$as_save_IFS
2647
2648 fi
2649 fi
2650 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2651 if test -n "$ac_ct_STRIP"; then
2652   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2653 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2654 else
2655   { echo "$as_me:$LINENO: result: no" >&5
2656 echo "${ECHO_T}no" >&6; }
2657 fi
2658
2659   if test "x$ac_ct_STRIP" = x; then
2660     STRIP=":"
2661   else
2662     case $cross_compiling:$ac_tool_warned in
2663 yes:)
2664 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2665 whose name does not start with the host triplet.  If you think this
2666 configuration is useful to you, please write to autoconf@gnu.org." >&5
2667 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2668 whose name does not start with the host triplet.  If you think this
2669 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2670 ac_tool_warned=yes ;;
2671 esac
2672     STRIP=$ac_ct_STRIP
2673   fi
2674 else
2675   STRIP="$ac_cv_prog_STRIP"
2676 fi
2677
2678 fi
2679 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2680
2681 # We need awk for the "check" target.  The system "awk" is bad on
2682 # some platforms.
2683 # Always define AMTAR for backward compatibility.
2684
2685 AMTAR=${AMTAR-"${am_missing_run}tar"}
2686
2687 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2688
2689
2690
2691
2692
2693 cat >>confdefs.h <<_ACEOF
2694 #define OPENLDAP_PACKAGE "$PACKAGE"
2695 _ACEOF
2696
2697
2698 cat >>confdefs.h <<_ACEOF
2699 #define OPENLDAP_VERSION "$VERSION"
2700 _ACEOF
2701
2702
2703
2704 cat >>confdefs.h <<_ACEOF
2705 #define LDAP_VENDOR_VERSION $OL_API_INC
2706 _ACEOF
2707
2708
2709 cat >>confdefs.h <<_ACEOF
2710 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2711 _ACEOF
2712
2713
2714 cat >>confdefs.h <<_ACEOF
2715 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2716 _ACEOF
2717
2718
2719 cat >>confdefs.h <<_ACEOF
2720 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2721 _ACEOF
2722
2723
2724 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2725
2726 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2727
2728 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2729
2730
2731
2732
2733
2734
2735
2736 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2737
2738 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2739
2740 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2741
2742
2743 { echo "$as_me:$LINENO: checking configure arguments" >&5
2744 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2745
2746
2747 top_builddir=`pwd`
2748
2749 ldap_subdir="/openldap"
2750
2751
2752 # Check whether --with-subdir was given.
2753 if test "${with_subdir+set}" = set; then
2754   withval=$with_subdir; case "$withval" in
2755         no) ldap_subdir=""
2756                 ;;
2757         yes)
2758                 ;;
2759         /*|\\*)
2760                 ldap_subdir="$withval"
2761                 ;;
2762         *)
2763                 ldap_subdir="/$withval"
2764                 ;;
2765 esac
2766
2767 fi
2768
2769
2770 # OpenLDAP --enable-debug
2771
2772         # Check whether --enable-debug was given.
2773 if test "${enable_debug+set}" = set; then
2774   enableval=$enable_debug;
2775         ol_arg=invalid
2776         for ol_val in no yes traditional ; do
2777                 if test "$enableval" = "$ol_val" ; then
2778                         ol_arg="$ol_val"
2779                 fi
2780         done
2781         if test "$ol_arg" = "invalid" ; then
2782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-debug" >&5
2783 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2784    { (exit 1); exit 1; }; }
2785         fi
2786         ol_enable_debug="$ol_arg"
2787
2788 else
2789         ol_enable_debug=yes
2790 fi
2791
2792 # end --enable-debug
2793 # OpenLDAP --enable-dynamic
2794
2795         # Check whether --enable-dynamic was given.
2796 if test "${enable_dynamic+set}" = set; then
2797   enableval=$enable_dynamic;
2798         ol_arg=invalid
2799         for ol_val in auto yes no ; do
2800                 if test "$enableval" = "$ol_val" ; then
2801                         ol_arg="$ol_val"
2802                 fi
2803         done
2804         if test "$ol_arg" = "invalid" ; then
2805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynamic" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_dynamic="$ol_arg"
2810
2811 else
2812         ol_enable_dynamic=no
2813 fi
2814
2815 # end --enable-dynamic
2816 # OpenLDAP --enable-syslog
2817
2818         # Check whether --enable-syslog was given.
2819 if test "${enable_syslog+set}" = set; then
2820   enableval=$enable_syslog;
2821         ol_arg=invalid
2822         for ol_val in auto yes no ; do
2823                 if test "$enableval" = "$ol_val" ; then
2824                         ol_arg="$ol_val"
2825                 fi
2826         done
2827         if test "$ol_arg" = "invalid" ; then
2828                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syslog" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2830    { (exit 1); exit 1; }; }
2831         fi
2832         ol_enable_syslog="$ol_arg"
2833
2834 else
2835         ol_enable_syslog=auto
2836 fi
2837
2838 # end --enable-syslog
2839 # OpenLDAP --enable-proctitle
2840
2841         # Check whether --enable-proctitle was given.
2842 if test "${enable_proctitle+set}" = set; then
2843   enableval=$enable_proctitle;
2844         ol_arg=invalid
2845         for ol_val in auto yes no ; do
2846                 if test "$enableval" = "$ol_val" ; then
2847                         ol_arg="$ol_val"
2848                 fi
2849         done
2850         if test "$ol_arg" = "invalid" ; then
2851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2853    { (exit 1); exit 1; }; }
2854         fi
2855         ol_enable_proctitle="$ol_arg"
2856
2857 else
2858         ol_enable_proctitle=yes
2859 fi
2860
2861 # end --enable-proctitle
2862 ol_enable_referrals=${ol_enable_referrals-no}
2863 # OpenLDAP --enable-ipv6
2864
2865         # Check whether --enable-ipv6 was given.
2866 if test "${enable_ipv6+set}" = set; then
2867   enableval=$enable_ipv6;
2868         ol_arg=invalid
2869         for ol_val in auto yes no ; do
2870                 if test "$enableval" = "$ol_val" ; then
2871                         ol_arg="$ol_val"
2872                 fi
2873         done
2874         if test "$ol_arg" = "invalid" ; then
2875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ipv6" >&5
2876 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2877    { (exit 1); exit 1; }; }
2878         fi
2879         ol_enable_ipv6="$ol_arg"
2880
2881 else
2882         ol_enable_ipv6=auto
2883 fi
2884
2885 # end --enable-ipv6
2886 # OpenLDAP --enable-local
2887
2888         # Check whether --enable-local was given.
2889 if test "${enable_local+set}" = set; then
2890   enableval=$enable_local;
2891         ol_arg=invalid
2892         for ol_val in auto yes no ; do
2893                 if test "$enableval" = "$ol_val" ; then
2894                         ol_arg="$ol_val"
2895                 fi
2896         done
2897         if test "$ol_arg" = "invalid" ; then
2898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_local="$ol_arg"
2903
2904 else
2905         ol_enable_local=auto
2906 fi
2907
2908 # end --enable-local
2909
2910 # OpenLDAP --with-cyrus_sasl
2911
2912 # Check whether --with-cyrus_sasl was given.
2913 if test "${with_cyrus_sasl+set}" = set; then
2914   withval=$with_cyrus_sasl;
2915         ol_arg=invalid
2916         for ol_val in auto yes no  ; do
2917                 if test "$withval" = "$ol_val" ; then
2918                         ol_arg="$ol_val"
2919                 fi
2920         done
2921         if test "$ol_arg" = "invalid" ; then
2922                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-cyrus_sasl" >&5
2923 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2924    { (exit 1); exit 1; }; }
2925         fi
2926         ol_with_cyrus_sasl="$ol_arg"
2927
2928 else
2929         ol_with_cyrus_sasl="auto"
2930 fi
2931 # end --with-cyrus_sasl
2932
2933 # OpenLDAP --with-fetch
2934
2935 # Check whether --with-fetch was given.
2936 if test "${with_fetch+set}" = set; then
2937   withval=$with_fetch;
2938         ol_arg=invalid
2939         for ol_val in auto yes no  ; do
2940                 if test "$withval" = "$ol_val" ; then
2941                         ol_arg="$ol_val"
2942                 fi
2943         done
2944         if test "$ol_arg" = "invalid" ; then
2945                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-fetch" >&5
2946 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_with_fetch="$ol_arg"
2950
2951 else
2952         ol_with_fetch="auto"
2953 fi
2954 # end --with-fetch
2955
2956 # OpenLDAP --with-threads
2957
2958 # Check whether --with-threads was given.
2959 if test "${with_threads+set}" = set; then
2960   withval=$with_threads;
2961         ol_arg=invalid
2962         for ol_val in auto nt posix mach pth lwp yes no manual  ; do
2963                 if test "$withval" = "$ol_val" ; then
2964                         ol_arg="$ol_val"
2965                 fi
2966         done
2967         if test "$ol_arg" = "invalid" ; then
2968                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-threads" >&5
2969 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_threads="$ol_arg"
2973
2974 else
2975         ol_with_threads="auto"
2976 fi
2977 # end --with-threads
2978
2979 # OpenLDAP --with-tls
2980
2981 # Check whether --with-tls was given.
2982 if test "${with_tls+set}" = set; then
2983   withval=$with_tls;
2984         ol_arg=invalid
2985         for ol_val in auto openssl gnutls yes no  ; do
2986                 if test "$withval" = "$ol_val" ; then
2987                         ol_arg="$ol_val"
2988                 fi
2989         done
2990         if test "$ol_arg" = "invalid" ; then
2991                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-tls" >&5
2992 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
2993    { (exit 1); exit 1; }; }
2994         fi
2995         ol_with_tls="$ol_arg"
2996
2997 else
2998         ol_with_tls="auto"
2999 fi
3000 # end --with-tls
3001
3002 # OpenLDAP --with-yielding_select
3003
3004 # Check whether --with-yielding_select was given.
3005 if test "${with_yielding_select+set}" = set; then
3006   withval=$with_yielding_select;
3007         ol_arg=invalid
3008         for ol_val in auto yes no manual  ; do
3009                 if test "$withval" = "$ol_val" ; then
3010                         ol_arg="$ol_val"
3011                 fi
3012         done
3013         if test "$ol_arg" = "invalid" ; then
3014                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-yielding_select" >&5
3015 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3016    { (exit 1); exit 1; }; }
3017         fi
3018         ol_with_yielding_select="$ol_arg"
3019
3020 else
3021         ol_with_yielding_select="auto"
3022 fi
3023 # end --with-yielding_select
3024
3025 # OpenLDAP --with-mp
3026
3027 # Check whether --with-mp was given.
3028 if test "${with_mp+set}" = set; then
3029   withval=$with_mp;
3030         ol_arg=invalid
3031         for ol_val in auto longlong long bignum gmp yes no ; do
3032                 if test "$withval" = "$ol_val" ; then
3033                         ol_arg="$ol_val"
3034                 fi
3035         done
3036         if test "$ol_arg" = "invalid" ; then
3037                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-mp" >&5
3038 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_with_mp="$ol_arg"
3042
3043 else
3044         ol_with_mp="auto"
3045 fi
3046 # end --with-mp
3047
3048 # OpenLDAP --with-odbc
3049
3050 # Check whether --with-odbc was given.
3051 if test "${with_odbc+set}" = set; then
3052   withval=$with_odbc;
3053         ol_arg=invalid
3054         for ol_val in auto iodbc unixodbc odbc32  ; do
3055                 if test "$withval" = "$ol_val" ; then
3056                         ol_arg="$ol_val"
3057                 fi
3058         done
3059         if test "$ol_arg" = "invalid" ; then
3060                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3061 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3062    { (exit 1); exit 1; }; }
3063         fi
3064         ol_with_odbc="$ol_arg"
3065
3066 else
3067         ol_with_odbc="auto"
3068 fi
3069 # end --with-odbc
3070
3071
3072
3073 # Check whether --enable-xxslapdoptions was given.
3074 if test "${enable_xxslapdoptions+set}" = set; then
3075   enableval=$enable_xxslapdoptions;
3076 fi
3077
3078 # OpenLDAP --enable-slapd
3079
3080         # Check whether --enable-slapd was given.
3081 if test "${enable_slapd+set}" = set; then
3082   enableval=$enable_slapd;
3083         ol_arg=invalid
3084         for ol_val in auto yes no ; do
3085                 if test "$enableval" = "$ol_val" ; then
3086                         ol_arg="$ol_val"
3087                 fi
3088         done
3089         if test "$ol_arg" = "invalid" ; then
3090                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapd" >&5
3091 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3092    { (exit 1); exit 1; }; }
3093         fi
3094         ol_enable_slapd="$ol_arg"
3095
3096 else
3097         ol_enable_slapd=yes
3098 fi
3099
3100 # end --enable-slapd
3101 # OpenLDAP --enable-dynacl
3102
3103         # Check whether --enable-dynacl was given.
3104 if test "${enable_dynacl+set}" = set; then
3105   enableval=$enable_dynacl;
3106         ol_arg=invalid
3107         for ol_val in auto yes no ; do
3108                 if test "$enableval" = "$ol_val" ; then
3109                         ol_arg="$ol_val"
3110                 fi
3111         done
3112         if test "$ol_arg" = "invalid" ; then
3113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynacl" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_dynacl="$ol_arg"
3118
3119 else
3120         ol_enable_dynacl=no
3121 fi
3122
3123 # end --enable-dynacl
3124 # OpenLDAP --enable-aci
3125
3126         # Check whether --enable-aci was given.
3127 if test "${enable_aci+set}" = set; then
3128   enableval=$enable_aci;
3129         ol_arg=invalid
3130         for ol_val in no yes mod ; do
3131                 if test "$enableval" = "$ol_val" ; then
3132                         ol_arg="$ol_val"
3133                 fi
3134         done
3135         if test "$ol_arg" = "invalid" ; then
3136                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-aci" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_aci="$ol_arg"
3141
3142 else
3143         ol_enable_aci=no
3144 fi
3145
3146 # end --enable-aci
3147 # OpenLDAP --enable-cleartext
3148
3149         # Check whether --enable-cleartext was given.
3150 if test "${enable_cleartext+set}" = set; then
3151   enableval=$enable_cleartext;
3152         ol_arg=invalid
3153         for ol_val in auto yes no ; do
3154                 if test "$enableval" = "$ol_val" ; then
3155                         ol_arg="$ol_val"
3156                 fi
3157         done
3158         if test "$ol_arg" = "invalid" ; then
3159                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cleartext" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_cleartext="$ol_arg"
3164
3165 else
3166         ol_enable_cleartext=yes
3167 fi
3168
3169 # end --enable-cleartext
3170 # OpenLDAP --enable-crypt
3171
3172         # Check whether --enable-crypt was given.
3173 if test "${enable_crypt+set}" = set; then
3174   enableval=$enable_crypt;
3175         ol_arg=invalid
3176         for ol_val in auto yes no ; do
3177                 if test "$enableval" = "$ol_val" ; then
3178                         ol_arg="$ol_val"
3179                 fi
3180         done
3181         if test "$ol_arg" = "invalid" ; then
3182                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-crypt" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3184    { (exit 1); exit 1; }; }
3185         fi
3186         ol_enable_crypt="$ol_arg"
3187
3188 else
3189         ol_enable_crypt=no
3190 fi
3191
3192 # end --enable-crypt
3193 # OpenLDAP --enable-lmpasswd
3194
3195         # Check whether --enable-lmpasswd was given.
3196 if test "${enable_lmpasswd+set}" = set; then
3197   enableval=$enable_lmpasswd;
3198         ol_arg=invalid
3199         for ol_val in auto yes no ; do
3200                 if test "$enableval" = "$ol_val" ; then
3201                         ol_arg="$ol_val"
3202                 fi
3203         done
3204         if test "$ol_arg" = "invalid" ; then
3205                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-lmpasswd" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_lmpasswd="$ol_arg"
3210
3211 else
3212         ol_enable_lmpasswd=no
3213 fi
3214
3215 # end --enable-lmpasswd
3216 # OpenLDAP --enable-spasswd
3217
3218         # Check whether --enable-spasswd was given.
3219 if test "${enable_spasswd+set}" = set; then
3220   enableval=$enable_spasswd;
3221         ol_arg=invalid
3222         for ol_val in auto yes no ; do
3223                 if test "$enableval" = "$ol_val" ; then
3224                         ol_arg="$ol_val"
3225                 fi
3226         done
3227         if test "$ol_arg" = "invalid" ; then
3228                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-spasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3230    { (exit 1); exit 1; }; }
3231         fi
3232         ol_enable_spasswd="$ol_arg"
3233
3234 else
3235         ol_enable_spasswd=no
3236 fi
3237
3238 # end --enable-spasswd
3239 # OpenLDAP --enable-modules
3240
3241         # Check whether --enable-modules was given.
3242 if test "${enable_modules+set}" = set; then
3243   enableval=$enable_modules;
3244         ol_arg=invalid
3245         for ol_val in auto yes no ; do
3246                 if test "$enableval" = "$ol_val" ; then
3247                         ol_arg="$ol_val"
3248                 fi
3249         done
3250         if test "$ol_arg" = "invalid" ; then
3251                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-modules" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_modules="$ol_arg"
3256
3257 else
3258         ol_enable_modules=no
3259 fi
3260
3261 # end --enable-modules
3262 # OpenLDAP --enable-rewrite
3263
3264         # Check whether --enable-rewrite was given.
3265 if test "${enable_rewrite+set}" = set; then
3266   enableval=$enable_rewrite;
3267         ol_arg=invalid
3268         for ol_val in auto yes no ; do
3269                 if test "$enableval" = "$ol_val" ; then
3270                         ol_arg="$ol_val"
3271                 fi
3272         done
3273         if test "$ol_arg" = "invalid" ; then
3274                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rewrite" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_rewrite="$ol_arg"
3279
3280 else
3281         ol_enable_rewrite=auto
3282 fi
3283
3284 # end --enable-rewrite
3285 # OpenLDAP --enable-rlookups
3286
3287         # Check whether --enable-rlookups was given.
3288 if test "${enable_rlookups+set}" = set; then
3289   enableval=$enable_rlookups;
3290         ol_arg=invalid
3291         for ol_val in auto yes no ; do
3292                 if test "$enableval" = "$ol_val" ; then
3293                         ol_arg="$ol_val"
3294                 fi
3295         done
3296         if test "$ol_arg" = "invalid" ; then
3297                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rlookups" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_rlookups="$ol_arg"
3302
3303 else
3304         ol_enable_rlookups=no
3305 fi
3306
3307 # end --enable-rlookups
3308 # OpenLDAP --enable-slapi
3309
3310         # Check whether --enable-slapi was given.
3311 if test "${enable_slapi+set}" = set; then
3312   enableval=$enable_slapi;
3313         ol_arg=invalid
3314         for ol_val in auto yes no ; do
3315                 if test "$enableval" = "$ol_val" ; then
3316                         ol_arg="$ol_val"
3317                 fi
3318         done
3319         if test "$ol_arg" = "invalid" ; then
3320                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slapi" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_slapi="$ol_arg"
3325
3326 else
3327         ol_enable_slapi=no
3328 fi
3329
3330 # end --enable-slapi
3331 # OpenLDAP --enable-slp
3332
3333         # Check whether --enable-slp was given.
3334 if test "${enable_slp+set}" = set; then
3335   enableval=$enable_slp;
3336         ol_arg=invalid
3337         for ol_val in auto yes no ; do
3338                 if test "$enableval" = "$ol_val" ; then
3339                         ol_arg="$ol_val"
3340                 fi
3341         done
3342         if test "$ol_arg" = "invalid" ; then
3343                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-slp" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_slp="$ol_arg"
3348
3349 else
3350         ol_enable_slp=no
3351 fi
3352
3353 # end --enable-slp
3354 # OpenLDAP --enable-wrappers
3355
3356         # Check whether --enable-wrappers was given.
3357 if test "${enable_wrappers+set}" = set; then
3358   enableval=$enable_wrappers;
3359         ol_arg=invalid
3360         for ol_val in auto yes no ; do
3361                 if test "$enableval" = "$ol_val" ; then
3362                         ol_arg="$ol_val"
3363                 fi
3364         done
3365         if test "$ol_arg" = "invalid" ; then
3366                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_wrappers="$ol_arg"
3371
3372 else
3373         ol_enable_wrappers=no
3374 fi
3375
3376 # end --enable-wrappers
3377
3378 Backends="bdb \
3379         dnssrv \
3380         hdb \
3381         ldap \
3382         meta \
3383         monitor \
3384         ndb \
3385         null \
3386         passwd \
3387         perl \
3388         relay \
3389         shell \
3390         sock \
3391         sql"
3392
3393 # Check whether --enable-xxslapbackends was given.
3394 if test "${enable_xxslapbackends+set}" = set; then
3395   enableval=$enable_xxslapbackends;
3396 fi
3397
3398
3399 # OpenLDAP --enable-backends
3400
3401         # Check whether --enable-backends was given.
3402 if test "${enable_backends+set}" = set; then
3403   enableval=$enable_backends;
3404         ol_arg=invalid
3405         for ol_val in no yes mod ; do
3406                 if test "$enableval" = "$ol_val" ; then
3407                         ol_arg="$ol_val"
3408                 fi
3409         done
3410         if test "$ol_arg" = "invalid" ; then
3411                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3412 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3413    { (exit 1); exit 1; }; }
3414         fi
3415         ol_enable_backends="$ol_arg"
3416
3417 fi
3418
3419 # end --enable-backends
3420 # OpenLDAP --enable-bdb
3421
3422         # Check whether --enable-bdb was given.
3423 if test "${enable_bdb+set}" = set; then
3424   enableval=$enable_bdb;
3425         ol_arg=invalid
3426         for ol_val in no yes mod ; do
3427                 if test "$enableval" = "$ol_val" ; then
3428                         ol_arg="$ol_val"
3429                 fi
3430         done
3431         if test "$ol_arg" = "invalid" ; then
3432                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-bdb" >&5
3433 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3434    { (exit 1); exit 1; }; }
3435         fi
3436         ol_enable_bdb="$ol_arg"
3437
3438 else
3439         ol_enable_bdb=${ol_enable_backends:-yes}
3440 fi
3441
3442 # end --enable-bdb
3443 # OpenLDAP --enable-dnssrv
3444
3445         # Check whether --enable-dnssrv was given.
3446 if test "${enable_dnssrv+set}" = set; then
3447   enableval=$enable_dnssrv;
3448         ol_arg=invalid
3449         for ol_val in no yes mod ; do
3450                 if test "$enableval" = "$ol_val" ; then
3451                         ol_arg="$ol_val"
3452                 fi
3453         done
3454         if test "$ol_arg" = "invalid" ; then
3455                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dnssrv" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3457    { (exit 1); exit 1; }; }
3458         fi
3459         ol_enable_dnssrv="$ol_arg"
3460
3461 else
3462         ol_enable_dnssrv=${ol_enable_backends:-no}
3463 fi
3464
3465 # end --enable-dnssrv
3466 # OpenLDAP --enable-hdb
3467
3468         # Check whether --enable-hdb was given.
3469 if test "${enable_hdb+set}" = set; then
3470   enableval=$enable_hdb;
3471         ol_arg=invalid
3472         for ol_val in no yes mod ; do
3473                 if test "$enableval" = "$ol_val" ; then
3474                         ol_arg="$ol_val"
3475                 fi
3476         done
3477         if test "$ol_arg" = "invalid" ; then
3478                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-hdb" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3480    { (exit 1); exit 1; }; }
3481         fi
3482         ol_enable_hdb="$ol_arg"
3483
3484 else
3485         ol_enable_hdb=${ol_enable_backends:-yes}
3486 fi
3487
3488 # end --enable-hdb
3489 # OpenLDAP --enable-ldap
3490
3491         # Check whether --enable-ldap was given.
3492 if test "${enable_ldap+set}" = set; then
3493   enableval=$enable_ldap;
3494         ol_arg=invalid
3495         for ol_val in no yes mod ; do
3496                 if test "$enableval" = "$ol_val" ; then
3497                         ol_arg="$ol_val"
3498                 fi
3499         done
3500         if test "$ol_arg" = "invalid" ; then
3501                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ldap" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3503    { (exit 1); exit 1; }; }
3504         fi
3505         ol_enable_ldap="$ol_arg"
3506
3507 else
3508         ol_enable_ldap=${ol_enable_backends:-no}
3509 fi
3510
3511 # end --enable-ldap
3512 # OpenLDAP --enable-meta
3513
3514         # Check whether --enable-meta was given.
3515 if test "${enable_meta+set}" = set; then
3516   enableval=$enable_meta;
3517         ol_arg=invalid
3518         for ol_val in no yes mod ; do
3519                 if test "$enableval" = "$ol_val" ; then
3520                         ol_arg="$ol_val"
3521                 fi
3522         done
3523         if test "$ol_arg" = "invalid" ; then
3524                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-meta" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3526    { (exit 1); exit 1; }; }
3527         fi
3528         ol_enable_meta="$ol_arg"
3529
3530 else
3531         ol_enable_meta=${ol_enable_backends:-no}
3532 fi
3533
3534 # end --enable-meta
3535 # OpenLDAP --enable-monitor
3536
3537         # Check whether --enable-monitor was given.
3538 if test "${enable_monitor+set}" = set; then
3539   enableval=$enable_monitor;
3540         ol_arg=invalid
3541         for ol_val in no yes mod ; do
3542                 if test "$enableval" = "$ol_val" ; then
3543                         ol_arg="$ol_val"
3544                 fi
3545         done
3546         if test "$ol_arg" = "invalid" ; then
3547                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-monitor" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_monitor="$ol_arg"
3552
3553 else
3554         ol_enable_monitor=${ol_enable_backends:-yes}
3555 fi
3556
3557 # end --enable-monitor
3558 # OpenLDAP --enable-ndb
3559
3560         # Check whether --enable-ndb was given.
3561 if test "${enable_ndb+set}" = set; then
3562   enableval=$enable_ndb;
3563         ol_arg=invalid
3564         for ol_val in no yes mod ; do
3565                 if test "$enableval" = "$ol_val" ; then
3566                         ol_arg="$ol_val"
3567                 fi
3568         done
3569         if test "$ol_arg" = "invalid" ; then
3570                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ndb" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3572    { (exit 1); exit 1; }; }
3573         fi
3574         ol_enable_ndb="$ol_arg"
3575
3576 else
3577         ol_enable_ndb=${ol_enable_backends:-no}
3578 fi
3579
3580 # end --enable-ndb
3581 # OpenLDAP --enable-null
3582
3583         # Check whether --enable-null was given.
3584 if test "${enable_null+set}" = set; then
3585   enableval=$enable_null;
3586         ol_arg=invalid
3587         for ol_val in no yes mod ; do
3588                 if test "$enableval" = "$ol_val" ; then
3589                         ol_arg="$ol_val"
3590                 fi
3591         done
3592         if test "$ol_arg" = "invalid" ; then
3593                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-null" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_null="$ol_arg"
3598
3599 else
3600         ol_enable_null=${ol_enable_backends:-no}
3601 fi
3602
3603 # end --enable-null
3604 # OpenLDAP --enable-passwd
3605
3606         # Check whether --enable-passwd was given.
3607 if test "${enable_passwd+set}" = set; then
3608   enableval=$enable_passwd;
3609         ol_arg=invalid
3610         for ol_val in no yes mod ; do
3611                 if test "$enableval" = "$ol_val" ; then
3612                         ol_arg="$ol_val"
3613                 fi
3614         done
3615         if test "$ol_arg" = "invalid" ; then
3616                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-passwd" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3618    { (exit 1); exit 1; }; }
3619         fi
3620         ol_enable_passwd="$ol_arg"
3621
3622 else
3623         ol_enable_passwd=${ol_enable_backends:-no}
3624 fi
3625
3626 # end --enable-passwd
3627 # OpenLDAP --enable-perl
3628
3629         # Check whether --enable-perl was given.
3630 if test "${enable_perl+set}" = set; then
3631   enableval=$enable_perl;
3632         ol_arg=invalid
3633         for ol_val in no yes mod ; do
3634                 if test "$enableval" = "$ol_val" ; then
3635                         ol_arg="$ol_val"
3636                 fi
3637         done
3638         if test "$ol_arg" = "invalid" ; then
3639                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-perl" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_perl="$ol_arg"
3644
3645 else
3646         ol_enable_perl=${ol_enable_backends:-no}
3647 fi
3648
3649 # end --enable-perl
3650 # OpenLDAP --enable-relay
3651
3652         # Check whether --enable-relay was given.
3653 if test "${enable_relay+set}" = set; then
3654   enableval=$enable_relay;
3655         ol_arg=invalid
3656         for ol_val in no yes mod ; do
3657                 if test "$enableval" = "$ol_val" ; then
3658                         ol_arg="$ol_val"
3659                 fi
3660         done
3661         if test "$ol_arg" = "invalid" ; then
3662                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-relay" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3664    { (exit 1); exit 1; }; }
3665         fi
3666         ol_enable_relay="$ol_arg"
3667
3668 else
3669         ol_enable_relay=${ol_enable_backends:-yes}
3670 fi
3671
3672 # end --enable-relay
3673 # OpenLDAP --enable-shell
3674
3675         # Check whether --enable-shell was given.
3676 if test "${enable_shell+set}" = set; then
3677   enableval=$enable_shell;
3678         ol_arg=invalid
3679         for ol_val in no yes mod ; do
3680                 if test "$enableval" = "$ol_val" ; then
3681                         ol_arg="$ol_val"
3682                 fi
3683         done
3684         if test "$ol_arg" = "invalid" ; then
3685                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-shell" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3687    { (exit 1); exit 1; }; }
3688         fi
3689         ol_enable_shell="$ol_arg"
3690
3691 else
3692         ol_enable_shell=${ol_enable_backends:-no}
3693 fi
3694
3695 # end --enable-shell
3696 # OpenLDAP --enable-sock
3697
3698         # Check whether --enable-sock was given.
3699 if test "${enable_sock+set}" = set; then
3700   enableval=$enable_sock;
3701         ol_arg=invalid
3702         for ol_val in no yes mod ; do
3703                 if test "$enableval" = "$ol_val" ; then
3704                         ol_arg="$ol_val"
3705                 fi
3706         done
3707         if test "$ol_arg" = "invalid" ; then
3708                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sock" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         ol_enable_sock="$ol_arg"
3713
3714 else
3715         ol_enable_sock=${ol_enable_backends:-no}
3716 fi
3717
3718 # end --enable-sock
3719 # OpenLDAP --enable-sql
3720
3721         # Check whether --enable-sql was given.
3722 if test "${enable_sql+set}" = set; then
3723   enableval=$enable_sql;
3724         ol_arg=invalid
3725         for ol_val in no yes mod ; do
3726                 if test "$enableval" = "$ol_val" ; then
3727                         ol_arg="$ol_val"
3728                 fi
3729         done
3730         if test "$ol_arg" = "invalid" ; then
3731                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3733    { (exit 1); exit 1; }; }
3734         fi
3735         ol_enable_sql="$ol_arg"
3736
3737 else
3738         ol_enable_sql=${ol_enable_backends:-no}
3739 fi
3740
3741 # end --enable-sql
3742
3743 Overlays="accesslog \
3744         auditlog \
3745         collect \
3746         constraint \
3747         dds \
3748         deref \
3749         dyngroup \
3750         dynlist \
3751         memberof \
3752         ppolicy \
3753         proxycache \
3754         refint \
3755         retcode \
3756         rwm \
3757         seqmod \
3758         sssvlv \
3759         syncprov \
3760         translucent \
3761         unique \
3762         valsort"
3763
3764 # Check whether --enable-xxslapoverlays was given.
3765 if test "${enable_xxslapoverlays+set}" = set; then
3766   enableval=$enable_xxslapoverlays;
3767 fi
3768
3769
3770 # OpenLDAP --enable-overlays
3771
3772         # Check whether --enable-overlays was given.
3773 if test "${enable_overlays+set}" = set; then
3774   enableval=$enable_overlays;
3775         ol_arg=invalid
3776         for ol_val in no yes mod ; do
3777                 if test "$enableval" = "$ol_val" ; then
3778                         ol_arg="$ol_val"
3779                 fi
3780         done
3781         if test "$ol_arg" = "invalid" ; then
3782                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3783 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3784    { (exit 1); exit 1; }; }
3785         fi
3786         ol_enable_overlays="$ol_arg"
3787
3788 fi
3789
3790 # end --enable-overlays
3791 # OpenLDAP --enable-accesslog
3792
3793         # Check whether --enable-accesslog was given.
3794 if test "${enable_accesslog+set}" = set; then
3795   enableval=$enable_accesslog;
3796         ol_arg=invalid
3797         for ol_val in no yes mod ; do
3798                 if test "$enableval" = "$ol_val" ; then
3799                         ol_arg="$ol_val"
3800                 fi
3801         done
3802         if test "$ol_arg" = "invalid" ; then
3803                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3804 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3805    { (exit 1); exit 1; }; }
3806         fi
3807         ol_enable_accesslog="$ol_arg"
3808
3809 else
3810         ol_enable_accesslog=${ol_enable_overlays:-no}
3811 fi
3812
3813 # end --enable-accesslog
3814
3815 # OpenLDAP --enable-auditlog
3816
3817         # Check whether --enable-auditlog was given.
3818 if test "${enable_auditlog+set}" = set; then
3819   enableval=$enable_auditlog;
3820         ol_arg=invalid
3821         for ol_val in no yes mod ; do
3822                 if test "$enableval" = "$ol_val" ; then
3823                         ol_arg="$ol_val"
3824                 fi
3825         done
3826         if test "$ol_arg" = "invalid" ; then
3827                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3828 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3829    { (exit 1); exit 1; }; }
3830         fi
3831         ol_enable_auditlog="$ol_arg"
3832
3833 else
3834         ol_enable_auditlog=${ol_enable_overlays:-no}
3835 fi
3836
3837 # end --enable-auditlog
3838
3839 # OpenLDAP --enable-collect
3840
3841         # Check whether --enable-collect was given.
3842 if test "${enable_collect+set}" = set; then
3843   enableval=$enable_collect;
3844         ol_arg=invalid
3845         for ol_val in no yes mod ; do
3846                 if test "$enableval" = "$ol_val" ; then
3847                         ol_arg="$ol_val"
3848                 fi
3849         done
3850         if test "$ol_arg" = "invalid" ; then
3851                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3852 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3853    { (exit 1); exit 1; }; }
3854         fi
3855         ol_enable_collect="$ol_arg"
3856
3857 else
3858         ol_enable_collect=${ol_enable_overlays:-no}
3859 fi
3860
3861 # end --enable-collect
3862
3863 # OpenLDAP --enable-constraint
3864
3865         # Check whether --enable-constraint was given.
3866 if test "${enable_constraint+set}" = set; then
3867   enableval=$enable_constraint;
3868         ol_arg=invalid
3869         for ol_val in no yes mod ; do
3870                 if test "$enableval" = "$ol_val" ; then
3871                         ol_arg="$ol_val"
3872                 fi
3873         done
3874         if test "$ol_arg" = "invalid" ; then
3875                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3876 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3877    { (exit 1); exit 1; }; }
3878         fi
3879         ol_enable_constraint="$ol_arg"
3880
3881 else
3882         ol_enable_constraint=${ol_enable_overlays:-no}
3883 fi
3884
3885 # end --enable-constraint
3886
3887 # OpenLDAP --enable-dds
3888
3889         # Check whether --enable-dds was given.
3890 if test "${enable_dds+set}" = set; then
3891   enableval=$enable_dds;
3892         ol_arg=invalid
3893         for ol_val in no yes mod ; do
3894                 if test "$enableval" = "$ol_val" ; then
3895                         ol_arg="$ol_val"
3896                 fi
3897         done
3898         if test "$ol_arg" = "invalid" ; then
3899                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3900 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3901    { (exit 1); exit 1; }; }
3902         fi
3903         ol_enable_dds="$ol_arg"
3904
3905 else
3906         ol_enable_dds=${ol_enable_overlays:-no}
3907 fi
3908
3909 # end --enable-dds
3910
3911 # OpenLDAP --enable-deref
3912
3913         # Check whether --enable-deref was given.
3914 if test "${enable_deref+set}" = set; then
3915   enableval=$enable_deref;
3916         ol_arg=invalid
3917         for ol_val in no yes mod ; do
3918                 if test "$enableval" = "$ol_val" ; then
3919                         ol_arg="$ol_val"
3920                 fi
3921         done
3922         if test "$ol_arg" = "invalid" ; then
3923                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3924 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3925    { (exit 1); exit 1; }; }
3926         fi
3927         ol_enable_deref="$ol_arg"
3928
3929 else
3930         ol_enable_deref=${ol_enable_overlays:-no}
3931 fi
3932
3933 # end --enable-deref
3934
3935 # OpenLDAP --enable-dyngroup
3936
3937         # Check whether --enable-dyngroup was given.
3938 if test "${enable_dyngroup+set}" = set; then
3939   enableval=$enable_dyngroup;
3940         ol_arg=invalid
3941         for ol_val in no yes mod ; do
3942                 if test "$enableval" = "$ol_val" ; then
3943                         ol_arg="$ol_val"
3944                 fi
3945         done
3946         if test "$ol_arg" = "invalid" ; then
3947                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3948 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3949    { (exit 1); exit 1; }; }
3950         fi
3951         ol_enable_dyngroup="$ol_arg"
3952
3953 else
3954         ol_enable_dyngroup=${ol_enable_overlays:-no}
3955 fi
3956
3957 # end --enable-dyngroup
3958
3959 # OpenLDAP --enable-dynlist
3960
3961         # Check whether --enable-dynlist was given.
3962 if test "${enable_dynlist+set}" = set; then
3963   enableval=$enable_dynlist;
3964         ol_arg=invalid
3965         for ol_val in no yes mod ; do
3966                 if test "$enableval" = "$ol_val" ; then
3967                         ol_arg="$ol_val"
3968                 fi
3969         done
3970         if test "$ol_arg" = "invalid" ; then
3971                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3972 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3973    { (exit 1); exit 1; }; }
3974         fi
3975         ol_enable_dynlist="$ol_arg"
3976
3977 else
3978         ol_enable_dynlist=${ol_enable_overlays:-no}
3979 fi
3980
3981 # end --enable-dynlist
3982
3983 # OpenLDAP --enable-memberof
3984
3985         # Check whether --enable-memberof was given.
3986 if test "${enable_memberof+set}" = set; then
3987   enableval=$enable_memberof;
3988         ol_arg=invalid
3989         for ol_val in no yes mod ; do
3990                 if test "$enableval" = "$ol_val" ; then
3991                         ol_arg="$ol_val"
3992                 fi
3993         done
3994         if test "$ol_arg" = "invalid" ; then
3995                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
3996 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
3997    { (exit 1); exit 1; }; }
3998         fi
3999         ol_enable_memberof="$ol_arg"
4000
4001 else
4002         ol_enable_memberof=${ol_enable_overlays:-no}
4003 fi
4004
4005 # end --enable-memberof
4006
4007 # OpenLDAP --enable-ppolicy
4008
4009         # Check whether --enable-ppolicy was given.
4010 if test "${enable_ppolicy+set}" = set; then
4011   enableval=$enable_ppolicy;
4012         ol_arg=invalid
4013         for ol_val in no yes mod ; do
4014                 if test "$enableval" = "$ol_val" ; then
4015                         ol_arg="$ol_val"
4016                 fi
4017         done
4018         if test "$ol_arg" = "invalid" ; then
4019                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4020 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4021    { (exit 1); exit 1; }; }
4022         fi
4023         ol_enable_ppolicy="$ol_arg"
4024
4025 else
4026         ol_enable_ppolicy=${ol_enable_overlays:-no}
4027 fi
4028
4029 # end --enable-ppolicy
4030
4031 # OpenLDAP --enable-proxycache
4032
4033         # Check whether --enable-proxycache was given.
4034 if test "${enable_proxycache+set}" = set; then
4035   enableval=$enable_proxycache;
4036         ol_arg=invalid
4037         for ol_val in no yes mod ; do
4038                 if test "$enableval" = "$ol_val" ; then
4039                         ol_arg="$ol_val"
4040                 fi
4041         done
4042         if test "$ol_arg" = "invalid" ; then
4043                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4044 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4045    { (exit 1); exit 1; }; }
4046         fi
4047         ol_enable_proxycache="$ol_arg"
4048
4049 else
4050         ol_enable_proxycache=${ol_enable_overlays:-no}
4051 fi
4052
4053 # end --enable-proxycache
4054
4055 # OpenLDAP --enable-refint
4056
4057         # Check whether --enable-refint was given.
4058 if test "${enable_refint+set}" = set; then
4059   enableval=$enable_refint;
4060         ol_arg=invalid
4061         for ol_val in no yes mod ; do
4062                 if test "$enableval" = "$ol_val" ; then
4063                         ol_arg="$ol_val"
4064                 fi
4065         done
4066         if test "$ol_arg" = "invalid" ; then
4067                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4068 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4069    { (exit 1); exit 1; }; }
4070         fi
4071         ol_enable_refint="$ol_arg"
4072
4073 else
4074         ol_enable_refint=${ol_enable_overlays:-no}
4075 fi
4076
4077 # end --enable-refint
4078
4079 # OpenLDAP --enable-retcode
4080
4081         # Check whether --enable-retcode was given.
4082 if test "${enable_retcode+set}" = set; then
4083   enableval=$enable_retcode;
4084         ol_arg=invalid
4085         for ol_val in no yes mod ; do
4086                 if test "$enableval" = "$ol_val" ; then
4087                         ol_arg="$ol_val"
4088                 fi
4089         done
4090         if test "$ol_arg" = "invalid" ; then
4091                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4092 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4093    { (exit 1); exit 1; }; }
4094         fi
4095         ol_enable_retcode="$ol_arg"
4096
4097 else
4098         ol_enable_retcode=${ol_enable_overlays:-no}
4099 fi
4100
4101 # end --enable-retcode
4102
4103 # OpenLDAP --enable-rwm
4104
4105         # Check whether --enable-rwm was given.
4106 if test "${enable_rwm+set}" = set; then
4107   enableval=$enable_rwm;
4108         ol_arg=invalid
4109         for ol_val in no yes mod ; do
4110                 if test "$enableval" = "$ol_val" ; then
4111                         ol_arg="$ol_val"
4112                 fi
4113         done
4114         if test "$ol_arg" = "invalid" ; then
4115                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4116 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4117    { (exit 1); exit 1; }; }
4118         fi
4119         ol_enable_rwm="$ol_arg"
4120
4121 else
4122         ol_enable_rwm=${ol_enable_overlays:-no}
4123 fi
4124
4125 # end --enable-rwm
4126
4127 # OpenLDAP --enable-seqmod
4128
4129         # Check whether --enable-seqmod was given.
4130 if test "${enable_seqmod+set}" = set; then
4131   enableval=$enable_seqmod;
4132         ol_arg=invalid
4133         for ol_val in no yes mod ; do
4134                 if test "$enableval" = "$ol_val" ; then
4135                         ol_arg="$ol_val"
4136                 fi
4137         done
4138         if test "$ol_arg" = "invalid" ; then
4139                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4140 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4141    { (exit 1); exit 1; }; }
4142         fi
4143         ol_enable_seqmod="$ol_arg"
4144
4145 else
4146         ol_enable_seqmod=${ol_enable_overlays:-no}
4147 fi
4148
4149 # end --enable-seqmod
4150
4151 # OpenLDAP --enable-sssvlv
4152
4153         # Check whether --enable-sssvlv was given.
4154 if test "${enable_sssvlv+set}" = set; then
4155   enableval=$enable_sssvlv;
4156         ol_arg=invalid
4157         for ol_val in no yes mod ; do
4158                 if test "$enableval" = "$ol_val" ; then
4159                         ol_arg="$ol_val"
4160                 fi
4161         done
4162         if test "$ol_arg" = "invalid" ; then
4163                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4164 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4165    { (exit 1); exit 1; }; }
4166         fi
4167         ol_enable_sssvlv="$ol_arg"
4168
4169 else
4170         ol_enable_sssvlv=${ol_enable_overlays:-no}
4171 fi
4172
4173 # end --enable-sssvlv
4174
4175 # OpenLDAP --enable-syncprov
4176
4177         # Check whether --enable-syncprov was given.
4178 if test "${enable_syncprov+set}" = set; then
4179   enableval=$enable_syncprov;
4180         ol_arg=invalid
4181         for ol_val in no yes mod ; do
4182                 if test "$enableval" = "$ol_val" ; then
4183                         ol_arg="$ol_val"
4184                 fi
4185         done
4186         if test "$ol_arg" = "invalid" ; then
4187                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4188 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4189    { (exit 1); exit 1; }; }
4190         fi
4191         ol_enable_syncprov="$ol_arg"
4192
4193 else
4194         ol_enable_syncprov=${ol_enable_overlays:-yes}
4195 fi
4196
4197 # end --enable-syncprov
4198
4199 # OpenLDAP --enable-translucent
4200
4201         # Check whether --enable-translucent was given.
4202 if test "${enable_translucent+set}" = set; then
4203   enableval=$enable_translucent;
4204         ol_arg=invalid
4205         for ol_val in no yes mod ; do
4206                 if test "$enableval" = "$ol_val" ; then
4207                         ol_arg="$ol_val"
4208                 fi
4209         done
4210         if test "$ol_arg" = "invalid" ; then
4211                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4212 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4213    { (exit 1); exit 1; }; }
4214         fi
4215         ol_enable_translucent="$ol_arg"
4216
4217 else
4218         ol_enable_translucent=${ol_enable_overlays:-no}
4219 fi
4220
4221 # end --enable-translucent
4222
4223 # OpenLDAP --enable-unique
4224
4225         # Check whether --enable-unique was given.
4226 if test "${enable_unique+set}" = set; then
4227   enableval=$enable_unique;
4228         ol_arg=invalid
4229         for ol_val in no yes mod ; do
4230                 if test "$enableval" = "$ol_val" ; then
4231                         ol_arg="$ol_val"
4232                 fi
4233         done
4234         if test "$ol_arg" = "invalid" ; then
4235                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4236 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4237    { (exit 1); exit 1; }; }
4238         fi
4239         ol_enable_unique="$ol_arg"
4240
4241 else
4242         ol_enable_unique=${ol_enable_overlays:-no}
4243 fi
4244
4245 # end --enable-unique
4246
4247 # OpenLDAP --enable-valsort
4248
4249         # Check whether --enable-valsort was given.
4250 if test "${enable_valsort+set}" = set; then
4251   enableval=$enable_valsort;
4252         ol_arg=invalid
4253         for ol_val in no yes mod ; do
4254                 if test "$enableval" = "$ol_val" ; then
4255                         ol_arg="$ol_val"
4256                 fi
4257         done
4258         if test "$ol_arg" = "invalid" ; then
4259                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4260 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4261    { (exit 1); exit 1; }; }
4262         fi
4263         ol_enable_valsort="$ol_arg"
4264
4265 else
4266         ol_enable_valsort=${ol_enable_overlays:-no}
4267 fi
4268
4269 # end --enable-valsort
4270
4271
4272 # Check whether --enable-xxliboptions was given.
4273 if test "${enable_xxliboptions+set}" = set; then
4274   enableval=$enable_xxliboptions;
4275 fi
4276
4277 # Check whether --enable-static was given.
4278 if test "${enable_static+set}" = set; then
4279   enableval=$enable_static; p=${PACKAGE-default}
4280     case $enableval in
4281     yes) enable_static=yes ;;
4282     no) enable_static=no ;;
4283     *)
4284      enable_static=no
4285       # Look at the argument we got.  We use all the common list separators.
4286       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4287       for pkg in $enableval; do
4288         IFS="$lt_save_ifs"
4289         if test "X$pkg" = "X$p"; then
4290           enable_static=yes
4291         fi
4292       done
4293       IFS="$lt_save_ifs"
4294       ;;
4295     esac
4296 else
4297   enable_static=yes
4298 fi
4299
4300
4301 # Check whether --enable-shared was given.
4302 if test "${enable_shared+set}" = set; then
4303   enableval=$enable_shared; p=${PACKAGE-default}
4304     case $enableval in
4305     yes) enable_shared=yes ;;
4306     no) enable_shared=no ;;
4307     *)
4308       enable_shared=no
4309       # Look at the argument we got.  We use all the common list separators.
4310       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4311       for pkg in $enableval; do
4312         IFS="$lt_save_ifs"
4313         if test "X$pkg" = "X$p"; then
4314           enable_shared=yes
4315         fi
4316       done
4317       IFS="$lt_save_ifs"
4318       ;;
4319     esac
4320 else
4321   enable_shared=yes
4322 fi
4323
4324
4325
4326
4327 # validate options
4328 if test $ol_enable_slapd = no ; then
4329                 if test $ol_enable_slapi = yes ; then
4330                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4331 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4332         fi
4333         case "$ol_enable_backends" in yes | mod)
4334                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4335 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4336         esac
4337         for i in $Backends; do
4338                 eval "ol_tmp=\$ol_enable_$i"
4339                 if test $ol_tmp != no ; then
4340                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4341 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4342                         eval "ol_enable_$i=no"
4343                 fi
4344         done
4345         if test $ol_enable_modules = yes ; then
4346                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4347 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4348         fi
4349         if test $ol_enable_wrappers = yes ; then
4350                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4351 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4352         fi
4353         if test $ol_enable_rlookups = yes ; then
4354                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4355 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4356         fi
4357         if test $ol_enable_dynacl = yes ; then
4358                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4359 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4360         fi
4361         if test $ol_enable_aci != no ; then
4362                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4363 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4364         fi
4365         if test $ol_enable_rewrite = yes ; then
4366                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4367 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4368         fi
4369                 case "$ol_enable_overlays" in yes | mod)
4370                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4371 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4372         esac
4373         for i in $Overlays; do
4374                 eval "ol_tmp=\$ol_enable_$i"
4375                 if test $ol_tmp != no ; then
4376                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4377 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4378                         eval "ol_enable_$i=no"
4379                 fi
4380         done
4381
4382         # force settings to no
4383         ol_enable_slapi=no
4384
4385         ol_enable_backends=
4386         ol_enable_overlays=
4387         ol_enable_modules=no
4388         ol_enable_rlookups=no
4389         ol_enable_dynacl=no
4390         ol_enable_aci=no
4391         ol_enable_wrappers=no
4392
4393         ol_enable_rewrite=no
4394
4395 elif test $ol_enable_modules != yes &&
4396         test $ol_enable_bdb = no &&
4397         test $ol_enable_dnssrv = no &&
4398         test $ol_enable_hdb = no &&
4399         test $ol_enable_ldap = no &&
4400         test $ol_enable_meta = no &&
4401         test $ol_enable_monitor = no &&
4402         test $ol_enable_ndb = no &&
4403         test $ol_enable_null = no &&
4404         test $ol_enable_passwd = no &&
4405         test $ol_enable_perl = no &&
4406         test $ol_enable_relay = no &&
4407         test $ol_enable_shell = no &&
4408         test $ol_enable_sock = no &&
4409         test $ol_enable_sql = no ; then
4410
4411         if test $ol_enable_slapd = yes ; then
4412                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4413 echo "$as_me: error: slapd requires a backend" >&2;}
4414    { (exit 1); exit 1; }; }
4415         else
4416                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4417 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4418                 ol_enable_slapd=no
4419         fi
4420 fi
4421
4422 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4423         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4424 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4425    { (exit 1); exit 1; }; }
4426 fi
4427
4428 if test $ol_enable_lmpasswd = yes ; then
4429         if test $ol_with_tls = no ; then
4430                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4431 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4432    { (exit 1); exit 1; }; }
4433         fi
4434 fi
4435
4436 if test $ol_enable_spasswd = yes ; then
4437         if test $ol_with_cyrus_sasl = no ; then
4438                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4439 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4440    { (exit 1); exit 1; }; }
4441         fi
4442         ol_with_cyrus_sasl=yes
4443 fi
4444
4445 { echo "$as_me:$LINENO: result: done" >&5
4446 echo "${ECHO_T}done" >&6; }
4447
4448 LDAP_LIBS=
4449 BDB_LIBS=
4450 SLAPD_NDB_LIBS=
4451 SLAPD_NDB_INCS=
4452 LTHREAD_LIBS=
4453 LUTIL_LIBS=
4454
4455 SLAPD_LIBS=
4456
4457 BUILD_SLAPD=no
4458
4459 BUILD_THREAD=no
4460
4461 BUILD_SLAPI=no
4462 SLAPD_SLAPI_DEPEND=
4463
4464 BUILD_BDB=no
4465 BUILD_DNSSRV=no
4466 BUILD_HDB=no
4467 BUILD_LDAP=no
4468 BUILD_META=no
4469 BUILD_MONITOR=no
4470 BUILD_NDB=no
4471 BUILD_NULL=no
4472 BUILD_PASSWD=no
4473 BUILD_PERL=no
4474 BUILD_RELAY=no
4475 BUILD_SHELL=no
4476 BUILD_SOCK=no
4477 BUILD_SQL=no
4478
4479 BUILD_ACCESSLOG=no
4480 BUILD_AUDITLOG=no
4481 BUILD_CONSTRAINT=no
4482 BUILD_DDS=no
4483 BUILD_DENYOP=no
4484 BUILD_DYNGROUP=no
4485 BUILD_DYNLIST=no
4486 BUILD_LASTMOD=no
4487 BUILD_MEMBEROF=no
4488 BUILD_PPOLICY=no
4489 BUILD_PROXYCACHE=no
4490 BUILD_REFINT=no
4491 BUILD_RETCODE=no
4492 BUILD_RWM=no
4493 BUILD_SEQMOD=no
4494 BUILD_SSSVLV=no
4495 BUILD_SYNCPROV=no
4496 BUILD_TRANSLUCENT=no
4497 BUILD_UNIQUE=no
4498 BUILD_VALSORT=no
4499
4500 SLAPD_STATIC_OVERLAYS=
4501 SLAPD_DYNAMIC_OVERLAYS=
4502
4503 SLAPD_MODULES_LDFLAGS=
4504 SLAPD_MODULES_CPPFLAGS=
4505
4506 SLAPD_STATIC_BACKENDS=back-ldif
4507 SLAPD_DYNAMIC_BACKENDS=
4508
4509 SLAPD_PERL_LDFLAGS=
4510 MOD_PERL_LDFLAGS=
4511 PERL_CPPFLAGS=
4512
4513 SLAPD_SQL_LDFLAGS=
4514 SLAPD_SQL_LIBS=
4515 SLAPD_SQL_INCLUDES=
4516
4517 KRB4_LIBS=
4518 KRB5_LIBS=
4519 SASL_LIBS=
4520 TLS_LIBS=
4521 MODULES_LIBS=
4522 SLAPI_LIBS=
4523 LIBSLAPI=
4524 LIBSLAPITOOLS=
4525 AUTH_LIBS=
4526 ICU_LIBS=
4527
4528 SLAPD_SLP_LIBS=
4529 SLAPD_GMP_LIBS=
4530
4531
4532
4533 cat >>confdefs.h <<\_ACEOF
4534 #define HAVE_MKVERSION 1
4535 _ACEOF
4536
4537
4538
4539
4540 ol_aix_threads=no
4541 case "$target" in
4542 *-*-aix*)       if test -z "$CC" ; then
4543                 case "$ol_with_threads" in
4544                 auto | yes |  posix) ol_aix_threads=yes ;;
4545                 esac
4546         fi
4547 ;;
4548 esac
4549
4550 if test $ol_aix_threads = yes ; then
4551         if test -z "${CC}" ; then
4552                 for ac_prog in cc_r xlc_r cc
4553 do
4554   # Extract the first word of "$ac_prog", so it can be a program name with args.
4555 set dummy $ac_prog; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_CC+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$CC"; then
4562   ac_cv_prog_CC="$CC" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_prog_CC="$ac_prog"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 CC=$ac_cv_prog_CC
4582 if test -n "$CC"; then
4583   { echo "$as_me:$LINENO: result: $CC" >&5
4584 echo "${ECHO_T}$CC" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591   test -n "$CC" && break
4592 done
4593
4594
4595                 if test "$CC" = cc ; then
4596                                                 if test $ol_with_threads != auto ; then
4597                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4598 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4599    { (exit 1); exit 1; }; }
4600                         else
4601                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4602 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4603                         fi
4604                         ol_with_threads=no
4605                 fi
4606         fi
4607
4608         case ${CC} in cc_r | xlc_r)
4609                 ol_with_threads=posix
4610                 ol_cv_pthread_create=yes
4611                 ;;
4612         esac
4613 fi
4614
4615 if test -z "${CC}"; then
4616         for ac_prog in cc gcc
4617 do
4618   # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4621 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4622 if test "${ac_cv_prog_CC+set}" = set; then
4623   echo $ECHO_N "(cached) $ECHO_C" >&6
4624 else
4625   if test -n "$CC"; then
4626   ac_cv_prog_CC="$CC" # Let the user override the test.
4627 else
4628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4629 for as_dir in $PATH
4630 do
4631   IFS=$as_save_IFS
4632   test -z "$as_dir" && as_dir=.
4633   for ac_exec_ext in '' $ac_executable_extensions; do
4634   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4635     ac_cv_prog_CC="$ac_prog"
4636     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4637     break 2
4638   fi
4639 done
4640 done
4641 IFS=$as_save_IFS
4642
4643 fi
4644 fi
4645 CC=$ac_cv_prog_CC
4646 if test -n "$CC"; then
4647   { echo "$as_me:$LINENO: result: $CC" >&5
4648 echo "${ECHO_T}$CC" >&6; }
4649 else
4650   { echo "$as_me:$LINENO: result: no" >&5
4651 echo "${ECHO_T}no" >&6; }
4652 fi
4653
4654
4655   test -n "$CC" && break
4656 done
4657 test -n "$CC" || CC="missing"
4658
4659
4660         if test "${CC}" = "missing" ; then
4661                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4662 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4663    { (exit 1); exit 1; }; }
4664         fi
4665 fi
4666
4667 if test -z "${AR}"; then
4668         for ac_prog in ar gar
4669 do
4670   # Extract the first word of "$ac_prog", so it can be a program name with args.
4671 set dummy $ac_prog; ac_word=$2
4672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4674 if test "${ac_cv_prog_AR+set}" = set; then
4675   echo $ECHO_N "(cached) $ECHO_C" >&6
4676 else
4677   if test -n "$AR"; then
4678   ac_cv_prog_AR="$AR" # Let the user override the test.
4679 else
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH
4682 do
4683   IFS=$as_save_IFS
4684   test -z "$as_dir" && as_dir=.
4685   for ac_exec_ext in '' $ac_executable_extensions; do
4686   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4687     ac_cv_prog_AR="$ac_prog"
4688     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4689     break 2
4690   fi
4691 done
4692 done
4693 IFS=$as_save_IFS
4694
4695 fi
4696 fi
4697 AR=$ac_cv_prog_AR
4698 if test -n "$AR"; then
4699   { echo "$as_me:$LINENO: result: $AR" >&5
4700 echo "${ECHO_T}$AR" >&6; }
4701 else
4702   { echo "$as_me:$LINENO: result: no" >&5
4703 echo "${ECHO_T}no" >&6; }
4704 fi
4705
4706
4707   test -n "$AR" && break
4708 done
4709 test -n "$AR" || AR="missing"
4710
4711
4712         if test "${AR}" = "missing" ; then
4713                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4714 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4715    { (exit 1); exit 1; }; }
4716         fi
4717 fi
4718
4719
4720
4721
4722
4723 # Check whether --enable-fast-install was given.
4724 if test "${enable_fast_install+set}" = set; then
4725   enableval=$enable_fast_install; p=${PACKAGE-default}
4726     case $enableval in
4727     yes) enable_fast_install=yes ;;
4728     no) enable_fast_install=no ;;
4729     *)
4730       enable_fast_install=no
4731       # Look at the argument we got.  We use all the common list separators.
4732       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4733       for pkg in $enableval; do
4734         IFS="$lt_save_ifs"
4735         if test "X$pkg" = "X$p"; then
4736           enable_fast_install=yes
4737         fi
4738       done
4739       IFS="$lt_save_ifs"
4740       ;;
4741     esac
4742 else
4743   enable_fast_install=yes
4744 fi
4745
4746
4747 DEPDIR="${am__leading_dot}deps"
4748
4749 ac_config_commands="$ac_config_commands depfiles"
4750
4751
4752 am_make=${MAKE-make}
4753 cat > confinc << 'END'
4754 am__doit:
4755         @echo done
4756 .PHONY: am__doit
4757 END
4758 # If we don't find an include directive, just comment out the code.
4759 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4760 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4761 am__include="#"
4762 am__quote=
4763 _am_result=none
4764 # First try GNU make style include.
4765 echo "include confinc" > confmf
4766 # We grep out `Entering directory' and `Leaving directory'
4767 # messages which can occur if `w' ends up in MAKEFLAGS.
4768 # In particular we don't look at `^make:' because GNU make might
4769 # be invoked under some other name (usually "gmake"), in which
4770 # case it prints its new name instead of `make'.
4771 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4772    am__include=include
4773    am__quote=
4774    _am_result=GNU
4775 fi
4776 # Now try BSD make style include.
4777 if test "$am__include" = "#"; then
4778    echo '.include "confinc"' > confmf
4779    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4780       am__include=.include
4781       am__quote="\""
4782       _am_result=BSD
4783    fi
4784 fi
4785
4786
4787 { echo "$as_me:$LINENO: result: $_am_result" >&5
4788 echo "${ECHO_T}$_am_result" >&6; }
4789 rm -f confinc confmf
4790
4791 # Check whether --enable-dependency-tracking was given.
4792 if test "${enable_dependency_tracking+set}" = set; then
4793   enableval=$enable_dependency_tracking;
4794 fi
4795
4796 if test "x$enable_dependency_tracking" != xno; then
4797   am_depcomp="$ac_aux_dir/depcomp"
4798   AMDEPBACKSLASH='\'
4799 fi
4800
4801
4802 if test "x$enable_dependency_tracking" != xno; then
4803   AMDEP_TRUE=
4804   AMDEP_FALSE='#'
4805 else
4806   AMDEP_TRUE='#'
4807   AMDEP_FALSE=
4808 fi
4809
4810
4811
4812 ac_ext=c
4813 ac_cpp='$CPP $CPPFLAGS'
4814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4817 if test -n "$ac_tool_prefix"; then
4818   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4822 if test "${ac_cv_prog_CC+set}" = set; then
4823   echo $ECHO_N "(cached) $ECHO_C" >&6
4824 else
4825   if test -n "$CC"; then
4826   ac_cv_prog_CC="$CC" # Let the user override the test.
4827 else
4828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4829 for as_dir in $PATH
4830 do
4831   IFS=$as_save_IFS
4832   test -z "$as_dir" && as_dir=.
4833   for ac_exec_ext in '' $ac_executable_extensions; do
4834   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4835     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4836     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4837     break 2
4838   fi
4839 done
4840 done
4841 IFS=$as_save_IFS
4842
4843 fi
4844 fi
4845 CC=$ac_cv_prog_CC
4846 if test -n "$CC"; then
4847   { echo "$as_me:$LINENO: result: $CC" >&5
4848 echo "${ECHO_T}$CC" >&6; }
4849 else
4850   { echo "$as_me:$LINENO: result: no" >&5
4851 echo "${ECHO_T}no" >&6; }
4852 fi
4853
4854
4855 fi
4856 if test -z "$ac_cv_prog_CC"; then
4857   ac_ct_CC=$CC
4858   # Extract the first word of "gcc", so it can be a program name with args.
4859 set dummy gcc; ac_word=$2
4860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4862 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4863   echo $ECHO_N "(cached) $ECHO_C" >&6
4864 else
4865   if test -n "$ac_ct_CC"; then
4866   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4867 else
4868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4869 for as_dir in $PATH
4870 do
4871   IFS=$as_save_IFS
4872   test -z "$as_dir" && as_dir=.
4873   for ac_exec_ext in '' $ac_executable_extensions; do
4874   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4875     ac_cv_prog_ac_ct_CC="gcc"
4876     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4877     break 2
4878   fi
4879 done
4880 done
4881 IFS=$as_save_IFS
4882
4883 fi
4884 fi
4885 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4886 if test -n "$ac_ct_CC"; then
4887   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4888 echo "${ECHO_T}$ac_ct_CC" >&6; }
4889 else
4890   { echo "$as_me:$LINENO: result: no" >&5
4891 echo "${ECHO_T}no" >&6; }
4892 fi
4893
4894   if test "x$ac_ct_CC" = x; then
4895     CC=""
4896   else
4897     case $cross_compiling:$ac_tool_warned in
4898 yes:)
4899 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4900 whose name does not start with the host triplet.  If you think this
4901 configuration is useful to you, please write to autoconf@gnu.org." >&5
4902 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4903 whose name does not start with the host triplet.  If you think this
4904 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4905 ac_tool_warned=yes ;;
4906 esac
4907     CC=$ac_ct_CC
4908   fi
4909 else
4910   CC="$ac_cv_prog_CC"
4911 fi
4912
4913 if test -z "$CC"; then
4914           if test -n "$ac_tool_prefix"; then
4915     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4916 set dummy ${ac_tool_prefix}cc; ac_word=$2
4917 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4919 if test "${ac_cv_prog_CC+set}" = set; then
4920   echo $ECHO_N "(cached) $ECHO_C" >&6
4921 else
4922   if test -n "$CC"; then
4923   ac_cv_prog_CC="$CC" # Let the user override the test.
4924 else
4925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4926 for as_dir in $PATH
4927 do
4928   IFS=$as_save_IFS
4929   test -z "$as_dir" && as_dir=.
4930   for ac_exec_ext in '' $ac_executable_extensions; do
4931   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4932     ac_cv_prog_CC="${ac_tool_prefix}cc"
4933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4934     break 2
4935   fi
4936 done
4937 done
4938 IFS=$as_save_IFS
4939
4940 fi
4941 fi
4942 CC=$ac_cv_prog_CC
4943 if test -n "$CC"; then
4944   { echo "$as_me:$LINENO: result: $CC" >&5
4945 echo "${ECHO_T}$CC" >&6; }
4946 else
4947   { echo "$as_me:$LINENO: result: no" >&5
4948 echo "${ECHO_T}no" >&6; }
4949 fi
4950
4951
4952   fi
4953 fi
4954 if test -z "$CC"; then
4955   # Extract the first word of "cc", so it can be a program name with args.
4956 set dummy cc; ac_word=$2
4957 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4958 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4959 if test "${ac_cv_prog_CC+set}" = set; then
4960   echo $ECHO_N "(cached) $ECHO_C" >&6
4961 else
4962   if test -n "$CC"; then
4963   ac_cv_prog_CC="$CC" # Let the user override the test.
4964 else
4965   ac_prog_rejected=no
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4967 for as_dir in $PATH
4968 do
4969   IFS=$as_save_IFS
4970   test -z "$as_dir" && as_dir=.
4971   for ac_exec_ext in '' $ac_executable_extensions; do
4972   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4973     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4974        ac_prog_rejected=yes
4975        continue
4976      fi
4977     ac_cv_prog_CC="cc"
4978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979     break 2
4980   fi
4981 done
4982 done
4983 IFS=$as_save_IFS
4984
4985 if test $ac_prog_rejected = yes; then
4986   # We found a bogon in the path, so make sure we never use it.
4987   set dummy $ac_cv_prog_CC
4988   shift
4989   if test $# != 0; then
4990     # We chose a different compiler from the bogus one.
4991     # However, it has the same basename, so the bogon will be chosen
4992     # first if we set CC to just the basename; use the full file name.
4993     shift
4994     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4995   fi
4996 fi
4997 fi
4998 fi
4999 CC=$ac_cv_prog_CC
5000 if test -n "$CC"; then
5001   { echo "$as_me:$LINENO: result: $CC" >&5
5002 echo "${ECHO_T}$CC" >&6; }
5003 else
5004   { echo "$as_me:$LINENO: result: no" >&5
5005 echo "${ECHO_T}no" >&6; }
5006 fi
5007
5008
5009 fi
5010 if test -z "$CC"; then
5011   if test -n "$ac_tool_prefix"; then
5012   for ac_prog in cl.exe
5013   do
5014     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5015 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5018 if test "${ac_cv_prog_CC+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   if test -n "$CC"; then
5022   ac_cv_prog_CC="$CC" # Let the user override the test.
5023 else
5024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5025 for as_dir in $PATH
5026 do
5027   IFS=$as_save_IFS
5028   test -z "$as_dir" && as_dir=.
5029   for ac_exec_ext in '' $ac_executable_extensions; do
5030   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5031     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5032     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5033     break 2
5034   fi
5035 done
5036 done
5037 IFS=$as_save_IFS
5038
5039 fi
5040 fi
5041 CC=$ac_cv_prog_CC
5042 if test -n "$CC"; then
5043   { echo "$as_me:$LINENO: result: $CC" >&5
5044 echo "${ECHO_T}$CC" >&6; }
5045 else
5046   { echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6; }
5048 fi
5049
5050
5051     test -n "$CC" && break
5052   done
5053 fi
5054 if test -z "$CC"; then
5055   ac_ct_CC=$CC
5056   for ac_prog in cl.exe
5057 do
5058   # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5063   echo $ECHO_N "(cached) $ECHO_C" >&6
5064 else
5065   if test -n "$ac_ct_CC"; then
5066   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5070 do
5071   IFS=$as_save_IFS
5072   test -z "$as_dir" && as_dir=.
5073   for ac_exec_ext in '' $ac_executable_extensions; do
5074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5075     ac_cv_prog_ac_ct_CC="$ac_prog"
5076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5077     break 2
5078   fi
5079 done
5080 done
5081 IFS=$as_save_IFS
5082
5083 fi
5084 fi
5085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5086 if test -n "$ac_ct_CC"; then
5087   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5088 echo "${ECHO_T}$ac_ct_CC" >&6; }
5089 else
5090   { echo "$as_me:$LINENO: result: no" >&5
5091 echo "${ECHO_T}no" >&6; }
5092 fi
5093
5094
5095   test -n "$ac_ct_CC" && break
5096 done
5097
5098   if test "x$ac_ct_CC" = x; then
5099     CC=""
5100   else
5101     case $cross_compiling:$ac_tool_warned in
5102 yes:)
5103 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5104 whose name does not start with the host triplet.  If you think this
5105 configuration is useful to you, please write to autoconf@gnu.org." >&5
5106 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5107 whose name does not start with the host triplet.  If you think this
5108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5109 ac_tool_warned=yes ;;
5110 esac
5111     CC=$ac_ct_CC
5112   fi
5113 fi
5114
5115 fi
5116
5117
5118 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&5
5120 echo "$as_me: error: no acceptable C compiler found in \$PATH
5121 See \`config.log' for more details." >&2;}
5122    { (exit 1); exit 1; }; }
5123
5124 # Provide some information about the compiler.
5125 echo "$as_me:$LINENO: checking for C compiler version" >&5
5126 ac_compiler=`set X $ac_compile; echo $2`
5127 { (ac_try="$ac_compiler --version >&5"
5128 case "(($ac_try" in
5129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5130   *) ac_try_echo=$ac_try;;
5131 esac
5132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5133   (eval "$ac_compiler --version >&5") 2>&5
5134   ac_status=$?
5135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136   (exit $ac_status); }
5137 { (ac_try="$ac_compiler -v >&5"
5138 case "(($ac_try" in
5139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5140   *) ac_try_echo=$ac_try;;
5141 esac
5142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5143   (eval "$ac_compiler -v >&5") 2>&5
5144   ac_status=$?
5145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146   (exit $ac_status); }
5147 { (ac_try="$ac_compiler -V >&5"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compiler -V >&5") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }
5157
5158 cat >conftest.$ac_ext <<_ACEOF
5159 /* confdefs.h.  */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h.  */
5164
5165 int
5166 main ()
5167 {
5168
5169   ;
5170   return 0;
5171 }
5172 _ACEOF
5173 ac_clean_files_save=$ac_clean_files
5174 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5175 # Try to create an executable without -o first, disregard a.out.
5176 # It will help us diagnose broken compilers, and finding out an intuition
5177 # of exeext.
5178 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5179 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5180 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5181 #
5182 # List of possible output files, starting from the most likely.
5183 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5184 # only as a last resort.  b.out is created by i960 compilers.
5185 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5186 #
5187 # The IRIX 6 linker writes into existing files which may not be
5188 # executable, retaining their permissions.  Remove them first so a
5189 # subsequent execution test works.
5190 ac_rmfiles=
5191 for ac_file in $ac_files
5192 do
5193   case $ac_file in
5194     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5195     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5196   esac
5197 done
5198 rm -f $ac_rmfiles
5199
5200 if { (ac_try="$ac_link_default"
5201 case "(($ac_try" in
5202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5203   *) ac_try_echo=$ac_try;;
5204 esac
5205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5206   (eval "$ac_link_default") 2>&5
5207   ac_status=$?
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); }; then
5210   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5211 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5212 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5213 # so that the user can short-circuit this test for compilers unknown to
5214 # Autoconf.
5215 for ac_file in $ac_files ''
5216 do
5217   test -f "$ac_file" || continue
5218   case $ac_file in
5219     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5220         ;;
5221     [ab].out )
5222         # We found the default executable, but exeext='' is most
5223         # certainly right.
5224         break;;
5225     *.* )
5226         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5227         then :; else
5228            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5229         fi
5230         # We set ac_cv_exeext here because the later test for it is not
5231         # safe: cross compilers may not add the suffix if given an `-o'
5232         # argument, so we may need to know it at that point already.
5233         # Even if this section looks crufty: it has the advantage of
5234         # actually working.
5235         break;;
5236     * )
5237         break;;
5238   esac
5239 done
5240 test "$ac_cv_exeext" = no && ac_cv_exeext=
5241
5242 else
5243   ac_file=''
5244 fi
5245
5246 { echo "$as_me:$LINENO: result: $ac_file" >&5
5247 echo "${ECHO_T}$ac_file" >&6; }
5248 if test -z "$ac_file"; then
5249   echo "$as_me: failed program was:" >&5
5250 sed 's/^/| /' conftest.$ac_ext >&5
5251
5252 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&5
5254 echo "$as_me: error: C compiler cannot create executables
5255 See \`config.log' for more details." >&2;}
5256    { (exit 77); exit 77; }; }
5257 fi
5258
5259 ac_exeext=$ac_cv_exeext
5260
5261 # Check that the compiler produces executables we can run.  If not, either
5262 # the compiler is broken, or we cross compile.
5263 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5264 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5265 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5266 # If not cross compiling, check that we can run a simple program.
5267 if test "$cross_compiling" != yes; then
5268   if { ac_try='./$ac_file'
5269   { (case "(($ac_try" in
5270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5271   *) ac_try_echo=$ac_try;;
5272 esac
5273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5274   (eval "$ac_try") 2>&5
5275   ac_status=$?
5276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277   (exit $ac_status); }; }; then
5278     cross_compiling=no
5279   else
5280     if test "$cross_compiling" = maybe; then
5281         cross_compiling=yes
5282     else
5283         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5284 If you meant to cross compile, use \`--host'.
5285 See \`config.log' for more details." >&5
5286 echo "$as_me: error: cannot run C compiled programs.
5287 If you meant to cross compile, use \`--host'.
5288 See \`config.log' for more details." >&2;}
5289    { (exit 1); exit 1; }; }
5290     fi
5291   fi
5292 fi
5293 { echo "$as_me:$LINENO: result: yes" >&5
5294 echo "${ECHO_T}yes" >&6; }
5295
5296 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5297 ac_clean_files=$ac_clean_files_save
5298 # Check that the compiler produces executables we can run.  If not, either
5299 # the compiler is broken, or we cross compile.
5300 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5301 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5302 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5303 echo "${ECHO_T}$cross_compiling" >&6; }
5304
5305 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5306 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5307 if { (ac_try="$ac_link"
5308 case "(($ac_try" in
5309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5310   *) ac_try_echo=$ac_try;;
5311 esac
5312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5313   (eval "$ac_link") 2>&5
5314   ac_status=$?
5315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316   (exit $ac_status); }; then
5317   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5318 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5319 # work properly (i.e., refer to `conftest.exe'), while it won't with
5320 # `rm'.
5321 for ac_file in conftest.exe conftest conftest.*; do
5322   test -f "$ac_file" || continue
5323   case $ac_file in
5324     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5325     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5326           break;;
5327     * ) break;;
5328   esac
5329 done
5330 else
5331   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&5
5333 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5334 See \`config.log' for more details." >&2;}
5335    { (exit 1); exit 1; }; }
5336 fi
5337
5338 rm -f conftest$ac_cv_exeext
5339 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5340 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5341
5342 rm -f conftest.$ac_ext
5343 EXEEXT=$ac_cv_exeext
5344 ac_exeext=$EXEEXT
5345 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5346 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5347 if test "${ac_cv_objext+set}" = set; then
5348   echo $ECHO_N "(cached) $ECHO_C" >&6
5349 else
5350   cat >conftest.$ac_ext <<_ACEOF
5351 /* confdefs.h.  */
5352 _ACEOF
5353 cat confdefs.h >>conftest.$ac_ext
5354 cat >>conftest.$ac_ext <<_ACEOF
5355 /* end confdefs.h.  */
5356
5357 int
5358 main ()
5359 {
5360
5361   ;
5362   return 0;
5363 }
5364 _ACEOF
5365 rm -f conftest.o conftest.obj
5366 if { (ac_try="$ac_compile"
5367 case "(($ac_try" in
5368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5369   *) ac_try_echo=$ac_try;;
5370 esac
5371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5372   (eval "$ac_compile") 2>&5
5373   ac_status=$?
5374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5375   (exit $ac_status); }; then
5376   for ac_file in conftest.o conftest.obj conftest.*; do
5377   test -f "$ac_file" || continue;
5378   case $ac_file in
5379     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5380     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5381        break;;
5382   esac
5383 done
5384 else
5385   echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5387
5388 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&5
5390 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5391 See \`config.log' for more details." >&2;}
5392    { (exit 1); exit 1; }; }
5393 fi
5394
5395 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5396 fi
5397 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5398 echo "${ECHO_T}$ac_cv_objext" >&6; }
5399 OBJEXT=$ac_cv_objext
5400 ac_objext=$OBJEXT
5401 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5402 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5403 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5404   echo $ECHO_N "(cached) $ECHO_C" >&6
5405 else
5406   cat >conftest.$ac_ext <<_ACEOF
5407 /* confdefs.h.  */
5408 _ACEOF
5409 cat confdefs.h >>conftest.$ac_ext
5410 cat >>conftest.$ac_ext <<_ACEOF
5411 /* end confdefs.h.  */
5412
5413 int
5414 main ()
5415 {
5416 #ifndef __GNUC__
5417        choke me
5418 #endif
5419
5420   ;
5421   return 0;
5422 }
5423 _ACEOF
5424 rm -f conftest.$ac_objext
5425 if { (ac_try="$ac_compile"
5426 case "(($ac_try" in
5427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5428   *) ac_try_echo=$ac_try;;
5429 esac
5430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5431   (eval "$ac_compile") 2>conftest.er1
5432   ac_status=$?
5433   grep -v '^ *+' conftest.er1 >conftest.err
5434   rm -f conftest.er1
5435   cat conftest.err >&5
5436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5437   (exit $ac_status); } && {
5438          test -z "$ac_c_werror_flag" ||
5439          test ! -s conftest.err
5440        } && test -s conftest.$ac_objext; then
5441   ac_compiler_gnu=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446         ac_compiler_gnu=no
5447 fi
5448
5449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5450 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5451
5452 fi
5453 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5454 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5455 GCC=`test $ac_compiler_gnu = yes && echo yes`
5456 ac_test_CFLAGS=${CFLAGS+set}
5457 ac_save_CFLAGS=$CFLAGS
5458 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5459 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5460 if test "${ac_cv_prog_cc_g+set}" = set; then
5461   echo $ECHO_N "(cached) $ECHO_C" >&6
5462 else
5463   ac_save_c_werror_flag=$ac_c_werror_flag
5464    ac_c_werror_flag=yes
5465    ac_cv_prog_cc_g=no
5466    CFLAGS="-g"
5467    cat >conftest.$ac_ext <<_ACEOF
5468 /* confdefs.h.  */
5469 _ACEOF
5470 cat confdefs.h >>conftest.$ac_ext
5471 cat >>conftest.$ac_ext <<_ACEOF
5472 /* end confdefs.h.  */
5473
5474 int
5475 main ()
5476 {
5477
5478   ;
5479   return 0;
5480 }
5481 _ACEOF
5482 rm -f conftest.$ac_objext
5483 if { (ac_try="$ac_compile"
5484 case "(($ac_try" in
5485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486   *) ac_try_echo=$ac_try;;
5487 esac
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489   (eval "$ac_compile") 2>conftest.er1
5490   ac_status=$?
5491   grep -v '^ *+' conftest.er1 >conftest.err
5492   rm -f conftest.er1
5493   cat conftest.err >&5
5494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495   (exit $ac_status); } && {
5496          test -z "$ac_c_werror_flag" ||
5497          test ! -s conftest.err
5498        } && test -s conftest.$ac_objext; then
5499   ac_cv_prog_cc_g=yes
5500 else
5501   echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5503
5504         CFLAGS=""
5505       cat >conftest.$ac_ext <<_ACEOF
5506 /* confdefs.h.  */
5507 _ACEOF
5508 cat confdefs.h >>conftest.$ac_ext
5509 cat >>conftest.$ac_ext <<_ACEOF
5510 /* end confdefs.h.  */
5511
5512 int
5513 main ()
5514 {
5515
5516   ;
5517   return 0;
5518 }
5519 _ACEOF
5520 rm -f conftest.$ac_objext
5521 if { (ac_try="$ac_compile"
5522 case "(($ac_try" in
5523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5524   *) ac_try_echo=$ac_try;;
5525 esac
5526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5527   (eval "$ac_compile") 2>conftest.er1
5528   ac_status=$?
5529   grep -v '^ *+' conftest.er1 >conftest.err
5530   rm -f conftest.er1
5531   cat conftest.err >&5
5532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533   (exit $ac_status); } && {
5534          test -z "$ac_c_werror_flag" ||
5535          test ! -s conftest.err
5536        } && test -s conftest.$ac_objext; then
5537   :
5538 else
5539   echo "$as_me: failed program was:" >&5
5540 sed 's/^/| /' conftest.$ac_ext >&5
5541
5542         ac_c_werror_flag=$ac_save_c_werror_flag
5543          CFLAGS="-g"
5544          cat >conftest.$ac_ext <<_ACEOF
5545 /* confdefs.h.  */
5546 _ACEOF
5547 cat confdefs.h >>conftest.$ac_ext
5548 cat >>conftest.$ac_ext <<_ACEOF
5549 /* end confdefs.h.  */
5550
5551 int
5552 main ()
5553 {
5554
5555   ;
5556   return 0;
5557 }
5558 _ACEOF
5559 rm -f conftest.$ac_objext
5560 if { (ac_try="$ac_compile"
5561 case "(($ac_try" in
5562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5563   *) ac_try_echo=$ac_try;;
5564 esac
5565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5566   (eval "$ac_compile") 2>conftest.er1
5567   ac_status=$?
5568   grep -v '^ *+' conftest.er1 >conftest.err
5569   rm -f conftest.er1
5570   cat conftest.err >&5
5571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5572   (exit $ac_status); } && {
5573          test -z "$ac_c_werror_flag" ||
5574          test ! -s conftest.err
5575        } && test -s conftest.$ac_objext; then
5576   ac_cv_prog_cc_g=yes
5577 else
5578   echo "$as_me: failed program was:" >&5
5579 sed 's/^/| /' conftest.$ac_ext >&5
5580
5581
5582 fi
5583
5584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5585 fi
5586
5587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591    ac_c_werror_flag=$ac_save_c_werror_flag
5592 fi
5593 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5594 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5595 if test "$ac_test_CFLAGS" = set; then
5596   CFLAGS=$ac_save_CFLAGS
5597 elif test $ac_cv_prog_cc_g = yes; then
5598   if test "$GCC" = yes; then
5599     CFLAGS="-g -O2"
5600   else
5601     CFLAGS="-g"
5602   fi
5603 else
5604   if test "$GCC" = yes; then
5605     CFLAGS="-O2"
5606   else
5607     CFLAGS=
5608   fi
5609 fi
5610 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5611 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5612 if test "${ac_cv_prog_cc_c89+set}" = set; then
5613   echo $ECHO_N "(cached) $ECHO_C" >&6
5614 else
5615   ac_cv_prog_cc_c89=no
5616 ac_save_CC=$CC
5617 cat >conftest.$ac_ext <<_ACEOF
5618 /* confdefs.h.  */
5619 _ACEOF
5620 cat confdefs.h >>conftest.$ac_ext
5621 cat >>conftest.$ac_ext <<_ACEOF
5622 /* end confdefs.h.  */
5623 #include <stdarg.h>
5624 #include <stdio.h>
5625 #include <sys/types.h>
5626 #include <sys/stat.h>
5627 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5628 struct buf { int x; };
5629 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5630 static char *e (p, i)
5631      char **p;
5632      int i;
5633 {
5634   return p[i];
5635 }
5636 static char *f (char * (*g) (char **, int), char **p, ...)
5637 {
5638   char *s;
5639   va_list v;
5640   va_start (v,p);
5641   s = g (p, va_arg (v,int));
5642   va_end (v);
5643   return s;
5644 }
5645
5646 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5647    function prototypes and stuff, but not '\xHH' hex character constants.
5648    These don't provoke an error unfortunately, instead are silently treated
5649    as 'x'.  The following induces an error, until -std is added to get
5650    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5651    array size at least.  It's necessary to write '\x00'==0 to get something
5652    that's true only with -std.  */
5653 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5654
5655 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5656    inside strings and character constants.  */
5657 #define FOO(x) 'x'
5658 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5659
5660 int test (int i, double x);
5661 struct s1 {int (*f) (int a);};
5662 struct s2 {int (*f) (double a);};
5663 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5664 int argc;
5665 char **argv;
5666 int
5667 main ()
5668 {
5669 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5670   ;
5671   return 0;
5672 }
5673 _ACEOF
5674 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5675         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5676 do
5677   CC="$ac_save_CC $ac_arg"
5678   rm -f conftest.$ac_objext
5679 if { (ac_try="$ac_compile"
5680 case "(($ac_try" in
5681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5682   *) ac_try_echo=$ac_try;;
5683 esac
5684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5685   (eval "$ac_compile") 2>conftest.er1
5686   ac_status=$?
5687   grep -v '^ *+' conftest.er1 >conftest.err
5688   rm -f conftest.er1
5689   cat conftest.err >&5
5690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691   (exit $ac_status); } && {
5692          test -z "$ac_c_werror_flag" ||
5693          test ! -s conftest.err
5694        } && test -s conftest.$ac_objext; then
5695   ac_cv_prog_cc_c89=$ac_arg
5696 else
5697   echo "$as_me: failed program was:" >&5
5698 sed 's/^/| /' conftest.$ac_ext >&5
5699
5700
5701 fi
5702
5703 rm -f core conftest.err conftest.$ac_objext
5704   test "x$ac_cv_prog_cc_c89" != "xno" && break
5705 done
5706 rm -f conftest.$ac_ext
5707 CC=$ac_save_CC
5708
5709 fi
5710 # AC_CACHE_VAL
5711 case "x$ac_cv_prog_cc_c89" in
5712   x)
5713     { echo "$as_me:$LINENO: result: none needed" >&5
5714 echo "${ECHO_T}none needed" >&6; } ;;
5715   xno)
5716     { echo "$as_me:$LINENO: result: unsupported" >&5
5717 echo "${ECHO_T}unsupported" >&6; } ;;
5718   *)
5719     CC="$CC $ac_cv_prog_cc_c89"
5720     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5721 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5722 esac
5723
5724
5725 ac_ext=c
5726 ac_cpp='$CPP $CPPFLAGS'
5727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5730
5731 depcc="$CC"   am_compiler_list=
5732
5733 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5734 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5735 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5736   echo $ECHO_N "(cached) $ECHO_C" >&6
5737 else
5738   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5739   # We make a subdir and do the tests there.  Otherwise we can end up
5740   # making bogus files that we don't know about and never remove.  For
5741   # instance it was reported that on HP-UX the gcc test will end up
5742   # making a dummy file named `D' -- because `-MD' means `put the output
5743   # in D'.
5744   mkdir conftest.dir
5745   # Copy depcomp to subdir because otherwise we won't find it if we're
5746   # using a relative directory.
5747   cp "$am_depcomp" conftest.dir
5748   cd conftest.dir
5749   # We will build objects and dependencies in a subdirectory because
5750   # it helps to detect inapplicable dependency modes.  For instance
5751   # both Tru64's cc and ICC support -MD to output dependencies as a
5752   # side effect of compilation, but ICC will put the dependencies in
5753   # the current directory while Tru64 will put them in the object
5754   # directory.
5755   mkdir sub
5756
5757   am_cv_CC_dependencies_compiler_type=none
5758   if test "$am_compiler_list" = ""; then
5759      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5760   fi
5761   for depmode in $am_compiler_list; do
5762     # Setup a source with many dependencies, because some compilers
5763     # like to wrap large dependency lists on column 80 (with \), and
5764     # we should not choose a depcomp mode which is confused by this.
5765     #
5766     # We need to recreate these files for each test, as the compiler may
5767     # overwrite some of them when testing with obscure command lines.
5768     # This happens at least with the AIX C compiler.
5769     : > sub/conftest.c
5770     for i in 1 2 3 4 5 6; do
5771       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5772       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5773       # Solaris 8's {/usr,}/bin/sh.
5774       touch sub/conftst$i.h
5775     done
5776     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5777
5778     case $depmode in
5779     nosideeffect)
5780       # after this tag, mechanisms are not by side-effect, so they'll
5781       # only be used when explicitly requested
5782       if test "x$enable_dependency_tracking" = xyes; then
5783         continue
5784       else
5785         break
5786       fi
5787       ;;
5788     none) break ;;
5789     esac
5790     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5791     # mode.  It turns out that the SunPro C++ compiler does not properly
5792     # handle `-M -o', and we need to detect this.
5793     if depmode=$depmode \
5794        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5795        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5796        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5797          >/dev/null 2>conftest.err &&
5798        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5799        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5800        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5801       # icc doesn't choke on unknown options, it will just issue warnings
5802       # or remarks (even with -Werror).  So we grep stderr for any message
5803       # that says an option was ignored or not supported.
5804       # When given -MP, icc 7.0 and 7.1 complain thusly:
5805       #   icc: Command line warning: ignoring option '-M'; no argument required
5806       # The diagnosis changed in icc 8.0:
5807       #   icc: Command line remark: option '-MP' not supported
5808       if (grep 'ignoring option' conftest.err ||
5809           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5810         am_cv_CC_dependencies_compiler_type=$depmode
5811         break
5812       fi
5813     fi
5814   done
5815
5816   cd ..
5817   rm -rf conftest.dir
5818 else
5819   am_cv_CC_dependencies_compiler_type=none
5820 fi
5821
5822 fi
5823 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5824 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5825 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5826
5827
5828
5829 if
5830   test "x$enable_dependency_tracking" != xno \
5831   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5832   am__fastdepCC_TRUE=
5833   am__fastdepCC_FALSE='#'
5834 else
5835   am__fastdepCC_TRUE='#'
5836   am__fastdepCC_FALSE=
5837 fi
5838
5839
5840 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5841 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5842 if test "${lt_cv_path_SED+set}" = set; then
5843   echo $ECHO_N "(cached) $ECHO_C" >&6
5844 else
5845   # Loop through the user's path and test for sed and gsed.
5846 # Then use that list of sed's as ones to test for truncation.
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5849 do
5850   IFS=$as_save_IFS
5851   test -z "$as_dir" && as_dir=.
5852   for lt_ac_prog in sed gsed; do
5853     for ac_exec_ext in '' $ac_executable_extensions; do
5854       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5855         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5856       fi
5857     done
5858   done
5859 done
5860 lt_ac_max=0
5861 lt_ac_count=0
5862 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5863 # along with /bin/sed that truncates output.
5864 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5865   test ! -f $lt_ac_sed && continue
5866   cat /dev/null > conftest.in
5867   lt_ac_count=0
5868   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5869   # Check for GNU sed and select it if it is found.
5870   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5871     lt_cv_path_SED=$lt_ac_sed
5872     break
5873   fi
5874   while true; do
5875     cat conftest.in conftest.in >conftest.tmp
5876     mv conftest.tmp conftest.in
5877     cp conftest.in conftest.nl
5878     echo >>conftest.nl
5879     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5880     cmp -s conftest.out conftest.nl || break
5881     # 10000 chars as input seems more than enough
5882     test $lt_ac_count -gt 10 && break
5883     lt_ac_count=`expr $lt_ac_count + 1`
5884     if test $lt_ac_count -gt $lt_ac_max; then
5885       lt_ac_max=$lt_ac_count
5886       lt_cv_path_SED=$lt_ac_sed
5887     fi
5888   done
5889 done
5890
5891 fi
5892
5893 SED=$lt_cv_path_SED
5894 { echo "$as_me:$LINENO: result: $SED" >&5
5895 echo "${ECHO_T}$SED" >&6; }
5896
5897 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5898 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5899 if test "${ac_cv_path_GREP+set}" = set; then
5900   echo $ECHO_N "(cached) $ECHO_C" >&6
5901 else
5902   # Extract the first word of "grep ggrep" to use in msg output
5903 if test -z "$GREP"; then
5904 set dummy grep ggrep; ac_prog_name=$2
5905 if test "${ac_cv_path_GREP+set}" = set; then
5906   echo $ECHO_N "(cached) $ECHO_C" >&6
5907 else
5908   ac_path_GREP_found=false
5909 # Loop through the user's path and test for each of PROGNAME-LIST
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5912 do
5913   IFS=$as_save_IFS
5914   test -z "$as_dir" && as_dir=.
5915   for ac_prog in grep ggrep; do
5916   for ac_exec_ext in '' $ac_executable_extensions; do
5917     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5918     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5919     # Check for GNU ac_path_GREP and select it if it is found.
5920   # Check for GNU $ac_path_GREP
5921 case `"$ac_path_GREP" --version 2>&1` in
5922 *GNU*)
5923   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5924 *)
5925   ac_count=0
5926   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5927   while :
5928   do
5929     cat "conftest.in" "conftest.in" >"conftest.tmp"
5930     mv "conftest.tmp" "conftest.in"
5931     cp "conftest.in" "conftest.nl"
5932     echo 'GREP' >> "conftest.nl"
5933     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5934     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5935     ac_count=`expr $ac_count + 1`
5936     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5937       # Best one so far, save it but keep looking for a better one
5938       ac_cv_path_GREP="$ac_path_GREP"
5939       ac_path_GREP_max=$ac_count
5940     fi
5941     # 10*(2^10) chars as input seems more than enough
5942     test $ac_count -gt 10 && break
5943   done
5944   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5945 esac
5946
5947
5948     $ac_path_GREP_found && break 3
5949   done
5950 done
5951
5952 done
5953 IFS=$as_save_IFS
5954
5955
5956 fi
5957
5958 GREP="$ac_cv_path_GREP"
5959 if test -z "$GREP"; then
5960   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5961 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5962    { (exit 1); exit 1; }; }
5963 fi
5964
5965 else
5966   ac_cv_path_GREP=$GREP
5967 fi
5968
5969
5970 fi
5971 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5972 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5973  GREP="$ac_cv_path_GREP"
5974
5975
5976 { echo "$as_me:$LINENO: checking for egrep" >&5
5977 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5978 if test "${ac_cv_path_EGREP+set}" = set; then
5979   echo $ECHO_N "(cached) $ECHO_C" >&6
5980 else
5981   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5982    then ac_cv_path_EGREP="$GREP -E"
5983    else
5984      # Extract the first word of "egrep" to use in msg output
5985 if test -z "$EGREP"; then
5986 set dummy egrep; ac_prog_name=$2
5987 if test "${ac_cv_path_EGREP+set}" = set; then
5988   echo $ECHO_N "(cached) $ECHO_C" >&6
5989 else
5990   ac_path_EGREP_found=false
5991 # Loop through the user's path and test for each of PROGNAME-LIST
5992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5993 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5994 do
5995   IFS=$as_save_IFS
5996   test -z "$as_dir" && as_dir=.
5997   for ac_prog in egrep; do
5998   for ac_exec_ext in '' $ac_executable_extensions; do
5999     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6000     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6001     # Check for GNU ac_path_EGREP and select it if it is found.
6002   # Check for GNU $ac_path_EGREP
6003 case `"$ac_path_EGREP" --version 2>&1` in
6004 *GNU*)
6005   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6006 *)
6007   ac_count=0
6008   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6009   while :
6010   do
6011     cat "conftest.in" "conftest.in" >"conftest.tmp"
6012     mv "conftest.tmp" "conftest.in"
6013     cp "conftest.in" "conftest.nl"
6014     echo 'EGREP' >> "conftest.nl"
6015     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6016     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6017     ac_count=`expr $ac_count + 1`
6018     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6019       # Best one so far, save it but keep looking for a better one
6020       ac_cv_path_EGREP="$ac_path_EGREP"
6021       ac_path_EGREP_max=$ac_count
6022     fi
6023     # 10*(2^10) chars as input seems more than enough
6024     test $ac_count -gt 10 && break
6025   done
6026   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6027 esac
6028
6029
6030     $ac_path_EGREP_found && break 3
6031   done
6032 done
6033
6034 done
6035 IFS=$as_save_IFS
6036
6037
6038 fi
6039
6040 EGREP="$ac_cv_path_EGREP"
6041 if test -z "$EGREP"; then
6042   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6043 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6044    { (exit 1); exit 1; }; }
6045 fi
6046
6047 else
6048   ac_cv_path_EGREP=$EGREP
6049 fi
6050
6051
6052    fi
6053 fi
6054 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6055 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6056  EGREP="$ac_cv_path_EGREP"
6057
6058
6059
6060 # Check whether --with-gnu-ld was given.
6061 if test "${with_gnu_ld+set}" = set; then
6062   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6063 else
6064   with_gnu_ld=no
6065 fi
6066
6067 ac_prog=ld
6068 if test "$GCC" = yes; then
6069   # Check if gcc -print-prog-name=ld gives a path.
6070   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6071 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6072   case $host in
6073   *-*-mingw*)
6074     # gcc leaves a trailing carriage return which upsets mingw
6075     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6076   *)
6077     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6078   esac
6079   case $ac_prog in
6080     # Accept absolute paths.
6081     [\\/]* | ?:[\\/]*)
6082       re_direlt='/[^/][^/]*/\.\./'
6083       # Canonicalize the pathname of ld
6084       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6085       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6086         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6087       done
6088       test -z "$LD" && LD="$ac_prog"
6089       ;;
6090   "")
6091     # If it fails, then pretend we aren't using GCC.
6092     ac_prog=ld
6093     ;;
6094   *)
6095     # If it is relative, then search for the first ld in PATH.
6096     with_gnu_ld=unknown
6097     ;;
6098   esac
6099 elif test "$with_gnu_ld" = yes; then
6100   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6101 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6102 else
6103   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6104 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6105 fi
6106 if test "${lt_cv_path_LD+set}" = set; then
6107   echo $ECHO_N "(cached) $ECHO_C" >&6
6108 else
6109   if test -z "$LD"; then
6110   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6111   for ac_dir in $PATH; do
6112     IFS="$lt_save_ifs"
6113     test -z "$ac_dir" && ac_dir=.
6114     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6115       lt_cv_path_LD="$ac_dir/$ac_prog"
6116       # Check to see if the program is GNU ld.  I'd rather use --version,
6117       # but apparently some variants of GNU ld only accept -v.
6118       # Break only if it was the GNU/non-GNU ld that we prefer.
6119       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6120       *GNU* | *'with BFD'*)
6121         test "$with_gnu_ld" != no && break
6122         ;;
6123       *)
6124         test "$with_gnu_ld" != yes && break
6125         ;;
6126       esac
6127     fi
6128   done
6129   IFS="$lt_save_ifs"
6130 else
6131   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6132 fi
6133 fi
6134
6135 LD="$lt_cv_path_LD"
6136 if test -n "$LD"; then
6137   { echo "$as_me:$LINENO: result: $LD" >&5
6138 echo "${ECHO_T}$LD" >&6; }
6139 else
6140   { echo "$as_me:$LINENO: result: no" >&5
6141 echo "${ECHO_T}no" >&6; }
6142 fi
6143 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6144 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6145    { (exit 1); exit 1; }; }
6146 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6147 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6148 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6149   echo $ECHO_N "(cached) $ECHO_C" >&6
6150 else
6151   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6152 case `$LD -v 2>&1 </dev/null` in
6153 *GNU* | *'with BFD'*)
6154   lt_cv_prog_gnu_ld=yes
6155   ;;
6156 *)
6157   lt_cv_prog_gnu_ld=no
6158   ;;
6159 esac
6160 fi
6161 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6162 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6163 with_gnu_ld=$lt_cv_prog_gnu_ld
6164
6165
6166 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6167 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6168 if test "${lt_cv_ld_reload_flag+set}" = set; then
6169   echo $ECHO_N "(cached) $ECHO_C" >&6
6170 else
6171   lt_cv_ld_reload_flag='-r'
6172 fi
6173 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6174 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6175 reload_flag=$lt_cv_ld_reload_flag
6176 case $reload_flag in
6177 "" | " "*) ;;
6178 *) reload_flag=" $reload_flag" ;;
6179 esac
6180 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6181 case $host_os in
6182   darwin*)
6183     if test "$GCC" = yes; then
6184       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6185     else
6186       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6187     fi
6188     ;;
6189 esac
6190
6191 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6192 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6193 if test "${lt_cv_path_NM+set}" = set; then
6194   echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196   if test -n "$NM"; then
6197   # Let the user override the test.
6198   lt_cv_path_NM="$NM"
6199 else
6200   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6201   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6202     IFS="$lt_save_ifs"
6203     test -z "$ac_dir" && ac_dir=.
6204     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6205     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6206       # Check to see if the nm accepts a BSD-compat flag.
6207       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6208       #   nm: unknown option "B" ignored
6209       # Tru64's nm complains that /dev/null is an invalid object file
6210       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6211       */dev/null* | *'Invalid file or object type'*)
6212         lt_cv_path_NM="$tmp_nm -B"
6213         break
6214         ;;
6215       *)
6216         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6217         */dev/null*)
6218           lt_cv_path_NM="$tmp_nm -p"
6219           break
6220           ;;
6221         *)
6222           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6223           continue # so that we can try to find one that supports BSD flags
6224           ;;
6225         esac
6226       esac
6227     fi
6228   done
6229   IFS="$lt_save_ifs"
6230   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6231 fi
6232 fi
6233 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6234 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6235 NM="$lt_cv_path_NM"
6236
6237 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6238 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6239 LN_S=$as_ln_s
6240 if test "$LN_S" = "ln -s"; then
6241   { echo "$as_me:$LINENO: result: yes" >&5
6242 echo "${ECHO_T}yes" >&6; }
6243 else
6244   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6245 echo "${ECHO_T}no, using $LN_S" >&6; }
6246 fi
6247
6248 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6249 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6250 if test "${lt_cv_deplibs_check_method+set}" = set; then
6251   echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253   lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # `unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # which responds to the $file_magic_cmd with a given extended regex.
6264 # If you have `file' or equivalent on your system and you're not sure
6265 # whether `pass_all' will *always* work, you probably want this one.
6266
6267 case $host_os in
6268 aix4* | aix5*)
6269   lt_cv_deplibs_check_method=pass_all
6270   ;;
6271
6272 beos*)
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275
6276 bsdi[45]*)
6277   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278   lt_cv_file_magic_cmd='/usr/bin/file -L'
6279   lt_cv_file_magic_test_file=/shlib/libc.so
6280   ;;
6281
6282 cygwin*)
6283   # func_win32_libid is a shell function defined in ltmain.sh
6284   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285   lt_cv_file_magic_cmd='func_win32_libid'
6286   ;;
6287
6288 mingw* | pw32*)
6289   # Base MSYS/MinGW do not provide the 'file' command needed by
6290   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6291   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6292   lt_cv_file_magic_cmd='$OBJDUMP -f'
6293   ;;
6294
6295 darwin* | rhapsody*)
6296   lt_cv_deplibs_check_method=pass_all
6297   ;;
6298
6299 freebsd* | kfreebsd*-gnu | dragonfly*)
6300   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6301     case $host_cpu in
6302     i*86 )
6303       # Not sure whether the presence of OpenBSD here was a mistake.
6304       # Let's accept both of them until this is cleared up.
6305       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6306       lt_cv_file_magic_cmd=/usr/bin/file
6307       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6308       ;;
6309     esac
6310   else
6311     lt_cv_deplibs_check_method=pass_all
6312   fi
6313   ;;
6314
6315 gnu*)
6316   lt_cv_deplibs_check_method=pass_all
6317   ;;
6318
6319 hpux10.20* | hpux11*)
6320   lt_cv_file_magic_cmd=/usr/bin/file
6321   case $host_cpu in
6322   ia64*)
6323     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6324     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6325     ;;
6326   hppa*64*)
6327     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]'
6328     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6329     ;;
6330   *)
6331     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6332     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6333     ;;
6334   esac
6335   ;;
6336
6337 irix5* | irix6* | nonstopux*)
6338   case $LD in
6339   *-32|*"-32 ") libmagic=32-bit;;
6340   *-n32|*"-n32 ") libmagic=N32;;
6341   *-64|*"-64 ") libmagic=64-bit;;
6342   *) libmagic=never-match;;
6343   esac
6344   lt_cv_deplibs_check_method=pass_all
6345   ;;
6346
6347 # This must be Linux ELF.
6348 linux*)
6349   lt_cv_deplibs_check_method=pass_all
6350   ;;
6351
6352 netbsd*)
6353   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6355   else
6356     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6357   fi
6358   ;;
6359
6360 newos6*)
6361   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6362   lt_cv_file_magic_cmd=/usr/bin/file
6363   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6364   ;;
6365
6366 nto-qnx*)
6367   lt_cv_deplibs_check_method=unknown
6368   ;;
6369
6370 openbsd*)
6371   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6373   else
6374     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6375   fi
6376   ;;
6377
6378 osf3* | osf4* | osf5*)
6379   lt_cv_deplibs_check_method=pass_all
6380   ;;
6381
6382 sco3.2v5*)
6383   lt_cv_deplibs_check_method=pass_all
6384   ;;
6385
6386 solaris*)
6387   lt_cv_deplibs_check_method=pass_all
6388   ;;
6389
6390 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6391   case $host_vendor in
6392   motorola)
6393     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]'
6394     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6395     ;;
6396   ncr)
6397     lt_cv_deplibs_check_method=pass_all
6398     ;;
6399   sequent)
6400     lt_cv_file_magic_cmd='/bin/file'
6401     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6402     ;;
6403   sni)
6404     lt_cv_file_magic_cmd='/bin/file'
6405     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6406     lt_cv_file_magic_test_file=/lib/libc.so
6407     ;;
6408   siemens)
6409     lt_cv_deplibs_check_method=pass_all
6410     ;;
6411   esac
6412   ;;
6413
6414 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6415   lt_cv_deplibs_check_method=pass_all
6416   ;;
6417 esac
6418
6419 fi
6420 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6421 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6422 file_magic_cmd=$lt_cv_file_magic_cmd
6423 deplibs_check_method=$lt_cv_deplibs_check_method
6424 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6425
6426
6427
6428
6429 # If no C compiler was specified, use CC.
6430 LTCC=${LTCC-"$CC"}
6431
6432 # Allow CC to be a program name with arguments.
6433 compiler=$CC
6434
6435
6436 # Check whether --enable-libtool-lock was given.
6437 if test "${enable_libtool_lock+set}" = set; then
6438   enableval=$enable_libtool_lock;
6439 fi
6440
6441 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6442
6443 # Some flags need to be propagated to the compiler or linker for good
6444 # libtool support.
6445 case $host in
6446 ia64-*-hpux*)
6447   # Find out which ABI we are using.
6448   echo 'int i;' > conftest.$ac_ext
6449   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6450   (eval $ac_compile) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; then
6454     case `/usr/bin/file conftest.$ac_objext` in
6455     *ELF-32*)
6456       HPUX_IA64_MODE="32"
6457       ;;
6458     *ELF-64*)
6459       HPUX_IA64_MODE="64"
6460       ;;
6461     esac
6462   fi
6463   rm -rf conftest*
6464   ;;
6465 *-*-irix6*)
6466   # Find out which ABI we are using.
6467   echo '#line 6467 "configure"' > conftest.$ac_ext
6468   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6469   (eval $ac_compile) 2>&5
6470   ac_status=$?
6471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472   (exit $ac_status); }; then
6473    if test "$lt_cv_prog_gnu_ld" = yes; then
6474     case `/usr/bin/file conftest.$ac_objext` in
6475     *32-bit*)
6476       LD="${LD-ld} -melf32bsmip"
6477       ;;
6478     *N32*)
6479       LD="${LD-ld} -melf32bmipn32"
6480       ;;
6481     *64-bit*)
6482       LD="${LD-ld} -melf64bmip"
6483       ;;
6484     esac
6485    else
6486     case `/usr/bin/file conftest.$ac_objext` in
6487     *32-bit*)
6488       LD="${LD-ld} -32"
6489       ;;
6490     *N32*)
6491       LD="${LD-ld} -n32"
6492       ;;
6493     *64-bit*)
6494       LD="${LD-ld} -64"
6495       ;;
6496     esac
6497    fi
6498   fi
6499   rm -rf conftest*
6500   ;;
6501
6502 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6503   # Find out which ABI we are using.
6504   echo 'int i;' > conftest.$ac_ext
6505   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6506   (eval $ac_compile) 2>&5
6507   ac_status=$?
6508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509   (exit $ac_status); }; then
6510     case `/usr/bin/file conftest.o` in
6511     *32-bit*)
6512       case $host in
6513         x86_64-*linux*)
6514           LD="${LD-ld} -m elf_i386"
6515           ;;
6516         ppc64-*linux*|powerpc64-*linux*)
6517           LD="${LD-ld} -m elf32ppclinux"
6518           ;;
6519         s390x-*linux*)
6520           LD="${LD-ld} -m elf_s390"
6521           ;;
6522         sparc64-*linux*)
6523           LD="${LD-ld} -m elf32_sparc"
6524           ;;
6525       esac
6526       ;;
6527     *64-bit*)
6528       case $host in
6529         x86_64-*linux*)
6530           LD="${LD-ld} -m elf_x86_64"
6531           ;;
6532         ppc*-*linux*|powerpc*-*linux*)
6533           LD="${LD-ld} -m elf64ppc"
6534           ;;
6535         s390*-*linux*)
6536           LD="${LD-ld} -m elf64_s390"
6537           ;;
6538         sparc*-*linux*)
6539           LD="${LD-ld} -m elf64_sparc"
6540           ;;
6541       esac
6542       ;;
6543     esac
6544   fi
6545   rm -rf conftest*
6546   ;;
6547
6548 *-*-sco3.2v5*)
6549   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6550   SAVE_CFLAGS="$CFLAGS"
6551   CFLAGS="$CFLAGS -belf"
6552   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6553 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6554 if test "${lt_cv_cc_needs_belf+set}" = set; then
6555   echo $ECHO_N "(cached) $ECHO_C" >&6
6556 else
6557   ac_ext=c
6558 ac_cpp='$CPP $CPPFLAGS'
6559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6562
6563      cat >conftest.$ac_ext <<_ACEOF
6564 /* confdefs.h.  */
6565 _ACEOF
6566 cat confdefs.h >>conftest.$ac_ext
6567 cat >>conftest.$ac_ext <<_ACEOF
6568 /* end confdefs.h.  */
6569
6570 int
6571 main ()
6572 {
6573
6574   ;
6575   return 0;
6576 }
6577 _ACEOF
6578 rm -f conftest.$ac_objext conftest$ac_exeext
6579 if { (ac_try="$ac_link"
6580 case "(($ac_try" in
6581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6582   *) ac_try_echo=$ac_try;;
6583 esac
6584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6585   (eval "$ac_link") 2>conftest.er1
6586   ac_status=$?
6587   grep -v '^ *+' conftest.er1 >conftest.err
6588   rm -f conftest.er1
6589   cat conftest.err >&5
6590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591   (exit $ac_status); } && {
6592          test -z "$ac_c_werror_flag" ||
6593          test ! -s conftest.err
6594        } && test -s conftest$ac_exeext &&
6595        $as_test_x conftest$ac_exeext; then
6596   lt_cv_cc_needs_belf=yes
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601         lt_cv_cc_needs_belf=no
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6605       conftest$ac_exeext conftest.$ac_ext
6606      ac_ext=c
6607 ac_cpp='$CPP $CPPFLAGS'
6608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6611
6612 fi
6613 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6614 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6615   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6616     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6617     CFLAGS="$SAVE_CFLAGS"
6618   fi
6619   ;;
6620 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6621   if test -n "$ac_tool_prefix"; then
6622   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6623 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6624 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6625 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6626 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6627   echo $ECHO_N "(cached) $ECHO_C" >&6
6628 else
6629   if test -n "$DLLTOOL"; then
6630   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635   IFS=$as_save_IFS
6636   test -z "$as_dir" && as_dir=.
6637   for ac_exec_ext in '' $ac_executable_extensions; do
6638   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6639     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6640     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6641     break 2
6642   fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 DLLTOOL=$ac_cv_prog_DLLTOOL
6650 if test -n "$DLLTOOL"; then
6651   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6652 echo "${ECHO_T}$DLLTOOL" >&6; }
6653 else
6654   { echo "$as_me:$LINENO: result: no" >&5
6655 echo "${ECHO_T}no" >&6; }
6656 fi
6657
6658
6659 fi
6660 if test -z "$ac_cv_prog_DLLTOOL"; then
6661   ac_ct_DLLTOOL=$DLLTOOL
6662   # Extract the first word of "dlltool", so it can be a program name with args.
6663 set dummy dlltool; ac_word=$2
6664 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6667   echo $ECHO_N "(cached) $ECHO_C" >&6
6668 else
6669   if test -n "$ac_ct_DLLTOOL"; then
6670   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6671 else
6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6673 for as_dir in $PATH
6674 do
6675   IFS=$as_save_IFS
6676   test -z "$as_dir" && as_dir=.
6677   for ac_exec_ext in '' $ac_executable_extensions; do
6678   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6679     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6680     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6681     break 2
6682   fi
6683 done
6684 done
6685 IFS=$as_save_IFS
6686
6687 fi
6688 fi
6689 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6690 if test -n "$ac_ct_DLLTOOL"; then
6691   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6693 else
6694   { echo "$as_me:$LINENO: result: no" >&5
6695 echo "${ECHO_T}no" >&6; }
6696 fi
6697
6698   if test "x$ac_ct_DLLTOOL" = x; then
6699     DLLTOOL="false"
6700   else
6701     case $cross_compiling:$ac_tool_warned in
6702 yes:)
6703 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6704 whose name does not start with the host triplet.  If you think this
6705 configuration is useful to you, please write to autoconf@gnu.org." >&5
6706 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6707 whose name does not start with the host triplet.  If you think this
6708 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6709 ac_tool_warned=yes ;;
6710 esac
6711     DLLTOOL=$ac_ct_DLLTOOL
6712   fi
6713 else
6714   DLLTOOL="$ac_cv_prog_DLLTOOL"
6715 fi
6716
6717   if test -n "$ac_tool_prefix"; then
6718   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}as; ac_word=$2
6720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6722 if test "${ac_cv_prog_AS+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   if test -n "$AS"; then
6726   ac_cv_prog_AS="$AS" # Let the user override the test.
6727 else
6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6729 for as_dir in $PATH
6730 do
6731   IFS=$as_save_IFS
6732   test -z "$as_dir" && as_dir=.
6733   for ac_exec_ext in '' $ac_executable_extensions; do
6734   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6735     ac_cv_prog_AS="${ac_tool_prefix}as"
6736     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6737     break 2
6738   fi
6739 done
6740 done
6741 IFS=$as_save_IFS
6742
6743 fi
6744 fi
6745 AS=$ac_cv_prog_AS
6746 if test -n "$AS"; then
6747   { echo "$as_me:$LINENO: result: $AS" >&5
6748 echo "${ECHO_T}$AS" >&6; }
6749 else
6750   { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6752 fi
6753
6754
6755 fi
6756 if test -z "$ac_cv_prog_AS"; then
6757   ac_ct_AS=$AS
6758   # Extract the first word of "as", so it can be a program name with args.
6759 set dummy as; ac_word=$2
6760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6762 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6763   echo $ECHO_N "(cached) $ECHO_C" >&6
6764 else
6765   if test -n "$ac_ct_AS"; then
6766   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6767 else
6768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6769 for as_dir in $PATH
6770 do
6771   IFS=$as_save_IFS
6772   test -z "$as_dir" && as_dir=.
6773   for ac_exec_ext in '' $ac_executable_extensions; do
6774   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6775     ac_cv_prog_ac_ct_AS="as"
6776     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6777     break 2
6778   fi
6779 done
6780 done
6781 IFS=$as_save_IFS
6782
6783 fi
6784 fi
6785 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6786 if test -n "$ac_ct_AS"; then
6787   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6788 echo "${ECHO_T}$ac_ct_AS" >&6; }
6789 else
6790   { echo "$as_me:$LINENO: result: no" >&5
6791 echo "${ECHO_T}no" >&6; }
6792 fi
6793
6794   if test "x$ac_ct_AS" = x; then
6795     AS="false"
6796   else
6797     case $cross_compiling:$ac_tool_warned in
6798 yes:)
6799 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6800 whose name does not start with the host triplet.  If you think this
6801 configuration is useful to you, please write to autoconf@gnu.org." >&5
6802 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6803 whose name does not start with the host triplet.  If you think this
6804 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6805 ac_tool_warned=yes ;;
6806 esac
6807     AS=$ac_ct_AS
6808   fi
6809 else
6810   AS="$ac_cv_prog_AS"
6811 fi
6812
6813   if test -n "$ac_tool_prefix"; then
6814   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6815 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6818 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6819   echo $ECHO_N "(cached) $ECHO_C" >&6
6820 else
6821   if test -n "$OBJDUMP"; then
6822   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6823 else
6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6825 for as_dir in $PATH
6826 do
6827   IFS=$as_save_IFS
6828   test -z "$as_dir" && as_dir=.
6829   for ac_exec_ext in '' $ac_executable_extensions; do
6830   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6831     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6832     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833     break 2
6834   fi
6835 done
6836 done
6837 IFS=$as_save_IFS
6838
6839 fi
6840 fi
6841 OBJDUMP=$ac_cv_prog_OBJDUMP
6842 if test -n "$OBJDUMP"; then
6843   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6844 echo "${ECHO_T}$OBJDUMP" >&6; }
6845 else
6846   { echo "$as_me:$LINENO: result: no" >&5
6847 echo "${ECHO_T}no" >&6; }
6848 fi
6849
6850
6851 fi
6852 if test -z "$ac_cv_prog_OBJDUMP"; then
6853   ac_ct_OBJDUMP=$OBJDUMP
6854   # Extract the first word of "objdump", so it can be a program name with args.
6855 set dummy objdump; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6859   echo $ECHO_N "(cached) $ECHO_C" >&6
6860 else
6861   if test -n "$ac_ct_OBJDUMP"; then
6862   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6863 else
6864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6865 for as_dir in $PATH
6866 do
6867   IFS=$as_save_IFS
6868   test -z "$as_dir" && as_dir=.
6869   for ac_exec_ext in '' $ac_executable_extensions; do
6870   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6871     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6872     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6873     break 2
6874   fi
6875 done
6876 done
6877 IFS=$as_save_IFS
6878
6879 fi
6880 fi
6881 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6882 if test -n "$ac_ct_OBJDUMP"; then
6883   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6884 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6885 else
6886   { echo "$as_me:$LINENO: result: no" >&5
6887 echo "${ECHO_T}no" >&6; }
6888 fi
6889
6890   if test "x$ac_ct_OBJDUMP" = x; then
6891     OBJDUMP="false"
6892   else
6893     case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6896 whose name does not start with the host triplet.  If you think this
6897 configuration is useful to you, please write to autoconf@gnu.org." >&5
6898 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6899 whose name does not start with the host triplet.  If you think this
6900 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6901 ac_tool_warned=yes ;;
6902 esac
6903     OBJDUMP=$ac_ct_OBJDUMP
6904   fi
6905 else
6906   OBJDUMP="$ac_cv_prog_OBJDUMP"
6907 fi
6908
6909   ;;
6910
6911 esac
6912
6913 need_locks="$enable_libtool_lock"
6914
6915
6916 ac_ext=c
6917 ac_cpp='$CPP $CPPFLAGS'
6918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6921 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6922 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6923 # On Suns, sometimes $CPP names a directory.
6924 if test -n "$CPP" && test -d "$CPP"; then
6925   CPP=
6926 fi
6927 if test -z "$CPP"; then
6928   if test "${ac_cv_prog_CPP+set}" = set; then
6929   echo $ECHO_N "(cached) $ECHO_C" >&6
6930 else
6931       # Double quotes because CPP needs to be expanded
6932     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6933     do
6934       ac_preproc_ok=false
6935 for ac_c_preproc_warn_flag in '' yes
6936 do
6937   # Use a header file that comes with gcc, so configuring glibc
6938   # with a fresh cross-compiler works.
6939   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6940   # <limits.h> exists even on freestanding compilers.
6941   # On the NeXT, cc -E runs the code through the compiler's parser,
6942   # not just through cpp. "Syntax error" is here to catch this case.
6943   cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #ifdef __STDC__
6950 # include <limits.h>
6951 #else
6952 # include <assert.h>
6953 #endif
6954                      Syntax error
6955 _ACEOF
6956 if { (ac_try="$ac_cpp conftest.$ac_ext"
6957 case "(($ac_try" in
6958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6959   *) ac_try_echo=$ac_try;;
6960 esac
6961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6962   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6963   ac_status=$?
6964   grep -v '^ *+' conftest.er1 >conftest.err
6965   rm -f conftest.er1
6966   cat conftest.err >&5
6967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6968   (exit $ac_status); } >/dev/null && {
6969          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6970          test ! -s conftest.err
6971        }; then
6972   :
6973 else
6974   echo "$as_me: failed program was:" >&5
6975 sed 's/^/| /' conftest.$ac_ext >&5
6976
6977   # Broken: fails on valid input.
6978 continue
6979 fi
6980
6981 rm -f conftest.err conftest.$ac_ext
6982
6983   # OK, works on sane cases.  Now check whether nonexistent headers
6984   # can be detected and how.
6985   cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h.  */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h.  */
6991 #include <ac_nonexistent.h>
6992 _ACEOF
6993 if { (ac_try="$ac_cpp conftest.$ac_ext"
6994 case "(($ac_try" in
6995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6996   *) ac_try_echo=$ac_try;;
6997 esac
6998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6999   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7000   ac_status=$?
7001   grep -v '^ *+' conftest.er1 >conftest.err
7002   rm -f conftest.er1
7003   cat conftest.err >&5
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); } >/dev/null && {
7006          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7007          test ! -s conftest.err
7008        }; then
7009   # Broken: success on invalid input.
7010 continue
7011 else
7012   echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7014
7015   # Passes both tests.
7016 ac_preproc_ok=:
7017 break
7018 fi
7019
7020 rm -f conftest.err conftest.$ac_ext
7021
7022 done
7023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7024 rm -f conftest.err conftest.$ac_ext
7025 if $ac_preproc_ok; then
7026   break
7027 fi
7028
7029     done
7030     ac_cv_prog_CPP=$CPP
7031
7032 fi
7033   CPP=$ac_cv_prog_CPP
7034 else
7035   ac_cv_prog_CPP=$CPP
7036 fi
7037 { echo "$as_me:$LINENO: result: $CPP" >&5
7038 echo "${ECHO_T}$CPP" >&6; }
7039 ac_preproc_ok=false
7040 for ac_c_preproc_warn_flag in '' yes
7041 do
7042   # Use a header file that comes with gcc, so configuring glibc
7043   # with a fresh cross-compiler works.
7044   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7045   # <limits.h> exists even on freestanding compilers.
7046   # On the NeXT, cc -E runs the code through the compiler's parser,
7047   # not just through cpp. "Syntax error" is here to catch this case.
7048   cat >conftest.$ac_ext <<_ACEOF
7049 /* confdefs.h.  */
7050 _ACEOF
7051 cat confdefs.h >>conftest.$ac_ext
7052 cat >>conftest.$ac_ext <<_ACEOF
7053 /* end confdefs.h.  */
7054 #ifdef __STDC__
7055 # include <limits.h>
7056 #else
7057 # include <assert.h>
7058 #endif
7059                      Syntax error
7060 _ACEOF
7061 if { (ac_try="$ac_cpp conftest.$ac_ext"
7062 case "(($ac_try" in
7063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7064   *) ac_try_echo=$ac_try;;
7065 esac
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7068   ac_status=$?
7069   grep -v '^ *+' conftest.er1 >conftest.err
7070   rm -f conftest.er1
7071   cat conftest.err >&5
7072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073   (exit $ac_status); } >/dev/null && {
7074          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7075          test ! -s conftest.err
7076        }; then
7077   :
7078 else
7079   echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.$ac_ext >&5
7081
7082   # Broken: fails on valid input.
7083 continue
7084 fi
7085
7086 rm -f conftest.err conftest.$ac_ext
7087
7088   # OK, works on sane cases.  Now check whether nonexistent headers
7089   # can be detected and how.
7090   cat >conftest.$ac_ext <<_ACEOF
7091 /* confdefs.h.  */
7092 _ACEOF
7093 cat confdefs.h >>conftest.$ac_ext
7094 cat >>conftest.$ac_ext <<_ACEOF
7095 /* end confdefs.h.  */
7096 #include <ac_nonexistent.h>
7097 _ACEOF
7098 if { (ac_try="$ac_cpp conftest.$ac_ext"
7099 case "(($ac_try" in
7100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7101   *) ac_try_echo=$ac_try;;
7102 esac
7103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7104   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7105   ac_status=$?
7106   grep -v '^ *+' conftest.er1 >conftest.err
7107   rm -f conftest.er1
7108   cat conftest.err >&5
7109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7110   (exit $ac_status); } >/dev/null && {
7111          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7112          test ! -s conftest.err
7113        }; then
7114   # Broken: success on invalid input.
7115 continue
7116 else
7117   echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120   # Passes both tests.
7121 ac_preproc_ok=:
7122 break
7123 fi
7124
7125 rm -f conftest.err conftest.$ac_ext
7126
7127 done
7128 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7129 rm -f conftest.err conftest.$ac_ext
7130 if $ac_preproc_ok; then
7131   :
7132 else
7133   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&5
7135 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7136 See \`config.log' for more details." >&2;}
7137    { (exit 1); exit 1; }; }
7138 fi
7139
7140 ac_ext=c
7141 ac_cpp='$CPP $CPPFLAGS'
7142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7145
7146
7147 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7148 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7149 if test "${ac_cv_header_stdc+set}" = set; then
7150   echo $ECHO_N "(cached) $ECHO_C" >&6
7151 else
7152   cat >conftest.$ac_ext <<_ACEOF
7153 /* confdefs.h.  */
7154 _ACEOF
7155 cat confdefs.h >>conftest.$ac_ext
7156 cat >>conftest.$ac_ext <<_ACEOF
7157 /* end confdefs.h.  */
7158 #include <stdlib.h>
7159 #include <stdarg.h>
7160 #include <string.h>
7161 #include <float.h>
7162
7163 int
7164 main ()
7165 {
7166
7167   ;
7168   return 0;
7169 }
7170 _ACEOF
7171 rm -f conftest.$ac_objext
7172 if { (ac_try="$ac_compile"
7173 case "(($ac_try" in
7174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7175   *) ac_try_echo=$ac_try;;
7176 esac
7177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7178   (eval "$ac_compile") 2>conftest.er1
7179   ac_status=$?
7180   grep -v '^ *+' conftest.er1 >conftest.err
7181   rm -f conftest.er1
7182   cat conftest.err >&5
7183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184   (exit $ac_status); } && {
7185          test -z "$ac_c_werror_flag" ||
7186          test ! -s conftest.err
7187        } && test -s conftest.$ac_objext; then
7188   ac_cv_header_stdc=yes
7189 else
7190   echo "$as_me: failed program was:" >&5
7191 sed 's/^/| /' conftest.$ac_ext >&5
7192
7193         ac_cv_header_stdc=no
7194 fi
7195
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197
7198 if test $ac_cv_header_stdc = yes; then
7199   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7200   cat >conftest.$ac_ext <<_ACEOF
7201 /* confdefs.h.  */
7202 _ACEOF
7203 cat confdefs.h >>conftest.$ac_ext
7204 cat >>conftest.$ac_ext <<_ACEOF
7205 /* end confdefs.h.  */
7206 #include <string.h>
7207
7208 _ACEOF
7209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7210   $EGREP "memchr" >/dev/null 2>&1; then
7211   :
7212 else
7213   ac_cv_header_stdc=no
7214 fi
7215 rm -f conftest*
7216
7217 fi
7218
7219 if test $ac_cv_header_stdc = yes; then
7220   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7221   cat >conftest.$ac_ext <<_ACEOF
7222 /* confdefs.h.  */
7223 _ACEOF
7224 cat confdefs.h >>conftest.$ac_ext
7225 cat >>conftest.$ac_ext <<_ACEOF
7226 /* end confdefs.h.  */
7227 #include <stdlib.h>
7228
7229 _ACEOF
7230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7231   $EGREP "free" >/dev/null 2>&1; then
7232   :
7233 else
7234   ac_cv_header_stdc=no
7235 fi
7236 rm -f conftest*
7237
7238 fi
7239
7240 if test $ac_cv_header_stdc = yes; then
7241   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7242   if test "$cross_compiling" = yes; then
7243   :
7244 else
7245   cat >conftest.$ac_ext <<_ACEOF
7246 /* confdefs.h.  */
7247 _ACEOF
7248 cat confdefs.h >>conftest.$ac_ext
7249 cat >>conftest.$ac_ext <<_ACEOF
7250 /* end confdefs.h.  */
7251 #include <ctype.h>
7252 #include <stdlib.h>
7253 #if ((' ' & 0x0FF) == 0x020)
7254 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7255 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7256 #else
7257 # define ISLOWER(c) \
7258                    (('a' <= (c) && (c) <= 'i') \
7259                      || ('j' <= (c) && (c) <= 'r') \
7260                      || ('s' <= (c) && (c) <= 'z'))
7261 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7262 #endif
7263
7264 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7265 int
7266 main ()
7267 {
7268   int i;
7269   for (i = 0; i < 256; i++)
7270     if (XOR (islower (i), ISLOWER (i))
7271         || toupper (i) != TOUPPER (i))
7272       return 2;
7273   return 0;
7274 }
7275 _ACEOF
7276 rm -f conftest$ac_exeext
7277 if { (ac_try="$ac_link"
7278 case "(($ac_try" in
7279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7280   *) ac_try_echo=$ac_try;;
7281 esac
7282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7283   (eval "$ac_link") 2>&5
7284   ac_status=$?
7285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7287   { (case "(($ac_try" in
7288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7289   *) ac_try_echo=$ac_try;;
7290 esac
7291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7292   (eval "$ac_try") 2>&5
7293   ac_status=$?
7294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295   (exit $ac_status); }; }; then
7296   :
7297 else
7298   echo "$as_me: program exited with status $ac_status" >&5
7299 echo "$as_me: failed program was:" >&5
7300 sed 's/^/| /' conftest.$ac_ext >&5
7301
7302 ( exit $ac_status )
7303 ac_cv_header_stdc=no
7304 fi
7305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7306 fi
7307
7308
7309 fi
7310 fi
7311 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7312 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7313 if test $ac_cv_header_stdc = yes; then
7314
7315 cat >>confdefs.h <<\_ACEOF
7316 #define STDC_HEADERS 1
7317 _ACEOF
7318
7319 fi
7320
7321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7322
7323
7324
7325
7326
7327
7328
7329
7330
7331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7332                   inttypes.h stdint.h unistd.h
7333 do
7334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7338   echo $ECHO_N "(cached) $ECHO_C" >&6
7339 else
7340   cat >conftest.$ac_ext <<_ACEOF
7341 /* confdefs.h.  */
7342 _ACEOF
7343 cat confdefs.h >>conftest.$ac_ext
7344 cat >>conftest.$ac_ext <<_ACEOF
7345 /* end confdefs.h.  */
7346 $ac_includes_default
7347
7348 #include <$ac_header>
7349 _ACEOF
7350 rm -f conftest.$ac_objext
7351 if { (ac_try="$ac_compile"
7352 case "(($ac_try" in
7353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7354   *) ac_try_echo=$ac_try;;
7355 esac
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357   (eval "$ac_compile") 2>conftest.er1
7358   ac_status=$?
7359   grep -v '^ *+' conftest.er1 >conftest.err
7360   rm -f conftest.er1
7361   cat conftest.err >&5
7362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363   (exit $ac_status); } && {
7364          test -z "$ac_c_werror_flag" ||
7365          test ! -s conftest.err
7366        } && test -s conftest.$ac_objext; then
7367   eval "$as_ac_Header=yes"
7368 else
7369   echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7371
7372         eval "$as_ac_Header=no"
7373 fi
7374
7375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7376 fi
7377 ac_res=`eval echo '${'$as_ac_Header'}'`
7378                { echo "$as_me:$LINENO: result: $ac_res" >&5
7379 echo "${ECHO_T}$ac_res" >&6; }
7380 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7381   cat >>confdefs.h <<_ACEOF
7382 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7383 _ACEOF
7384
7385 fi
7386
7387 done
7388
7389
7390
7391 for ac_header in dlfcn.h
7392 do
7393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7397 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7398   echo $ECHO_N "(cached) $ECHO_C" >&6
7399 fi
7400 ac_res=`eval echo '${'$as_ac_Header'}'`
7401                { echo "$as_me:$LINENO: result: $ac_res" >&5
7402 echo "${ECHO_T}$ac_res" >&6; }
7403 else
7404   # Is the header compilable?
7405 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7406 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h.  */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h.  */
7413 $ac_includes_default
7414 #include <$ac_header>
7415 _ACEOF
7416 rm -f conftest.$ac_objext
7417 if { (ac_try="$ac_compile"
7418 case "(($ac_try" in
7419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7420   *) ac_try_echo=$ac_try;;
7421 esac
7422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7423   (eval "$ac_compile") 2>conftest.er1
7424   ac_status=$?
7425   grep -v '^ *+' conftest.er1 >conftest.err
7426   rm -f conftest.er1
7427   cat conftest.err >&5
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } && {
7430          test -z "$ac_c_werror_flag" ||
7431          test ! -s conftest.err
7432        } && test -s conftest.$ac_objext; then
7433   ac_header_compiler=yes
7434 else
7435   echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438         ac_header_compiler=no
7439 fi
7440
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7443 echo "${ECHO_T}$ac_header_compiler" >&6; }
7444
7445 # Is the header present?
7446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7448 cat >conftest.$ac_ext <<_ACEOF
7449 /* confdefs.h.  */
7450 _ACEOF
7451 cat confdefs.h >>conftest.$ac_ext
7452 cat >>conftest.$ac_ext <<_ACEOF
7453 /* end confdefs.h.  */
7454 #include <$ac_header>
7455 _ACEOF
7456 if { (ac_try="$ac_cpp conftest.$ac_ext"
7457 case "(($ac_try" in
7458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7459   *) ac_try_echo=$ac_try;;
7460 esac
7461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7462   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7463   ac_status=$?
7464   grep -v '^ *+' conftest.er1 >conftest.err
7465   rm -f conftest.er1
7466   cat conftest.err >&5
7467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7468   (exit $ac_status); } >/dev/null && {
7469          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7470          test ! -s conftest.err
7471        }; then
7472   ac_header_preproc=yes
7473 else
7474   echo "$as_me: failed program was:" >&5
7475 sed 's/^/| /' conftest.$ac_ext >&5
7476
7477   ac_header_preproc=no
7478 fi
7479
7480 rm -f conftest.err conftest.$ac_ext
7481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7482 echo "${ECHO_T}$ac_header_preproc" >&6; }
7483
7484 # So?  What about this header?
7485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7486   yes:no: )
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7489     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7491     ac_header_preproc=yes
7492     ;;
7493   no:yes:* )
7494     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7497 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7501 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7504     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7506     ( cat <<\_ASBOX
7507 ## --------------------------------------------- ##
7508 ## Report this to <http://www.openldap.org/its/> ##
7509 ## --------------------------------------------- ##
7510 _ASBOX
7511      ) | sed "s/^/$as_me: WARNING:     /" >&2
7512     ;;
7513 esac
7514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7517   echo $ECHO_N "(cached) $ECHO_C" >&6
7518 else
7519   eval "$as_ac_Header=\$ac_header_preproc"
7520 fi
7521 ac_res=`eval echo '${'$as_ac_Header'}'`
7522                { echo "$as_me:$LINENO: result: $ac_res" >&5
7523 echo "${ECHO_T}$ac_res" >&6; }
7524
7525 fi
7526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7527   cat >>confdefs.h <<_ACEOF
7528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529 _ACEOF
7530
7531 fi
7532
7533 done
7534
7535
7536 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7537
7538 # find the maximum length of command line arguments
7539 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7540 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7541 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7542   echo $ECHO_N "(cached) $ECHO_C" >&6
7543 else
7544     i=0
7545   teststring="ABCD"
7546
7547   case $build_os in
7548   msdosdjgpp*)
7549     # On DJGPP, this test can blow up pretty badly due to problems in libc
7550     # (any single argument exceeding 2000 bytes causes a buffer overrun
7551     # during glob expansion).  Even if it were fixed, the result of this
7552     # check would be larger than it should be.
7553     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7554     ;;
7555
7556   gnu*)
7557     # Under GNU Hurd, this test is not required because there is
7558     # no limit to the length of command line arguments.
7559     # Libtool will interpret -1 as no limit whatsoever
7560     lt_cv_sys_max_cmd_len=-1;
7561     ;;
7562
7563   cygwin* | mingw*)
7564     # On Win9x/ME, this test blows up -- it succeeds, but takes
7565     # about 5 minutes as the teststring grows exponentially.
7566     # Worse, since 9x/ME are not pre-emptively multitasking,
7567     # you end up with a "frozen" computer, even though with patience
7568     # the test eventually succeeds (with a max line length of 256k).
7569     # Instead, let's just punt: use the minimum linelength reported by
7570     # all of the supported platforms: 8192 (on NT/2K/XP).
7571     lt_cv_sys_max_cmd_len=8192;
7572     ;;
7573
7574   amigaos*)
7575     # On AmigaOS with pdksh, this test takes hours, literally.
7576     # So we just punt and use a minimum line length of 8192.
7577     lt_cv_sys_max_cmd_len=8192;
7578     ;;
7579
7580   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7581     # This has been around since 386BSD, at least.  Likely further.
7582     if test -x /sbin/sysctl; then
7583       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7584     elif test -x /usr/sbin/sysctl; then
7585       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7586     else
7587       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7588     fi
7589     # And add a safety zone
7590     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7591     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7592     ;;
7593   osf*)
7594     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7595     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7596     # nice to cause kernel panics so lets avoid the loop below.
7597     # First set a reasonable default.
7598     lt_cv_sys_max_cmd_len=16384
7599     #
7600     if test -x /sbin/sysconfig; then
7601       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7602         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7603       esac
7604     fi
7605     ;;
7606   *)
7607     # If test is not a shell built-in, we'll probably end up computing a
7608     # maximum length that is only half of the actual maximum length, but
7609     # we can't tell.
7610     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7611     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7612                = "XX$teststring") >/dev/null 2>&1 &&
7613             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7614             lt_cv_sys_max_cmd_len=$new_result &&
7615             test $i != 17 # 1/2 MB should be enough
7616     do
7617       i=`expr $i + 1`
7618       teststring=$teststring$teststring
7619     done
7620     teststring=
7621     # Add a significant safety factor because C++ compilers can tack on massive
7622     # amounts of additional arguments before passing them to the linker.
7623     # It appears as though 1/2 is a usable value.
7624     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7625     ;;
7626   esac
7627
7628 fi
7629
7630 if test -n $lt_cv_sys_max_cmd_len ; then
7631   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7632 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7633 else
7634   { echo "$as_me:$LINENO: result: none" >&5
7635 echo "${ECHO_T}none" >&6; }
7636 fi
7637
7638
7639
7640
7641 # Check for command to grab the raw symbol name followed by C symbol from nm.
7642 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7643 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7644 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7645   echo $ECHO_N "(cached) $ECHO_C" >&6
7646 else
7647
7648 # These are sane defaults that work on at least a few old systems.
7649 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7650
7651 # Character class describing NM global symbol codes.
7652 symcode='[BCDEGRST]'
7653
7654 # Regexp to match symbols that can be accessed directly from C.
7655 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7656
7657 # Transform an extracted symbol line into a proper C declaration
7658 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7659
7660 # Transform an extracted symbol line into symbol name and symbol address
7661 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'"
7662
7663 # Define system-specific variables.
7664 case $host_os in
7665 aix*)
7666   symcode='[BCDT]'
7667   ;;
7668 cygwin* | mingw* | pw32*)
7669   symcode='[ABCDGISTW]'
7670   ;;
7671 hpux*) # Its linker distinguishes data from code symbols
7672   if test "$host_cpu" = ia64; then
7673     symcode='[ABCDEGRST]'
7674   fi
7675   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7676   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'"
7677   ;;
7678 linux*)
7679   if test "$host_cpu" = ia64; then
7680     symcode='[ABCDGIRSTW]'
7681     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7682     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'"
7683   fi
7684   ;;
7685 irix* | nonstopux*)
7686   symcode='[BCDEGRST]'
7687   ;;
7688 osf*)
7689   symcode='[BCDEGQRST]'
7690   ;;
7691 solaris* | sysv5*)
7692   symcode='[BDRT]'
7693   ;;
7694 sysv4)
7695   symcode='[DFNSTU]'
7696   ;;
7697 esac
7698
7699 # Handle CRLF in mingw tool chain
7700 opt_cr=
7701 case $build_os in
7702 mingw*)
7703   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7704   ;;
7705 esac
7706
7707 # If we're using GNU nm, then use its standard symbol codes.
7708 case `$NM -V 2>&1` in
7709 *GNU* | *'with BFD'*)
7710   symcode='[ABCDGIRSTW]' ;;
7711 esac
7712
7713 # Try without a prefix undercore, then with it.
7714 for ac_symprfx in "" "_"; do
7715
7716   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7717   symxfrm="\\1 $ac_symprfx\\2 \\2"
7718
7719   # Write the raw and C identifiers.
7720   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7721
7722   # Check to see that the pipe works correctly.
7723   pipe_works=no
7724
7725   rm -f conftest*
7726   cat > conftest.$ac_ext <<EOF
7727 #ifdef __cplusplus
7728 extern "C" {
7729 #endif
7730 char nm_test_var;
7731 void nm_test_func(){}
7732 #ifdef __cplusplus
7733 }
7734 #endif
7735 int main(){nm_test_var='a';nm_test_func();return(0);}
7736 EOF
7737
7738   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7739   (eval $ac_compile) 2>&5
7740   ac_status=$?
7741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742   (exit $ac_status); }; then
7743     # Now try to grab the symbols.
7744     nlist=conftest.nm
7745     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7746   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7747   ac_status=$?
7748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749   (exit $ac_status); } && test -s "$nlist"; then
7750       # Try sorting and uniquifying the output.
7751       if sort "$nlist" | uniq > "$nlist"T; then
7752         mv -f "$nlist"T "$nlist"
7753       else
7754         rm -f "$nlist"T
7755       fi
7756
7757       # Make sure that we snagged all the symbols we need.
7758       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7759         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7760           cat <<EOF > conftest.$ac_ext
7761 #ifdef __cplusplus
7762 extern "C" {
7763 #endif
7764
7765 EOF
7766           # Now generate the symbol file.
7767           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7768
7769           cat <<EOF >> conftest.$ac_ext
7770 #if defined (__STDC__) && __STDC__
7771 # define lt_ptr_t void *
7772 #else
7773 # define lt_ptr_t char *
7774 # define const
7775 #endif
7776
7777 /* The mapping between symbol names and symbols. */
7778 const struct {
7779   const char *name;
7780   lt_ptr_t address;
7781 }
7782 lt_preloaded_symbols[] =
7783 {
7784 EOF
7785           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7786           cat <<\EOF >> conftest.$ac_ext
7787   {0, (lt_ptr_t) 0}
7788 };
7789
7790 #ifdef __cplusplus
7791 }
7792 #endif
7793 EOF
7794           # Now try linking the two files.
7795           mv conftest.$ac_objext conftstm.$ac_objext
7796           lt_save_LIBS="$LIBS"
7797           lt_save_CFLAGS="$CFLAGS"
7798           LIBS="conftstm.$ac_objext"
7799           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7800           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7801   (eval $ac_link) 2>&5
7802   ac_status=$?
7803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7805             pipe_works=yes
7806           fi
7807           LIBS="$lt_save_LIBS"
7808           CFLAGS="$lt_save_CFLAGS"
7809         else
7810           echo "cannot find nm_test_func in $nlist" >&5
7811         fi
7812       else
7813         echo "cannot find nm_test_var in $nlist" >&5
7814       fi
7815     else
7816       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7817     fi
7818   else
7819     echo "$progname: failed program was:" >&5
7820     cat conftest.$ac_ext >&5
7821   fi
7822   rm -f conftest* conftst*
7823
7824   # Do not use the global_symbol_pipe unless it works.
7825   if test "$pipe_works" = yes; then
7826     break
7827   else
7828     lt_cv_sys_global_symbol_pipe=
7829   fi
7830 done
7831
7832 fi
7833
7834 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7835   lt_cv_sys_global_symbol_to_cdecl=
7836 fi
7837 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7838   { echo "$as_me:$LINENO: result: failed" >&5
7839 echo "${ECHO_T}failed" >&6; }
7840 else
7841   { echo "$as_me:$LINENO: result: ok" >&5
7842 echo "${ECHO_T}ok" >&6; }
7843 fi
7844
7845 { echo "$as_me:$LINENO: checking for objdir" >&5
7846 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7847 if test "${lt_cv_objdir+set}" = set; then
7848   echo $ECHO_N "(cached) $ECHO_C" >&6
7849 else
7850   rm -f .libs 2>/dev/null
7851 mkdir .libs 2>/dev/null
7852 if test -d .libs; then
7853   lt_cv_objdir=.libs
7854 else
7855   # MS-DOS does not allow filenames that begin with a dot.
7856   lt_cv_objdir=_libs
7857 fi
7858 rmdir .libs 2>/dev/null
7859 fi
7860 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7861 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7862 objdir=$lt_cv_objdir
7863
7864
7865
7866
7867
7868 case $host_os in
7869 aix3*)
7870   # AIX sometimes has problems with the GCC collect2 program.  For some
7871   # reason, if we set the COLLECT_NAMES environment variable, the problems
7872   # vanish in a puff of smoke.
7873   if test "X${COLLECT_NAMES+set}" != Xset; then
7874     COLLECT_NAMES=
7875     export COLLECT_NAMES
7876   fi
7877   ;;
7878 esac
7879
7880 # Sed substitution that helps us do robust quoting.  It backslashifies
7881 # metacharacters that are still active within double-quoted strings.
7882 Xsed='sed -e 1s/^X//'
7883 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7884
7885 # Same as above, but do not quote variable references.
7886 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7887
7888 # Sed substitution to delay expansion of an escaped shell variable in a
7889 # double_quote_subst'ed string.
7890 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7891
7892 # Sed substitution to avoid accidental globbing in evaled expressions
7893 no_glob_subst='s/\*/\\\*/g'
7894
7895 # Constants:
7896 rm="rm -f"
7897
7898 # Global variables:
7899 default_ofile=libtool
7900 can_build_shared=yes
7901
7902 # All known linkers require a `.a' archive for static linking (except MSVC,
7903 # which needs '.lib').
7904 libext=a
7905 ltmain="$ac_aux_dir/ltmain.sh"
7906 ofile="$default_ofile"
7907 with_gnu_ld="$lt_cv_prog_gnu_ld"
7908
7909 if test -n "$ac_tool_prefix"; then
7910   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7911 set dummy ${ac_tool_prefix}ar; ac_word=$2
7912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7914 if test "${ac_cv_prog_AR+set}" = set; then
7915   echo $ECHO_N "(cached) $ECHO_C" >&6
7916 else
7917   if test -n "$AR"; then
7918   ac_cv_prog_AR="$AR" # Let the user override the test.
7919 else
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7921 for as_dir in $PATH
7922 do
7923   IFS=$as_save_IFS
7924   test -z "$as_dir" && as_dir=.
7925   for ac_exec_ext in '' $ac_executable_extensions; do
7926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7927     ac_cv_prog_AR="${ac_tool_prefix}ar"
7928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7929     break 2
7930   fi
7931 done
7932 done
7933 IFS=$as_save_IFS
7934
7935 fi
7936 fi
7937 AR=$ac_cv_prog_AR
7938 if test -n "$AR"; then
7939   { echo "$as_me:$LINENO: result: $AR" >&5
7940 echo "${ECHO_T}$AR" >&6; }
7941 else
7942   { echo "$as_me:$LINENO: result: no" >&5
7943 echo "${ECHO_T}no" >&6; }
7944 fi
7945
7946
7947 fi
7948 if test -z "$ac_cv_prog_AR"; then
7949   ac_ct_AR=$AR
7950   # Extract the first word of "ar", so it can be a program name with args.
7951 set dummy ar; ac_word=$2
7952 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7953 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7954 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7955   echo $ECHO_N "(cached) $ECHO_C" >&6
7956 else
7957   if test -n "$ac_ct_AR"; then
7958   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7959 else
7960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7961 for as_dir in $PATH
7962 do
7963   IFS=$as_save_IFS
7964   test -z "$as_dir" && as_dir=.
7965   for ac_exec_ext in '' $ac_executable_extensions; do
7966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967     ac_cv_prog_ac_ct_AR="ar"
7968     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7969     break 2
7970   fi
7971 done
7972 done
7973 IFS=$as_save_IFS
7974
7975 fi
7976 fi
7977 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7978 if test -n "$ac_ct_AR"; then
7979   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7980 echo "${ECHO_T}$ac_ct_AR" >&6; }
7981 else
7982   { echo "$as_me:$LINENO: result: no" >&5
7983 echo "${ECHO_T}no" >&6; }
7984 fi
7985
7986   if test "x$ac_ct_AR" = x; then
7987     AR="false"
7988   else
7989     case $cross_compiling:$ac_tool_warned in
7990 yes:)
7991 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7992 whose name does not start with the host triplet.  If you think this
7993 configuration is useful to you, please write to autoconf@gnu.org." >&5
7994 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7995 whose name does not start with the host triplet.  If you think this
7996 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7997 ac_tool_warned=yes ;;
7998 esac
7999     AR=$ac_ct_AR
8000   fi
8001 else
8002   AR="$ac_cv_prog_AR"
8003 fi
8004
8005 if test -n "$ac_tool_prefix"; then
8006   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_prog_RANLIB+set}" = set; then
8011   echo $ECHO_N "(cached) $ECHO_C" >&6
8012 else
8013   if test -n "$RANLIB"; then
8014   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8015 else
8016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8017 for as_dir in $PATH
8018 do
8019   IFS=$as_save_IFS
8020   test -z "$as_dir" && as_dir=.
8021   for ac_exec_ext in '' $ac_executable_extensions; do
8022   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8024     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8025     break 2
8026   fi
8027 done
8028 done
8029 IFS=$as_save_IFS
8030
8031 fi
8032 fi
8033 RANLIB=$ac_cv_prog_RANLIB
8034 if test -n "$RANLIB"; then
8035   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8036 echo "${ECHO_T}$RANLIB" >&6; }
8037 else
8038   { echo "$as_me:$LINENO: result: no" >&5
8039 echo "${ECHO_T}no" >&6; }
8040 fi
8041
8042
8043 fi
8044 if test -z "$ac_cv_prog_RANLIB"; then
8045   ac_ct_RANLIB=$RANLIB
8046   # Extract the first word of "ranlib", so it can be a program name with args.
8047 set dummy ranlib; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   if test -n "$ac_ct_RANLIB"; then
8054   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8055 else
8056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8057 for as_dir in $PATH
8058 do
8059   IFS=$as_save_IFS
8060   test -z "$as_dir" && as_dir=.
8061   for ac_exec_ext in '' $ac_executable_extensions; do
8062   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063     ac_cv_prog_ac_ct_RANLIB="ranlib"
8064     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8065     break 2
8066   fi
8067 done
8068 done
8069 IFS=$as_save_IFS
8070
8071 fi
8072 fi
8073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8074 if test -n "$ac_ct_RANLIB"; then
8075   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8077 else
8078   { echo "$as_me:$LINENO: result: no" >&5
8079 echo "${ECHO_T}no" >&6; }
8080 fi
8081
8082   if test "x$ac_ct_RANLIB" = x; then
8083     RANLIB=":"
8084   else
8085     case $cross_compiling:$ac_tool_warned in
8086 yes:)
8087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8088 whose name does not start with the host triplet.  If you think this
8089 configuration is useful to you, please write to autoconf@gnu.org." >&5
8090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8091 whose name does not start with the host triplet.  If you think this
8092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8093 ac_tool_warned=yes ;;
8094 esac
8095     RANLIB=$ac_ct_RANLIB
8096   fi
8097 else
8098   RANLIB="$ac_cv_prog_RANLIB"
8099 fi
8100
8101 if test -n "$ac_tool_prefix"; then
8102   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8103 set dummy ${ac_tool_prefix}strip; ac_word=$2
8104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8106 if test "${ac_cv_prog_STRIP+set}" = set; then
8107   echo $ECHO_N "(cached) $ECHO_C" >&6
8108 else
8109   if test -n "$STRIP"; then
8110   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8111 else
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8114 do
8115   IFS=$as_save_IFS
8116   test -z "$as_dir" && as_dir=.
8117   for ac_exec_ext in '' $ac_executable_extensions; do
8118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8119     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8121     break 2
8122   fi
8123 done
8124 done
8125 IFS=$as_save_IFS
8126
8127 fi
8128 fi
8129 STRIP=$ac_cv_prog_STRIP
8130 if test -n "$STRIP"; then
8131   { echo "$as_me:$LINENO: result: $STRIP" >&5
8132 echo "${ECHO_T}$STRIP" >&6; }
8133 else
8134   { echo "$as_me:$LINENO: result: no" >&5
8135 echo "${ECHO_T}no" >&6; }
8136 fi
8137
8138
8139 fi
8140 if test -z "$ac_cv_prog_STRIP"; then
8141   ac_ct_STRIP=$STRIP
8142   # Extract the first word of "strip", so it can be a program name with args.
8143 set dummy strip; ac_word=$2
8144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8146 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8147   echo $ECHO_N "(cached) $ECHO_C" >&6
8148 else
8149   if test -n "$ac_ct_STRIP"; then
8150   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8151 else
8152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 for as_dir in $PATH
8154 do
8155   IFS=$as_save_IFS
8156   test -z "$as_dir" && as_dir=.
8157   for ac_exec_ext in '' $ac_executable_extensions; do
8158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8159     ac_cv_prog_ac_ct_STRIP="strip"
8160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8161     break 2
8162   fi
8163 done
8164 done
8165 IFS=$as_save_IFS
8166
8167 fi
8168 fi
8169 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8170 if test -n "$ac_ct_STRIP"; then
8171   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8172 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8173 else
8174   { echo "$as_me:$LINENO: result: no" >&5
8175 echo "${ECHO_T}no" >&6; }
8176 fi
8177
8178   if test "x$ac_ct_STRIP" = x; then
8179     STRIP=":"
8180   else
8181     case $cross_compiling:$ac_tool_warned in
8182 yes:)
8183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8184 whose name does not start with the host triplet.  If you think this
8185 configuration is useful to you, please write to autoconf@gnu.org." >&5
8186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8187 whose name does not start with the host triplet.  If you think this
8188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191     STRIP=$ac_ct_STRIP
8192   fi
8193 else
8194   STRIP="$ac_cv_prog_STRIP"
8195 fi
8196
8197
8198 old_CC="$CC"
8199 old_CFLAGS="$CFLAGS"
8200
8201 # Set sane defaults for various variables
8202 test -z "$AR" && AR=ar
8203 test -z "$AR_FLAGS" && AR_FLAGS=cru
8204 test -z "$AS" && AS=as
8205 test -z "$CC" && CC=cc
8206 test -z "$LTCC" && LTCC=$CC
8207 test -z "$DLLTOOL" && DLLTOOL=dlltool
8208 test -z "$LD" && LD=ld
8209 test -z "$LN_S" && LN_S="ln -s"
8210 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8211 test -z "$NM" && NM=nm
8212 test -z "$SED" && SED=sed
8213 test -z "$OBJDUMP" && OBJDUMP=objdump
8214 test -z "$RANLIB" && RANLIB=:
8215 test -z "$STRIP" && STRIP=:
8216 test -z "$ac_objext" && ac_objext=o
8217
8218 # Determine commands to create old-style static archives.
8219 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8220 old_postinstall_cmds='chmod 644 $oldlib'
8221 old_postuninstall_cmds=
8222
8223 if test -n "$RANLIB"; then
8224   case $host_os in
8225   openbsd*)
8226     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8227     ;;
8228   *)
8229     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8230     ;;
8231   esac
8232   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8233 fi
8234
8235 for cc_temp in $compiler""; do
8236   case $cc_temp in
8237     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8238     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8239     \-*) ;;
8240     *) break;;
8241   esac
8242 done
8243 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8244
8245
8246 # Only perform the check for file, if the check method requires it
8247 case $deplibs_check_method in
8248 file_magic*)
8249   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8250     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8251 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8252 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   case $MAGIC_CMD in
8256 [\\/*] |  ?:[\\/]*)
8257   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8258   ;;
8259 *)
8260   lt_save_MAGIC_CMD="$MAGIC_CMD"
8261   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8262   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8263   for ac_dir in $ac_dummy; do
8264     IFS="$lt_save_ifs"
8265     test -z "$ac_dir" && ac_dir=.
8266     if test -f $ac_dir/${ac_tool_prefix}file; then
8267       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8268       if test -n "$file_magic_test_file"; then
8269         case $deplibs_check_method in
8270         "file_magic "*)
8271           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8272           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8273           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8274             $EGREP "$file_magic_regex" > /dev/null; then
8275             :
8276           else
8277             cat <<EOF 1>&2
8278
8279 *** Warning: the command libtool uses to detect shared libraries,
8280 *** $file_magic_cmd, produces output that libtool cannot recognize.
8281 *** The result is that libtool may fail to recognize shared libraries
8282 *** as such.  This will affect the creation of libtool libraries that
8283 *** depend on shared libraries, but programs linked with such libtool
8284 *** libraries will work regardless of this problem.  Nevertheless, you
8285 *** may want to report the problem to your system manager and/or to
8286 *** bug-libtool@gnu.org
8287
8288 EOF
8289           fi ;;
8290         esac
8291       fi
8292       break
8293     fi
8294   done
8295   IFS="$lt_save_ifs"
8296   MAGIC_CMD="$lt_save_MAGIC_CMD"
8297   ;;
8298 esac
8299 fi
8300
8301 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8302 if test -n "$MAGIC_CMD"; then
8303   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8304 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8305 else
8306   { echo "$as_me:$LINENO: result: no" >&5
8307 echo "${ECHO_T}no" >&6; }
8308 fi
8309
8310 if test -z "$lt_cv_path_MAGIC_CMD"; then
8311   if test -n "$ac_tool_prefix"; then
8312     { echo "$as_me:$LINENO: checking for file" >&5
8313 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8314 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8315   echo $ECHO_N "(cached) $ECHO_C" >&6
8316 else
8317   case $MAGIC_CMD in
8318 [\\/*] |  ?:[\\/]*)
8319   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8320   ;;
8321 *)
8322   lt_save_MAGIC_CMD="$MAGIC_CMD"
8323   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8324   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8325   for ac_dir in $ac_dummy; do
8326     IFS="$lt_save_ifs"
8327     test -z "$ac_dir" && ac_dir=.
8328     if test -f $ac_dir/file; then
8329       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8330       if test -n "$file_magic_test_file"; then
8331         case $deplibs_check_method in
8332         "file_magic "*)
8333           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8334           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8335           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8336             $EGREP "$file_magic_regex" > /dev/null; then
8337             :
8338           else
8339             cat <<EOF 1>&2
8340
8341 *** Warning: the command libtool uses to detect shared libraries,
8342 *** $file_magic_cmd, produces output that libtool cannot recognize.
8343 *** The result is that libtool may fail to recognize shared libraries
8344 *** as such.  This will affect the creation of libtool libraries that
8345 *** depend on shared libraries, but programs linked with such libtool
8346 *** libraries will work regardless of this problem.  Nevertheless, you
8347 *** may want to report the problem to your system manager and/or to
8348 *** bug-libtool@gnu.org
8349
8350 EOF
8351           fi ;;
8352         esac
8353       fi
8354       break
8355     fi
8356   done
8357   IFS="$lt_save_ifs"
8358   MAGIC_CMD="$lt_save_MAGIC_CMD"
8359   ;;
8360 esac
8361 fi
8362
8363 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8364 if test -n "$MAGIC_CMD"; then
8365   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8366 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8367 else
8368   { echo "$as_me:$LINENO: result: no" >&5
8369 echo "${ECHO_T}no" >&6; }
8370 fi
8371
8372   else
8373     MAGIC_CMD=:
8374   fi
8375 fi
8376
8377   fi
8378   ;;
8379 esac
8380
8381 enable_dlopen=yes
8382 enable_win32_dll=yes
8383
8384 # Check whether --enable-libtool-lock was given.
8385 if test "${enable_libtool_lock+set}" = set; then
8386   enableval=$enable_libtool_lock;
8387 fi
8388
8389 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8390
8391
8392 # Check whether --with-pic was given.
8393 if test "${with_pic+set}" = set; then
8394   withval=$with_pic; pic_mode="$withval"
8395 else
8396   pic_mode=default
8397 fi
8398
8399 test -z "$pic_mode" && pic_mode=default
8400
8401 # Use C for the default configuration in the libtool script
8402 tagname=
8403 lt_save_CC="$CC"
8404 ac_ext=c
8405 ac_cpp='$CPP $CPPFLAGS'
8406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8409
8410
8411 # Source file extension for C test sources.
8412 ac_ext=c
8413
8414 # Object file extension for compiled C test sources.
8415 objext=o
8416 objext=$objext
8417
8418 # Code to be used in simple compile tests
8419 lt_simple_compile_test_code="int some_variable = 0;\n"
8420
8421 # Code to be used in simple link tests
8422 lt_simple_link_test_code='int main(){return(0);}\n'
8423
8424
8425 # If no C compiler was specified, use CC.
8426 LTCC=${LTCC-"$CC"}
8427
8428 # Allow CC to be a program name with arguments.
8429 compiler=$CC
8430
8431
8432 # save warnings/boilerplate of simple test code
8433 ac_outfile=conftest.$ac_objext
8434 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8435 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8436 _lt_compiler_boilerplate=`cat conftest.err`
8437 $rm conftest*
8438
8439 ac_outfile=conftest.$ac_objext
8440 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8441 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8442 _lt_linker_boilerplate=`cat conftest.err`
8443 $rm conftest*
8444
8445
8446 #
8447 # Check for any special shared library compilation flags.
8448 #
8449 lt_prog_cc_shlib=
8450 if test "$GCC" = no; then
8451   case $host_os in
8452   sco3.2v5*)
8453     lt_prog_cc_shlib='-belf'
8454     ;;
8455   esac
8456 fi
8457 if test -n "$lt_prog_cc_shlib"; then
8458   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8459 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8460   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8461   else
8462     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8463 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8464     lt_cv_prog_cc_can_build_shared=no
8465   fi
8466 fi
8467
8468
8469 #
8470 # Check to make sure the static flag actually works.
8471 #
8472 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8473 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8474 if test "${lt_prog_compiler_static_works+set}" = set; then
8475   echo $ECHO_N "(cached) $ECHO_C" >&6
8476 else
8477   lt_prog_compiler_static_works=no
8478    save_LDFLAGS="$LDFLAGS"
8479    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8480    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8481    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8482      # The linker can only warn and ignore the option if not recognized
8483      # So say no if there are warnings
8484      if test -s conftest.err; then
8485        # Append any errors to the config.log.
8486        cat conftest.err 1>&5
8487        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8488        $SED '/^$/d' conftest.err >conftest.er2
8489        if diff conftest.exp conftest.er2 >/dev/null; then
8490          lt_prog_compiler_static_works=yes
8491        fi
8492      else
8493        lt_prog_compiler_static_works=yes
8494      fi
8495    fi
8496    $rm conftest*
8497    LDFLAGS="$save_LDFLAGS"
8498
8499 fi
8500 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8501 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8502
8503 if test x"$lt_prog_compiler_static_works" = xyes; then
8504     :
8505 else
8506     lt_prog_compiler_static=
8507 fi
8508
8509
8510
8511
8512 lt_prog_compiler_no_builtin_flag=
8513
8514 if test "$GCC" = yes; then
8515   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8516
8517
8518 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8519 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8520 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8521   echo $ECHO_N "(cached) $ECHO_C" >&6
8522 else
8523   lt_cv_prog_compiler_rtti_exceptions=no
8524   ac_outfile=conftest.$ac_objext
8525    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8526    lt_compiler_flag="-fno-rtti -fno-exceptions"
8527    # Insert the option either (1) after the last *FLAGS variable, or
8528    # (2) before a word containing "conftest.", or (3) at the end.
8529    # Note that $ac_compile itself does not contain backslashes and begins
8530    # with a dollar sign (not a hyphen), so the echo should work correctly.
8531    # The option is referenced via a variable to avoid confusing sed.
8532    lt_compile=`echo "$ac_compile" | $SED \
8533    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8534    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8535    -e 's:$: $lt_compiler_flag:'`
8536    (eval echo "\"\$as_me:8536: $lt_compile\"" >&5)
8537    (eval "$lt_compile" 2>conftest.err)
8538    ac_status=$?
8539    cat conftest.err >&5
8540    echo "$as_me:8540: \$? = $ac_status" >&5
8541    if (exit $ac_status) && test -s "$ac_outfile"; then
8542      # The compiler can only warn and ignore the option if not recognized
8543      # So say no if there are warnings other than the usual output.
8544      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8545      $SED '/^$/d' conftest.err >conftest.er2
8546      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8547        lt_cv_prog_compiler_rtti_exceptions=yes
8548      fi
8549    fi
8550    $rm conftest*
8551
8552 fi
8553 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8554 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8555
8556 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8557     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8558 else
8559     :
8560 fi
8561
8562 fi
8563
8564 lt_prog_compiler_wl=
8565 lt_prog_compiler_pic=
8566 lt_prog_compiler_static=
8567
8568 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8569 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8570
8571   if test "$GCC" = yes; then
8572     lt_prog_compiler_wl='-Wl,'
8573     lt_prog_compiler_static='-static'
8574
8575     case $host_os in
8576       aix*)
8577       # All AIX code is PIC.
8578       if test "$host_cpu" = ia64; then
8579         # AIX 5 now supports IA64 processor
8580         lt_prog_compiler_static='-Bstatic'
8581       fi
8582       ;;
8583
8584     amigaos*)
8585       # FIXME: we need at least 68020 code to build shared libraries, but
8586       # adding the `-m68020' flag to GCC prevents building anything better,
8587       # like `-m68040'.
8588       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8589       ;;
8590
8591     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8592       # PIC is the default for these OSes.
8593       ;;
8594
8595     mingw* | pw32* | os2*)
8596       # This hack is so that the source file can tell whether it is being
8597       # built for inclusion in a dll (and should export symbols for example).
8598       lt_prog_compiler_pic='-DDLL_EXPORT'
8599       ;;
8600
8601     darwin* | rhapsody*)
8602       # PIC is the default on this platform
8603       # Common symbols not allowed in MH_DYLIB files
8604       lt_prog_compiler_pic='-fno-common'
8605       ;;
8606
8607     msdosdjgpp*)
8608       # Just because we use GCC doesn't mean we suddenly get shared libraries
8609       # on systems that don't support them.
8610       lt_prog_compiler_can_build_shared=no
8611       enable_shared=no
8612       ;;
8613
8614     sysv4*MP*)
8615       if test -d /usr/nec; then
8616         lt_prog_compiler_pic=-Kconform_pic
8617       fi
8618       ;;
8619
8620     hpux*)
8621       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8622       # not for PA HP-UX.
8623       case $host_cpu in
8624       hppa*64*|ia64*)
8625         # +Z the default
8626         ;;
8627       *)
8628         lt_prog_compiler_pic='-fPIC'
8629         ;;
8630       esac
8631       ;;
8632
8633     *)
8634       lt_prog_compiler_pic='-fPIC'
8635       ;;
8636     esac
8637   else
8638     # PORTME Check for flag to pass linker flags through the system compiler.
8639     case $host_os in
8640     aix*)
8641       lt_prog_compiler_wl='-Wl,'
8642       if test "$host_cpu" = ia64; then
8643         # AIX 5 now supports IA64 processor
8644         lt_prog_compiler_static='-Bstatic'
8645       else
8646         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8647       fi
8648       ;;
8649       darwin*)
8650         # PIC is the default on this platform
8651         # Common symbols not allowed in MH_DYLIB files
8652        case $cc_basename in
8653          xlc*)
8654          lt_prog_compiler_pic='-qnocommon'
8655          lt_prog_compiler_wl='-Wl,'
8656          ;;
8657        esac
8658        ;;
8659
8660     mingw* | pw32* | os2*)
8661       # This hack is so that the source file can tell whether it is being
8662       # built for inclusion in a dll (and should export symbols for example).
8663       lt_prog_compiler_pic='-DDLL_EXPORT'
8664       ;;
8665
8666     hpux9* | hpux10* | hpux11*)
8667       lt_prog_compiler_wl='-Wl,'
8668       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8669       # not for PA HP-UX.
8670       case $host_cpu in
8671       hppa*64*|ia64*)
8672         # +Z the default
8673         ;;
8674       *)
8675         lt_prog_compiler_pic='+Z'
8676         ;;
8677       esac
8678       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8679       lt_prog_compiler_static='${wl}-a ${wl}archive'
8680       ;;
8681
8682     irix5* | irix6* | nonstopux*)
8683       lt_prog_compiler_wl='-Wl,'
8684       # PIC (with -KPIC) is the default.
8685       lt_prog_compiler_static='-non_shared'
8686       ;;
8687
8688     newsos6)
8689       lt_prog_compiler_pic='-KPIC'
8690       lt_prog_compiler_static='-Bstatic'
8691       ;;
8692
8693     linux*)
8694       case $cc_basename in
8695       icc* | ecc*)
8696         lt_prog_compiler_wl='-Wl,'
8697         lt_prog_compiler_pic='-KPIC'
8698         lt_prog_compiler_static='-static'
8699         ;;
8700       pgcc* | pgf77* | pgf90* | pgf95*)
8701         # Portland Group compilers (*not* the Pentium gcc compiler,
8702         # which looks to be a dead project)
8703         lt_prog_compiler_wl='-Wl,'
8704         lt_prog_compiler_pic='-fpic'
8705         lt_prog_compiler_static='-Bstatic'
8706         ;;
8707       ccc*)
8708         lt_prog_compiler_wl='-Wl,'
8709         # All Alpha code is PIC.
8710         lt_prog_compiler_static='-non_shared'
8711         ;;
8712       esac
8713       ;;
8714
8715     osf3* | osf4* | osf5*)
8716       lt_prog_compiler_wl='-Wl,'
8717       # All OSF/1 code is PIC.
8718       lt_prog_compiler_static='-non_shared'
8719       ;;
8720
8721     sco3.2v5*)
8722       lt_prog_compiler_pic='-Kpic'
8723       lt_prog_compiler_static='-dn'
8724       ;;
8725
8726     solaris*)
8727       lt_prog_compiler_pic='-KPIC'
8728       lt_prog_compiler_static='-Bstatic'
8729       case $cc_basename in
8730       f77* | f90* | f95*)
8731         lt_prog_compiler_wl='-Qoption ld ';;
8732       *)
8733         lt_prog_compiler_wl='-Wl,';;
8734       esac
8735       ;;
8736
8737     sunos4*)
8738       lt_prog_compiler_wl='-Qoption ld '
8739       lt_prog_compiler_pic='-PIC'
8740       lt_prog_compiler_static='-Bstatic'
8741       ;;
8742
8743     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8744       lt_prog_compiler_wl='-Wl,'
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       ;;
8748
8749     sysv4*MP*)
8750       if test -d /usr/nec ;then
8751         lt_prog_compiler_pic='-Kconform_pic'
8752         lt_prog_compiler_static='-Bstatic'
8753       fi
8754       ;;
8755
8756     unicos*)
8757       lt_prog_compiler_wl='-Wl,'
8758       lt_prog_compiler_can_build_shared=no
8759       ;;
8760
8761     uts4*)
8762       lt_prog_compiler_pic='-pic'
8763       lt_prog_compiler_static='-Bstatic'
8764       ;;
8765
8766     *)
8767       lt_prog_compiler_can_build_shared=no
8768       ;;
8769     esac
8770   fi
8771
8772 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8773 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8774
8775 #
8776 # Check to make sure the PIC flag actually works.
8777 #
8778 if test -n "$lt_prog_compiler_pic"; then
8779
8780 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8781 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8782 if test "${lt_prog_compiler_pic_works+set}" = set; then
8783   echo $ECHO_N "(cached) $ECHO_C" >&6
8784 else
8785   lt_prog_compiler_pic_works=no
8786   ac_outfile=conftest.$ac_objext
8787    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8788    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8789    # Insert the option either (1) after the last *FLAGS variable, or
8790    # (2) before a word containing "conftest.", or (3) at the end.
8791    # Note that $ac_compile itself does not contain backslashes and begins
8792    # with a dollar sign (not a hyphen), so the echo should work correctly.
8793    # The option is referenced via a variable to avoid confusing sed.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:8798: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>conftest.err)
8800    ac_status=$?
8801    cat conftest.err >&5
8802    echo "$as_me:8802: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s "$ac_outfile"; then
8804      # The compiler can only warn and ignore the option if not recognized
8805      # So say no if there are warnings other than the usual output.
8806      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8807      $SED '/^$/d' conftest.err >conftest.er2
8808      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8809        lt_prog_compiler_pic_works=yes
8810      fi
8811    fi
8812    $rm conftest*
8813
8814 fi
8815 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8816 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8817
8818 if test x"$lt_prog_compiler_pic_works" = xyes; then
8819     case $lt_prog_compiler_pic in
8820      "" | " "*) ;;
8821      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8822      esac
8823 else
8824     lt_prog_compiler_pic=
8825      lt_prog_compiler_can_build_shared=no
8826 fi
8827
8828 fi
8829 case $host_os in
8830   # For platforms which do not support PIC, -DPIC is meaningless:
8831   *djgpp*)
8832     lt_prog_compiler_pic=
8833     ;;
8834   *)
8835     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8836     ;;
8837 esac
8838
8839 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8840 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8841 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8842   echo $ECHO_N "(cached) $ECHO_C" >&6
8843 else
8844   lt_cv_prog_compiler_c_o=no
8845    $rm -r conftest 2>/dev/null
8846    mkdir conftest
8847    cd conftest
8848    mkdir out
8849    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8850
8851    lt_compiler_flag="-o out/conftest2.$ac_objext"
8852    # Insert the option either (1) after the last *FLAGS variable, or
8853    # (2) before a word containing "conftest.", or (3) at the end.
8854    # Note that $ac_compile itself does not contain backslashes and begins
8855    # with a dollar sign (not a hyphen), so the echo should work correctly.
8856    lt_compile=`echo "$ac_compile" | $SED \
8857    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8858    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8859    -e 's:$: $lt_compiler_flag:'`
8860    (eval echo "\"\$as_me:8860: $lt_compile\"" >&5)
8861    (eval "$lt_compile" 2>out/conftest.err)
8862    ac_status=$?
8863    cat out/conftest.err >&5
8864    echo "$as_me:8864: \$? = $ac_status" >&5
8865    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8866    then
8867      # The compiler can only warn and ignore the option if not recognized
8868      # So say no if there are warnings
8869      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8870      $SED '/^$/d' out/conftest.err >out/conftest.er2
8871      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8872        lt_cv_prog_compiler_c_o=yes
8873      fi
8874    fi
8875    chmod u+w . 2>&5
8876    $rm conftest*
8877    # SGI C++ compiler will create directory out/ii_files/ for
8878    # template instantiation
8879    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8880    $rm out/* && rmdir out
8881    cd ..
8882    rmdir conftest
8883    $rm conftest*
8884
8885 fi
8886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8887 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8888
8889
8890 hard_links="nottested"
8891 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8892   # do not overwrite the value of need_locks provided by the user
8893   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8894 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8895   hard_links=yes
8896   $rm conftest*
8897   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8898   touch conftest.a
8899   ln conftest.a conftest.b 2>&5 || hard_links=no
8900   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901   { echo "$as_me:$LINENO: result: $hard_links" >&5
8902 echo "${ECHO_T}$hard_links" >&6; }
8903   if test "$hard_links" = no; then
8904     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8905 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8906     need_locks=warn
8907   fi
8908 else
8909   need_locks=no
8910 fi
8911
8912 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8913 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8914
8915   runpath_var=
8916   allow_undefined_flag=
8917   enable_shared_with_static_runtimes=no
8918   archive_cmds=
8919   archive_expsym_cmds=
8920   old_archive_From_new_cmds=
8921   old_archive_from_expsyms_cmds=
8922   export_dynamic_flag_spec=
8923   whole_archive_flag_spec=
8924   thread_safe_flag_spec=
8925   hardcode_libdir_flag_spec=
8926   hardcode_libdir_flag_spec_ld=
8927   hardcode_libdir_separator=
8928   hardcode_direct=no
8929   hardcode_minus_L=no
8930   hardcode_shlibpath_var=unsupported
8931   link_all_deplibs=unknown
8932   hardcode_automatic=no
8933   module_cmds=
8934   module_expsym_cmds=
8935   always_export_symbols=no
8936   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8937   # include_expsyms should be a list of space-separated symbols to be *always*
8938   # included in the symbol list
8939   include_expsyms=
8940   # exclude_expsyms can be an extended regexp of symbols to exclude
8941   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8942   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8943   # as well as any symbol that contains `d'.
8944   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8945   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8946   # platforms (ab)use it in PIC code, but their linkers get confused if
8947   # the symbol is explicitly referenced.  Since portable code cannot
8948   # rely on this symbol name, it's probably fine to never include it in
8949   # preloaded symbol tables.
8950   extract_expsyms_cmds=
8951   # Just being paranoid about ensuring that cc_basename is set.
8952   for cc_temp in $compiler""; do
8953   case $cc_temp in
8954     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8955     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8956     \-*) ;;
8957     *) break;;
8958   esac
8959 done
8960 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8961
8962   case $host_os in
8963   cygwin* | mingw* | pw32*)
8964     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8965     # When not using gcc, we currently assume that we are using
8966     # Microsoft Visual C++.
8967     if test "$GCC" != yes; then
8968       with_gnu_ld=no
8969     fi
8970     ;;
8971   openbsd*)
8972     with_gnu_ld=no
8973     ;;
8974   esac
8975
8976   ld_shlibs=yes
8977   if test "$with_gnu_ld" = yes; then
8978     # If archive_cmds runs LD, not CC, wlarc should be empty
8979     wlarc='${wl}'
8980
8981     # Set some defaults for GNU ld with shared library support. These
8982     # are reset later if shared libraries are not supported. Putting them
8983     # here allows them to be overridden if necessary.
8984     runpath_var=LD_RUN_PATH
8985     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8986     export_dynamic_flag_spec='${wl}--export-dynamic'
8987     # ancient GNU ld didn't support --whole-archive et. al.
8988     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8989         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8990       else
8991         whole_archive_flag_spec=
8992     fi
8993     supports_anon_versioning=no
8994     case `$LD -v 2>/dev/null` in
8995       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8996       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8997       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8998       *\ 2.11.*) ;; # other 2.11 versions
8999       *) supports_anon_versioning=yes ;;
9000     esac
9001
9002     # See if GNU ld supports shared libraries.
9003     case $host_os in
9004     aix3* | aix4* | aix5*)
9005       # On AIX/PPC, the GNU linker is very broken
9006       if test "$host_cpu" != ia64; then
9007         ld_shlibs=no
9008         cat <<EOF 1>&2
9009
9010 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9011 *** to be unable to reliably create shared libraries on AIX.
9012 *** Therefore, libtool is disabling shared libraries support.  If you
9013 *** really care for shared libraries, you may want to modify your PATH
9014 *** so that a non-GNU linker is found, and then restart.
9015
9016 EOF
9017       fi
9018       ;;
9019
9020     amigaos*)
9021       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)'
9022       hardcode_libdir_flag_spec='-L$libdir'
9023       hardcode_minus_L=yes
9024
9025       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9026       # that the semantics of dynamic libraries on AmigaOS, at least up
9027       # to version 4, is to share data among multiple programs linked
9028       # with the same dynamic library.  Since this doesn't match the
9029       # behavior of shared libraries on other platforms, we can't use
9030       # them.
9031       ld_shlibs=no
9032       ;;
9033
9034     beos*)
9035       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9036         allow_undefined_flag=unsupported
9037         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9038         # support --undefined.  This deserves some investigation.  FIXME
9039         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9040       else
9041         ld_shlibs=no
9042       fi
9043       ;;
9044
9045     cygwin* | mingw* | pw32*)
9046       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9047       # as there is no search path for DLLs.
9048       hardcode_libdir_flag_spec='-L$libdir'
9049       allow_undefined_flag=unsupported
9050       always_export_symbols=no
9051       enable_shared_with_static_runtimes=yes
9052       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9053
9054       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9055         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9056         # If the export-symbols file already is a .def file (1st line
9057         # is EXPORTS), use it as is; otherwise, prepend...
9058         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9059           cp $export_symbols $output_objdir/$soname.def;
9060         else
9061           echo EXPORTS > $output_objdir/$soname.def;
9062           cat $export_symbols >> $output_objdir/$soname.def;
9063         fi~
9064         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9065       else
9066         ld_shlibs=no
9067       fi
9068       ;;
9069
9070     linux*)
9071       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9072         tmp_addflag=
9073         case $cc_basename,$host_cpu in
9074         pgcc*)                          # Portland Group C compiler
9075           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'
9076           tmp_addflag=' $pic_flag'
9077           ;;
9078         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9079           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'
9080           tmp_addflag=' $pic_flag -Mnomain' ;;
9081         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9082           tmp_addflag=' -i_dynamic' ;;
9083         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9084           tmp_addflag=' -i_dynamic -nofor_main' ;;
9085         ifc* | ifort*)                  # Intel Fortran compiler
9086           tmp_addflag=' -nofor_main' ;;
9087         esac
9088         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9089
9090         if test $supports_anon_versioning = yes; then
9091           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9092   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9093   $echo "local: *; };" >> $output_objdir/$libname.ver~
9094           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9095         fi
9096       else
9097         ld_shlibs=no
9098       fi
9099       ;;
9100
9101     netbsd*)
9102       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9103         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9104         wlarc=
9105       else
9106         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9107         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9108       fi
9109       ;;
9110
9111     solaris* | sysv5*)
9112       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9113         ld_shlibs=no
9114         cat <<EOF 1>&2
9115
9116 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9117 *** create shared libraries on Solaris systems.  Therefore, libtool
9118 *** is disabling shared libraries support.  We urge you to upgrade GNU
9119 *** binutils to release 2.9.1 or newer.  Another option is to modify
9120 *** your PATH or compiler configuration so that the native linker is
9121 *** used, and then restart.
9122
9123 EOF
9124       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9126         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9127       else
9128         ld_shlibs=no
9129       fi
9130       ;;
9131
9132     sunos4*)
9133       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9134       wlarc=
9135       hardcode_direct=yes
9136       hardcode_shlibpath_var=no
9137       ;;
9138
9139     *)
9140       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9141         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9142         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9143       else
9144         ld_shlibs=no
9145       fi
9146       ;;
9147     esac
9148
9149     if test "$ld_shlibs" = no; then
9150       runpath_var=
9151       hardcode_libdir_flag_spec=
9152       export_dynamic_flag_spec=
9153       whole_archive_flag_spec=
9154     fi
9155   else
9156     # PORTME fill in a description of your system's linker (not GNU ld)
9157     case $host_os in
9158     aix3*)
9159       allow_undefined_flag=unsupported
9160       always_export_symbols=yes
9161       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'
9162       # Note: this linker hardcodes the directories in LIBPATH if there
9163       # are no directories specified by -L.
9164       hardcode_minus_L=yes
9165       if test "$GCC" = yes && test -z "$link_static_flag"; then
9166         # Neither direct hardcoding nor static linking is supported with a
9167         # broken collect2.
9168         hardcode_direct=unsupported
9169       fi
9170       ;;
9171
9172     aix4* | aix5*)
9173       if test "$host_cpu" = ia64; then
9174         # On IA64, the linker does run time linking by default, so we don't
9175         # have to do anything special.
9176         aix_use_runtimelinking=no
9177         exp_sym_flag='-Bexport'
9178         no_entry_flag=""
9179       else
9180         # If we're using GNU nm, then we don't want the "-C" option.
9181         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9182         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9183           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'
9184         else
9185           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'
9186         fi
9187         aix_use_runtimelinking=no
9188
9189         # Test if we are trying to use run time linking or normal
9190         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9191         # need to do runtime linking.
9192         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9193           for ld_flag in $LDFLAGS; do
9194           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9195             aix_use_runtimelinking=yes
9196             break
9197           fi
9198           done
9199         esac
9200
9201         exp_sym_flag='-bexport'
9202         no_entry_flag='-bnoentry'
9203       fi
9204
9205       # When large executables or shared objects are built, AIX ld can
9206       # have problems creating the table of contents.  If linking a library
9207       # or program results in "error TOC overflow" add -mminimal-toc to
9208       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9209       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9210
9211       archive_cmds=''
9212       hardcode_direct=yes
9213       hardcode_libdir_separator=':'
9214       link_all_deplibs=yes
9215
9216       if test "$GCC" = yes; then
9217         case $host_os in aix4.[012]|aix4.[012].*)
9218         # We only want to do this on AIX 4.2 and lower, the check
9219         # below for broken collect2 doesn't work under 4.3+
9220           collect2name=`${CC} -print-prog-name=collect2`
9221           if test -f "$collect2name" && \
9222            strings "$collect2name" | grep resolve_lib_name >/dev/null
9223           then
9224           # We have reworked collect2
9225           hardcode_direct=yes
9226           else
9227           # We have old collect2
9228           hardcode_direct=unsupported
9229           # It fails to find uninstalled libraries when the uninstalled
9230           # path is not listed in the libpath.  Setting hardcode_minus_L
9231           # to unsupported forces relinking
9232           hardcode_minus_L=yes
9233           hardcode_libdir_flag_spec='-L$libdir'
9234           hardcode_libdir_separator=
9235           fi
9236         esac
9237         shared_flag='-shared'
9238         if test "$aix_use_runtimelinking" = yes; then
9239           shared_flag="$shared_flag "'${wl}-G'
9240         fi
9241       else
9242         # not using gcc
9243         if test "$host_cpu" = ia64; then
9244         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9245         # chokes on -Wl,-G. The following line is correct:
9246           shared_flag='-G'
9247         else
9248         if test "$aix_use_runtimelinking" = yes; then
9249             shared_flag='${wl}-G'
9250           else
9251             shared_flag='${wl}-bM:SRE'
9252         fi
9253         fi
9254       fi
9255
9256       # It seems that -bexpall does not export symbols beginning with
9257       # underscore (_), so it is better to generate a list of symbols to export.
9258       always_export_symbols=yes
9259       if test "$aix_use_runtimelinking" = yes; then
9260         # Warning - without using the other runtime loading flags (-brtl),
9261         # -berok will link without error, but may produce a broken library.
9262         allow_undefined_flag='-berok'
9263        # Determine the default libpath from the value encoded in an empty executable.
9264        cat >conftest.$ac_ext <<_ACEOF
9265 /* confdefs.h.  */
9266 _ACEOF
9267 cat confdefs.h >>conftest.$ac_ext
9268 cat >>conftest.$ac_ext <<_ACEOF
9269 /* end confdefs.h.  */
9270
9271 int
9272 main ()
9273 {
9274
9275   ;
9276   return 0;
9277 }
9278 _ACEOF
9279 rm -f conftest.$ac_objext conftest$ac_exeext
9280 if { (ac_try="$ac_link"
9281 case "(($ac_try" in
9282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283   *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286   (eval "$ac_link") 2>conftest.er1
9287   ac_status=$?
9288   grep -v '^ *+' conftest.er1 >conftest.err
9289   rm -f conftest.er1
9290   cat conftest.err >&5
9291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9292   (exit $ac_status); } && {
9293          test -z "$ac_c_werror_flag" ||
9294          test ! -s conftest.err
9295        } && test -s conftest$ac_exeext &&
9296        $as_test_x conftest$ac_exeext; then
9297
9298 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9299 }'`
9300 # Check for a 64-bit object if we didn't find anything.
9301 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; }
9302 }'`; fi
9303 else
9304   echo "$as_me: failed program was:" >&5
9305 sed 's/^/| /' conftest.$ac_ext >&5
9306
9307
9308 fi
9309
9310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9311       conftest$ac_exeext conftest.$ac_ext
9312 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9313
9314        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9315         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"
9316        else
9317         if test "$host_cpu" = ia64; then
9318           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9319           allow_undefined_flag="-z nodefs"
9320           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"
9321         else
9322          # Determine the default libpath from the value encoded in an empty executable.
9323          cat >conftest.$ac_ext <<_ACEOF
9324 /* confdefs.h.  */
9325 _ACEOF
9326 cat confdefs.h >>conftest.$ac_ext
9327 cat >>conftest.$ac_ext <<_ACEOF
9328 /* end confdefs.h.  */
9329
9330 int
9331 main ()
9332 {
9333
9334   ;
9335   return 0;
9336 }
9337 _ACEOF
9338 rm -f conftest.$ac_objext conftest$ac_exeext
9339 if { (ac_try="$ac_link"
9340 case "(($ac_try" in
9341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9342   *) ac_try_echo=$ac_try;;
9343 esac
9344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9345   (eval "$ac_link") 2>conftest.er1
9346   ac_status=$?
9347   grep -v '^ *+' conftest.er1 >conftest.err
9348   rm -f conftest.er1
9349   cat conftest.err >&5
9350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351   (exit $ac_status); } && {
9352          test -z "$ac_c_werror_flag" ||
9353          test ! -s conftest.err
9354        } && test -s conftest$ac_exeext &&
9355        $as_test_x conftest$ac_exeext; then
9356
9357 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9358 }'`
9359 # Check for a 64-bit object if we didn't find anything.
9360 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; }
9361 }'`; fi
9362 else
9363   echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366
9367 fi
9368
9369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9370       conftest$ac_exeext conftest.$ac_ext
9371 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9372
9373          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9374           # Warning - without using the other run time loading flags,
9375           # -berok will link without error, but may produce a broken library.
9376           no_undefined_flag=' ${wl}-bernotok'
9377           allow_undefined_flag=' ${wl}-berok'
9378           # -bexpall does not export symbols beginning with underscore (_)
9379           always_export_symbols=yes
9380           # Exported symbols can be pulled into shared objects from archives
9381           whole_archive_flag_spec=' '
9382           archive_cmds_need_lc=yes
9383           # This is similar to how AIX traditionally builds its shared libraries.
9384           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'
9385         fi
9386       fi
9387       ;;
9388
9389     amigaos*)
9390       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)'
9391       hardcode_libdir_flag_spec='-L$libdir'
9392       hardcode_minus_L=yes
9393       # see comment about different semantics on the GNU ld section
9394       ld_shlibs=no
9395       ;;
9396
9397     bsdi[45]*)
9398       export_dynamic_flag_spec=-rdynamic
9399       ;;
9400
9401     cygwin* | mingw* | pw32*)
9402       # When not using gcc, we currently assume that we are using
9403       # Microsoft Visual C++.
9404       # hardcode_libdir_flag_spec is actually meaningless, as there is
9405       # no search path for DLLs.
9406       hardcode_libdir_flag_spec=' '
9407       allow_undefined_flag=unsupported
9408       # Tell ltmain to make .lib files, not .a files.
9409       libext=lib
9410       # Tell ltmain to make .dll files, not .so files.
9411       shrext_cmds=".dll"
9412       # FIXME: Setting linknames here is a bad hack.
9413       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9414       # The linker will automatically build a .lib file if we build a DLL.
9415       old_archive_From_new_cmds='true'
9416       # FIXME: Should let the user specify the lib program.
9417       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9418       fix_srcfile_path='`cygpath -w "$srcfile"`'
9419       enable_shared_with_static_runtimes=yes
9420       ;;
9421
9422     darwin* | rhapsody*)
9423       case $host_os in
9424         rhapsody* | darwin1.[012])
9425          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9426          ;;
9427        *) # Darwin 1.3 on
9428          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9429            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9430          else
9431            case ${MACOSX_DEPLOYMENT_TARGET} in
9432              10.[012])
9433                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9434                ;;
9435              10.*)
9436                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9437                ;;
9438            esac
9439          fi
9440          ;;
9441       esac
9442       archive_cmds_need_lc=no
9443       hardcode_direct=no
9444       hardcode_automatic=yes
9445       hardcode_shlibpath_var=unsupported
9446       whole_archive_flag_spec=''
9447       link_all_deplibs=yes
9448     if test "$GCC" = yes ; then
9449         output_verbose_link_cmd='echo'
9450         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9451       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9452       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9453       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}'
9454       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}'
9455     else
9456       case $cc_basename in
9457         xlc*)
9458          output_verbose_link_cmd='echo'
9459          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9460          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9461           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9462          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}'
9463           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}'
9464           ;;
9465        *)
9466          ld_shlibs=no
9467           ;;
9468       esac
9469     fi
9470       ;;
9471
9472     dgux*)
9473       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9474       hardcode_libdir_flag_spec='-L$libdir'
9475       hardcode_shlibpath_var=no
9476       ;;
9477
9478     freebsd1*)
9479       ld_shlibs=no
9480       ;;
9481
9482     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9483     # support.  Future versions do this automatically, but an explicit c++rt0.o
9484     # does not break anything, and helps significantly (at the cost of a little
9485     # extra space).
9486     freebsd2.2*)
9487       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9488       hardcode_libdir_flag_spec='-R$libdir'
9489       hardcode_direct=yes
9490       hardcode_shlibpath_var=no
9491       ;;
9492
9493     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9494     freebsd2*)
9495       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9496       hardcode_direct=yes
9497       hardcode_minus_L=yes
9498       hardcode_shlibpath_var=no
9499       ;;
9500
9501     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9502     freebsd* | kfreebsd*-gnu | dragonfly*)
9503       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9504       hardcode_libdir_flag_spec='-R$libdir'
9505       hardcode_direct=yes
9506       hardcode_shlibpath_var=no
9507       ;;
9508
9509     hpux9*)
9510       if test "$GCC" = yes; then
9511         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'
9512       else
9513         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'
9514       fi
9515       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9516       hardcode_libdir_separator=:
9517       hardcode_direct=yes
9518
9519       # hardcode_minus_L: Not really in the search PATH,
9520       # but as the default location of the library.
9521       hardcode_minus_L=yes
9522       export_dynamic_flag_spec='${wl}-E'
9523       ;;
9524
9525     hpux10* | hpux11*)
9526       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9527         case $host_cpu in
9528         hppa*64*|ia64*)
9529           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9530           ;;
9531         *)
9532           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9533           ;;
9534         esac
9535       else
9536         case $host_cpu in
9537         hppa*64*|ia64*)
9538           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9539           ;;
9540         *)
9541           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9542           ;;
9543         esac
9544       fi
9545       if test "$with_gnu_ld" = no; then
9546         case $host_cpu in
9547         hppa*64*)
9548           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9549           hardcode_libdir_flag_spec_ld='+b $libdir'
9550           hardcode_libdir_separator=:
9551           hardcode_direct=no
9552           hardcode_shlibpath_var=no
9553           ;;
9554         ia64*)
9555           hardcode_libdir_flag_spec='-L$libdir'
9556           hardcode_direct=no
9557           hardcode_shlibpath_var=no
9558
9559           # hardcode_minus_L: Not really in the search PATH,
9560           # but as the default location of the library.
9561           hardcode_minus_L=yes
9562           ;;
9563         *)
9564           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9565           hardcode_libdir_separator=:
9566           hardcode_direct=yes
9567           export_dynamic_flag_spec='${wl}-E'
9568
9569           # hardcode_minus_L: Not really in the search PATH,
9570           # but as the default location of the library.
9571           hardcode_minus_L=yes
9572           ;;
9573         esac
9574       fi
9575       ;;
9576
9577     irix5* | irix6* | nonstopux*)
9578       if test "$GCC" = yes; then
9579         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'
9580       else
9581         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'
9582         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9583       fi
9584       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9585       hardcode_libdir_separator=:
9586       link_all_deplibs=yes
9587       ;;
9588
9589     netbsd*)
9590       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9591         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9592       else
9593         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9594       fi
9595       hardcode_libdir_flag_spec='-R$libdir'
9596       hardcode_direct=yes
9597       hardcode_shlibpath_var=no
9598       ;;
9599
9600     newsos6)
9601       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9602       hardcode_direct=yes
9603       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9604       hardcode_libdir_separator=:
9605       hardcode_shlibpath_var=no
9606       ;;
9607
9608     openbsd*)
9609       hardcode_direct=yes
9610       hardcode_shlibpath_var=no
9611       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9612         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9613         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9614         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9615         export_dynamic_flag_spec='${wl}-E'
9616       else
9617        case $host_os in
9618          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9619            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9620            hardcode_libdir_flag_spec='-R$libdir'
9621            ;;
9622          *)
9623            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9624            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9625            ;;
9626        esac
9627       fi
9628       ;;
9629
9630     os2*)
9631       hardcode_libdir_flag_spec='-L$libdir'
9632       hardcode_minus_L=yes
9633       allow_undefined_flag=unsupported
9634       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'
9635       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9636       ;;
9637
9638     osf3*)
9639       if test "$GCC" = yes; then
9640         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9641         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'
9642       else
9643         allow_undefined_flag=' -expect_unresolved \*'
9644         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'
9645       fi
9646       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9647       hardcode_libdir_separator=:
9648       ;;
9649
9650     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9651       if test "$GCC" = yes; then
9652         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9653         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'
9654         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9655       else
9656         allow_undefined_flag=' -expect_unresolved \*'
9657         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'
9658         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9659         $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'
9660
9661         # Both c and cxx compiler support -rpath directly
9662         hardcode_libdir_flag_spec='-rpath $libdir'
9663       fi
9664       hardcode_libdir_separator=:
9665       ;;
9666
9667     sco3.2v5*)
9668       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9669       hardcode_shlibpath_var=no
9670       export_dynamic_flag_spec='${wl}-Bexport'
9671       runpath_var=LD_RUN_PATH
9672       hardcode_runpath_var=yes
9673       ;;
9674
9675     solaris*)
9676       no_undefined_flag=' -z text'
9677       if test "$GCC" = yes; then
9678         wlarc='${wl}'
9679         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9680         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9681           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9682       else
9683         wlarc=''
9684         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9685         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9686         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9687       fi
9688       hardcode_libdir_flag_spec='-R$libdir'
9689       hardcode_shlibpath_var=no
9690       case $host_os in
9691       solaris2.[0-5] | solaris2.[0-5].*) ;;
9692       *)
9693         # The compiler driver will combine linker options so we
9694         # cannot just pass the convience library names through
9695         # without $wl, iff we do not link with $LD.
9696         # Luckily, gcc supports the same syntax we need for Sun Studio.
9697         # Supported since Solaris 2.6 (maybe 2.5.1?)
9698         case $wlarc in
9699         '')
9700           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9701         *)
9702           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' ;;
9703         esac ;;
9704       esac
9705       link_all_deplibs=yes
9706       ;;
9707
9708     sunos4*)
9709       if test "x$host_vendor" = xsequent; then
9710         # Use $CC to link under sequent, because it throws in some extra .o
9711         # files that make .init and .fini sections work.
9712         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9713       else
9714         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9715       fi
9716       hardcode_libdir_flag_spec='-L$libdir'
9717       hardcode_direct=yes
9718       hardcode_minus_L=yes
9719       hardcode_shlibpath_var=no
9720       ;;
9721
9722     sysv4)
9723       case $host_vendor in
9724         sni)
9725           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9726           hardcode_direct=yes # is this really true???
9727         ;;
9728         siemens)
9729           ## LD is ld it makes a PLAMLIB
9730           ## CC just makes a GrossModule.
9731           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9732           reload_cmds='$CC -r -o $output$reload_objs'
9733           hardcode_direct=no
9734         ;;
9735         motorola)
9736           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9737           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9738         ;;
9739       esac
9740       runpath_var='LD_RUN_PATH'
9741       hardcode_shlibpath_var=no
9742       ;;
9743
9744     sysv4.3*)
9745       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9746       hardcode_shlibpath_var=no
9747       export_dynamic_flag_spec='-Bexport'
9748       ;;
9749
9750     sysv4*MP*)
9751       if test -d /usr/nec; then
9752         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9753         hardcode_shlibpath_var=no
9754         runpath_var=LD_RUN_PATH
9755         hardcode_runpath_var=yes
9756         ld_shlibs=yes
9757       fi
9758       ;;
9759
9760     sysv4.2uw2*)
9761       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9762       hardcode_direct=yes
9763       hardcode_minus_L=no
9764       hardcode_shlibpath_var=no
9765       hardcode_runpath_var=yes
9766       runpath_var=LD_RUN_PATH
9767       ;;
9768
9769    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9770       no_undefined_flag='${wl}-z ${wl}text'
9771       if test "$GCC" = yes; then
9772         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       else
9774         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9775       fi
9776       runpath_var='LD_RUN_PATH'
9777       hardcode_shlibpath_var=no
9778       ;;
9779
9780     sysv5*)
9781       no_undefined_flag=' -z text'
9782       # $CC -shared without GNU ld will not create a library from C++
9783       # object files and a static libstdc++, better avoid it by now
9784       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9785       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9786                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9787       hardcode_libdir_flag_spec=
9788       hardcode_shlibpath_var=no
9789       runpath_var='LD_RUN_PATH'
9790       ;;
9791
9792     uts4*)
9793       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9794       hardcode_libdir_flag_spec='-L$libdir'
9795       hardcode_shlibpath_var=no
9796       ;;
9797
9798     *)
9799       ld_shlibs=no
9800       ;;
9801     esac
9802   fi
9803
9804 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9805 echo "${ECHO_T}$ld_shlibs" >&6; }
9806 test "$ld_shlibs" = no && can_build_shared=no
9807
9808 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9809 if test "$GCC" = yes; then
9810   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9811 fi
9812
9813 #
9814 # Do we need to explicitly link libc?
9815 #
9816 case "x$archive_cmds_need_lc" in
9817 x|xyes)
9818   # Assume -lc should be added
9819   archive_cmds_need_lc=yes
9820
9821   if test "$enable_shared" = yes && test "$GCC" = yes; then
9822     case $archive_cmds in
9823     *'~'*)
9824       # FIXME: we may have to deal with multi-command sequences.
9825       ;;
9826     '$CC '*)
9827       # Test whether the compiler implicitly links with -lc since on some
9828       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9829       # to ld, don't add -lc before -lgcc.
9830       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9831 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9832       $rm conftest*
9833       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9834
9835       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9836   (eval $ac_compile) 2>&5
9837   ac_status=$?
9838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839   (exit $ac_status); } 2>conftest.err; then
9840         soname=conftest
9841         lib=conftest
9842         libobjs=conftest.$ac_objext
9843         deplibs=
9844         wl=$lt_prog_compiler_wl
9845         compiler_flags=-v
9846         linker_flags=-v
9847         verstring=
9848         output_objdir=.
9849         libname=conftest
9850         lt_save_allow_undefined_flag=$allow_undefined_flag
9851         allow_undefined_flag=
9852         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9853   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9854   ac_status=$?
9855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9856   (exit $ac_status); }
9857         then
9858           archive_cmds_need_lc=no
9859         else
9860           archive_cmds_need_lc=yes
9861         fi
9862         allow_undefined_flag=$lt_save_allow_undefined_flag
9863       else
9864         cat conftest.err 1>&5
9865       fi
9866       $rm conftest*
9867       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9868 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9869       ;;
9870     esac
9871   fi
9872   ;;
9873 esac
9874
9875 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9876 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9877 library_names_spec=
9878 libname_spec='lib$name'
9879 soname_spec=
9880 shrext_cmds=".so"
9881 postinstall_cmds=
9882 postuninstall_cmds=
9883 finish_cmds=
9884 finish_eval=
9885 shlibpath_var=
9886 shlibpath_overrides_runpath=unknown
9887 version_type=none
9888 dynamic_linker="$host_os ld.so"
9889 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9890 if test "$GCC" = yes; then
9891   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9892   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9893     # if the path contains ";" then we assume it to be the separator
9894     # otherwise default to the standard path separator (i.e. ":") - it is
9895     # assumed that no part of a normal pathname contains ";" but that should
9896     # okay in the real world where ";" in dirpaths is itself problematic.
9897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9898   else
9899     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9900   fi
9901 else
9902   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9903 fi
9904 need_lib_prefix=unknown
9905 hardcode_into_libs=no
9906
9907 # when you set need_version to no, make sure it does not cause -set_version
9908 # flags to be left without arguments
9909 need_version=unknown
9910
9911 case $host_os in
9912 aix3*)
9913   version_type=linux
9914   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9915   shlibpath_var=LIBPATH
9916
9917   # AIX 3 has no versioning support, so we append a major version to the name.
9918   soname_spec='${libname}${release}${shared_ext}$major'
9919   ;;
9920
9921 aix4* | aix5*)
9922   version_type=linux
9923   need_lib_prefix=no
9924   need_version=no
9925   hardcode_into_libs=yes
9926   if test "$host_cpu" = ia64; then
9927     # AIX 5 supports IA64
9928     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9929     shlibpath_var=LD_LIBRARY_PATH
9930   else
9931     # With GCC up to 2.95.x, collect2 would create an import file
9932     # for dependence libraries.  The import file would start with
9933     # the line `#! .'.  This would cause the generated library to
9934     # depend on `.', always an invalid library.  This was fixed in
9935     # development snapshots of GCC prior to 3.0.
9936     case $host_os in
9937       aix4 | aix4.[01] | aix4.[01].*)
9938       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9939            echo ' yes '
9940            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9941         :
9942       else
9943         can_build_shared=no
9944       fi
9945       ;;
9946     esac
9947     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9948     # soname into executable. Probably we can add versioning support to
9949     # collect2, so additional links can be useful in future.
9950     if test "$aix_use_runtimelinking" = yes; then
9951       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9952       # instead of lib<name>.a to let people know that these are not
9953       # typical AIX shared libraries.
9954       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9955     else
9956       # We preserve .a as extension for shared libraries through AIX4.2
9957       # and later when we are not doing run time linking.
9958       library_names_spec='${libname}${release}.a $libname.a'
9959       soname_spec='${libname}${release}${shared_ext}$major'
9960     fi
9961     shlibpath_var=LIBPATH
9962   fi
9963   ;;
9964
9965 amigaos*)
9966   library_names_spec='$libname.ixlibrary $libname.a'
9967   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9968   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'
9969   ;;
9970
9971 beos*)
9972   library_names_spec='${libname}${shared_ext}'
9973   dynamic_linker="$host_os ld.so"
9974   shlibpath_var=LIBRARY_PATH
9975   ;;
9976
9977 bsdi[45]*)
9978   version_type=linux
9979   need_version=no
9980   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981   soname_spec='${libname}${release}${shared_ext}$major'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9985   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9986   # the default ld.so.conf also contains /usr/contrib/lib and
9987   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9988   # libtool to hard-code these into programs
9989   ;;
9990
9991 cygwin* | mingw* | pw32*)
9992   version_type=windows
9993   shrext_cmds=".dll"
9994   need_version=no
9995   need_lib_prefix=no
9996
9997   case $GCC,$host_os in
9998   yes,cygwin* | yes,mingw* | yes,pw32*)
9999     library_names_spec='$libname.dll.a'
10000     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10001     postinstall_cmds='base_file=`basename \${file}`~
10002       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10003       dldir=$destdir/`dirname \$dlpath`~
10004       test -d \$dldir || mkdir -p \$dldir~
10005       $install_prog $dir/$dlname \$dldir/$dlname~
10006       chmod a+x \$dldir/$dlname'
10007     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10008       dlpath=$dir/\$dldll~
10009        $rm \$dlpath'
10010     shlibpath_overrides_runpath=yes
10011
10012     case $host_os in
10013     cygwin*)
10014       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10015       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10016       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10017       ;;
10018     mingw*)
10019       # MinGW DLLs use traditional 'lib' prefix
10020       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10021       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10022       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10023         # It is most probably a Windows format PATH printed by
10024         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10025         # path with ; separators, and with drive letters. We can handle the
10026         # drive letters (cygwin fileutils understands them), so leave them,
10027         # especially as we might pass files found there to a mingw objdump,
10028         # which wouldn't understand a cygwinified path. Ahh.
10029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10030       else
10031         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10032       fi
10033       ;;
10034     pw32*)
10035       # pw32 DLLs use 'pw' prefix rather than 'lib'
10036       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10037       ;;
10038     esac
10039     ;;
10040
10041   *)
10042     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10043     ;;
10044   esac
10045   dynamic_linker='Win32 ld.exe'
10046   # FIXME: first we should search . and the directory the executable is in
10047   shlibpath_var=PATH
10048   ;;
10049
10050 darwin* | rhapsody*)
10051   dynamic_linker="$host_os dyld"
10052   version_type=darwin
10053   need_lib_prefix=no
10054   need_version=no
10055   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10056   soname_spec='${libname}${release}${major}$shared_ext'
10057   shlibpath_overrides_runpath=yes
10058   shlibpath_var=DYLD_LIBRARY_PATH
10059   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10060   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10061   if test "$GCC" = yes; then
10062     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"`
10063   else
10064     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10065   fi
10066   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10067   ;;
10068
10069 dgux*)
10070   version_type=linux
10071   need_lib_prefix=no
10072   need_version=no
10073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   shlibpath_var=LD_LIBRARY_PATH
10076   ;;
10077
10078 freebsd1*)
10079   dynamic_linker=no
10080   ;;
10081
10082 kfreebsd*-gnu)
10083   version_type=linux
10084   need_lib_prefix=no
10085   need_version=no
10086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10087   soname_spec='${libname}${release}${shared_ext}$major'
10088   shlibpath_var=LD_LIBRARY_PATH
10089   shlibpath_overrides_runpath=no
10090   hardcode_into_libs=yes
10091   dynamic_linker='GNU ld.so'
10092   ;;
10093
10094 freebsd* | dragonfly*)
10095   # DragonFly does not have aout.  When/if they implement a new
10096   # versioning mechanism, adjust this.
10097   if test -x /usr/bin/objformat; then
10098     objformat=`/usr/bin/objformat`
10099   else
10100     case $host_os in
10101     freebsd[123]*) objformat=aout ;;
10102     *) objformat=elf ;;
10103     esac
10104   fi
10105   version_type=freebsd-$objformat
10106   case $version_type in
10107     freebsd-elf*)
10108       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10109       need_version=no
10110       need_lib_prefix=no
10111       ;;
10112     freebsd-*)
10113       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10114       need_version=yes
10115       ;;
10116   esac
10117   shlibpath_var=LD_LIBRARY_PATH
10118   case $host_os in
10119   freebsd2*)
10120     shlibpath_overrides_runpath=yes
10121     ;;
10122   freebsd3.[01]* | freebsdelf3.[01]*)
10123     shlibpath_overrides_runpath=yes
10124     hardcode_into_libs=yes
10125     ;;
10126   *) # from 3.2 on
10127     shlibpath_overrides_runpath=no
10128     hardcode_into_libs=yes
10129     ;;
10130   esac
10131   ;;
10132
10133 gnu*)
10134   version_type=linux
10135   need_lib_prefix=no
10136   need_version=no
10137   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10138   soname_spec='${libname}${release}${shared_ext}$major'
10139   shlibpath_var=LD_LIBRARY_PATH
10140   hardcode_into_libs=yes
10141   ;;
10142
10143 hpux9* | hpux10* | hpux11*)
10144   # Give a soname corresponding to the major version so that dld.sl refuses to
10145   # link against other versions.
10146   version_type=sunos
10147   need_lib_prefix=no
10148   need_version=no
10149   case $host_cpu in
10150   ia64*)
10151     shrext_cmds='.so'
10152     hardcode_into_libs=yes
10153     dynamic_linker="$host_os dld.so"
10154     shlibpath_var=LD_LIBRARY_PATH
10155     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10156     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157     soname_spec='${libname}${release}${shared_ext}$major'
10158     if test "X$HPUX_IA64_MODE" = X32; then
10159       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10160     else
10161       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10162     fi
10163     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10164     ;;
10165    hppa*64*)
10166      shrext_cmds='.sl'
10167      hardcode_into_libs=yes
10168      dynamic_linker="$host_os dld.sl"
10169      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10170      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10171      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10172      soname_spec='${libname}${release}${shared_ext}$major'
10173      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10174      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10175      ;;
10176    *)
10177     shrext_cmds='.sl'
10178     dynamic_linker="$host_os dld.sl"
10179     shlibpath_var=SHLIB_PATH
10180     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10181     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10182     soname_spec='${libname}${release}${shared_ext}$major'
10183     ;;
10184   esac
10185   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10186   postinstall_cmds='chmod 555 $lib'
10187   ;;
10188
10189 irix5* | irix6* | nonstopux*)
10190   case $host_os in
10191     nonstopux*) version_type=nonstopux ;;
10192     *)
10193         if test "$lt_cv_prog_gnu_ld" = yes; then
10194                 version_type=linux
10195         else
10196                 version_type=irix
10197         fi ;;
10198   esac
10199   need_lib_prefix=no
10200   need_version=no
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10203   case $host_os in
10204   irix5* | nonstopux*)
10205     libsuff= shlibsuff=
10206     ;;
10207   *)
10208     case $LD in # libtool.m4 will add one of these switches to LD
10209     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10210       libsuff= shlibsuff= libmagic=32-bit;;
10211     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10212       libsuff=32 shlibsuff=N32 libmagic=N32;;
10213     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10214       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10215     *) libsuff= shlibsuff= libmagic=never-match;;
10216     esac
10217     ;;
10218   esac
10219   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10220   shlibpath_overrides_runpath=no
10221   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10222   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10223   hardcode_into_libs=yes
10224   ;;
10225
10226 # No shared lib support for Linux oldld, aout, or coff.
10227 linux*oldld* | linux*aout* | linux*coff*)
10228   dynamic_linker=no
10229   ;;
10230
10231 # This must be Linux ELF.
10232 linux*)
10233   version_type=linux
10234   need_lib_prefix=no
10235   need_version=no
10236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10237   soname_spec='${libname}${release}${shared_ext}$major'
10238   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10239   shlibpath_var=LD_LIBRARY_PATH
10240   shlibpath_overrides_runpath=no
10241   # This implies no fast_install, which is unacceptable.
10242   # Some rework will be needed to allow for fast_install
10243   # before this can be enabled.
10244   hardcode_into_libs=yes
10245
10246   # Append ld.so.conf contents to the search path
10247   if test -f /etc/ld.so.conf; then
10248     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' ' '`
10249     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10250   fi
10251
10252   # We used to test for /lib/ld.so.1 and disable shared libraries on
10253   # powerpc, because MkLinux only supported shared libraries with the
10254   # GNU dynamic linker.  Since this was broken with cross compilers,
10255   # most powerpc-linux boxes support dynamic linking these days and
10256   # people can always --disable-shared, the test was removed, and we
10257   # assume the GNU/Linux dynamic linker is in use.
10258   dynamic_linker='GNU/Linux ld.so'
10259   ;;
10260
10261 knetbsd*-gnu)
10262   version_type=linux
10263   need_lib_prefix=no
10264   need_version=no
10265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10266   soname_spec='${libname}${release}${shared_ext}$major'
10267   shlibpath_var=LD_LIBRARY_PATH
10268   shlibpath_overrides_runpath=no
10269   hardcode_into_libs=yes
10270   dynamic_linker='GNU ld.so'
10271   ;;
10272
10273 netbsd*)
10274   version_type=sunos
10275   need_lib_prefix=no
10276   need_version=no
10277   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10278     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10279     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10280     dynamic_linker='NetBSD (a.out) ld.so'
10281   else
10282     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10283     soname_spec='${libname}${release}${shared_ext}$major'
10284     dynamic_linker='NetBSD ld.elf_so'
10285   fi
10286   shlibpath_var=LD_LIBRARY_PATH
10287   shlibpath_overrides_runpath=yes
10288   hardcode_into_libs=yes
10289   ;;
10290
10291 newsos6)
10292   version_type=linux
10293   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10294   shlibpath_var=LD_LIBRARY_PATH
10295   shlibpath_overrides_runpath=yes
10296   ;;
10297
10298 nto-qnx*)
10299   version_type=linux
10300   need_lib_prefix=no
10301   need_version=no
10302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303   soname_spec='${libname}${release}${shared_ext}$major'
10304   shlibpath_var=LD_LIBRARY_PATH
10305   shlibpath_overrides_runpath=yes
10306   ;;
10307
10308 openbsd*)
10309   version_type=sunos
10310   need_lib_prefix=no
10311   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10312   case $host_os in
10313     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10314     *)                         need_version=no  ;;
10315   esac
10316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10317   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10318   shlibpath_var=LD_LIBRARY_PATH
10319   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10320     case $host_os in
10321       openbsd2.[89] | openbsd2.[89].*)
10322         shlibpath_overrides_runpath=no
10323         ;;
10324       *)
10325         shlibpath_overrides_runpath=yes
10326         ;;
10327       esac
10328   else
10329     shlibpath_overrides_runpath=yes
10330   fi
10331   ;;
10332
10333 os2*)
10334   libname_spec='$name'
10335   shrext_cmds=".dll"
10336   need_lib_prefix=no
10337   library_names_spec='$libname${shared_ext} $libname.a'
10338   dynamic_linker='OS/2 ld.exe'
10339   shlibpath_var=LIBPATH
10340   ;;
10341
10342 osf3* | osf4* | osf5*)
10343   version_type=osf
10344   need_lib_prefix=no
10345   need_version=no
10346   soname_spec='${libname}${release}${shared_ext}$major'
10347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10348   shlibpath_var=LD_LIBRARY_PATH
10349   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10350   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10351   ;;
10352
10353 sco3.2v5*)
10354   version_type=osf
10355   soname_spec='${libname}${release}${shared_ext}$major'
10356   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357   shlibpath_var=LD_LIBRARY_PATH
10358   ;;
10359
10360 solaris*)
10361   version_type=linux
10362   need_lib_prefix=no
10363   need_version=no
10364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365   soname_spec='${libname}${release}${shared_ext}$major'
10366   shlibpath_var=LD_LIBRARY_PATH
10367   shlibpath_overrides_runpath=yes
10368   hardcode_into_libs=yes
10369   # ldd complains unless libraries are executable
10370   postinstall_cmds='chmod +x $lib'
10371   ;;
10372
10373 sunos4*)
10374   version_type=sunos
10375   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10376   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10377   shlibpath_var=LD_LIBRARY_PATH
10378   shlibpath_overrides_runpath=yes
10379   if test "$with_gnu_ld" = yes; then
10380     need_lib_prefix=no
10381   fi
10382   need_version=yes
10383   ;;
10384
10385 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10386   version_type=linux
10387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388   soname_spec='${libname}${release}${shared_ext}$major'
10389   shlibpath_var=LD_LIBRARY_PATH
10390   case $host_vendor in
10391     sni)
10392       shlibpath_overrides_runpath=no
10393       need_lib_prefix=no
10394       export_dynamic_flag_spec='${wl}-Blargedynsym'
10395       runpath_var=LD_RUN_PATH
10396       ;;
10397     siemens)
10398       need_lib_prefix=no
10399       ;;
10400     motorola)
10401       need_lib_prefix=no
10402       need_version=no
10403       shlibpath_overrides_runpath=no
10404       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10405       ;;
10406   esac
10407   ;;
10408
10409 sysv4*MP*)
10410   if test -d /usr/nec ;then
10411     version_type=linux
10412     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10413     soname_spec='$libname${shared_ext}.$major'
10414     shlibpath_var=LD_LIBRARY_PATH
10415   fi
10416   ;;
10417
10418 uts4*)
10419   version_type=linux
10420   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10421   soname_spec='${libname}${release}${shared_ext}$major'
10422   shlibpath_var=LD_LIBRARY_PATH
10423   ;;
10424
10425 *)
10426   dynamic_linker=no
10427   ;;
10428 esac
10429 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10430 echo "${ECHO_T}$dynamic_linker" >&6; }
10431 test "$dynamic_linker" = no && can_build_shared=no
10432
10433 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10434 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10435 hardcode_action=
10436 if test -n "$hardcode_libdir_flag_spec" || \
10437    test -n "$runpath_var" || \
10438    test "X$hardcode_automatic" = "Xyes" ; then
10439
10440   # We can hardcode non-existant directories.
10441   if test "$hardcode_direct" != no &&
10442      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10443      # have to relink, otherwise we might link with an installed library
10444      # when we should be linking with a yet-to-be-installed one
10445      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10446      test "$hardcode_minus_L" != no; then
10447     # Linking always hardcodes the temporary library directory.
10448     hardcode_action=relink
10449   else
10450     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10451     hardcode_action=immediate
10452   fi
10453 else
10454   # We cannot hardcode anything, or else we can only hardcode existing
10455   # directories.
10456   hardcode_action=unsupported
10457 fi
10458 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10459 echo "${ECHO_T}$hardcode_action" >&6; }
10460
10461 if test "$hardcode_action" = relink; then
10462   # Fast installation is not supported
10463   enable_fast_install=no
10464 elif test "$shlibpath_overrides_runpath" = yes ||
10465      test "$enable_shared" = no; then
10466   # Fast installation is not necessary
10467   enable_fast_install=needless
10468 fi
10469
10470 striplib=
10471 old_striplib=
10472 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10473 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10474 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10475   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10476   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10477   { echo "$as_me:$LINENO: result: yes" >&5
10478 echo "${ECHO_T}yes" >&6; }
10479 else
10480 # FIXME - insert some real tests, host_os isn't really good enough
10481   case $host_os in
10482    darwin*)
10483        if test -n "$STRIP" ; then
10484          striplib="$STRIP -x"
10485          { echo "$as_me:$LINENO: result: yes" >&5
10486 echo "${ECHO_T}yes" >&6; }
10487        else
10488   { echo "$as_me:$LINENO: result: no" >&5
10489 echo "${ECHO_T}no" >&6; }
10490 fi
10491        ;;
10492    *)
10493   { echo "$as_me:$LINENO: result: no" >&5
10494 echo "${ECHO_T}no" >&6; }
10495     ;;
10496   esac
10497 fi
10498
10499 if test "x$enable_dlopen" != xyes; then
10500   enable_dlopen=unknown
10501   enable_dlopen_self=unknown
10502   enable_dlopen_self_static=unknown
10503 else
10504   lt_cv_dlopen=no
10505   lt_cv_dlopen_libs=
10506
10507   case $host_os in
10508   beos*)
10509     lt_cv_dlopen="load_add_on"
10510     lt_cv_dlopen_libs=
10511     lt_cv_dlopen_self=yes
10512     ;;
10513
10514   mingw* | pw32*)
10515     lt_cv_dlopen="LoadLibrary"
10516     lt_cv_dlopen_libs=
10517    ;;
10518
10519   cygwin*)
10520     lt_cv_dlopen="dlopen"
10521     lt_cv_dlopen_libs=
10522    ;;
10523
10524   darwin*)
10525   # if libdl is installed we need to link against it
10526     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529   echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531   ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-ldl  $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h.  */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h.  */
10539
10540 /* Override any GCC internal prototype to avoid an error.
10541    Use char because int might match the return type of a GCC
10542    builtin and then its argument prototype would still apply.  */
10543 #ifdef __cplusplus
10544 extern "C"
10545 #endif
10546 char dlopen ();
10547 int
10548 main ()
10549 {
10550 return dlopen ();
10551   ;
10552   return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (ac_try="$ac_link"
10557 case "(($ac_try" in
10558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10559   *) ac_try_echo=$ac_try;;
10560 esac
10561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10562   (eval "$ac_link") 2>conftest.er1
10563   ac_status=$?
10564   grep -v '^ *+' conftest.er1 >conftest.err
10565   rm -f conftest.er1
10566   cat conftest.err >&5
10567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568   (exit $ac_status); } && {
10569          test -z "$ac_c_werror_flag" ||
10570          test ! -s conftest.err
10571        } && test -s conftest$ac_exeext &&
10572        $as_test_x conftest$ac_exeext; then
10573   ac_cv_lib_dl_dlopen=yes
10574 else
10575   echo "$as_me: failed program was:" >&5
10576 sed 's/^/| /' conftest.$ac_ext >&5
10577
10578         ac_cv_lib_dl_dlopen=no
10579 fi
10580
10581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10582       conftest$ac_exeext conftest.$ac_ext
10583 LIBS=$ac_check_lib_save_LIBS
10584 fi
10585 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10586 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10587 if test $ac_cv_lib_dl_dlopen = yes; then
10588   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10589 else
10590
10591     lt_cv_dlopen="dyld"
10592     lt_cv_dlopen_libs=
10593     lt_cv_dlopen_self=yes
10594
10595 fi
10596
10597    ;;
10598
10599   *)
10600     { echo "$as_me:$LINENO: checking for shl_load" >&5
10601 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10602 if test "${ac_cv_func_shl_load+set}" = set; then
10603   echo $ECHO_N "(cached) $ECHO_C" >&6
10604 else
10605   cat >conftest.$ac_ext <<_ACEOF
10606 /* confdefs.h.  */
10607 _ACEOF
10608 cat confdefs.h >>conftest.$ac_ext
10609 cat >>conftest.$ac_ext <<_ACEOF
10610 /* end confdefs.h.  */
10611 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10612    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10613 #define shl_load innocuous_shl_load
10614
10615 /* System header to define __stub macros and hopefully few prototypes,
10616     which can conflict with char shl_load (); below.
10617     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10618     <limits.h> exists even on freestanding compilers.  */
10619
10620 #ifdef __STDC__
10621 # include <limits.h>
10622 #else
10623 # include <assert.h>
10624 #endif
10625
10626 #undef shl_load
10627
10628 /* Override any GCC internal prototype to avoid an error.
10629    Use char because int might match the return type of a GCC
10630    builtin and then its argument prototype would still apply.  */
10631 #ifdef __cplusplus
10632 extern "C"
10633 #endif
10634 char shl_load ();
10635 /* The GNU C library defines this for functions which it implements
10636     to always fail with ENOSYS.  Some functions are actually named
10637     something starting with __ and the normal name is an alias.  */
10638 #if defined __stub_shl_load || defined __stub___shl_load
10639 choke me
10640 #endif
10641
10642 int
10643 main ()
10644 {
10645 return shl_load ();
10646   ;
10647   return 0;
10648 }
10649 _ACEOF
10650 rm -f conftest.$ac_objext conftest$ac_exeext
10651 if { (ac_try="$ac_link"
10652 case "(($ac_try" in
10653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10654   *) ac_try_echo=$ac_try;;
10655 esac
10656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10657   (eval "$ac_link") 2>conftest.er1
10658   ac_status=$?
10659   grep -v '^ *+' conftest.er1 >conftest.err
10660   rm -f conftest.er1
10661   cat conftest.err >&5
10662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663   (exit $ac_status); } && {
10664          test -z "$ac_c_werror_flag" ||
10665          test ! -s conftest.err
10666        } && test -s conftest$ac_exeext &&
10667        $as_test_x conftest$ac_exeext; then
10668   ac_cv_func_shl_load=yes
10669 else
10670   echo "$as_me: failed program was:" >&5
10671 sed 's/^/| /' conftest.$ac_ext >&5
10672
10673         ac_cv_func_shl_load=no
10674 fi
10675
10676 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10677       conftest$ac_exeext conftest.$ac_ext
10678 fi
10679 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10680 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10681 if test $ac_cv_func_shl_load = yes; then
10682   lt_cv_dlopen="shl_load"
10683 else
10684   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10685 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10686 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10687   echo $ECHO_N "(cached) $ECHO_C" >&6
10688 else
10689   ac_check_lib_save_LIBS=$LIBS
10690 LIBS="-ldld  $LIBS"
10691 cat >conftest.$ac_ext <<_ACEOF
10692 /* confdefs.h.  */
10693 _ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h.  */
10697
10698 /* Override any GCC internal prototype to avoid an error.
10699    Use char because int might match the return type of a GCC
10700    builtin and then its argument prototype would still apply.  */
10701 #ifdef __cplusplus
10702 extern "C"
10703 #endif
10704 char shl_load ();
10705 int
10706 main ()
10707 {
10708 return shl_load ();
10709   ;
10710   return 0;
10711 }
10712 _ACEOF
10713 rm -f conftest.$ac_objext conftest$ac_exeext
10714 if { (ac_try="$ac_link"
10715 case "(($ac_try" in
10716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717   *) ac_try_echo=$ac_try;;
10718 esac
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720   (eval "$ac_link") 2>conftest.er1
10721   ac_status=$?
10722   grep -v '^ *+' conftest.er1 >conftest.err
10723   rm -f conftest.er1
10724   cat conftest.err >&5
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); } && {
10727          test -z "$ac_c_werror_flag" ||
10728          test ! -s conftest.err
10729        } && test -s conftest$ac_exeext &&
10730        $as_test_x conftest$ac_exeext; then
10731   ac_cv_lib_dld_shl_load=yes
10732 else
10733   echo "$as_me: failed program was:" >&5
10734 sed 's/^/| /' conftest.$ac_ext >&5
10735
10736         ac_cv_lib_dld_shl_load=no
10737 fi
10738
10739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10740       conftest$ac_exeext conftest.$ac_ext
10741 LIBS=$ac_check_lib_save_LIBS
10742 fi
10743 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10744 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10745 if test $ac_cv_lib_dld_shl_load = yes; then
10746   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10747 else
10748   { echo "$as_me:$LINENO: checking for dlopen" >&5
10749 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10750 if test "${ac_cv_func_dlopen+set}" = set; then
10751   echo $ECHO_N "(cached) $ECHO_C" >&6
10752 else
10753   cat >conftest.$ac_ext <<_ACEOF
10754 /* confdefs.h.  */
10755 _ACEOF
10756 cat confdefs.h >>conftest.$ac_ext
10757 cat >>conftest.$ac_ext <<_ACEOF
10758 /* end confdefs.h.  */
10759 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10761 #define dlopen innocuous_dlopen
10762
10763 /* System header to define __stub macros and hopefully few prototypes,
10764     which can conflict with char dlopen (); below.
10765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10766     <limits.h> exists even on freestanding compilers.  */
10767
10768 #ifdef __STDC__
10769 # include <limits.h>
10770 #else
10771 # include <assert.h>
10772 #endif
10773
10774 #undef dlopen
10775
10776 /* Override any GCC internal prototype to avoid an error.
10777    Use char because int might match the return type of a GCC
10778    builtin and then its argument prototype would still apply.  */
10779 #ifdef __cplusplus
10780 extern "C"
10781 #endif
10782 char dlopen ();
10783 /* The GNU C library defines this for functions which it implements
10784     to always fail with ENOSYS.  Some functions are actually named
10785     something starting with __ and the normal name is an alias.  */
10786 #if defined __stub_dlopen || defined __stub___dlopen
10787 choke me
10788 #endif
10789
10790 int
10791 main ()
10792 {
10793 return dlopen ();
10794   ;
10795   return 0;
10796 }
10797 _ACEOF
10798 rm -f conftest.$ac_objext conftest$ac_exeext
10799 if { (ac_try="$ac_link"
10800 case "(($ac_try" in
10801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802   *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805   (eval "$ac_link") 2>conftest.er1
10806   ac_status=$?
10807   grep -v '^ *+' conftest.er1 >conftest.err
10808   rm -f conftest.er1
10809   cat conftest.err >&5
10810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10811   (exit $ac_status); } && {
10812          test -z "$ac_c_werror_flag" ||
10813          test ! -s conftest.err
10814        } && test -s conftest$ac_exeext &&
10815        $as_test_x conftest$ac_exeext; then
10816   ac_cv_func_dlopen=yes
10817 else
10818   echo "$as_me: failed program was:" >&5
10819 sed 's/^/| /' conftest.$ac_ext >&5
10820
10821         ac_cv_func_dlopen=no
10822 fi
10823
10824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10825       conftest$ac_exeext conftest.$ac_ext
10826 fi
10827 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10829 if test $ac_cv_func_dlopen = yes; then
10830   lt_cv_dlopen="dlopen"
10831 else
10832   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10833 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10834 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10835   echo $ECHO_N "(cached) $ECHO_C" >&6
10836 else
10837   ac_check_lib_save_LIBS=$LIBS
10838 LIBS="-ldl  $LIBS"
10839 cat >conftest.$ac_ext <<_ACEOF
10840 /* confdefs.h.  */
10841 _ACEOF
10842 cat confdefs.h >>conftest.$ac_ext
10843 cat >>conftest.$ac_ext <<_ACEOF
10844 /* end confdefs.h.  */
10845
10846 /* Override any GCC internal prototype to avoid an error.
10847    Use char because int might match the return type of a GCC
10848    builtin and then its argument prototype would still apply.  */
10849 #ifdef __cplusplus
10850 extern "C"
10851 #endif
10852 char dlopen ();
10853 int
10854 main ()
10855 {
10856 return dlopen ();
10857   ;
10858   return 0;
10859 }
10860 _ACEOF
10861 rm -f conftest.$ac_objext conftest$ac_exeext
10862 if { (ac_try="$ac_link"
10863 case "(($ac_try" in
10864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10865   *) ac_try_echo=$ac_try;;
10866 esac
10867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10868   (eval "$ac_link") 2>conftest.er1
10869   ac_status=$?
10870   grep -v '^ *+' conftest.er1 >conftest.err
10871   rm -f conftest.er1
10872   cat conftest.err >&5
10873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10874   (exit $ac_status); } && {
10875          test -z "$ac_c_werror_flag" ||
10876          test ! -s conftest.err
10877        } && test -s conftest$ac_exeext &&
10878        $as_test_x conftest$ac_exeext; then
10879   ac_cv_lib_dl_dlopen=yes
10880 else
10881   echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10883
10884         ac_cv_lib_dl_dlopen=no
10885 fi
10886
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888       conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS
10890 fi
10891 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10892 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10893 if test $ac_cv_lib_dl_dlopen = yes; then
10894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10895 else
10896   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10897 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10898 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10899   echo $ECHO_N "(cached) $ECHO_C" >&6
10900 else
10901   ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-lsvld  $LIBS"
10903 cat >conftest.$ac_ext <<_ACEOF
10904 /* confdefs.h.  */
10905 _ACEOF
10906 cat confdefs.h >>conftest.$ac_ext
10907 cat >>conftest.$ac_ext <<_ACEOF
10908 /* end confdefs.h.  */
10909
10910 /* Override any GCC internal prototype to avoid an error.
10911    Use char because int might match the return type of a GCC
10912    builtin and then its argument prototype would still apply.  */
10913 #ifdef __cplusplus
10914 extern "C"
10915 #endif
10916 char dlopen ();
10917 int
10918 main ()
10919 {
10920 return dlopen ();
10921   ;
10922   return 0;
10923 }
10924 _ACEOF
10925 rm -f conftest.$ac_objext conftest$ac_exeext
10926 if { (ac_try="$ac_link"
10927 case "(($ac_try" in
10928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929   *) ac_try_echo=$ac_try;;
10930 esac
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932   (eval "$ac_link") 2>conftest.er1
10933   ac_status=$?
10934   grep -v '^ *+' conftest.er1 >conftest.err
10935   rm -f conftest.er1
10936   cat conftest.err >&5
10937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10938   (exit $ac_status); } && {
10939          test -z "$ac_c_werror_flag" ||
10940          test ! -s conftest.err
10941        } && test -s conftest$ac_exeext &&
10942        $as_test_x conftest$ac_exeext; then
10943   ac_cv_lib_svld_dlopen=yes
10944 else
10945   echo "$as_me: failed program was:" >&5
10946 sed 's/^/| /' conftest.$ac_ext >&5
10947
10948         ac_cv_lib_svld_dlopen=no
10949 fi
10950
10951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10952       conftest$ac_exeext conftest.$ac_ext
10953 LIBS=$ac_check_lib_save_LIBS
10954 fi
10955 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10956 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10957 if test $ac_cv_lib_svld_dlopen = yes; then
10958   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10959 else
10960   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10961 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10962 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10963   echo $ECHO_N "(cached) $ECHO_C" >&6
10964 else
10965   ac_check_lib_save_LIBS=$LIBS
10966 LIBS="-ldld  $LIBS"
10967 cat >conftest.$ac_ext <<_ACEOF
10968 /* confdefs.h.  */
10969 _ACEOF
10970 cat confdefs.h >>conftest.$ac_ext
10971 cat >>conftest.$ac_ext <<_ACEOF
10972 /* end confdefs.h.  */
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975    Use char because int might match the return type of a GCC
10976    builtin and then its argument prototype would still apply.  */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char dld_link ();
10981 int
10982 main ()
10983 {
10984 return dld_link ();
10985   ;
10986   return 0;
10987 }
10988 _ACEOF
10989 rm -f conftest.$ac_objext conftest$ac_exeext
10990 if { (ac_try="$ac_link"
10991 case "(($ac_try" in
10992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10993   *) ac_try_echo=$ac_try;;
10994 esac
10995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10996   (eval "$ac_link") 2>conftest.er1
10997   ac_status=$?
10998   grep -v '^ *+' conftest.er1 >conftest.err
10999   rm -f conftest.er1
11000   cat conftest.err >&5
11001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002   (exit $ac_status); } && {
11003          test -z "$ac_c_werror_flag" ||
11004          test ! -s conftest.err
11005        } && test -s conftest$ac_exeext &&
11006        $as_test_x conftest$ac_exeext; then
11007   ac_cv_lib_dld_dld_link=yes
11008 else
11009   echo "$as_me: failed program was:" >&5
11010 sed 's/^/| /' conftest.$ac_ext >&5
11011
11012         ac_cv_lib_dld_dld_link=no
11013 fi
11014
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016       conftest$ac_exeext conftest.$ac_ext
11017 LIBS=$ac_check_lib_save_LIBS
11018 fi
11019 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11020 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11021 if test $ac_cv_lib_dld_dld_link = yes; then
11022   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11023 fi
11024
11025
11026 fi
11027
11028
11029 fi
11030
11031
11032 fi
11033
11034
11035 fi
11036
11037
11038 fi
11039
11040     ;;
11041   esac
11042
11043   if test "x$lt_cv_dlopen" != xno; then
11044     enable_dlopen=yes
11045   else
11046     enable_dlopen=no
11047   fi
11048
11049   case $lt_cv_dlopen in
11050   dlopen)
11051     save_CPPFLAGS="$CPPFLAGS"
11052     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11053
11054     save_LDFLAGS="$LDFLAGS"
11055     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11056
11057     save_LIBS="$LIBS"
11058     LIBS="$lt_cv_dlopen_libs $LIBS"
11059
11060     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11061 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11062 if test "${lt_cv_dlopen_self+set}" = set; then
11063   echo $ECHO_N "(cached) $ECHO_C" >&6
11064 else
11065           if test "$cross_compiling" = yes; then :
11066   lt_cv_dlopen_self=cross
11067 else
11068   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11069   lt_status=$lt_dlunknown
11070   cat > conftest.$ac_ext <<EOF
11071 #line 11071 "configure"
11072 #include "confdefs.h"
11073
11074 #if HAVE_DLFCN_H
11075 #include <dlfcn.h>
11076 #endif
11077
11078 #include <stdio.h>
11079
11080 #ifdef RTLD_GLOBAL
11081 #  define LT_DLGLOBAL           RTLD_GLOBAL
11082 #else
11083 #  ifdef DL_GLOBAL
11084 #    define LT_DLGLOBAL         DL_GLOBAL
11085 #  else
11086 #    define LT_DLGLOBAL         0
11087 #  endif
11088 #endif
11089
11090 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11091    find out it does not work in some platform. */
11092 #ifndef LT_DLLAZY_OR_NOW
11093 #  ifdef RTLD_LAZY
11094 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11095 #  else
11096 #    ifdef DL_LAZY
11097 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11098 #    else
11099 #      ifdef RTLD_NOW
11100 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11101 #      else
11102 #        ifdef DL_NOW
11103 #          define LT_DLLAZY_OR_NOW      DL_NOW
11104 #        else
11105 #          define LT_DLLAZY_OR_NOW      0
11106 #        endif
11107 #      endif
11108 #    endif
11109 #  endif
11110 #endif
11111
11112 #ifdef __cplusplus
11113 extern "C" void exit (int);
11114 #endif
11115
11116 void fnord() { int i=42;}
11117 int main ()
11118 {
11119   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11120   int status = $lt_dlunknown;
11121
11122   if (self)
11123     {
11124       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11125       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11126       /* dlclose (self); */
11127     }
11128
11129     exit (status);
11130 }
11131 EOF
11132   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11133   (eval $ac_link) 2>&5
11134   ac_status=$?
11135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11136   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11137     (./conftest; exit; ) >&5 2>/dev/null
11138     lt_status=$?
11139     case x$lt_status in
11140       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11141       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11142       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11143     esac
11144   else :
11145     # compilation failed
11146     lt_cv_dlopen_self=no
11147   fi
11148 fi
11149 rm -fr conftest*
11150
11151
11152 fi
11153 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11154 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11155
11156     if test "x$lt_cv_dlopen_self" = xyes; then
11157       LDFLAGS="$LDFLAGS $link_static_flag"
11158       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11159 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11160 if test "${lt_cv_dlopen_self_static+set}" = set; then
11161   echo $ECHO_N "(cached) $ECHO_C" >&6
11162 else
11163           if test "$cross_compiling" = yes; then :
11164   lt_cv_dlopen_self_static=cross
11165 else
11166   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11167   lt_status=$lt_dlunknown
11168   cat > conftest.$ac_ext <<EOF
11169 #line 11169 "configure"
11170 #include "confdefs.h"
11171
11172 #if HAVE_DLFCN_H
11173 #include <dlfcn.h>
11174 #endif
11175
11176 #include <stdio.h>
11177
11178 #ifdef RTLD_GLOBAL
11179 #  define LT_DLGLOBAL           RTLD_GLOBAL
11180 #else
11181 #  ifdef DL_GLOBAL
11182 #    define LT_DLGLOBAL         DL_GLOBAL
11183 #  else
11184 #    define LT_DLGLOBAL         0
11185 #  endif
11186 #endif
11187
11188 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11189    find out it does not work in some platform. */
11190 #ifndef LT_DLLAZY_OR_NOW
11191 #  ifdef RTLD_LAZY
11192 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11193 #  else
11194 #    ifdef DL_LAZY
11195 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11196 #    else
11197 #      ifdef RTLD_NOW
11198 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11199 #      else
11200 #        ifdef DL_NOW
11201 #          define LT_DLLAZY_OR_NOW      DL_NOW
11202 #        else
11203 #          define LT_DLLAZY_OR_NOW      0
11204 #        endif
11205 #      endif
11206 #    endif
11207 #  endif
11208 #endif
11209
11210 #ifdef __cplusplus
11211 extern "C" void exit (int);
11212 #endif
11213
11214 void fnord() { int i=42;}
11215 int main ()
11216 {
11217   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11218   int status = $lt_dlunknown;
11219
11220   if (self)
11221     {
11222       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11223       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11224       /* dlclose (self); */
11225     }
11226
11227     exit (status);
11228 }
11229 EOF
11230   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11231   (eval $ac_link) 2>&5
11232   ac_status=$?
11233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11234   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11235     (./conftest; exit; ) >&5 2>/dev/null
11236     lt_status=$?
11237     case x$lt_status in
11238       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11239       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11240       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11241     esac
11242   else :
11243     # compilation failed
11244     lt_cv_dlopen_self_static=no
11245   fi
11246 fi
11247 rm -fr conftest*
11248
11249
11250 fi
11251 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11252 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11253     fi
11254
11255     CPPFLAGS="$save_CPPFLAGS"
11256     LDFLAGS="$save_LDFLAGS"
11257     LIBS="$save_LIBS"
11258     ;;
11259   esac
11260
11261   case $lt_cv_dlopen_self in
11262   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11263   *) enable_dlopen_self=unknown ;;
11264   esac
11265
11266   case $lt_cv_dlopen_self_static in
11267   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11268   *) enable_dlopen_self_static=unknown ;;
11269   esac
11270 fi
11271
11272
11273 # Report which librarie types wil actually be built
11274 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11275 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11276 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11277 echo "${ECHO_T}$can_build_shared" >&6; }
11278
11279 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11280 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11281 test "$can_build_shared" = "no" && enable_shared=no
11282
11283 # On AIX, shared libraries and static libraries use the same namespace, and
11284 # are all built from PIC.
11285 case $host_os in
11286 aix3*)
11287   test "$enable_shared" = yes && enable_static=no
11288   if test -n "$RANLIB"; then
11289     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11290     postinstall_cmds='$RANLIB $lib'
11291   fi
11292   ;;
11293
11294 aix4* | aix5*)
11295   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11296     test "$enable_shared" = yes && enable_static=no
11297   fi
11298     ;;
11299 esac
11300 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11301 echo "${ECHO_T}$enable_shared" >&6; }
11302
11303 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11304 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11305 # Make sure either enable_shared or enable_static is yes.
11306 test "$enable_shared" = yes || enable_static=yes
11307 { echo "$as_me:$LINENO: result: $enable_static" >&5
11308 echo "${ECHO_T}$enable_static" >&6; }
11309
11310 # The else clause should only fire when bootstrapping the
11311 # libtool distribution, otherwise you forgot to ship ltmain.sh
11312 # with your package, and you will get complaints that there are
11313 # no rules to generate ltmain.sh.
11314 if test -f "$ltmain"; then
11315   # See if we are running on zsh, and set the options which allow our commands through
11316   # without removal of \ escapes.
11317   if test -n "${ZSH_VERSION+set}" ; then
11318     setopt NO_GLOB_SUBST
11319   fi
11320   # Now quote all the things that may contain metacharacters while being
11321   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11322   # variables and quote the copies for generation of the libtool script.
11323   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11324     SED SHELL STRIP \
11325     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11326     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11327     deplibs_check_method reload_flag reload_cmds need_locks \
11328     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11329     lt_cv_sys_global_symbol_to_c_name_address \
11330     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11331     old_postinstall_cmds old_postuninstall_cmds \
11332     compiler \
11333     CC \
11334     LD \
11335     lt_prog_compiler_wl \
11336     lt_prog_compiler_pic \
11337     lt_prog_compiler_static \
11338     lt_prog_compiler_no_builtin_flag \
11339     export_dynamic_flag_spec \
11340     thread_safe_flag_spec \
11341     whole_archive_flag_spec \
11342     enable_shared_with_static_runtimes \
11343     old_archive_cmds \
11344     old_archive_from_new_cmds \
11345     predep_objects \
11346     postdep_objects \
11347     predeps \
11348     postdeps \
11349     compiler_lib_search_path \
11350     archive_cmds \
11351     archive_expsym_cmds \
11352     postinstall_cmds \
11353     postuninstall_cmds \
11354     old_archive_from_expsyms_cmds \
11355     allow_undefined_flag \
11356     no_undefined_flag \
11357     export_symbols_cmds \
11358     hardcode_libdir_flag_spec \
11359     hardcode_libdir_flag_spec_ld \
11360     hardcode_libdir_separator \
11361     hardcode_automatic \
11362     module_cmds \
11363     module_expsym_cmds \
11364     lt_cv_prog_compiler_c_o \
11365     exclude_expsyms \
11366     include_expsyms; do
11367
11368     case $var in
11369     old_archive_cmds | \
11370     old_archive_from_new_cmds | \
11371     archive_cmds | \
11372     archive_expsym_cmds | \
11373     module_cmds | \
11374     module_expsym_cmds | \
11375     old_archive_from_expsyms_cmds | \
11376     export_symbols_cmds | \
11377     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11378     postinstall_cmds | postuninstall_cmds | \
11379     old_postinstall_cmds | old_postuninstall_cmds | \
11380     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11381       # Double-quote double-evaled strings.
11382       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11383       ;;
11384     *)
11385       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11386       ;;
11387     esac
11388   done
11389
11390   case $lt_echo in
11391   *'\$0 --fallback-echo"')
11392     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11393     ;;
11394   esac
11395
11396 cfgfile="${ofile}T"
11397   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11398   $rm -f "$cfgfile"
11399   { echo "$as_me:$LINENO: creating $ofile" >&5
11400 echo "$as_me: creating $ofile" >&6;}
11401
11402   cat <<__EOF__ >> "$cfgfile"
11403 #! $SHELL
11404
11405 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11406 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11407 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11408 #
11409 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11410 # Free Software Foundation, Inc.
11411 #
11412 # This file is part of GNU Libtool:
11413 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11414 #
11415 # This program is free software; you can redistribute it and/or modify
11416 # it under the terms of the GNU General Public License as published by
11417 # the Free Software Foundation; either version 2 of the License, or
11418 # (at your option) any later version.
11419 #
11420 # This program is distributed in the hope that it will be useful, but
11421 # WITHOUT ANY WARRANTY; without even the implied warranty of
11422 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11423 # General Public License for more details.
11424 #
11425 # You should have received a copy of the GNU General Public License
11426 # along with this program; if not, write to the Free Software
11427 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11428 #
11429 # As a special exception to the GNU General Public License, if you
11430 # distribute this file as part of a program that contains a
11431 # configuration script generated by Autoconf, you may include it under
11432 # the same distribution terms that you use for the rest of that program.
11433
11434 # A sed program that does not truncate output.
11435 SED=$lt_SED
11436
11437 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11438 Xsed="$SED -e 1s/^X//"
11439
11440 # The HP-UX ksh and POSIX shell print the target directory to stdout
11441 # if CDPATH is set.
11442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11443
11444 # The names of the tagged configurations supported by this script.
11445 available_tags=
11446
11447 # ### BEGIN LIBTOOL CONFIG
11448
11449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11450
11451 # Shell to use when invoking shell scripts.
11452 SHELL=$lt_SHELL
11453
11454 # Whether or not to build shared libraries.
11455 build_libtool_libs=$enable_shared
11456
11457 # Whether or not to build static libraries.
11458 build_old_libs=$enable_static
11459
11460 # Whether or not to add -lc for building shared libraries.
11461 build_libtool_need_lc=$archive_cmds_need_lc
11462
11463 # Whether or not to disallow shared libs when runtime libs are static
11464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11465
11466 # Whether or not to optimize for fast installation.
11467 fast_install=$enable_fast_install
11468
11469 # The host system.
11470 host_alias=$host_alias
11471 host=$host
11472 host_os=$host_os
11473
11474 # The build system.
11475 build_alias=$build_alias
11476 build=$build
11477 build_os=$build_os
11478
11479 # An echo program that does not interpret backslashes.
11480 echo=$lt_echo
11481
11482 # The archiver.
11483 AR=$lt_AR
11484 AR_FLAGS=$lt_AR_FLAGS
11485
11486 # A C compiler.
11487 LTCC=$lt_LTCC
11488
11489 # A language-specific compiler.
11490 CC=$lt_compiler
11491
11492 # Is the compiler the GNU C compiler?
11493 with_gcc=$GCC
11494
11495 # An ERE matcher.
11496 EGREP=$lt_EGREP
11497
11498 # The linker used to build libraries.
11499 LD=$lt_LD
11500
11501 # Whether we need hard or soft links.
11502 LN_S=$lt_LN_S
11503
11504 # A BSD-compatible nm program.
11505 NM=$lt_NM
11506
11507 # A symbol stripping program
11508 STRIP=$lt_STRIP
11509
11510 # Used to examine libraries when file_magic_cmd begins "file"
11511 MAGIC_CMD=$MAGIC_CMD
11512
11513 # Used on cygwin: DLL creation program.
11514 DLLTOOL="$DLLTOOL"
11515
11516 # Used on cygwin: object dumper.
11517 OBJDUMP="$OBJDUMP"
11518
11519 # Used on cygwin: assembler.
11520 AS="$AS"
11521
11522 # The name of the directory that contains temporary libtool files.
11523 objdir=$objdir
11524
11525 # How to create reloadable object files.
11526 reload_flag=$lt_reload_flag
11527 reload_cmds=$lt_reload_cmds
11528
11529 # How to pass a linker flag through the compiler.
11530 wl=$lt_lt_prog_compiler_wl
11531
11532 # Object file suffix (normally "o").
11533 objext="$ac_objext"
11534
11535 # Old archive suffix (normally "a").
11536 libext="$libext"
11537
11538 # Shared library suffix (normally ".so").
11539 shrext_cmds='$shrext_cmds'
11540
11541 # Executable file suffix (normally "").
11542 exeext="$exeext"
11543
11544 # Additional compiler flags for building library objects.
11545 pic_flag=$lt_lt_prog_compiler_pic
11546 pic_mode=$pic_mode
11547
11548 # What is the maximum length of a command?
11549 max_cmd_len=$lt_cv_sys_max_cmd_len
11550
11551 # Does compiler simultaneously support -c and -o options?
11552 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11553
11554 # Must we lock files when doing compilation?
11555 need_locks=$lt_need_locks
11556
11557 # Do we need the lib prefix for modules?
11558 need_lib_prefix=$need_lib_prefix
11559
11560 # Do we need a version for libraries?
11561 need_version=$need_version
11562
11563 # Whether dlopen is supported.
11564 dlopen_support=$enable_dlopen
11565
11566 # Whether dlopen of programs is supported.
11567 dlopen_self=$enable_dlopen_self
11568
11569 # Whether dlopen of statically linked programs is supported.
11570 dlopen_self_static=$enable_dlopen_self_static
11571
11572 # Compiler flag to prevent dynamic linking.
11573 link_static_flag=$lt_lt_prog_compiler_static
11574
11575 # Compiler flag to turn off builtin functions.
11576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11577
11578 # Compiler flag to allow reflexive dlopens.
11579 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11580
11581 # Compiler flag to generate shared objects directly from archives.
11582 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11583
11584 # Compiler flag to generate thread-safe objects.
11585 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11586
11587 # Library versioning type.
11588 version_type=$version_type
11589
11590 # Format of library name prefix.
11591 libname_spec=$lt_libname_spec
11592
11593 # List of archive names.  First name is the real one, the rest are links.
11594 # The last name is the one that the linker finds with -lNAME.
11595 library_names_spec=$lt_library_names_spec
11596
11597 # The coded name of the library, if different from the real name.
11598 soname_spec=$lt_soname_spec
11599
11600 # Commands used to build and install an old-style archive.
11601 RANLIB=$lt_RANLIB
11602 old_archive_cmds=$lt_old_archive_cmds
11603 old_postinstall_cmds=$lt_old_postinstall_cmds
11604 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11605
11606 # Create an old-style archive from a shared archive.
11607 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11608
11609 # Create a temporary old-style archive to link instead of a shared archive.
11610 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11611
11612 # Commands used to build and install a shared archive.
11613 archive_cmds=$lt_archive_cmds
11614 archive_expsym_cmds=$lt_archive_expsym_cmds
11615 postinstall_cmds=$lt_postinstall_cmds
11616 postuninstall_cmds=$lt_postuninstall_cmds
11617
11618 # Commands used to build a loadable module (assumed same as above if empty)
11619 module_cmds=$lt_module_cmds
11620 module_expsym_cmds=$lt_module_expsym_cmds
11621
11622 # Commands to strip libraries.
11623 old_striplib=$lt_old_striplib
11624 striplib=$lt_striplib
11625
11626 # Dependencies to place before the objects being linked to create a
11627 # shared library.
11628 predep_objects=$lt_predep_objects
11629
11630 # Dependencies to place after the objects being linked to create a
11631 # shared library.
11632 postdep_objects=$lt_postdep_objects
11633
11634 # Dependencies to place before the objects being linked to create a
11635 # shared library.
11636 predeps=$lt_predeps
11637
11638 # Dependencies to place after the objects being linked to create a
11639 # shared library.
11640 postdeps=$lt_postdeps
11641
11642 # The library search path used internally by the compiler when linking
11643 # a shared library.
11644 compiler_lib_search_path=$lt_compiler_lib_search_path
11645
11646 # Method to check whether dependent libraries are shared objects.
11647 deplibs_check_method=$lt_deplibs_check_method
11648
11649 # Command to use when deplibs_check_method == file_magic.
11650 file_magic_cmd=$lt_file_magic_cmd
11651
11652 # Flag that allows shared libraries with undefined symbols to be built.
11653 allow_undefined_flag=$lt_allow_undefined_flag
11654
11655 # Flag that forces no undefined symbols.
11656 no_undefined_flag=$lt_no_undefined_flag
11657
11658 # Commands used to finish a libtool library installation in a directory.
11659 finish_cmds=$lt_finish_cmds
11660
11661 # Same as above, but a single script fragment to be evaled but not shown.
11662 finish_eval=$lt_finish_eval
11663
11664 # Take the output of nm and produce a listing of raw symbols and C names.
11665 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11666
11667 # Transform the output of nm in a proper C declaration
11668 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11669
11670 # Transform the output of nm in a C name address pair
11671 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11672
11673 # This is the shared library runtime path variable.
11674 runpath_var=$runpath_var
11675
11676 # This is the shared library path variable.
11677 shlibpath_var=$shlibpath_var
11678
11679 # Is shlibpath searched before the hard-coded library search path?
11680 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11681
11682 # How to hardcode a shared library path into an executable.
11683 hardcode_action=$hardcode_action
11684
11685 # Whether we should hardcode library paths into libraries.
11686 hardcode_into_libs=$hardcode_into_libs
11687
11688 # Flag to hardcode \$libdir into a binary during linking.
11689 # This must work even if \$libdir does not exist.
11690 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11691
11692 # If ld is used when linking, flag to hardcode \$libdir into
11693 # a binary during linking. This must work even if \$libdir does
11694 # not exist.
11695 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11696
11697 # Whether we need a single -rpath flag with a separated argument.
11698 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11699
11700 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11701 # resulting binary.
11702 hardcode_direct=$hardcode_direct
11703
11704 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11705 # resulting binary.
11706 hardcode_minus_L=$hardcode_minus_L
11707
11708 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11709 # the resulting binary.
11710 hardcode_shlibpath_var=$hardcode_shlibpath_var
11711
11712 # Set to yes if building a shared library automatically hardcodes DIR into the library
11713 # and all subsequent libraries and executables linked against it.
11714 hardcode_automatic=$hardcode_automatic
11715
11716 # Variables whose values should be saved in libtool wrapper scripts and
11717 # restored at relink time.
11718 variables_saved_for_relink="$variables_saved_for_relink"
11719
11720 # Whether libtool must link a program against all its dependency libraries.
11721 link_all_deplibs=$link_all_deplibs
11722
11723 # Compile-time system search path for libraries
11724 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11725
11726 # Run-time system search path for libraries
11727 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11728
11729 # Fix the shell variable \$srcfile for the compiler.
11730 fix_srcfile_path="$fix_srcfile_path"
11731
11732 # Set to yes if exported symbols are required.
11733 always_export_symbols=$always_export_symbols
11734
11735 # The commands to list exported symbols.
11736 export_symbols_cmds=$lt_export_symbols_cmds
11737
11738 # The commands to extract the exported symbol list from a shared archive.
11739 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11740
11741 # Symbols that should not be listed in the preloaded symbols.
11742 exclude_expsyms=$lt_exclude_expsyms
11743
11744 # Symbols that must always be exported.
11745 include_expsyms=$lt_include_expsyms
11746
11747 # ### END LIBTOOL CONFIG
11748
11749 __EOF__
11750
11751
11752   case $host_os in
11753   aix3*)
11754     cat <<\EOF >> "$cfgfile"
11755
11756 # AIX sometimes has problems with the GCC collect2 program.  For some
11757 # reason, if we set the COLLECT_NAMES environment variable, the problems
11758 # vanish in a puff of smoke.
11759 if test "X${COLLECT_NAMES+set}" != Xset; then
11760   COLLECT_NAMES=
11761   export COLLECT_NAMES
11762 fi
11763 EOF
11764     ;;
11765   esac
11766
11767   # We use sed instead of cat because bash on DJGPP gets confused if
11768   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11769   # text mode, it properly converts lines to CR/LF.  This bash problem
11770   # is reportedly fixed, but why not run on old versions too?
11771   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11772
11773   mv -f "$cfgfile" "$ofile" || \
11774     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11775   chmod +x "$ofile"
11776
11777 else
11778   # If there is no Makefile yet, we rely on a make rule to execute
11779   # `config.status --recheck' to rerun these tests and create the
11780   # libtool script then.
11781   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11782   if test -f "$ltmain_in"; then
11783     test -f Makefile && make "$ltmain"
11784   fi
11785 fi
11786
11787
11788 ac_ext=c
11789 ac_cpp='$CPP $CPPFLAGS'
11790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11793
11794 CC="$lt_save_CC"
11795
11796
11797 # Check whether --with-tags was given.
11798 if test "${with_tags+set}" = set; then
11799   withval=$with_tags; tagnames="$withval"
11800 fi
11801
11802
11803 if test -f "$ltmain" && test -n "$tagnames"; then
11804   if test ! -f "${ofile}"; then
11805     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11806 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11807   fi
11808
11809   if test -z "$LTCC"; then
11810     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11811     if test -z "$LTCC"; then
11812       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11813 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11814     else
11815       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11816 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11817     fi
11818   fi
11819
11820   # Extract list of available tagged configurations in $ofile.
11821   # Note that this assumes the entire list is on one line.
11822   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11823
11824   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11825   for tagname in $tagnames; do
11826     IFS="$lt_save_ifs"
11827     # Check whether tagname contains only valid characters
11828     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11829     "") ;;
11830     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11831 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11832    { (exit 1); exit 1; }; }
11833         ;;
11834     esac
11835
11836     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11837     then
11838       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11839 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11840    { (exit 1); exit 1; }; }
11841     fi
11842
11843     # Update the list of available tags.
11844     if test -n "$tagname"; then
11845       echo appending configuration tag \"$tagname\" to $ofile
11846
11847       case $tagname in
11848       CXX)
11849         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11850             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11851             (test "X$CXX" != "Xg++"))) ; then
11852           :
11853         else
11854           tagname=""
11855         fi
11856         ;;
11857
11858       F77)
11859         if test -n "$F77" && test "X$F77" != "Xno"; then
11860           :
11861         else
11862           tagname=""
11863         fi
11864         ;;
11865
11866       GCJ)
11867         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11868           :
11869         else
11870           tagname=""
11871         fi
11872         ;;
11873
11874       RC)
11875
11876
11877 # Source file extension for RC test sources.
11878 ac_ext=rc
11879
11880 # Object file extension for compiled RC test sources.
11881 objext=o
11882 objext_RC=$objext
11883
11884 # Code to be used in simple compile tests
11885 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11886
11887 # Code to be used in simple link tests
11888 lt_simple_link_test_code="$lt_simple_compile_test_code"
11889
11890 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11891
11892 # If no C compiler was specified, use CC.
11893 LTCC=${LTCC-"$CC"}
11894
11895 # Allow CC to be a program name with arguments.
11896 compiler=$CC
11897
11898
11899 # save warnings/boilerplate of simple test code
11900 ac_outfile=conftest.$ac_objext
11901 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11902 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11903 _lt_compiler_boilerplate=`cat conftest.err`
11904 $rm conftest*
11905
11906 ac_outfile=conftest.$ac_objext
11907 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11908 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11909 _lt_linker_boilerplate=`cat conftest.err`
11910 $rm conftest*
11911
11912
11913 # Allow CC to be a program name with arguments.
11914 lt_save_CC="$CC"
11915 CC=${RC-"windres"}
11916 compiler=$CC
11917 compiler_RC=$CC
11918 for cc_temp in $compiler""; do
11919   case $cc_temp in
11920     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11921     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11922     \-*) ;;
11923     *) break;;
11924   esac
11925 done
11926 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11927
11928 lt_cv_prog_compiler_c_o_RC=yes
11929
11930 # The else clause should only fire when bootstrapping the
11931 # libtool distribution, otherwise you forgot to ship ltmain.sh
11932 # with your package, and you will get complaints that there are
11933 # no rules to generate ltmain.sh.
11934 if test -f "$ltmain"; then
11935   # See if we are running on zsh, and set the options which allow our commands through
11936   # without removal of \ escapes.
11937   if test -n "${ZSH_VERSION+set}" ; then
11938     setopt NO_GLOB_SUBST
11939   fi
11940   # Now quote all the things that may contain metacharacters while being
11941   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11942   # variables and quote the copies for generation of the libtool script.
11943   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11944     SED SHELL STRIP \
11945     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11946     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11947     deplibs_check_method reload_flag reload_cmds need_locks \
11948     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11949     lt_cv_sys_global_symbol_to_c_name_address \
11950     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11951     old_postinstall_cmds old_postuninstall_cmds \
11952     compiler_RC \
11953     CC_RC \
11954     LD_RC \
11955     lt_prog_compiler_wl_RC \
11956     lt_prog_compiler_pic_RC \
11957     lt_prog_compiler_static_RC \
11958     lt_prog_compiler_no_builtin_flag_RC \
11959     export_dynamic_flag_spec_RC \
11960     thread_safe_flag_spec_RC \
11961     whole_archive_flag_spec_RC \
11962     enable_shared_with_static_runtimes_RC \
11963     old_archive_cmds_RC \
11964     old_archive_from_new_cmds_RC \
11965     predep_objects_RC \
11966     postdep_objects_RC \
11967     predeps_RC \
11968     postdeps_RC \
11969     compiler_lib_search_path_RC \
11970     archive_cmds_RC \
11971     archive_expsym_cmds_RC \
11972     postinstall_cmds_RC \
11973     postuninstall_cmds_RC \
11974     old_archive_from_expsyms_cmds_RC \
11975     allow_undefined_flag_RC \
11976     no_undefined_flag_RC \
11977     export_symbols_cmds_RC \
11978     hardcode_libdir_flag_spec_RC \
11979     hardcode_libdir_flag_spec_ld_RC \
11980     hardcode_libdir_separator_RC \
11981     hardcode_automatic_RC \
11982     module_cmds_RC \
11983     module_expsym_cmds_RC \
11984     lt_cv_prog_compiler_c_o_RC \
11985     exclude_expsyms_RC \
11986     include_expsyms_RC; do
11987
11988     case $var in
11989     old_archive_cmds_RC | \
11990     old_archive_from_new_cmds_RC | \
11991     archive_cmds_RC | \
11992     archive_expsym_cmds_RC | \
11993     module_cmds_RC | \
11994     module_expsym_cmds_RC | \
11995     old_archive_from_expsyms_cmds_RC | \
11996     export_symbols_cmds_RC | \
11997     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11998     postinstall_cmds | postuninstall_cmds | \
11999     old_postinstall_cmds | old_postuninstall_cmds | \
12000     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12001       # Double-quote double-evaled strings.
12002       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12003       ;;
12004     *)
12005       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12006       ;;
12007     esac
12008   done
12009
12010   case $lt_echo in
12011   *'\$0 --fallback-echo"')
12012     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12013     ;;
12014   esac
12015
12016 cfgfile="$ofile"
12017
12018   cat <<__EOF__ >> "$cfgfile"
12019 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12020
12021 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12022
12023 # Shell to use when invoking shell scripts.
12024 SHELL=$lt_SHELL
12025
12026 # Whether or not to build shared libraries.
12027 build_libtool_libs=$enable_shared
12028
12029 # Whether or not to build static libraries.
12030 build_old_libs=$enable_static
12031
12032 # Whether or not to add -lc for building shared libraries.
12033 build_libtool_need_lc=$archive_cmds_need_lc_RC
12034
12035 # Whether or not to disallow shared libs when runtime libs are static
12036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12037
12038 # Whether or not to optimize for fast installation.
12039 fast_install=$enable_fast_install
12040
12041 # The host system.
12042 host_alias=$host_alias
12043 host=$host
12044 host_os=$host_os
12045
12046 # The build system.
12047 build_alias=$build_alias
12048 build=$build
12049 build_os=$build_os
12050
12051 # An echo program that does not interpret backslashes.
12052 echo=$lt_echo
12053
12054 # The archiver.
12055 AR=$lt_AR
12056 AR_FLAGS=$lt_AR_FLAGS
12057
12058 # A C compiler.
12059 LTCC=$lt_LTCC
12060
12061 # A language-specific compiler.
12062 CC=$lt_compiler_RC
12063
12064 # Is the compiler the GNU C compiler?
12065 with_gcc=$GCC_RC
12066
12067 # An ERE matcher.
12068 EGREP=$lt_EGREP
12069
12070 # The linker used to build libraries.
12071 LD=$lt_LD_RC
12072
12073 # Whether we need hard or soft links.
12074 LN_S=$lt_LN_S
12075
12076 # A BSD-compatible nm program.
12077 NM=$lt_NM
12078
12079 # A symbol stripping program
12080 STRIP=$lt_STRIP
12081
12082 # Used to examine libraries when file_magic_cmd begins "file"
12083 MAGIC_CMD=$MAGIC_CMD
12084
12085 # Used on cygwin: DLL creation program.
12086 DLLTOOL="$DLLTOOL"
12087
12088 # Used on cygwin: object dumper.
12089 OBJDUMP="$OBJDUMP"
12090
12091 # Used on cygwin: assembler.
12092 AS="$AS"
12093
12094 # The name of the directory that contains temporary libtool files.
12095 objdir=$objdir
12096
12097 # How to create reloadable object files.
12098 reload_flag=$lt_reload_flag
12099 reload_cmds=$lt_reload_cmds
12100
12101 # How to pass a linker flag through the compiler.
12102 wl=$lt_lt_prog_compiler_wl_RC
12103
12104 # Object file suffix (normally "o").
12105 objext="$ac_objext"
12106
12107 # Old archive suffix (normally "a").
12108 libext="$libext"
12109
12110 # Shared library suffix (normally ".so").
12111 shrext_cmds='$shrext_cmds'
12112
12113 # Executable file suffix (normally "").
12114 exeext="$exeext"
12115
12116 # Additional compiler flags for building library objects.
12117 pic_flag=$lt_lt_prog_compiler_pic_RC
12118 pic_mode=$pic_mode
12119
12120 # What is the maximum length of a command?
12121 max_cmd_len=$lt_cv_sys_max_cmd_len
12122
12123 # Does compiler simultaneously support -c and -o options?
12124 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12125
12126 # Must we lock files when doing compilation?
12127 need_locks=$lt_need_locks
12128
12129 # Do we need the lib prefix for modules?
12130 need_lib_prefix=$need_lib_prefix
12131
12132 # Do we need a version for libraries?
12133 need_version=$need_version
12134
12135 # Whether dlopen is supported.
12136 dlopen_support=$enable_dlopen
12137
12138 # Whether dlopen of programs is supported.
12139 dlopen_self=$enable_dlopen_self
12140
12141 # Whether dlopen of statically linked programs is supported.
12142 dlopen_self_static=$enable_dlopen_self_static
12143
12144 # Compiler flag to prevent dynamic linking.
12145 link_static_flag=$lt_lt_prog_compiler_static_RC
12146
12147 # Compiler flag to turn off builtin functions.
12148 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12149
12150 # Compiler flag to allow reflexive dlopens.
12151 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12152
12153 # Compiler flag to generate shared objects directly from archives.
12154 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12155
12156 # Compiler flag to generate thread-safe objects.
12157 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12158
12159 # Library versioning type.
12160 version_type=$version_type
12161
12162 # Format of library name prefix.
12163 libname_spec=$lt_libname_spec
12164
12165 # List of archive names.  First name is the real one, the rest are links.
12166 # The last name is the one that the linker finds with -lNAME.
12167 library_names_spec=$lt_library_names_spec
12168
12169 # The coded name of the library, if different from the real name.
12170 soname_spec=$lt_soname_spec
12171
12172 # Commands used to build and install an old-style archive.
12173 RANLIB=$lt_RANLIB
12174 old_archive_cmds=$lt_old_archive_cmds_RC
12175 old_postinstall_cmds=$lt_old_postinstall_cmds
12176 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12177
12178 # Create an old-style archive from a shared archive.
12179 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12180
12181 # Create a temporary old-style archive to link instead of a shared archive.
12182 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12183
12184 # Commands used to build and install a shared archive.
12185 archive_cmds=$lt_archive_cmds_RC
12186 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12187 postinstall_cmds=$lt_postinstall_cmds
12188 postuninstall_cmds=$lt_postuninstall_cmds
12189
12190 # Commands used to build a loadable module (assumed same as above if empty)
12191 module_cmds=$lt_module_cmds_RC
12192 module_expsym_cmds=$lt_module_expsym_cmds_RC
12193
12194 # Commands to strip libraries.
12195 old_striplib=$lt_old_striplib
12196 striplib=$lt_striplib
12197
12198 # Dependencies to place before the objects being linked to create a
12199 # shared library.
12200 predep_objects=$lt_predep_objects_RC
12201
12202 # Dependencies to place after the objects being linked to create a
12203 # shared library.
12204 postdep_objects=$lt_postdep_objects_RC
12205
12206 # Dependencies to place before the objects being linked to create a
12207 # shared library.
12208 predeps=$lt_predeps_RC
12209
12210 # Dependencies to place after the objects being linked to create a
12211 # shared library.
12212 postdeps=$lt_postdeps_RC
12213
12214 # The library search path used internally by the compiler when linking
12215 # a shared library.
12216 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12217
12218 # Method to check whether dependent libraries are shared objects.
12219 deplibs_check_method=$lt_deplibs_check_method
12220
12221 # Command to use when deplibs_check_method == file_magic.
12222 file_magic_cmd=$lt_file_magic_cmd
12223
12224 # Flag that allows shared libraries with undefined symbols to be built.
12225 allow_undefined_flag=$lt_allow_undefined_flag_RC
12226
12227 # Flag that forces no undefined symbols.
12228 no_undefined_flag=$lt_no_undefined_flag_RC
12229
12230 # Commands used to finish a libtool library installation in a directory.
12231 finish_cmds=$lt_finish_cmds
12232
12233 # Same as above, but a single script fragment to be evaled but not shown.
12234 finish_eval=$lt_finish_eval
12235
12236 # Take the output of nm and produce a listing of raw symbols and C names.
12237 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12238
12239 # Transform the output of nm in a proper C declaration
12240 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12241
12242 # Transform the output of nm in a C name address pair
12243 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12244
12245 # This is the shared library runtime path variable.
12246 runpath_var=$runpath_var
12247
12248 # This is the shared library path variable.
12249 shlibpath_var=$shlibpath_var
12250
12251 # Is shlibpath searched before the hard-coded library search path?
12252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12253
12254 # How to hardcode a shared library path into an executable.
12255 hardcode_action=$hardcode_action_RC
12256
12257 # Whether we should hardcode library paths into libraries.
12258 hardcode_into_libs=$hardcode_into_libs
12259
12260 # Flag to hardcode \$libdir into a binary during linking.
12261 # This must work even if \$libdir does not exist.
12262 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12263
12264 # If ld is used when linking, flag to hardcode \$libdir into
12265 # a binary during linking. This must work even if \$libdir does
12266 # not exist.
12267 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12268
12269 # Whether we need a single -rpath flag with a separated argument.
12270 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12271
12272 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12273 # resulting binary.
12274 hardcode_direct=$hardcode_direct_RC
12275
12276 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12277 # resulting binary.
12278 hardcode_minus_L=$hardcode_minus_L_RC
12279
12280 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12281 # the resulting binary.
12282 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12283
12284 # Set to yes if building a shared library automatically hardcodes DIR into the library
12285 # and all subsequent libraries and executables linked against it.
12286 hardcode_automatic=$hardcode_automatic_RC
12287
12288 # Variables whose values should be saved in libtool wrapper scripts and
12289 # restored at relink time.
12290 variables_saved_for_relink="$variables_saved_for_relink"
12291
12292 # Whether libtool must link a program against all its dependency libraries.
12293 link_all_deplibs=$link_all_deplibs_RC
12294
12295 # Compile-time system search path for libraries
12296 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12297
12298 # Run-time system search path for libraries
12299 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12300
12301 # Fix the shell variable \$srcfile for the compiler.
12302 fix_srcfile_path="$fix_srcfile_path_RC"
12303
12304 # Set to yes if exported symbols are required.
12305 always_export_symbols=$always_export_symbols_RC
12306
12307 # The commands to list exported symbols.
12308 export_symbols_cmds=$lt_export_symbols_cmds_RC
12309
12310 # The commands to extract the exported symbol list from a shared archive.
12311 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12312
12313 # Symbols that should not be listed in the preloaded symbols.
12314 exclude_expsyms=$lt_exclude_expsyms_RC
12315
12316 # Symbols that must always be exported.
12317 include_expsyms=$lt_include_expsyms_RC
12318
12319 # ### END LIBTOOL TAG CONFIG: $tagname
12320
12321 __EOF__
12322
12323
12324 else
12325   # If there is no Makefile yet, we rely on a make rule to execute
12326   # `config.status --recheck' to rerun these tests and create the
12327   # libtool script then.
12328   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12329   if test -f "$ltmain_in"; then
12330     test -f Makefile && make "$ltmain"
12331   fi
12332 fi
12333
12334
12335 ac_ext=c
12336 ac_cpp='$CPP $CPPFLAGS'
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12340
12341 CC="$lt_save_CC"
12342
12343         ;;
12344
12345       *)
12346         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12347 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12348    { (exit 1); exit 1; }; }
12349         ;;
12350       esac
12351
12352       # Append the new tag name to the list of available tags.
12353       if test -n "$tagname" ; then
12354       available_tags="$available_tags $tagname"
12355     fi
12356     fi
12357   done
12358   IFS="$lt_save_ifs"
12359
12360   # Now substitute the updated list of available tags.
12361   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12362     mv "${ofile}T" "$ofile"
12363     chmod +x "$ofile"
12364   else
12365     rm -f "${ofile}T"
12366     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12367 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12368    { (exit 1); exit 1; }; }
12369   fi
12370 fi
12371
12372
12373
12374 # This can be used to rebuild libtool when needed
12375 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12376
12377 # Always use our own libtool.
12378 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12379
12380 # Prevent multiple expansion
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391 ol_link_perl=no
12392 if test $ol_enable_perl != no ; then
12393         # Extract the first word of "perl", so it can be a program name with args.
12394 set dummy perl; ac_word=$2
12395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12397 if test "${ac_cv_path_PERLBIN+set}" = set; then
12398   echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400   case $PERLBIN in
12401   [\\/]* | ?:[\\/]*)
12402   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12403   ;;
12404   *)
12405   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12406 for as_dir in $PATH
12407 do
12408   IFS=$as_save_IFS
12409   test -z "$as_dir" && as_dir=.
12410   for ac_exec_ext in '' $ac_executable_extensions; do
12411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12412     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12414     break 2
12415   fi
12416 done
12417 done
12418 IFS=$as_save_IFS
12419
12420   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12421   ;;
12422 esac
12423 fi
12424 PERLBIN=$ac_cv_path_PERLBIN
12425 if test -n "$PERLBIN"; then
12426   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12427 echo "${ECHO_T}$PERLBIN" >&6; }
12428 else
12429   { echo "$as_me:$LINENO: result: no" >&5
12430 echo "${ECHO_T}no" >&6; }
12431 fi
12432
12433
12434
12435         if test "no$PERLBIN" = "no" ; then
12436                 if test $ol_enable_perl = yes ; then
12437                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12438 echo "$as_me: error: could not locate perl" >&2;}
12439    { (exit 1); exit 1; }; }
12440                 fi
12441
12442         else
12443                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12444                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12445
12446                 if test x"$ol_enable_perl" = "xyes" ; then
12447                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12448                 else
12449                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12450                 fi
12451                                 ol_link_perl=yes
12452         fi
12453 fi
12454
12455 ac_ext=c
12456 ac_cpp='$CPP $CPPFLAGS'
12457 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12458 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12459 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12460 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12461 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12462 # On Suns, sometimes $CPP names a directory.
12463 if test -n "$CPP" && test -d "$CPP"; then
12464   CPP=
12465 fi
12466 if test -z "$CPP"; then
12467   if test "${ac_cv_prog_CPP+set}" = set; then
12468   echo $ECHO_N "(cached) $ECHO_C" >&6
12469 else
12470       # Double quotes because CPP needs to be expanded
12471     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12472     do
12473       ac_preproc_ok=false
12474 for ac_c_preproc_warn_flag in '' yes
12475 do
12476   # Use a header file that comes with gcc, so configuring glibc
12477   # with a fresh cross-compiler works.
12478   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12479   # <limits.h> exists even on freestanding compilers.
12480   # On the NeXT, cc -E runs the code through the compiler's parser,
12481   # not just through cpp. "Syntax error" is here to catch this case.
12482   cat >conftest.$ac_ext <<_ACEOF
12483 /* confdefs.h.  */
12484 _ACEOF
12485 cat confdefs.h >>conftest.$ac_ext
12486 cat >>conftest.$ac_ext <<_ACEOF
12487 /* end confdefs.h.  */
12488 #ifdef __STDC__
12489 # include <limits.h>
12490 #else
12491 # include <assert.h>
12492 #endif
12493                      Syntax error
12494 _ACEOF
12495 if { (ac_try="$ac_cpp conftest.$ac_ext"
12496 case "(($ac_try" in
12497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12498   *) ac_try_echo=$ac_try;;
12499 esac
12500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12501   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12502   ac_status=$?
12503   grep -v '^ *+' conftest.er1 >conftest.err
12504   rm -f conftest.er1
12505   cat conftest.err >&5
12506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12507   (exit $ac_status); } >/dev/null && {
12508          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12509          test ! -s conftest.err
12510        }; then
12511   :
12512 else
12513   echo "$as_me: failed program was:" >&5
12514 sed 's/^/| /' conftest.$ac_ext >&5
12515
12516   # Broken: fails on valid input.
12517 continue
12518 fi
12519
12520 rm -f conftest.err conftest.$ac_ext
12521
12522   # OK, works on sane cases.  Now check whether nonexistent headers
12523   # can be detected and how.
12524   cat >conftest.$ac_ext <<_ACEOF
12525 /* confdefs.h.  */
12526 _ACEOF
12527 cat confdefs.h >>conftest.$ac_ext
12528 cat >>conftest.$ac_ext <<_ACEOF
12529 /* end confdefs.h.  */
12530 #include <ac_nonexistent.h>
12531 _ACEOF
12532 if { (ac_try="$ac_cpp conftest.$ac_ext"
12533 case "(($ac_try" in
12534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12535   *) ac_try_echo=$ac_try;;
12536 esac
12537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12539   ac_status=$?
12540   grep -v '^ *+' conftest.er1 >conftest.err
12541   rm -f conftest.er1
12542   cat conftest.err >&5
12543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12544   (exit $ac_status); } >/dev/null && {
12545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12546          test ! -s conftest.err
12547        }; then
12548   # Broken: success on invalid input.
12549 continue
12550 else
12551   echo "$as_me: failed program was:" >&5
12552 sed 's/^/| /' conftest.$ac_ext >&5
12553
12554   # Passes both tests.
12555 ac_preproc_ok=:
12556 break
12557 fi
12558
12559 rm -f conftest.err conftest.$ac_ext
12560
12561 done
12562 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12563 rm -f conftest.err conftest.$ac_ext
12564 if $ac_preproc_ok; then
12565   break
12566 fi
12567
12568     done
12569     ac_cv_prog_CPP=$CPP
12570
12571 fi
12572   CPP=$ac_cv_prog_CPP
12573 else
12574   ac_cv_prog_CPP=$CPP
12575 fi
12576 { echo "$as_me:$LINENO: result: $CPP" >&5
12577 echo "${ECHO_T}$CPP" >&6; }
12578 ac_preproc_ok=false
12579 for ac_c_preproc_warn_flag in '' yes
12580 do
12581   # Use a header file that comes with gcc, so configuring glibc
12582   # with a fresh cross-compiler works.
12583   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584   # <limits.h> exists even on freestanding compilers.
12585   # On the NeXT, cc -E runs the code through the compiler's parser,
12586   # not just through cpp. "Syntax error" is here to catch this case.
12587   cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593 #ifdef __STDC__
12594 # include <limits.h>
12595 #else
12596 # include <assert.h>
12597 #endif
12598                      Syntax error
12599 _ACEOF
12600 if { (ac_try="$ac_cpp conftest.$ac_ext"
12601 case "(($ac_try" in
12602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603   *) ac_try_echo=$ac_try;;
12604 esac
12605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12607   ac_status=$?
12608   grep -v '^ *+' conftest.er1 >conftest.err
12609   rm -f conftest.er1
12610   cat conftest.err >&5
12611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612   (exit $ac_status); } >/dev/null && {
12613          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12614          test ! -s conftest.err
12615        }; then
12616   :
12617 else
12618   echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621   # Broken: fails on valid input.
12622 continue
12623 fi
12624
12625 rm -f conftest.err conftest.$ac_ext
12626
12627   # OK, works on sane cases.  Now check whether nonexistent headers
12628   # can be detected and how.
12629   cat >conftest.$ac_ext <<_ACEOF
12630 /* confdefs.h.  */
12631 _ACEOF
12632 cat confdefs.h >>conftest.$ac_ext
12633 cat >>conftest.$ac_ext <<_ACEOF
12634 /* end confdefs.h.  */
12635 #include <ac_nonexistent.h>
12636 _ACEOF
12637 if { (ac_try="$ac_cpp conftest.$ac_ext"
12638 case "(($ac_try" in
12639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12640   *) ac_try_echo=$ac_try;;
12641 esac
12642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12643   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12644   ac_status=$?
12645   grep -v '^ *+' conftest.er1 >conftest.err
12646   rm -f conftest.er1
12647   cat conftest.err >&5
12648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649   (exit $ac_status); } >/dev/null && {
12650          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12651          test ! -s conftest.err
12652        }; then
12653   # Broken: success on invalid input.
12654 continue
12655 else
12656   echo "$as_me: failed program was:" >&5
12657 sed 's/^/| /' conftest.$ac_ext >&5
12658
12659   # Passes both tests.
12660 ac_preproc_ok=:
12661 break
12662 fi
12663
12664 rm -f conftest.err conftest.$ac_ext
12665
12666 done
12667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12668 rm -f conftest.err conftest.$ac_ext
12669 if $ac_preproc_ok; then
12670   :
12671 else
12672   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&5
12674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12675 See \`config.log' for more details." >&2;}
12676    { (exit 1); exit 1; }; }
12677 fi
12678
12679 ac_ext=c
12680 ac_cpp='$CPP $CPPFLAGS'
12681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12684
12685 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12686 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12687 if test "${ol_cv_msvc+set}" = set; then
12688   echo $ECHO_N "(cached) $ECHO_C" >&6
12689 else
12690   cat >conftest.$ac_ext <<_ACEOF
12691 /* confdefs.h.  */
12692 _ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h.  */
12696
12697 #ifndef _MSC_VER
12698 #include <__FOO__/generate_error.h>
12699 #endif
12700
12701 _ACEOF
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705   *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12709   ac_status=$?
12710   grep -v '^ *+' conftest.er1 >conftest.err
12711   rm -f conftest.er1
12712   cat conftest.err >&5
12713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714   (exit $ac_status); } >/dev/null && {
12715          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716          test ! -s conftest.err
12717        }; then
12718   ol_cv_msvc=yes
12719 else
12720   echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723   ol_cv_msvc=no
12724 fi
12725
12726 rm -f conftest.err conftest.$ac_ext
12727 fi
12728 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12729 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12730
12731 case $host_os in
12732   *mingw32* ) ac_cv_mingw32=yes ;;
12733   *cygwin* ) ac_cv_cygwin=yes ;;
12734   *interix* ) ac_cv_interix=yes ;;
12735 esac
12736
12737
12738
12739
12740 cat >>confdefs.h <<_ACEOF
12741 #define EXEEXT "${EXEEXT}"
12742 _ACEOF
12743
12744
12745 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12746 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_be_be_app+set}" = set; then
12748   echo $ECHO_N "(cached) $ECHO_C" >&6
12749 else
12750   ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lbe -lroot -lnet $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12753 /* confdefs.h.  */
12754 _ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h.  */
12758
12759 /* Override any GCC internal prototype to avoid an error.
12760    Use char because int might match the return type of a GCC
12761    builtin and then its argument prototype would still apply.  */
12762 #ifdef __cplusplus
12763 extern "C"
12764 #endif
12765 char be_app ();
12766 int
12767 main ()
12768 {
12769 return be_app ();
12770   ;
12771   return 0;
12772 }
12773 _ACEOF
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778   *) ac_try_echo=$ac_try;;
12779 esac
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781   (eval "$ac_link") 2>conftest.er1
12782   ac_status=$?
12783   grep -v '^ *+' conftest.er1 >conftest.err
12784   rm -f conftest.er1
12785   cat conftest.err >&5
12786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787   (exit $ac_status); } && {
12788          test -z "$ac_c_werror_flag" ||
12789          test ! -s conftest.err
12790        } && test -s conftest$ac_exeext &&
12791        $as_test_x conftest$ac_exeext; then
12792   ac_cv_lib_be_be_app=yes
12793 else
12794   echo "$as_me: failed program was:" >&5
12795 sed 's/^/| /' conftest.$ac_ext >&5
12796
12797         ac_cv_lib_be_be_app=no
12798 fi
12799
12800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12801       conftest$ac_exeext conftest.$ac_ext
12802 LIBS=$ac_check_lib_save_LIBS
12803 fi
12804 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12805 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12806 if test $ac_cv_lib_be_be_app = yes; then
12807   LIBS="$LIBS -lbe -lroot -lnet"
12808 else
12809   :
12810 fi
12811
12812
12813 ac_ext=c
12814 ac_cpp='$CPP $CPPFLAGS'
12815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12818 if test -n "$ac_tool_prefix"; then
12819   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12820 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12821 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12822 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12823 if test "${ac_cv_prog_CC+set}" = set; then
12824   echo $ECHO_N "(cached) $ECHO_C" >&6
12825 else
12826   if test -n "$CC"; then
12827   ac_cv_prog_CC="$CC" # Let the user override the test.
12828 else
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12831 do
12832   IFS=$as_save_IFS
12833   test -z "$as_dir" && as_dir=.
12834   for ac_exec_ext in '' $ac_executable_extensions; do
12835   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12836     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12837     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12838     break 2
12839   fi
12840 done
12841 done
12842 IFS=$as_save_IFS
12843
12844 fi
12845 fi
12846 CC=$ac_cv_prog_CC
12847 if test -n "$CC"; then
12848   { echo "$as_me:$LINENO: result: $CC" >&5
12849 echo "${ECHO_T}$CC" >&6; }
12850 else
12851   { echo "$as_me:$LINENO: result: no" >&5
12852 echo "${ECHO_T}no" >&6; }
12853 fi
12854
12855
12856 fi
12857 if test -z "$ac_cv_prog_CC"; then
12858   ac_ct_CC=$CC
12859   # Extract the first word of "gcc", so it can be a program name with args.
12860 set dummy gcc; ac_word=$2
12861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12863 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12864   echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866   if test -n "$ac_ct_CC"; then
12867   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12868 else
12869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870 for as_dir in $PATH
12871 do
12872   IFS=$as_save_IFS
12873   test -z "$as_dir" && as_dir=.
12874   for ac_exec_ext in '' $ac_executable_extensions; do
12875   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12876     ac_cv_prog_ac_ct_CC="gcc"
12877     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12878     break 2
12879   fi
12880 done
12881 done
12882 IFS=$as_save_IFS
12883
12884 fi
12885 fi
12886 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12887 if test -n "$ac_ct_CC"; then
12888   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12889 echo "${ECHO_T}$ac_ct_CC" >&6; }
12890 else
12891   { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12893 fi
12894
12895   if test "x$ac_ct_CC" = x; then
12896     CC=""
12897   else
12898     case $cross_compiling:$ac_tool_warned in
12899 yes:)
12900 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12901 whose name does not start with the host triplet.  If you think this
12902 configuration is useful to you, please write to autoconf@gnu.org." >&5
12903 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12904 whose name does not start with the host triplet.  If you think this
12905 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12906 ac_tool_warned=yes ;;
12907 esac
12908     CC=$ac_ct_CC
12909   fi
12910 else
12911   CC="$ac_cv_prog_CC"
12912 fi
12913
12914 if test -z "$CC"; then
12915           if test -n "$ac_tool_prefix"; then
12916     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}cc; ac_word=$2
12918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12920 if test "${ac_cv_prog_CC+set}" = set; then
12921   echo $ECHO_N "(cached) $ECHO_C" >&6
12922 else
12923   if test -n "$CC"; then
12924   ac_cv_prog_CC="$CC" # Let the user override the test.
12925 else
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12928 do
12929   IFS=$as_save_IFS
12930   test -z "$as_dir" && as_dir=.
12931   for ac_exec_ext in '' $ac_executable_extensions; do
12932   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933     ac_cv_prog_CC="${ac_tool_prefix}cc"
12934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12935     break 2
12936   fi
12937 done
12938 done
12939 IFS=$as_save_IFS
12940
12941 fi
12942 fi
12943 CC=$ac_cv_prog_CC
12944 if test -n "$CC"; then
12945   { echo "$as_me:$LINENO: result: $CC" >&5
12946 echo "${ECHO_T}$CC" >&6; }
12947 else
12948   { echo "$as_me:$LINENO: result: no" >&5
12949 echo "${ECHO_T}no" >&6; }
12950 fi
12951
12952
12953   fi
12954 fi
12955 if test -z "$CC"; then
12956   # Extract the first word of "cc", so it can be a program name with args.
12957 set dummy cc; ac_word=$2
12958 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12959 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12960 if test "${ac_cv_prog_CC+set}" = set; then
12961   echo $ECHO_N "(cached) $ECHO_C" >&6
12962 else
12963   if test -n "$CC"; then
12964   ac_cv_prog_CC="$CC" # Let the user override the test.
12965 else
12966   ac_prog_rejected=no
12967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12968 for as_dir in $PATH
12969 do
12970   IFS=$as_save_IFS
12971   test -z "$as_dir" && as_dir=.
12972   for ac_exec_ext in '' $ac_executable_extensions; do
12973   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12974     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12975        ac_prog_rejected=yes
12976        continue
12977      fi
12978     ac_cv_prog_CC="cc"
12979     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12980     break 2
12981   fi
12982 done
12983 done
12984 IFS=$as_save_IFS
12985
12986 if test $ac_prog_rejected = yes; then
12987   # We found a bogon in the path, so make sure we never use it.
12988   set dummy $ac_cv_prog_CC
12989   shift
12990   if test $# != 0; then
12991     # We chose a different compiler from the bogus one.
12992     # However, it has the same basename, so the bogon will be chosen
12993     # first if we set CC to just the basename; use the full file name.
12994     shift
12995     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12996   fi
12997 fi
12998 fi
12999 fi
13000 CC=$ac_cv_prog_CC
13001 if test -n "$CC"; then
13002   { echo "$as_me:$LINENO: result: $CC" >&5
13003 echo "${ECHO_T}$CC" >&6; }
13004 else
13005   { echo "$as_me:$LINENO: result: no" >&5
13006 echo "${ECHO_T}no" >&6; }
13007 fi
13008
13009
13010 fi
13011 if test -z "$CC"; then
13012   if test -n "$ac_tool_prefix"; then
13013   for ac_prog in cl.exe
13014   do
13015     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13019 if test "${ac_cv_prog_CC+set}" = set; then
13020   echo $ECHO_N "(cached) $ECHO_C" >&6
13021 else
13022   if test -n "$CC"; then
13023   ac_cv_prog_CC="$CC" # Let the user override the test.
13024 else
13025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13026 for as_dir in $PATH
13027 do
13028   IFS=$as_save_IFS
13029   test -z "$as_dir" && as_dir=.
13030   for ac_exec_ext in '' $ac_executable_extensions; do
13031   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13032     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13033     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13034     break 2
13035   fi
13036 done
13037 done
13038 IFS=$as_save_IFS
13039
13040 fi
13041 fi
13042 CC=$ac_cv_prog_CC
13043 if test -n "$CC"; then
13044   { echo "$as_me:$LINENO: result: $CC" >&5
13045 echo "${ECHO_T}$CC" >&6; }
13046 else
13047   { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13049 fi
13050
13051
13052     test -n "$CC" && break
13053   done
13054 fi
13055 if test -z "$CC"; then
13056   ac_ct_CC=$CC
13057   for ac_prog in cl.exe
13058 do
13059   # Extract the first word of "$ac_prog", so it can be a program name with args.
13060 set dummy $ac_prog; ac_word=$2
13061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13063 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13064   echo $ECHO_N "(cached) $ECHO_C" >&6
13065 else
13066   if test -n "$ac_ct_CC"; then
13067   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13068 else
13069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13070 for as_dir in $PATH
13071 do
13072   IFS=$as_save_IFS
13073   test -z "$as_dir" && as_dir=.
13074   for ac_exec_ext in '' $ac_executable_extensions; do
13075   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13076     ac_cv_prog_ac_ct_CC="$ac_prog"
13077     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13078     break 2
13079   fi
13080 done
13081 done
13082 IFS=$as_save_IFS
13083
13084 fi
13085 fi
13086 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13087 if test -n "$ac_ct_CC"; then
13088   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13089 echo "${ECHO_T}$ac_ct_CC" >&6; }
13090 else
13091   { echo "$as_me:$LINENO: result: no" >&5
13092 echo "${ECHO_T}no" >&6; }
13093 fi
13094
13095
13096   test -n "$ac_ct_CC" && break
13097 done
13098
13099   if test "x$ac_ct_CC" = x; then
13100     CC=""
13101   else
13102     case $cross_compiling:$ac_tool_warned in
13103 yes:)
13104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13105 whose name does not start with the host triplet.  If you think this
13106 configuration is useful to you, please write to autoconf@gnu.org." >&5
13107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13108 whose name does not start with the host triplet.  If you think this
13109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13110 ac_tool_warned=yes ;;
13111 esac
13112     CC=$ac_ct_CC
13113   fi
13114 fi
13115
13116 fi
13117
13118
13119 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&5
13121 echo "$as_me: error: no acceptable C compiler found in \$PATH
13122 See \`config.log' for more details." >&2;}
13123    { (exit 1); exit 1; }; }
13124
13125 # Provide some information about the compiler.
13126 echo "$as_me:$LINENO: checking for C compiler version" >&5
13127 ac_compiler=`set X $ac_compile; echo $2`
13128 { (ac_try="$ac_compiler --version >&5"
13129 case "(($ac_try" in
13130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131   *) ac_try_echo=$ac_try;;
13132 esac
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134   (eval "$ac_compiler --version >&5") 2>&5
13135   ac_status=$?
13136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137   (exit $ac_status); }
13138 { (ac_try="$ac_compiler -v >&5"
13139 case "(($ac_try" in
13140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13141   *) ac_try_echo=$ac_try;;
13142 esac
13143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13144   (eval "$ac_compiler -v >&5") 2>&5
13145   ac_status=$?
13146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13147   (exit $ac_status); }
13148 { (ac_try="$ac_compiler -V >&5"
13149 case "(($ac_try" in
13150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13151   *) ac_try_echo=$ac_try;;
13152 esac
13153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13154   (eval "$ac_compiler -V >&5") 2>&5
13155   ac_status=$?
13156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13157   (exit $ac_status); }
13158
13159 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13160 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13161 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13162   echo $ECHO_N "(cached) $ECHO_C" >&6
13163 else
13164   cat >conftest.$ac_ext <<_ACEOF
13165 /* confdefs.h.  */
13166 _ACEOF
13167 cat confdefs.h >>conftest.$ac_ext
13168 cat >>conftest.$ac_ext <<_ACEOF
13169 /* end confdefs.h.  */
13170
13171 int
13172 main ()
13173 {
13174 #ifndef __GNUC__
13175        choke me
13176 #endif
13177
13178   ;
13179   return 0;
13180 }
13181 _ACEOF
13182 rm -f conftest.$ac_objext
13183 if { (ac_try="$ac_compile"
13184 case "(($ac_try" in
13185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186   *) ac_try_echo=$ac_try;;
13187 esac
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189   (eval "$ac_compile") 2>conftest.er1
13190   ac_status=$?
13191   grep -v '^ *+' conftest.er1 >conftest.err
13192   rm -f conftest.er1
13193   cat conftest.err >&5
13194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195   (exit $ac_status); } && {
13196          test -z "$ac_c_werror_flag" ||
13197          test ! -s conftest.err
13198        } && test -s conftest.$ac_objext; then
13199   ac_compiler_gnu=yes
13200 else
13201   echo "$as_me: failed program was:" >&5
13202 sed 's/^/| /' conftest.$ac_ext >&5
13203
13204         ac_compiler_gnu=no
13205 fi
13206
13207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13208 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13209
13210 fi
13211 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13212 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13213 GCC=`test $ac_compiler_gnu = yes && echo yes`
13214 ac_test_CFLAGS=${CFLAGS+set}
13215 ac_save_CFLAGS=$CFLAGS
13216 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13217 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13218 if test "${ac_cv_prog_cc_g+set}" = set; then
13219   echo $ECHO_N "(cached) $ECHO_C" >&6
13220 else
13221   ac_save_c_werror_flag=$ac_c_werror_flag
13222    ac_c_werror_flag=yes
13223    ac_cv_prog_cc_g=no
13224    CFLAGS="-g"
13225    cat >conftest.$ac_ext <<_ACEOF
13226 /* confdefs.h.  */
13227 _ACEOF
13228 cat confdefs.h >>conftest.$ac_ext
13229 cat >>conftest.$ac_ext <<_ACEOF
13230 /* end confdefs.h.  */
13231
13232 int
13233 main ()
13234 {
13235
13236   ;
13237   return 0;
13238 }
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (ac_try="$ac_compile"
13242 case "(($ac_try" in
13243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244   *) ac_try_echo=$ac_try;;
13245 esac
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247   (eval "$ac_compile") 2>conftest.er1
13248   ac_status=$?
13249   grep -v '^ *+' conftest.er1 >conftest.err
13250   rm -f conftest.er1
13251   cat conftest.err >&5
13252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253   (exit $ac_status); } && {
13254          test -z "$ac_c_werror_flag" ||
13255          test ! -s conftest.err
13256        } && test -s conftest.$ac_objext; then
13257   ac_cv_prog_cc_g=yes
13258 else
13259   echo "$as_me: failed program was:" >&5
13260 sed 's/^/| /' conftest.$ac_ext >&5
13261
13262         CFLAGS=""
13263       cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h.  */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h.  */
13269
13270 int
13271 main ()
13272 {
13273
13274   ;
13275   return 0;
13276 }
13277 _ACEOF
13278 rm -f conftest.$ac_objext
13279 if { (ac_try="$ac_compile"
13280 case "(($ac_try" in
13281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13282   *) ac_try_echo=$ac_try;;
13283 esac
13284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13285   (eval "$ac_compile") 2>conftest.er1
13286   ac_status=$?
13287   grep -v '^ *+' conftest.er1 >conftest.err
13288   rm -f conftest.er1
13289   cat conftest.err >&5
13290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291   (exit $ac_status); } && {
13292          test -z "$ac_c_werror_flag" ||
13293          test ! -s conftest.err
13294        } && test -s conftest.$ac_objext; then
13295   :
13296 else
13297   echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13299
13300         ac_c_werror_flag=$ac_save_c_werror_flag
13301          CFLAGS="-g"
13302          cat >conftest.$ac_ext <<_ACEOF
13303 /* confdefs.h.  */
13304 _ACEOF
13305 cat confdefs.h >>conftest.$ac_ext
13306 cat >>conftest.$ac_ext <<_ACEOF
13307 /* end confdefs.h.  */
13308
13309 int
13310 main ()
13311 {
13312
13313   ;
13314   return 0;
13315 }
13316 _ACEOF
13317 rm -f conftest.$ac_objext
13318 if { (ac_try="$ac_compile"
13319 case "(($ac_try" in
13320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13321   *) ac_try_echo=$ac_try;;
13322 esac
13323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13324   (eval "$ac_compile") 2>conftest.er1
13325   ac_status=$?
13326   grep -v '^ *+' conftest.er1 >conftest.err
13327   rm -f conftest.er1
13328   cat conftest.err >&5
13329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13330   (exit $ac_status); } && {
13331          test -z "$ac_c_werror_flag" ||
13332          test ! -s conftest.err
13333        } && test -s conftest.$ac_objext; then
13334   ac_cv_prog_cc_g=yes
13335 else
13336   echo "$as_me: failed program was:" >&5
13337 sed 's/^/| /' conftest.$ac_ext >&5
13338
13339
13340 fi
13341
13342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13343 fi
13344
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 fi
13347
13348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13349    ac_c_werror_flag=$ac_save_c_werror_flag
13350 fi
13351 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13352 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13353 if test "$ac_test_CFLAGS" = set; then
13354   CFLAGS=$ac_save_CFLAGS
13355 elif test $ac_cv_prog_cc_g = yes; then
13356   if test "$GCC" = yes; then
13357     CFLAGS="-g -O2"
13358   else
13359     CFLAGS="-g"
13360   fi
13361 else
13362   if test "$GCC" = yes; then
13363     CFLAGS="-O2"
13364   else
13365     CFLAGS=
13366   fi
13367 fi
13368 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13369 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13370 if test "${ac_cv_prog_cc_c89+set}" = set; then
13371   echo $ECHO_N "(cached) $ECHO_C" >&6
13372 else
13373   ac_cv_prog_cc_c89=no
13374 ac_save_CC=$CC
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h.  */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h.  */
13381 #include <stdarg.h>
13382 #include <stdio.h>
13383 #include <sys/types.h>
13384 #include <sys/stat.h>
13385 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13386 struct buf { int x; };
13387 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13388 static char *e (p, i)
13389      char **p;
13390      int i;
13391 {
13392   return p[i];
13393 }
13394 static char *f (char * (*g) (char **, int), char **p, ...)
13395 {
13396   char *s;
13397   va_list v;
13398   va_start (v,p);
13399   s = g (p, va_arg (v,int));
13400   va_end (v);
13401   return s;
13402 }
13403
13404 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13405    function prototypes and stuff, but not '\xHH' hex character constants.
13406    These don't provoke an error unfortunately, instead are silently treated
13407    as 'x'.  The following induces an error, until -std is added to get
13408    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13409    array size at least.  It's necessary to write '\x00'==0 to get something
13410    that's true only with -std.  */
13411 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13412
13413 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13414    inside strings and character constants.  */
13415 #define FOO(x) 'x'
13416 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13417
13418 int test (int i, double x);
13419 struct s1 {int (*f) (int a);};
13420 struct s2 {int (*f) (double a);};
13421 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13422 int argc;
13423 char **argv;
13424 int
13425 main ()
13426 {
13427 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13428   ;
13429   return 0;
13430 }
13431 _ACEOF
13432 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13433         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13434 do
13435   CC="$ac_save_CC $ac_arg"
13436   rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440   *) ac_try_echo=$ac_try;;
13441 esac
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443   (eval "$ac_compile") 2>conftest.er1
13444   ac_status=$?
13445   grep -v '^ *+' conftest.er1 >conftest.err
13446   rm -f conftest.er1
13447   cat conftest.err >&5
13448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449   (exit $ac_status); } && {
13450          test -z "$ac_c_werror_flag" ||
13451          test ! -s conftest.err
13452        } && test -s conftest.$ac_objext; then
13453   ac_cv_prog_cc_c89=$ac_arg
13454 else
13455   echo "$as_me: failed program was:" >&5
13456 sed 's/^/| /' conftest.$ac_ext >&5
13457
13458
13459 fi
13460
13461 rm -f core conftest.err conftest.$ac_objext
13462   test "x$ac_cv_prog_cc_c89" != "xno" && break
13463 done
13464 rm -f conftest.$ac_ext
13465 CC=$ac_save_CC
13466
13467 fi
13468 # AC_CACHE_VAL
13469 case "x$ac_cv_prog_cc_c89" in
13470   x)
13471     { echo "$as_me:$LINENO: result: none needed" >&5
13472 echo "${ECHO_T}none needed" >&6; } ;;
13473   xno)
13474     { echo "$as_me:$LINENO: result: unsupported" >&5
13475 echo "${ECHO_T}unsupported" >&6; } ;;
13476   *)
13477     CC="$CC $ac_cv_prog_cc_c89"
13478     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13479 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13480 esac
13481
13482
13483 ac_ext=c
13484 ac_cpp='$CPP $CPPFLAGS'
13485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13488
13489 depcc="$CC"   am_compiler_list=
13490
13491 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13492 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13493 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13494   echo $ECHO_N "(cached) $ECHO_C" >&6
13495 else
13496   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13497   # We make a subdir and do the tests there.  Otherwise we can end up
13498   # making bogus files that we don't know about and never remove.  For
13499   # instance it was reported that on HP-UX the gcc test will end up
13500   # making a dummy file named `D' -- because `-MD' means `put the output
13501   # in D'.
13502   mkdir conftest.dir
13503   # Copy depcomp to subdir because otherwise we won't find it if we're
13504   # using a relative directory.
13505   cp "$am_depcomp" conftest.dir
13506   cd conftest.dir
13507   # We will build objects and dependencies in a subdirectory because
13508   # it helps to detect inapplicable dependency modes.  For instance
13509   # both Tru64's cc and ICC support -MD to output dependencies as a
13510   # side effect of compilation, but ICC will put the dependencies in
13511   # the current directory while Tru64 will put them in the object
13512   # directory.
13513   mkdir sub
13514
13515   am_cv_CC_dependencies_compiler_type=none
13516   if test "$am_compiler_list" = ""; then
13517      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13518   fi
13519   for depmode in $am_compiler_list; do
13520     # Setup a source with many dependencies, because some compilers
13521     # like to wrap large dependency lists on column 80 (with \), and
13522     # we should not choose a depcomp mode which is confused by this.
13523     #
13524     # We need to recreate these files for each test, as the compiler may
13525     # overwrite some of them when testing with obscure command lines.
13526     # This happens at least with the AIX C compiler.
13527     : > sub/conftest.c
13528     for i in 1 2 3 4 5 6; do
13529       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13530       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13531       # Solaris 8's {/usr,}/bin/sh.
13532       touch sub/conftst$i.h
13533     done
13534     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13535
13536     case $depmode in
13537     nosideeffect)
13538       # after this tag, mechanisms are not by side-effect, so they'll
13539       # only be used when explicitly requested
13540       if test "x$enable_dependency_tracking" = xyes; then
13541         continue
13542       else
13543         break
13544       fi
13545       ;;
13546     none) break ;;
13547     esac
13548     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13549     # mode.  It turns out that the SunPro C++ compiler does not properly
13550     # handle `-M -o', and we need to detect this.
13551     if depmode=$depmode \
13552        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13553        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13554        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13555          >/dev/null 2>conftest.err &&
13556        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13557        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13558        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13559       # icc doesn't choke on unknown options, it will just issue warnings
13560       # or remarks (even with -Werror).  So we grep stderr for any message
13561       # that says an option was ignored or not supported.
13562       # When given -MP, icc 7.0 and 7.1 complain thusly:
13563       #   icc: Command line warning: ignoring option '-M'; no argument required
13564       # The diagnosis changed in icc 8.0:
13565       #   icc: Command line remark: option '-MP' not supported
13566       if (grep 'ignoring option' conftest.err ||
13567           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13568         am_cv_CC_dependencies_compiler_type=$depmode
13569         break
13570       fi
13571     fi
13572   done
13573
13574   cd ..
13575   rm -rf conftest.dir
13576 else
13577   am_cv_CC_dependencies_compiler_type=none
13578 fi
13579
13580 fi
13581 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13582 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13583 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13584
13585
13586
13587 if
13588   test "x$enable_dependency_tracking" != xno \
13589   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13590   am__fastdepCC_TRUE=
13591   am__fastdepCC_FALSE='#'
13592 else
13593   am__fastdepCC_TRUE='#'
13594   am__fastdepCC_FALSE=
13595 fi
13596
13597
13598 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13599         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13600 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13601    { (exit 1); exit 1; }; }
13602 fi
13603
13604 # test for make depend flag
13605 OL_MKDEP=
13606 OL_MKDEP_FLAGS=
13607 if test -z "${MKDEP}"; then
13608         OL_MKDEP="${CC-cc}"
13609         if test -z "${MKDEP_FLAGS}"; then
13610                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13611 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13612 if test "${ol_cv_mkdep+set}" = set; then
13613   echo $ECHO_N "(cached) $ECHO_C" >&6
13614 else
13615
13616                         ol_cv_mkdep=no
13617                         for flag in "-M" "-xM"; do
13618                                 cat > conftest.c <<EOF
13619  noCode;
13620 EOF
13621                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13622   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13623   (eval $ac_try) 2>&5
13624   ac_status=$?
13625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13626   (exit $ac_status); }; } \
13627                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13628                                 then
13629                                         if test ! -f conftest."${ac_object}" ; then
13630                                                 ol_cv_mkdep=$flag
13631                                                 OL_MKDEP_FLAGS="$flag"
13632                                                 break
13633                                         fi
13634                                 fi
13635                         done
13636                         rm -f conftest*
13637
13638 fi
13639 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13640 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13641                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13642         else
13643                 cc_cv_mkdep=yes
13644                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13645         fi
13646 else
13647         cc_cv_mkdep=yes
13648         OL_MKDEP="${MKDEP}"
13649         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13650 fi
13651
13652
13653
13654 if test "${ol_cv_mkdep}" = no ; then
13655         # this will soon become an error
13656         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13657 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13658 fi
13659
13660 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13661 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13662 if test "${ac_cv_lib_s_afopen+set}" = set; then
13663   echo $ECHO_N "(cached) $ECHO_C" >&6
13664 else
13665   ac_check_lib_save_LIBS=$LIBS
13666 LIBS="-ls  $LIBS"
13667 cat >conftest.$ac_ext <<_ACEOF
13668 /* confdefs.h.  */
13669 _ACEOF
13670 cat confdefs.h >>conftest.$ac_ext
13671 cat >>conftest.$ac_ext <<_ACEOF
13672 /* end confdefs.h.  */
13673
13674 /* Override any GCC internal prototype to avoid an error.
13675    Use char because int might match the return type of a GCC
13676    builtin and then its argument prototype would still apply.  */
13677 #ifdef __cplusplus
13678 extern "C"
13679 #endif
13680 char afopen ();
13681 int
13682 main ()
13683 {
13684 return afopen ();
13685   ;
13686   return 0;
13687 }
13688 _ACEOF
13689 rm -f conftest.$ac_objext conftest$ac_exeext
13690 if { (ac_try="$ac_link"
13691 case "(($ac_try" in
13692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13693   *) ac_try_echo=$ac_try;;
13694 esac
13695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13696   (eval "$ac_link") 2>conftest.er1
13697   ac_status=$?
13698   grep -v '^ *+' conftest.er1 >conftest.err
13699   rm -f conftest.er1
13700   cat conftest.err >&5
13701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702   (exit $ac_status); } && {
13703          test -z "$ac_c_werror_flag" ||
13704          test ! -s conftest.err
13705        } && test -s conftest$ac_exeext &&
13706        $as_test_x conftest$ac_exeext; then
13707   ac_cv_lib_s_afopen=yes
13708 else
13709   echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13711
13712         ac_cv_lib_s_afopen=no
13713 fi
13714
13715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13716       conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13718 fi
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13720 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13721 if test $ac_cv_lib_s_afopen = yes; then
13722
13723         AUTH_LIBS=-ls
13724
13725 cat >>confdefs.h <<\_ACEOF
13726 #define HAVE_AIX_SECURITY 1
13727 _ACEOF
13728
13729
13730 fi
13731
13732
13733 case "$target" in
13734 *-ibm-openedition)
13735         ac_cv_func_getopt=no
13736
13737 cat >>confdefs.h <<\_ACEOF
13738 #define BOTH_STRINGS_H 1
13739 _ACEOF
13740
13741         ;;
13742 esac
13743
13744 ol_link_modules=no
13745 WITH_MODULES_ENABLED=no
13746 if test $ol_enable_modules != no ; then
13747
13748 for ac_header in ltdl.h
13749 do
13750 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13752   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 fi
13757 ac_res=`eval echo '${'$as_ac_Header'}'`
13758                { echo "$as_me:$LINENO: result: $ac_res" >&5
13759 echo "${ECHO_T}$ac_res" >&6; }
13760 else
13761   # Is the header compilable?
13762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13764 cat >conftest.$ac_ext <<_ACEOF
13765 /* confdefs.h.  */
13766 _ACEOF
13767 cat confdefs.h >>conftest.$ac_ext
13768 cat >>conftest.$ac_ext <<_ACEOF
13769 /* end confdefs.h.  */
13770 $ac_includes_default
13771 #include <$ac_header>
13772 _ACEOF
13773 rm -f conftest.$ac_objext
13774 if { (ac_try="$ac_compile"
13775 case "(($ac_try" in
13776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13777   *) ac_try_echo=$ac_try;;
13778 esac
13779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13780   (eval "$ac_compile") 2>conftest.er1
13781   ac_status=$?
13782   grep -v '^ *+' conftest.er1 >conftest.err
13783   rm -f conftest.er1
13784   cat conftest.err >&5
13785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786   (exit $ac_status); } && {
13787          test -z "$ac_c_werror_flag" ||
13788          test ! -s conftest.err
13789        } && test -s conftest.$ac_objext; then
13790   ac_header_compiler=yes
13791 else
13792   echo "$as_me: failed program was:" >&5
13793 sed 's/^/| /' conftest.$ac_ext >&5
13794
13795         ac_header_compiler=no
13796 fi
13797
13798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13800 echo "${ECHO_T}$ac_header_compiler" >&6; }
13801
13802 # Is the header present?
13803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13805 cat >conftest.$ac_ext <<_ACEOF
13806 /* confdefs.h.  */
13807 _ACEOF
13808 cat confdefs.h >>conftest.$ac_ext
13809 cat >>conftest.$ac_ext <<_ACEOF
13810 /* end confdefs.h.  */
13811 #include <$ac_header>
13812 _ACEOF
13813 if { (ac_try="$ac_cpp conftest.$ac_ext"
13814 case "(($ac_try" in
13815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13816   *) ac_try_echo=$ac_try;;
13817 esac
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13820   ac_status=$?
13821   grep -v '^ *+' conftest.er1 >conftest.err
13822   rm -f conftest.er1
13823   cat conftest.err >&5
13824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825   (exit $ac_status); } >/dev/null && {
13826          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13827          test ! -s conftest.err
13828        }; then
13829   ac_header_preproc=yes
13830 else
13831   echo "$as_me: failed program was:" >&5
13832 sed 's/^/| /' conftest.$ac_ext >&5
13833
13834   ac_header_preproc=no
13835 fi
13836
13837 rm -f conftest.err conftest.$ac_ext
13838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13839 echo "${ECHO_T}$ac_header_preproc" >&6; }
13840
13841 # So?  What about this header?
13842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13843   yes:no: )
13844     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13846     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13848     ac_header_preproc=yes
13849     ;;
13850   no:yes:* )
13851     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13853     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13854 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13858 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13861     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13863     ( cat <<\_ASBOX
13864 ## --------------------------------------------- ##
13865 ## Report this to <http://www.openldap.org/its/> ##
13866 ## --------------------------------------------- ##
13867 _ASBOX
13868      ) | sed "s/^/$as_me: WARNING:     /" >&2
13869     ;;
13870 esac
13871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13874   echo $ECHO_N "(cached) $ECHO_C" >&6
13875 else
13876   eval "$as_ac_Header=\$ac_header_preproc"
13877 fi
13878 ac_res=`eval echo '${'$as_ac_Header'}'`
13879                { echo "$as_me:$LINENO: result: $ac_res" >&5
13880 echo "${ECHO_T}$ac_res" >&6; }
13881
13882 fi
13883 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13884   cat >>confdefs.h <<_ACEOF
13885 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13886 _ACEOF
13887
13888 fi
13889
13890 done
13891
13892
13893         if test $ac_cv_header_ltdl_h = no ; then
13894                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13895 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13896    { (exit 1); exit 1; }; }
13897         fi
13898
13899         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13900 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13901 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13902   echo $ECHO_N "(cached) $ECHO_C" >&6
13903 else
13904   ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lltdl  $LIBS"
13906 cat >conftest.$ac_ext <<_ACEOF
13907 /* confdefs.h.  */
13908 _ACEOF
13909 cat confdefs.h >>conftest.$ac_ext
13910 cat >>conftest.$ac_ext <<_ACEOF
13911 /* end confdefs.h.  */
13912
13913 /* Override any GCC internal prototype to avoid an error.
13914    Use char because int might match the return type of a GCC
13915    builtin and then its argument prototype would still apply.  */
13916 #ifdef __cplusplus
13917 extern "C"
13918 #endif
13919 char lt_dlinit ();
13920 int
13921 main ()
13922 {
13923 return lt_dlinit ();
13924   ;
13925   return 0;
13926 }
13927 _ACEOF
13928 rm -f conftest.$ac_objext conftest$ac_exeext
13929 if { (ac_try="$ac_link"
13930 case "(($ac_try" in
13931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13932   *) ac_try_echo=$ac_try;;
13933 esac
13934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13935   (eval "$ac_link") 2>conftest.er1
13936   ac_status=$?
13937   grep -v '^ *+' conftest.er1 >conftest.err
13938   rm -f conftest.er1
13939   cat conftest.err >&5
13940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941   (exit $ac_status); } && {
13942          test -z "$ac_c_werror_flag" ||
13943          test ! -s conftest.err
13944        } && test -s conftest$ac_exeext &&
13945        $as_test_x conftest$ac_exeext; then
13946   ac_cv_lib_ltdl_lt_dlinit=yes
13947 else
13948   echo "$as_me: failed program was:" >&5
13949 sed 's/^/| /' conftest.$ac_ext >&5
13950
13951         ac_cv_lib_ltdl_lt_dlinit=no
13952 fi
13953
13954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13955       conftest$ac_exeext conftest.$ac_ext
13956 LIBS=$ac_check_lib_save_LIBS
13957 fi
13958 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13959 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13960 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13961
13962                 MODULES_LIBS=-lltdl
13963
13964 cat >>confdefs.h <<\_ACEOF
13965 #define HAVE_LIBLTDL 1
13966 _ACEOF
13967
13968
13969 fi
13970
13971
13972         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13973                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13974 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13975    { (exit 1); exit 1; }; }
13976         fi
13977         ol_link_modules=yes
13978         WITH_MODULES_ENABLED=yes
13979
13980 else
13981         for i in $Backends; do
13982                 eval "ol_tmp=\$ol_enable_$i"
13983                 if test $ol_tmp = mod ; then
13984                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13985 echo "$as_me: WARNING: building static $i backend" >&2;}
13986                         eval "ol_enable_$i=yes"
13987                 fi
13988         done
13989         for i in $Overlays; do
13990                 eval "ol_tmp=\$ol_enable_$i"
13991                 if test $ol_tmp = mod ; then
13992                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13993 echo "$as_me: WARNING: building static $i overlay" >&2;}
13994                         eval "ol_enable_$i=yes"
13995                 fi
13996         done
13997 fi
13998
13999 # test for EBCDIC
14000 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14001 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14002 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14003   echo $ECHO_N "(cached) $ECHO_C" >&6
14004 else
14005
14006         cat >conftest.$ac_ext <<_ACEOF
14007 /* confdefs.h.  */
14008 _ACEOF
14009 cat confdefs.h >>conftest.$ac_ext
14010 cat >>conftest.$ac_ext <<_ACEOF
14011 /* end confdefs.h.  */
14012
14013 #if !('M' == 0xd4)
14014 #include <__ASCII__/generate_error.h>
14015 #endif
14016
14017 _ACEOF
14018 if { (ac_try="$ac_cpp conftest.$ac_ext"
14019 case "(($ac_try" in
14020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021   *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14025   ac_status=$?
14026   grep -v '^ *+' conftest.er1 >conftest.err
14027   rm -f conftest.er1
14028   cat conftest.err >&5
14029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030   (exit $ac_status); } >/dev/null && {
14031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14032          test ! -s conftest.err
14033        }; then
14034   ol_cv_cpp_ebcdic=yes
14035 else
14036   echo "$as_me: failed program was:" >&5
14037 sed 's/^/| /' conftest.$ac_ext >&5
14038
14039   ol_cv_cpp_ebcdic=no
14040 fi
14041
14042 rm -f conftest.err conftest.$ac_ext
14043 fi
14044 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14045 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14046 if test $ol_cv_cpp_ebcdic = yes ; then
14047
14048 cat >>confdefs.h <<\_ACEOF
14049 #define HAVE_EBCDIC 1
14050 _ACEOF
14051
14052 fi
14053
14054 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14055 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14056 if test "${ol_cv_header_stdc+set}" = set; then
14057   echo $ECHO_N "(cached) $ECHO_C" >&6
14058 else
14059   cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 #include <stdlib.h>
14066 #include <stdarg.h>
14067 #include <string.h>
14068 #include <float.h>
14069 _ACEOF
14070 if { (ac_try="$ac_cpp conftest.$ac_ext"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } >/dev/null && {
14083          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14084          test ! -s conftest.err
14085        }; then
14086   ol_cv_header_stdc=yes
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091   ol_cv_header_stdc=no
14092 fi
14093
14094 rm -f conftest.err conftest.$ac_ext
14095
14096 if test $ol_cv_header_stdc = yes; then
14097   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14098 cat >conftest.$ac_ext <<_ACEOF
14099 /* confdefs.h.  */
14100 _ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h.  */
14104 #include <string.h>
14105
14106 _ACEOF
14107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14108   $EGREP "memchr" >/dev/null 2>&1; then
14109   :
14110 else
14111   ol_cv_header_stdc=no
14112 fi
14113 rm -f conftest*
14114
14115 fi
14116
14117 if test $ol_cv_header_stdc = yes; then
14118   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14119 cat >conftest.$ac_ext <<_ACEOF
14120 /* confdefs.h.  */
14121 _ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h.  */
14125 #include <stdlib.h>
14126
14127 _ACEOF
14128 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14129   $EGREP "free" >/dev/null 2>&1; then
14130   :
14131 else
14132   ol_cv_header_stdc=no
14133 fi
14134 rm -f conftest*
14135
14136 fi
14137
14138 if test $ol_cv_header_stdc = yes; then
14139   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14140 if test "$cross_compiling" = yes; then
14141   :
14142 else
14143   cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h.  */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h.  */
14149 #include <ctype.h>
14150 #ifndef HAVE_EBCDIC
14151 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14152 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14153 #else
14154 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14155                 || ('j' <= (c) && (c) <= 'r') \
14156                 || ('s' <= (c) && (c) <= 'z'))
14157 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14158 #endif
14159 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14160 int main () { int i; for (i = 0; i < 256; i++)
14161 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14162 exit (0); }
14163
14164 _ACEOF
14165 rm -f conftest$ac_exeext
14166 if { (ac_try="$ac_link"
14167 case "(($ac_try" in
14168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14169   *) ac_try_echo=$ac_try;;
14170 esac
14171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14172   (eval "$ac_link") 2>&5
14173   ac_status=$?
14174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14175   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14176   { (case "(($ac_try" in
14177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14178   *) ac_try_echo=$ac_try;;
14179 esac
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181   (eval "$ac_try") 2>&5
14182   ac_status=$?
14183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); }; }; then
14185   :
14186 else
14187   echo "$as_me: program exited with status $ac_status" >&5
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ( exit $ac_status )
14192 ol_cv_header_stdc=no
14193 fi
14194 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14195 fi
14196
14197
14198 fi
14199 fi
14200 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14201 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14202 if test $ol_cv_header_stdc = yes; then
14203   cat >>confdefs.h <<\_ACEOF
14204 #define STDC_HEADERS 1
14205 _ACEOF
14206
14207 fi
14208 ac_cv_header_stdc=disable
14209
14210
14211 if test $ol_cv_header_stdc != yes; then
14212         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14213 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14214 fi
14215
14216
14217
14218
14219
14220
14221 ac_header_dirent=no
14222 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14223   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14224 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14225 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14226 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14227   echo $ECHO_N "(cached) $ECHO_C" >&6
14228 else
14229   cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235 #include <sys/types.h>
14236 #include <$ac_hdr>
14237
14238 int
14239 main ()
14240 {
14241 if ((DIR *) 0)
14242 return 0;
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_compile") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } && {
14261          test -z "$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        } && test -s conftest.$ac_objext; then
14264   eval "$as_ac_Header=yes"
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269         eval "$as_ac_Header=no"
14270 fi
14271
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 fi
14274 ac_res=`eval echo '${'$as_ac_Header'}'`
14275                { echo "$as_me:$LINENO: result: $ac_res" >&5
14276 echo "${ECHO_T}$ac_res" >&6; }
14277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14278   cat >>confdefs.h <<_ACEOF
14279 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14280 _ACEOF
14281
14282 ac_header_dirent=$ac_hdr; break
14283 fi
14284
14285 done
14286 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14287 if test $ac_header_dirent = dirent.h; then
14288   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14289 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14290 if test "${ac_cv_search_opendir+set}" = set; then
14291   echo $ECHO_N "(cached) $ECHO_C" >&6
14292 else
14293   ac_func_search_save_LIBS=$LIBS
14294 cat >conftest.$ac_ext <<_ACEOF
14295 /* confdefs.h.  */
14296 _ACEOF
14297 cat confdefs.h >>conftest.$ac_ext
14298 cat >>conftest.$ac_ext <<_ACEOF
14299 /* end confdefs.h.  */
14300
14301 /* Override any GCC internal prototype to avoid an error.
14302    Use char because int might match the return type of a GCC
14303    builtin and then its argument prototype would still apply.  */
14304 #ifdef __cplusplus
14305 extern "C"
14306 #endif
14307 char opendir ();
14308 int
14309 main ()
14310 {
14311 return opendir ();
14312   ;
14313   return 0;
14314 }
14315 _ACEOF
14316 for ac_lib in '' dir; do
14317   if test -z "$ac_lib"; then
14318     ac_res="none required"
14319   else
14320     ac_res=-l$ac_lib
14321     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14322   fi
14323   rm -f conftest.$ac_objext conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330   (eval "$ac_link") 2>conftest.er1
14331   ac_status=$?
14332   grep -v '^ *+' conftest.er1 >conftest.err
14333   rm -f conftest.er1
14334   cat conftest.err >&5
14335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14336   (exit $ac_status); } && {
14337          test -z "$ac_c_werror_flag" ||
14338          test ! -s conftest.err
14339        } && test -s conftest$ac_exeext &&
14340        $as_test_x conftest$ac_exeext; then
14341   ac_cv_search_opendir=$ac_res
14342 else
14343   echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14350       conftest$ac_exeext
14351   if test "${ac_cv_search_opendir+set}" = set; then
14352   break
14353 fi
14354 done
14355 if test "${ac_cv_search_opendir+set}" = set; then
14356   :
14357 else
14358   ac_cv_search_opendir=no
14359 fi
14360 rm conftest.$ac_ext
14361 LIBS=$ac_func_search_save_LIBS
14362 fi
14363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14365 ac_res=$ac_cv_search_opendir
14366 if test "$ac_res" != no; then
14367   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14368
14369 fi
14370
14371 else
14372   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14373 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14374 if test "${ac_cv_search_opendir+set}" = set; then
14375   echo $ECHO_N "(cached) $ECHO_C" >&6
14376 else
14377   ac_func_search_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14379 /* confdefs.h.  */
14380 _ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h.  */
14384
14385 /* Override any GCC internal prototype to avoid an error.
14386    Use char because int might match the return type of a GCC
14387    builtin and then its argument prototype would still apply.  */
14388 #ifdef __cplusplus
14389 extern "C"
14390 #endif
14391 char opendir ();
14392 int
14393 main ()
14394 {
14395 return opendir ();
14396   ;
14397   return 0;
14398 }
14399 _ACEOF
14400 for ac_lib in '' x; do
14401   if test -z "$ac_lib"; then
14402     ac_res="none required"
14403   else
14404     ac_res=-l$ac_lib
14405     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14406   fi
14407   rm -f conftest.$ac_objext conftest$ac_exeext
14408 if { (ac_try="$ac_link"
14409 case "(($ac_try" in
14410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14411   *) ac_try_echo=$ac_try;;
14412 esac
14413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14414   (eval "$ac_link") 2>conftest.er1
14415   ac_status=$?
14416   grep -v '^ *+' conftest.er1 >conftest.err
14417   rm -f conftest.er1
14418   cat conftest.err >&5
14419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420   (exit $ac_status); } && {
14421          test -z "$ac_c_werror_flag" ||
14422          test ! -s conftest.err
14423        } && test -s conftest$ac_exeext &&
14424        $as_test_x conftest$ac_exeext; then
14425   ac_cv_search_opendir=$ac_res
14426 else
14427   echo "$as_me: failed program was:" >&5
14428 sed 's/^/| /' conftest.$ac_ext >&5
14429
14430
14431 fi
14432
14433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14434       conftest$ac_exeext
14435   if test "${ac_cv_search_opendir+set}" = set; then
14436   break
14437 fi
14438 done
14439 if test "${ac_cv_search_opendir+set}" = set; then
14440   :
14441 else
14442   ac_cv_search_opendir=no
14443 fi
14444 rm conftest.$ac_ext
14445 LIBS=$ac_func_search_save_LIBS
14446 fi
14447 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14448 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14449 ac_res=$ac_cv_search_opendir
14450 if test "$ac_res" != no; then
14451   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14452
14453 fi
14454
14455 fi
14456
14457 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14458 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14460   echo $ECHO_N "(cached) $ECHO_C" >&6
14461 else
14462   cat >conftest.$ac_ext <<_ACEOF
14463 /* confdefs.h.  */
14464 _ACEOF
14465 cat confdefs.h >>conftest.$ac_ext
14466 cat >>conftest.$ac_ext <<_ACEOF
14467 /* end confdefs.h.  */
14468 #include <sys/types.h>
14469 #include <sys/wait.h>
14470 #ifndef WEXITSTATUS
14471 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14472 #endif
14473 #ifndef WIFEXITED
14474 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14475 #endif
14476
14477 int
14478 main ()
14479 {
14480   int s;
14481   wait (&s);
14482   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14483   ;
14484   return 0;
14485 }
14486 _ACEOF
14487 rm -f conftest.$ac_objext
14488 if { (ac_try="$ac_compile"
14489 case "(($ac_try" in
14490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14491   *) ac_try_echo=$ac_try;;
14492 esac
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494   (eval "$ac_compile") 2>conftest.er1
14495   ac_status=$?
14496   grep -v '^ *+' conftest.er1 >conftest.err
14497   rm -f conftest.er1
14498   cat conftest.err >&5
14499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500   (exit $ac_status); } && {
14501          test -z "$ac_c_werror_flag" ||
14502          test ! -s conftest.err
14503        } && test -s conftest.$ac_objext; then
14504   ac_cv_header_sys_wait_h=yes
14505 else
14506   echo "$as_me: failed program was:" >&5
14507 sed 's/^/| /' conftest.$ac_ext >&5
14508
14509         ac_cv_header_sys_wait_h=no
14510 fi
14511
14512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14513 fi
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14516 if test $ac_cv_header_sys_wait_h = yes; then
14517
14518 cat >>confdefs.h <<\_ACEOF
14519 #define HAVE_SYS_WAIT_H 1
14520 _ACEOF
14521
14522 fi
14523
14524 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14525 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14526 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14527   echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529   cat >conftest.$ac_ext <<_ACEOF
14530 /* confdefs.h.  */
14531 _ACEOF
14532 cat confdefs.h >>conftest.$ac_ext
14533 cat >>conftest.$ac_ext <<_ACEOF
14534 /* end confdefs.h.  */
14535 #include <sys/types.h>
14536 #include <termios.h>
14537 #ifdef TIOCGWINSZ
14538   yes
14539 #endif
14540
14541 _ACEOF
14542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14543   $EGREP "yes" >/dev/null 2>&1; then
14544   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14545 else
14546   ac_cv_sys_tiocgwinsz_in_termios_h=no
14547 fi
14548 rm -f conftest*
14549
14550 fi
14551 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14552 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14553
14554 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14555   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14556 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14557 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14558   echo $ECHO_N "(cached) $ECHO_C" >&6
14559 else
14560   cat >conftest.$ac_ext <<_ACEOF
14561 /* confdefs.h.  */
14562 _ACEOF
14563 cat confdefs.h >>conftest.$ac_ext
14564 cat >>conftest.$ac_ext <<_ACEOF
14565 /* end confdefs.h.  */
14566 #include <sys/types.h>
14567 #include <sys/ioctl.h>
14568 #ifdef TIOCGWINSZ
14569   yes
14570 #endif
14571
14572 _ACEOF
14573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14574   $EGREP "yes" >/dev/null 2>&1; then
14575   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14576 else
14577   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14578 fi
14579 rm -f conftest*
14580
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14583 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14584
14585   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14586
14587 cat >>confdefs.h <<\_ACEOF
14588 #define GWINSZ_IN_SYS_IOCTL 1
14589 _ACEOF
14590
14591   fi
14592 fi
14593
14594
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 for ac_header in \
14643         arpa/inet.h             \
14644         arpa/nameser.h  \
14645         assert.h                \
14646         bits/types.h    \
14647         conio.h                 \
14648         crypt.h                 \
14649         direct.h                \
14650         errno.h                 \
14651         fcntl.h                 \
14652         filio.h                 \
14653         getopt.h                \
14654         grp.h                   \
14655         io.h                    \
14656         libutil.h               \
14657         limits.h                \
14658         locale.h                \
14659         malloc.h                \
14660         memory.h                \
14661         psap.h                  \
14662         pwd.h                   \
14663         process.h               \
14664         sgtty.h                 \
14665         shadow.h                \
14666         stddef.h                \
14667         string.h                \
14668         strings.h               \
14669         sysexits.h              \
14670         sys/file.h              \
14671         sys/filio.h             \
14672         sys/fstyp.h             \
14673         sys/errno.h             \
14674         sys/ioctl.h             \
14675         sys/param.h             \
14676         sys/privgrp.h   \
14677         sys/resource.h  \
14678         sys/select.h    \
14679         sys/socket.h    \
14680         sys/stat.h              \
14681         sys/syslog.h    \
14682         sys/time.h              \
14683         sys/types.h             \
14684         sys/uio.h               \
14685         sys/vmount.h    \
14686         syslog.h                \
14687         termios.h               \
14688         unistd.h                \
14689         utime.h                 \
14690
14691 do
14692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14694   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14697   echo $ECHO_N "(cached) $ECHO_C" >&6
14698 fi
14699 ac_res=`eval echo '${'$as_ac_Header'}'`
14700                { echo "$as_me:$LINENO: result: $ac_res" >&5
14701 echo "${ECHO_T}$ac_res" >&6; }
14702 else
14703   # Is the header compilable?
14704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14706 cat >conftest.$ac_ext <<_ACEOF
14707 /* confdefs.h.  */
14708 _ACEOF
14709 cat confdefs.h >>conftest.$ac_ext
14710 cat >>conftest.$ac_ext <<_ACEOF
14711 /* end confdefs.h.  */
14712 $ac_includes_default
14713 #include <$ac_header>
14714 _ACEOF
14715 rm -f conftest.$ac_objext
14716 if { (ac_try="$ac_compile"
14717 case "(($ac_try" in
14718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14719   *) ac_try_echo=$ac_try;;
14720 esac
14721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14722   (eval "$ac_compile") 2>conftest.er1
14723   ac_status=$?
14724   grep -v '^ *+' conftest.er1 >conftest.err
14725   rm -f conftest.er1
14726   cat conftest.err >&5
14727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14728   (exit $ac_status); } && {
14729          test -z "$ac_c_werror_flag" ||
14730          test ! -s conftest.err
14731        } && test -s conftest.$ac_objext; then
14732   ac_header_compiler=yes
14733 else
14734   echo "$as_me: failed program was:" >&5
14735 sed 's/^/| /' conftest.$ac_ext >&5
14736
14737         ac_header_compiler=no
14738 fi
14739
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14742 echo "${ECHO_T}$ac_header_compiler" >&6; }
14743
14744 # Is the header present?
14745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14747 cat >conftest.$ac_ext <<_ACEOF
14748 /* confdefs.h.  */
14749 _ACEOF
14750 cat confdefs.h >>conftest.$ac_ext
14751 cat >>conftest.$ac_ext <<_ACEOF
14752 /* end confdefs.h.  */
14753 #include <$ac_header>
14754 _ACEOF
14755 if { (ac_try="$ac_cpp conftest.$ac_ext"
14756 case "(($ac_try" in
14757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758   *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14762   ac_status=$?
14763   grep -v '^ *+' conftest.er1 >conftest.err
14764   rm -f conftest.er1
14765   cat conftest.err >&5
14766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767   (exit $ac_status); } >/dev/null && {
14768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14769          test ! -s conftest.err
14770        }; then
14771   ac_header_preproc=yes
14772 else
14773   echo "$as_me: failed program was:" >&5
14774 sed 's/^/| /' conftest.$ac_ext >&5
14775
14776   ac_header_preproc=no
14777 fi
14778
14779 rm -f conftest.err conftest.$ac_ext
14780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14781 echo "${ECHO_T}$ac_header_preproc" >&6; }
14782
14783 # So?  What about this header?
14784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14785   yes:no: )
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14790     ac_header_preproc=yes
14791     ;;
14792   no:yes:* )
14793     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14796 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14800 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14805     ( cat <<\_ASBOX
14806 ## --------------------------------------------- ##
14807 ## Report this to <http://www.openldap.org/its/> ##
14808 ## --------------------------------------------- ##
14809 _ASBOX
14810      ) | sed "s/^/$as_me: WARNING:     /" >&2
14811     ;;
14812 esac
14813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14816   echo $ECHO_N "(cached) $ECHO_C" >&6
14817 else
14818   eval "$as_ac_Header=\$ac_header_preproc"
14819 fi
14820 ac_res=`eval echo '${'$as_ac_Header'}'`
14821                { echo "$as_me:$LINENO: result: $ac_res" >&5
14822 echo "${ECHO_T}$ac_res" >&6; }
14823
14824 fi
14825 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14826   cat >>confdefs.h <<_ACEOF
14827 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14828 _ACEOF
14829
14830 fi
14831
14832 done
14833
14834
14835 if test "$ac_cv_mingw32" = yes \
14836         -o "$ac_cv_interix" = yes \
14837         -o "$ol_cv_msvc" = yes
14838 then
14839
14840
14841 for ac_header in winsock.h winsock2.h
14842 do
14843 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14845   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14846 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14847 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 fi
14850 ac_res=`eval echo '${'$as_ac_Header'}'`
14851                { echo "$as_me:$LINENO: result: $ac_res" >&5
14852 echo "${ECHO_T}$ac_res" >&6; }
14853 else
14854   # Is the header compilable?
14855 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14856 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14857 cat >conftest.$ac_ext <<_ACEOF
14858 /* confdefs.h.  */
14859 _ACEOF
14860 cat confdefs.h >>conftest.$ac_ext
14861 cat >>conftest.$ac_ext <<_ACEOF
14862 /* end confdefs.h.  */
14863 $ac_includes_default
14864 #include <$ac_header>
14865 _ACEOF
14866 rm -f conftest.$ac_objext
14867 if { (ac_try="$ac_compile"
14868 case "(($ac_try" in
14869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14870   *) ac_try_echo=$ac_try;;
14871 esac
14872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14873   (eval "$ac_compile") 2>conftest.er1
14874   ac_status=$?
14875   grep -v '^ *+' conftest.er1 >conftest.err
14876   rm -f conftest.er1
14877   cat conftest.err >&5
14878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14879   (exit $ac_status); } && {
14880          test -z "$ac_c_werror_flag" ||
14881          test ! -s conftest.err
14882        } && test -s conftest.$ac_objext; then
14883   ac_header_compiler=yes
14884 else
14885   echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888         ac_header_compiler=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14892 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14893 echo "${ECHO_T}$ac_header_compiler" >&6; }
14894
14895 # Is the header present?
14896 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14897 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14898 cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <$ac_header>
14905 _ACEOF
14906 if { (ac_try="$ac_cpp conftest.$ac_ext"
14907 case "(($ac_try" in
14908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14909   *) ac_try_echo=$ac_try;;
14910 esac
14911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14912   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14913   ac_status=$?
14914   grep -v '^ *+' conftest.er1 >conftest.err
14915   rm -f conftest.er1
14916   cat conftest.err >&5
14917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14918   (exit $ac_status); } >/dev/null && {
14919          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14920          test ! -s conftest.err
14921        }; then
14922   ac_header_preproc=yes
14923 else
14924   echo "$as_me: failed program was:" >&5
14925 sed 's/^/| /' conftest.$ac_ext >&5
14926
14927   ac_header_preproc=no
14928 fi
14929
14930 rm -f conftest.err conftest.$ac_ext
14931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14932 echo "${ECHO_T}$ac_header_preproc" >&6; }
14933
14934 # So?  What about this header?
14935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14936   yes:no: )
14937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14941     ac_header_preproc=yes
14942     ;;
14943   no:yes:* )
14944     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14947 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14951 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14954     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14956     ( cat <<\_ASBOX
14957 ## --------------------------------------------- ##
14958 ## Report this to <http://www.openldap.org/its/> ##
14959 ## --------------------------------------------- ##
14960 _ASBOX
14961      ) | sed "s/^/$as_me: WARNING:     /" >&2
14962     ;;
14963 esac
14964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967   echo $ECHO_N "(cached) $ECHO_C" >&6
14968 else
14969   eval "$as_ac_Header=\$ac_header_preproc"
14970 fi
14971 ac_res=`eval echo '${'$as_ac_Header'}'`
14972                { echo "$as_me:$LINENO: result: $ac_res" >&5
14973 echo "${ECHO_T}$ac_res" >&6; }
14974
14975 fi
14976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14977   cat >>confdefs.h <<_ACEOF
14978 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14979 _ACEOF
14980
14981 fi
14982
14983 done
14984
14985 fi
14986
14987
14988 for ac_header in resolv.h
14989 do
14990 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   cat >conftest.$ac_ext <<_ACEOF
14997 /* confdefs.h.  */
14998 _ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h.  */
15002 $ac_includes_default
15003 #include <netinet/in.h>
15004
15005
15006 #include <$ac_header>
15007 _ACEOF
15008 rm -f conftest.$ac_objext
15009 if { (ac_try="$ac_compile"
15010 case "(($ac_try" in
15011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15012   *) ac_try_echo=$ac_try;;
15013 esac
15014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15015   (eval "$ac_compile") 2>conftest.er1
15016   ac_status=$?
15017   grep -v '^ *+' conftest.er1 >conftest.err
15018   rm -f conftest.er1
15019   cat conftest.err >&5
15020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15021   (exit $ac_status); } && {
15022          test -z "$ac_c_werror_flag" ||
15023          test ! -s conftest.err
15024        } && test -s conftest.$ac_objext; then
15025   eval "$as_ac_Header=yes"
15026 else
15027   echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030         eval "$as_ac_Header=no"
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 fi
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036                { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15038 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15039   cat >>confdefs.h <<_ACEOF
15040 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15041 _ACEOF
15042
15043 fi
15044
15045 done
15046
15047
15048
15049 for ac_header in netinet/tcp.h
15050 do
15051 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055   echo $ECHO_N "(cached) $ECHO_C" >&6
15056 else
15057   cat >conftest.$ac_ext <<_ACEOF
15058 /* confdefs.h.  */
15059 _ACEOF
15060 cat confdefs.h >>conftest.$ac_ext
15061 cat >>conftest.$ac_ext <<_ACEOF
15062 /* end confdefs.h.  */
15063 $ac_includes_default
15064 #include <netinet/in.h>
15065
15066
15067 #include <$ac_header>
15068 _ACEOF
15069 rm -f conftest.$ac_objext
15070 if { (ac_try="$ac_compile"
15071 case "(($ac_try" in
15072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15073   *) ac_try_echo=$ac_try;;
15074 esac
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076   (eval "$ac_compile") 2>conftest.er1
15077   ac_status=$?
15078   grep -v '^ *+' conftest.er1 >conftest.err
15079   rm -f conftest.er1
15080   cat conftest.err >&5
15081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082   (exit $ac_status); } && {
15083          test -z "$ac_c_werror_flag" ||
15084          test ! -s conftest.err
15085        } && test -s conftest.$ac_objext; then
15086   eval "$as_ac_Header=yes"
15087 else
15088   echo "$as_me: failed program was:" >&5
15089 sed 's/^/| /' conftest.$ac_ext >&5
15090
15091         eval "$as_ac_Header=no"
15092 fi
15093
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 ac_res=`eval echo '${'$as_ac_Header'}'`
15097                { echo "$as_me:$LINENO: result: $ac_res" >&5
15098 echo "${ECHO_T}$ac_res" >&6; }
15099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15100   cat >>confdefs.h <<_ACEOF
15101 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15102 _ACEOF
15103
15104 fi
15105
15106 done
15107
15108
15109
15110 for ac_header in sys/ucred.h
15111 do
15112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15116   echo $ECHO_N "(cached) $ECHO_C" >&6
15117 else
15118   cat >conftest.$ac_ext <<_ACEOF
15119 /* confdefs.h.  */
15120 _ACEOF
15121 cat confdefs.h >>conftest.$ac_ext
15122 cat >>conftest.$ac_ext <<_ACEOF
15123 /* end confdefs.h.  */
15124 $ac_includes_default
15125 #ifdef HAVE_SYS_PARAM_H
15126 #include <sys/param.h>
15127 #endif
15128
15129
15130 #include <$ac_header>
15131 _ACEOF
15132 rm -f conftest.$ac_objext
15133 if { (ac_try="$ac_compile"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_compile") 2>conftest.er1
15140   ac_status=$?
15141   grep -v '^ *+' conftest.er1 >conftest.err
15142   rm -f conftest.er1
15143   cat conftest.err >&5
15144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15145   (exit $ac_status); } && {
15146          test -z "$ac_c_werror_flag" ||
15147          test ! -s conftest.err
15148        } && test -s conftest.$ac_objext; then
15149   eval "$as_ac_Header=yes"
15150 else
15151   echo "$as_me: failed program was:" >&5
15152 sed 's/^/| /' conftest.$ac_ext >&5
15153
15154         eval "$as_ac_Header=no"
15155 fi
15156
15157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15158 fi
15159 ac_res=`eval echo '${'$as_ac_Header'}'`
15160                { echo "$as_me:$LINENO: result: $ac_res" >&5
15161 echo "${ECHO_T}$ac_res" >&6; }
15162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15163   cat >>confdefs.h <<_ACEOF
15164 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15165 _ACEOF
15166
15167 fi
15168
15169 done
15170
15171
15172
15173
15174
15175 for ac_func in sigaction sigset
15176 do
15177 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15181   echo $ECHO_N "(cached) $ECHO_C" >&6
15182 else
15183   cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h.  */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h.  */
15189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15191 #define $ac_func innocuous_$ac_func
15192
15193 /* System header to define __stub macros and hopefully few prototypes,
15194     which can conflict with char $ac_func (); below.
15195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15196     <limits.h> exists even on freestanding compilers.  */
15197
15198 #ifdef __STDC__
15199 # include <limits.h>
15200 #else
15201 # include <assert.h>
15202 #endif
15203
15204 #undef $ac_func
15205
15206 /* Override any GCC internal prototype to avoid an error.
15207    Use char because int might match the return type of a GCC
15208    builtin and then its argument prototype would still apply.  */
15209 #ifdef __cplusplus
15210 extern "C"
15211 #endif
15212 char $ac_func ();
15213 /* The GNU C library defines this for functions which it implements
15214     to always fail with ENOSYS.  Some functions are actually named
15215     something starting with __ and the normal name is an alias.  */
15216 #if defined __stub_$ac_func || defined __stub___$ac_func
15217 choke me
15218 #endif
15219
15220 int
15221 main ()
15222 {
15223 return $ac_func ();
15224   ;
15225   return 0;
15226 }
15227 _ACEOF
15228 rm -f conftest.$ac_objext conftest$ac_exeext
15229 if { (ac_try="$ac_link"
15230 case "(($ac_try" in
15231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232   *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235   (eval "$ac_link") 2>conftest.er1
15236   ac_status=$?
15237   grep -v '^ *+' conftest.er1 >conftest.err
15238   rm -f conftest.er1
15239   cat conftest.err >&5
15240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241   (exit $ac_status); } && {
15242          test -z "$ac_c_werror_flag" ||
15243          test ! -s conftest.err
15244        } && test -s conftest$ac_exeext &&
15245        $as_test_x conftest$ac_exeext; then
15246   eval "$as_ac_var=yes"
15247 else
15248   echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15250
15251         eval "$as_ac_var=no"
15252 fi
15253
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255       conftest$ac_exeext conftest.$ac_ext
15256 fi
15257 ac_res=`eval echo '${'$as_ac_var'}'`
15258                { echo "$as_me:$LINENO: result: $ac_res" >&5
15259 echo "${ECHO_T}$ac_res" >&6; }
15260 if test `eval echo '${'$as_ac_var'}'` = yes; then
15261   cat >>confdefs.h <<_ACEOF
15262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15263 _ACEOF
15264
15265 fi
15266 done
15267
15268
15269 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15270
15271 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15272 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15273 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15274   echo $ECHO_N "(cached) $ECHO_C" >&6
15275 else
15276   ac_check_lib_save_LIBS=$LIBS
15277 LIBS="-lV3  $LIBS"
15278 cat >conftest.$ac_ext <<_ACEOF
15279 /* confdefs.h.  */
15280 _ACEOF
15281 cat confdefs.h >>conftest.$ac_ext
15282 cat >>conftest.$ac_ext <<_ACEOF
15283 /* end confdefs.h.  */
15284
15285 /* Override any GCC internal prototype to avoid an error.
15286    Use char because int might match the return type of a GCC
15287    builtin and then its argument prototype would still apply.  */
15288 #ifdef __cplusplus
15289 extern "C"
15290 #endif
15291 char sigset ();
15292 int
15293 main ()
15294 {
15295 return sigset ();
15296   ;
15297   return 0;
15298 }
15299 _ACEOF
15300 rm -f conftest.$ac_objext conftest$ac_exeext
15301 if { (ac_try="$ac_link"
15302 case "(($ac_try" in
15303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15304   *) ac_try_echo=$ac_try;;
15305 esac
15306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15307   (eval "$ac_link") 2>conftest.er1
15308   ac_status=$?
15309   grep -v '^ *+' conftest.er1 >conftest.err
15310   rm -f conftest.er1
15311   cat conftest.err >&5
15312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313   (exit $ac_status); } && {
15314          test -z "$ac_c_werror_flag" ||
15315          test ! -s conftest.err
15316        } && test -s conftest$ac_exeext &&
15317        $as_test_x conftest$ac_exeext; then
15318   ac_cv_lib_V3_sigset=yes
15319 else
15320   echo "$as_me: failed program was:" >&5
15321 sed 's/^/| /' conftest.$ac_ext >&5
15322
15323         ac_cv_lib_V3_sigset=no
15324 fi
15325
15326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15327       conftest$ac_exeext conftest.$ac_ext
15328 LIBS=$ac_check_lib_save_LIBS
15329 fi
15330 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15331 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15332 if test $ac_cv_lib_V3_sigset = yes; then
15333   cat >>confdefs.h <<_ACEOF
15334 #define HAVE_LIBV3 1
15335 _ACEOF
15336
15337   LIBS="-lV3 $LIBS"
15338
15339 fi
15340
15341 fi
15342
15343 if test $ol_cv_msvc = yes ; then
15344    ol_cv_winsock=yes
15345 fi
15346
15347 if test "$ac_cv_header_winsock_h" = yes; then
15348         { echo "$as_me:$LINENO: checking for winsock" >&5
15349 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15350 if test "${ol_cv_winsock+set}" = set; then
15351   echo $ECHO_N "(cached) $ECHO_C" >&6
15352 else
15353
15354         save_LIBS="$LIBS"
15355         for curlib in none ws2_32 wsock32; do
15356                 if test $curlib != none ; then
15357                 LIBS="$save_LIBS -l$curlib"
15358                 fi
15359                 cat >conftest.$ac_ext <<_ACEOF
15360 /* confdefs.h.  */
15361 _ACEOF
15362 cat confdefs.h >>conftest.$ac_ext
15363 cat >>conftest.$ac_ext <<_ACEOF
15364 /* end confdefs.h.  */
15365 #include <winsock.h>
15366
15367 int
15368 main ()
15369 {
15370
15371                         socket(0,0,0);
15372                         select(0,NULL,NULL,NULL,NULL);
15373                         closesocket(0);
15374                         gethostname(NULL,0);
15375
15376   ;
15377   return 0;
15378 }
15379 _ACEOF
15380 rm -f conftest.$ac_objext conftest$ac_exeext
15381 if { (ac_try="$ac_link"
15382 case "(($ac_try" in
15383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15384   *) ac_try_echo=$ac_try;;
15385 esac
15386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15387   (eval "$ac_link") 2>conftest.er1
15388   ac_status=$?
15389   grep -v '^ *+' conftest.er1 >conftest.err
15390   rm -f conftest.er1
15391   cat conftest.err >&5
15392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15393   (exit $ac_status); } && {
15394          test -z "$ac_c_werror_flag" ||
15395          test ! -s conftest.err
15396        } && test -s conftest$ac_exeext &&
15397        $as_test_x conftest$ac_exeext; then
15398   ol_cv_winsock=$curlib
15399 else
15400   echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15402
15403         ol_cv_winsock=no
15404 fi
15405
15406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15407       conftest$ac_exeext conftest.$ac_ext
15408
15409                 test "$ol_cv_winsock" != no && break
15410         done
15411         LIBS="$save_LIBS"
15412
15413 fi
15414 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15415 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15416
15417         if test $ol_cv_winsock != no ; then
15418
15419 cat >>confdefs.h <<\_ACEOF
15420 #define HAVE_WINSOCK 1
15421 _ACEOF
15422
15423         ac_cv_func_socket=yes
15424         ac_cv_func_select=yes
15425         ac_cv_func_closesocket=yes
15426         ac_cv_func_gethostname=yes
15427
15428                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15429                 LIBS="$LIBS -l$ol_cv_winsock"
15430                 fi
15431
15432         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15433
15434 cat >>confdefs.h <<\_ACEOF
15435 #define HAVE_WINSOCK2 1
15436 _ACEOF
15437
15438         fi
15439         fi
15440 fi
15441
15442
15443 { echo "$as_me:$LINENO: checking for socket" >&5
15444 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15445 if test "${ac_cv_func_socket+set}" = set; then
15446   echo $ECHO_N "(cached) $ECHO_C" >&6
15447 else
15448   cat >conftest.$ac_ext <<_ACEOF
15449 /* confdefs.h.  */
15450 _ACEOF
15451 cat confdefs.h >>conftest.$ac_ext
15452 cat >>conftest.$ac_ext <<_ACEOF
15453 /* end confdefs.h.  */
15454 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15455    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15456 #define socket innocuous_socket
15457
15458 /* System header to define __stub macros and hopefully few prototypes,
15459     which can conflict with char socket (); below.
15460     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15461     <limits.h> exists even on freestanding compilers.  */
15462
15463 #ifdef __STDC__
15464 # include <limits.h>
15465 #else
15466 # include <assert.h>
15467 #endif
15468
15469 #undef socket
15470
15471 /* Override any GCC internal prototype to avoid an error.
15472    Use char because int might match the return type of a GCC
15473    builtin and then its argument prototype would still apply.  */
15474 #ifdef __cplusplus
15475 extern "C"
15476 #endif
15477 char socket ();
15478 /* The GNU C library defines this for functions which it implements
15479     to always fail with ENOSYS.  Some functions are actually named
15480     something starting with __ and the normal name is an alias.  */
15481 #if defined __stub_socket || defined __stub___socket
15482 choke me
15483 #endif
15484
15485 int
15486 main ()
15487 {
15488 return socket ();
15489   ;
15490   return 0;
15491 }
15492 _ACEOF
15493 rm -f conftest.$ac_objext conftest$ac_exeext
15494 if { (ac_try="$ac_link"
15495 case "(($ac_try" in
15496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15497   *) ac_try_echo=$ac_try;;
15498 esac
15499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15500   (eval "$ac_link") 2>conftest.er1
15501   ac_status=$?
15502   grep -v '^ *+' conftest.er1 >conftest.err
15503   rm -f conftest.er1
15504   cat conftest.err >&5
15505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15506   (exit $ac_status); } && {
15507          test -z "$ac_c_werror_flag" ||
15508          test ! -s conftest.err
15509        } && test -s conftest$ac_exeext &&
15510        $as_test_x conftest$ac_exeext; then
15511   ac_cv_func_socket=yes
15512 else
15513   echo "$as_me: failed program was:" >&5
15514 sed 's/^/| /' conftest.$ac_ext >&5
15515
15516         ac_cv_func_socket=no
15517 fi
15518
15519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15520       conftest$ac_exeext conftest.$ac_ext
15521 fi
15522 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15523 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15524 if test $ac_cv_func_socket = yes; then
15525   :
15526 else
15527
15528
15529 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15530 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15531 if test "${ac_cv_lib_socket_main+set}" = set; then
15532   echo $ECHO_N "(cached) $ECHO_C" >&6
15533 else
15534   ac_check_lib_save_LIBS=$LIBS
15535 LIBS="-lsocket  $LIBS"
15536 cat >conftest.$ac_ext <<_ACEOF
15537 /* confdefs.h.  */
15538 _ACEOF
15539 cat confdefs.h >>conftest.$ac_ext
15540 cat >>conftest.$ac_ext <<_ACEOF
15541 /* end confdefs.h.  */
15542
15543
15544 int
15545 main ()
15546 {
15547 return main ();
15548   ;
15549   return 0;
15550 }
15551 _ACEOF
15552 rm -f conftest.$ac_objext conftest$ac_exeext
15553 if { (ac_try="$ac_link"
15554 case "(($ac_try" in
15555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15556   *) ac_try_echo=$ac_try;;
15557 esac
15558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15559   (eval "$ac_link") 2>conftest.er1
15560   ac_status=$?
15561   grep -v '^ *+' conftest.er1 >conftest.err
15562   rm -f conftest.er1
15563   cat conftest.err >&5
15564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15565   (exit $ac_status); } && {
15566          test -z "$ac_c_werror_flag" ||
15567          test ! -s conftest.err
15568        } && test -s conftest$ac_exeext &&
15569        $as_test_x conftest$ac_exeext; then
15570   ac_cv_lib_socket_main=yes
15571 else
15572   echo "$as_me: failed program was:" >&5
15573 sed 's/^/| /' conftest.$ac_ext >&5
15574
15575         ac_cv_lib_socket_main=no
15576 fi
15577
15578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15579       conftest$ac_exeext conftest.$ac_ext
15580 LIBS=$ac_check_lib_save_LIBS
15581 fi
15582 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15583 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15584 if test $ac_cv_lib_socket_main = yes; then
15585   cat >>confdefs.h <<_ACEOF
15586 #define HAVE_LIBSOCKET 1
15587 _ACEOF
15588
15589   LIBS="-lsocket $LIBS"
15590
15591 fi
15592
15593
15594 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15595 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15596 if test "${ac_cv_lib_net_main+set}" = set; then
15597   echo $ECHO_N "(cached) $ECHO_C" >&6
15598 else
15599   ac_check_lib_save_LIBS=$LIBS
15600 LIBS="-lnet  $LIBS"
15601 cat >conftest.$ac_ext <<_ACEOF
15602 /* confdefs.h.  */
15603 _ACEOF
15604 cat confdefs.h >>conftest.$ac_ext
15605 cat >>conftest.$ac_ext <<_ACEOF
15606 /* end confdefs.h.  */
15607
15608
15609 int
15610 main ()
15611 {
15612 return main ();
15613   ;
15614   return 0;
15615 }
15616 _ACEOF
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (ac_try="$ac_link"
15619 case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_link") 2>conftest.er1
15625   ac_status=$?
15626   grep -v '^ *+' conftest.er1 >conftest.err
15627   rm -f conftest.er1
15628   cat conftest.err >&5
15629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630   (exit $ac_status); } && {
15631          test -z "$ac_c_werror_flag" ||
15632          test ! -s conftest.err
15633        } && test -s conftest$ac_exeext &&
15634        $as_test_x conftest$ac_exeext; then
15635   ac_cv_lib_net_main=yes
15636 else
15637   echo "$as_me: failed program was:" >&5
15638 sed 's/^/| /' conftest.$ac_ext >&5
15639
15640         ac_cv_lib_net_main=no
15641 fi
15642
15643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15644       conftest$ac_exeext conftest.$ac_ext
15645 LIBS=$ac_check_lib_save_LIBS
15646 fi
15647 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15648 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15649 if test $ac_cv_lib_net_main = yes; then
15650   cat >>confdefs.h <<_ACEOF
15651 #define HAVE_LIBNET 1
15652 _ACEOF
15653
15654   LIBS="-lnet $LIBS"
15655
15656 fi
15657
15658
15659 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15660 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15661 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 else
15664   ac_check_lib_save_LIBS=$LIBS
15665 LIBS="-lnsl_s  $LIBS"
15666 cat >conftest.$ac_ext <<_ACEOF
15667 /* confdefs.h.  */
15668 _ACEOF
15669 cat confdefs.h >>conftest.$ac_ext
15670 cat >>conftest.$ac_ext <<_ACEOF
15671 /* end confdefs.h.  */
15672
15673
15674 int
15675 main ()
15676 {
15677 return main ();
15678   ;
15679   return 0;
15680 }
15681 _ACEOF
15682 rm -f conftest.$ac_objext conftest$ac_exeext
15683 if { (ac_try="$ac_link"
15684 case "(($ac_try" in
15685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686   *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689   (eval "$ac_link") 2>conftest.er1
15690   ac_status=$?
15691   grep -v '^ *+' conftest.er1 >conftest.err
15692   rm -f conftest.er1
15693   cat conftest.err >&5
15694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695   (exit $ac_status); } && {
15696          test -z "$ac_c_werror_flag" ||
15697          test ! -s conftest.err
15698        } && test -s conftest$ac_exeext &&
15699        $as_test_x conftest$ac_exeext; then
15700   ac_cv_lib_nsl_s_main=yes
15701 else
15702   echo "$as_me: failed program was:" >&5
15703 sed 's/^/| /' conftest.$ac_ext >&5
15704
15705         ac_cv_lib_nsl_s_main=no
15706 fi
15707
15708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15709       conftest$ac_exeext conftest.$ac_ext
15710 LIBS=$ac_check_lib_save_LIBS
15711 fi
15712 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15713 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15714 if test $ac_cv_lib_nsl_s_main = yes; then
15715   cat >>confdefs.h <<_ACEOF
15716 #define HAVE_LIBNSL_S 1
15717 _ACEOF
15718
15719   LIBS="-lnsl_s $LIBS"
15720
15721 fi
15722
15723
15724 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15725 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15726 if test "${ac_cv_lib_nsl_main+set}" = set; then
15727   echo $ECHO_N "(cached) $ECHO_C" >&6
15728 else
15729   ac_check_lib_save_LIBS=$LIBS
15730 LIBS="-lnsl  $LIBS"
15731 cat >conftest.$ac_ext <<_ACEOF
15732 /* confdefs.h.  */
15733 _ACEOF
15734 cat confdefs.h >>conftest.$ac_ext
15735 cat >>conftest.$ac_ext <<_ACEOF
15736 /* end confdefs.h.  */
15737
15738
15739 int
15740 main ()
15741 {
15742 return main ();
15743   ;
15744   return 0;
15745 }
15746 _ACEOF
15747 rm -f conftest.$ac_objext conftest$ac_exeext
15748 if { (ac_try="$ac_link"
15749 case "(($ac_try" in
15750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15751   *) ac_try_echo=$ac_try;;
15752 esac
15753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15754   (eval "$ac_link") 2>conftest.er1
15755   ac_status=$?
15756   grep -v '^ *+' conftest.er1 >conftest.err
15757   rm -f conftest.er1
15758   cat conftest.err >&5
15759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15760   (exit $ac_status); } && {
15761          test -z "$ac_c_werror_flag" ||
15762          test ! -s conftest.err
15763        } && test -s conftest$ac_exeext &&
15764        $as_test_x conftest$ac_exeext; then
15765   ac_cv_lib_nsl_main=yes
15766 else
15767   echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15769
15770         ac_cv_lib_nsl_main=no
15771 fi
15772
15773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15774       conftest$ac_exeext conftest.$ac_ext
15775 LIBS=$ac_check_lib_save_LIBS
15776 fi
15777 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15778 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15779 if test $ac_cv_lib_nsl_main = yes; then
15780   cat >>confdefs.h <<_ACEOF
15781 #define HAVE_LIBNSL 1
15782 _ACEOF
15783
15784   LIBS="-lnsl $LIBS"
15785
15786 fi
15787
15788
15789 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15790 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15791 if test "${ac_cv_lib_inet_socket+set}" = set; then
15792   echo $ECHO_N "(cached) $ECHO_C" >&6
15793 else
15794   ac_check_lib_save_LIBS=$LIBS
15795 LIBS="-linet  $LIBS"
15796 cat >conftest.$ac_ext <<_ACEOF
15797 /* confdefs.h.  */
15798 _ACEOF
15799 cat confdefs.h >>conftest.$ac_ext
15800 cat >>conftest.$ac_ext <<_ACEOF
15801 /* end confdefs.h.  */
15802
15803 /* Override any GCC internal prototype to avoid an error.
15804    Use char because int might match the return type of a GCC
15805    builtin and then its argument prototype would still apply.  */
15806 #ifdef __cplusplus
15807 extern "C"
15808 #endif
15809 char socket ();
15810 int
15811 main ()
15812 {
15813 return socket ();
15814   ;
15815   return 0;
15816 }
15817 _ACEOF
15818 rm -f conftest.$ac_objext conftest$ac_exeext
15819 if { (ac_try="$ac_link"
15820 case "(($ac_try" in
15821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822   *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825   (eval "$ac_link") 2>conftest.er1
15826   ac_status=$?
15827   grep -v '^ *+' conftest.er1 >conftest.err
15828   rm -f conftest.er1
15829   cat conftest.err >&5
15830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15831   (exit $ac_status); } && {
15832          test -z "$ac_c_werror_flag" ||
15833          test ! -s conftest.err
15834        } && test -s conftest$ac_exeext &&
15835        $as_test_x conftest$ac_exeext; then
15836   ac_cv_lib_inet_socket=yes
15837 else
15838   echo "$as_me: failed program was:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15840
15841         ac_cv_lib_inet_socket=no
15842 fi
15843
15844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15845       conftest$ac_exeext conftest.$ac_ext
15846 LIBS=$ac_check_lib_save_LIBS
15847 fi
15848 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15849 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15850 if test $ac_cv_lib_inet_socket = yes; then
15851   cat >>confdefs.h <<_ACEOF
15852 #define HAVE_LIBINET 1
15853 _ACEOF
15854
15855   LIBS="-linet $LIBS"
15856
15857 fi
15858
15859
15860 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15861 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15862 if test "${ac_cv_lib_gen_main+set}" = set; then
15863   echo $ECHO_N "(cached) $ECHO_C" >&6
15864 else
15865   ac_check_lib_save_LIBS=$LIBS
15866 LIBS="-lgen  $LIBS"
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h.  */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h.  */
15873
15874
15875 int
15876 main ()
15877 {
15878 return main ();
15879   ;
15880   return 0;
15881 }
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (ac_try="$ac_link"
15885 case "(($ac_try" in
15886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15887   *) ac_try_echo=$ac_try;;
15888 esac
15889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15890   (eval "$ac_link") 2>conftest.er1
15891   ac_status=$?
15892   grep -v '^ *+' conftest.er1 >conftest.err
15893   rm -f conftest.er1
15894   cat conftest.err >&5
15895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15896   (exit $ac_status); } && {
15897          test -z "$ac_c_werror_flag" ||
15898          test ! -s conftest.err
15899        } && test -s conftest$ac_exeext &&
15900        $as_test_x conftest$ac_exeext; then
15901   ac_cv_lib_gen_main=yes
15902 else
15903   echo "$as_me: failed program was:" >&5
15904 sed 's/^/| /' conftest.$ac_ext >&5
15905
15906         ac_cv_lib_gen_main=no
15907 fi
15908
15909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15910       conftest$ac_exeext conftest.$ac_ext
15911 LIBS=$ac_check_lib_save_LIBS
15912 fi
15913 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15914 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15915 if test $ac_cv_lib_gen_main = yes; then
15916   cat >>confdefs.h <<_ACEOF
15917 #define HAVE_LIBGEN 1
15918 _ACEOF
15919
15920   LIBS="-lgen $LIBS"
15921
15922 fi
15923
15924
15925 fi
15926
15927
15928 { echo "$as_me:$LINENO: checking for select" >&5
15929 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15930 if test "${ac_cv_func_select+set}" = set; then
15931   echo $ECHO_N "(cached) $ECHO_C" >&6
15932 else
15933   cat >conftest.$ac_ext <<_ACEOF
15934 /* confdefs.h.  */
15935 _ACEOF
15936 cat confdefs.h >>conftest.$ac_ext
15937 cat >>conftest.$ac_ext <<_ACEOF
15938 /* end confdefs.h.  */
15939 /* Define select to an innocuous variant, in case <limits.h> declares select.
15940    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15941 #define select innocuous_select
15942
15943 /* System header to define __stub macros and hopefully few prototypes,
15944     which can conflict with char select (); below.
15945     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15946     <limits.h> exists even on freestanding compilers.  */
15947
15948 #ifdef __STDC__
15949 # include <limits.h>
15950 #else
15951 # include <assert.h>
15952 #endif
15953
15954 #undef select
15955
15956 /* Override any GCC internal prototype to avoid an error.
15957    Use char because int might match the return type of a GCC
15958    builtin and then its argument prototype would still apply.  */
15959 #ifdef __cplusplus
15960 extern "C"
15961 #endif
15962 char select ();
15963 /* The GNU C library defines this for functions which it implements
15964     to always fail with ENOSYS.  Some functions are actually named
15965     something starting with __ and the normal name is an alias.  */
15966 #if defined __stub_select || defined __stub___select
15967 choke me
15968 #endif
15969
15970 int
15971 main ()
15972 {
15973 return select ();
15974   ;
15975   return 0;
15976 }
15977 _ACEOF
15978 rm -f conftest.$ac_objext conftest$ac_exeext
15979 if { (ac_try="$ac_link"
15980 case "(($ac_try" in
15981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15982   *) ac_try_echo=$ac_try;;
15983 esac
15984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15985   (eval "$ac_link") 2>conftest.er1
15986   ac_status=$?
15987   grep -v '^ *+' conftest.er1 >conftest.err
15988   rm -f conftest.er1
15989   cat conftest.err >&5
15990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991   (exit $ac_status); } && {
15992          test -z "$ac_c_werror_flag" ||
15993          test ! -s conftest.err
15994        } && test -s conftest$ac_exeext &&
15995        $as_test_x conftest$ac_exeext; then
15996   ac_cv_func_select=yes
15997 else
15998   echo "$as_me: failed program was:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16000
16001         ac_cv_func_select=no
16002 fi
16003
16004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16005       conftest$ac_exeext conftest.$ac_ext
16006 fi
16007 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16008 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16009 if test $ac_cv_func_select = yes; then
16010   :
16011 else
16012   { { echo "$as_me:$LINENO: error: select() required." >&5
16013 echo "$as_me: error: select() required." >&2;}
16014    { (exit 1); exit 1; }; }
16015 fi
16016
16017
16018 if test "${ac_cv_header_winsock_h}" != yes; then
16019
16020
16021 for ac_header in sys/select.h sys/socket.h
16022 do
16023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16025   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16028   echo $ECHO_N "(cached) $ECHO_C" >&6
16029 fi
16030 ac_res=`eval echo '${'$as_ac_Header'}'`
16031                { echo "$as_me:$LINENO: result: $ac_res" >&5
16032 echo "${ECHO_T}$ac_res" >&6; }
16033 else
16034   # Is the header compilable?
16035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16037 cat >conftest.$ac_ext <<_ACEOF
16038 /* confdefs.h.  */
16039 _ACEOF
16040 cat confdefs.h >>conftest.$ac_ext
16041 cat >>conftest.$ac_ext <<_ACEOF
16042 /* end confdefs.h.  */
16043 $ac_includes_default
16044 #include <$ac_header>
16045 _ACEOF
16046 rm -f conftest.$ac_objext
16047 if { (ac_try="$ac_compile"
16048 case "(($ac_try" in
16049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050   *) ac_try_echo=$ac_try;;
16051 esac
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053   (eval "$ac_compile") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && {
16060          test -z "$ac_c_werror_flag" ||
16061          test ! -s conftest.err
16062        } && test -s conftest.$ac_objext; then
16063   ac_header_compiler=yes
16064 else
16065   echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068         ac_header_compiler=no
16069 fi
16070
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16073 echo "${ECHO_T}$ac_header_compiler" >&6; }
16074
16075 # Is the header present?
16076 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16077 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16078 cat >conftest.$ac_ext <<_ACEOF
16079 /* confdefs.h.  */
16080 _ACEOF
16081 cat confdefs.h >>conftest.$ac_ext
16082 cat >>conftest.$ac_ext <<_ACEOF
16083 /* end confdefs.h.  */
16084 #include <$ac_header>
16085 _ACEOF
16086 if { (ac_try="$ac_cpp conftest.$ac_ext"
16087 case "(($ac_try" in
16088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16089   *) ac_try_echo=$ac_try;;
16090 esac
16091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16092   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16093   ac_status=$?
16094   grep -v '^ *+' conftest.er1 >conftest.err
16095   rm -f conftest.er1
16096   cat conftest.err >&5
16097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16098   (exit $ac_status); } >/dev/null && {
16099          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16100          test ! -s conftest.err
16101        }; then
16102   ac_header_preproc=yes
16103 else
16104   echo "$as_me: failed program was:" >&5
16105 sed 's/^/| /' conftest.$ac_ext >&5
16106
16107   ac_header_preproc=no
16108 fi
16109
16110 rm -f conftest.err conftest.$ac_ext
16111 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16112 echo "${ECHO_T}$ac_header_preproc" >&6; }
16113
16114 # So?  What about this header?
16115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16116   yes:no: )
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16121     ac_header_preproc=yes
16122     ;;
16123   no:yes:* )
16124     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16127 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16131 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16136     ( cat <<\_ASBOX
16137 ## --------------------------------------------- ##
16138 ## Report this to <http://www.openldap.org/its/> ##
16139 ## --------------------------------------------- ##
16140 _ASBOX
16141      ) | sed "s/^/$as_me: WARNING:     /" >&2
16142     ;;
16143 esac
16144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16147   echo $ECHO_N "(cached) $ECHO_C" >&6
16148 else
16149   eval "$as_ac_Header=\$ac_header_preproc"
16150 fi
16151 ac_res=`eval echo '${'$as_ac_Header'}'`
16152                { echo "$as_me:$LINENO: result: $ac_res" >&5
16153 echo "${ECHO_T}$ac_res" >&6; }
16154
16155 fi
16156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16157   cat >>confdefs.h <<_ACEOF
16158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16159 _ACEOF
16160
16161 fi
16162
16163 done
16164
16165 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16166 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16167 if test "${ac_cv_func_select_args+set}" = set; then
16168   echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16171  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16172   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16173    cat >conftest.$ac_ext <<_ACEOF
16174 /* confdefs.h.  */
16175 _ACEOF
16176 cat confdefs.h >>conftest.$ac_ext
16177 cat >>conftest.$ac_ext <<_ACEOF
16178 /* end confdefs.h.  */
16179 $ac_includes_default
16180 #ifdef HAVE_SYS_SELECT_H
16181 # include <sys/select.h>
16182 #endif
16183 #ifdef HAVE_SYS_SOCKET_H
16184 # include <sys/socket.h>
16185 #endif
16186
16187 int
16188 main ()
16189 {
16190 extern int select ($ac_arg1,
16191                                             $ac_arg234, $ac_arg234, $ac_arg234,
16192                                             $ac_arg5);
16193   ;
16194   return 0;
16195 }
16196 _ACEOF
16197 rm -f conftest.$ac_objext
16198 if { (ac_try="$ac_compile"
16199 case "(($ac_try" in
16200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201   *) ac_try_echo=$ac_try;;
16202 esac
16203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16204   (eval "$ac_compile") 2>conftest.er1
16205   ac_status=$?
16206   grep -v '^ *+' conftest.er1 >conftest.err
16207   rm -f conftest.er1
16208   cat conftest.err >&5
16209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16210   (exit $ac_status); } && {
16211          test -z "$ac_c_werror_flag" ||
16212          test ! -s conftest.err
16213        } && test -s conftest.$ac_objext; then
16214   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16215 else
16216   echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16218
16219
16220 fi
16221
16222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16223   done
16224  done
16225 done
16226 # Provide a safe default value.
16227 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16228
16229 fi
16230 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16231 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16232 ac_save_IFS=$IFS; IFS=','
16233 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16234 IFS=$ac_save_IFS
16235 shift
16236
16237 cat >>confdefs.h <<_ACEOF
16238 #define SELECT_TYPE_ARG1 $1
16239 _ACEOF
16240
16241
16242 cat >>confdefs.h <<_ACEOF
16243 #define SELECT_TYPE_ARG234 ($2)
16244 _ACEOF
16245
16246
16247 cat >>confdefs.h <<_ACEOF
16248 #define SELECT_TYPE_ARG5 ($3)
16249 _ACEOF
16250
16251 rm -f conftest*
16252
16253 fi
16254
16255
16256
16257 for ac_func in poll
16258 do
16259 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16260 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16261 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16262 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16263   echo $ECHO_N "(cached) $ECHO_C" >&6
16264 else
16265   cat >conftest.$ac_ext <<_ACEOF
16266 /* confdefs.h.  */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h.  */
16271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16272    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16273 #define $ac_func innocuous_$ac_func
16274
16275 /* System header to define __stub macros and hopefully few prototypes,
16276     which can conflict with char $ac_func (); below.
16277     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16278     <limits.h> exists even on freestanding compilers.  */
16279
16280 #ifdef __STDC__
16281 # include <limits.h>
16282 #else
16283 # include <assert.h>
16284 #endif
16285
16286 #undef $ac_func
16287
16288 /* Override any GCC internal prototype to avoid an error.
16289    Use char because int might match the return type of a GCC
16290    builtin and then its argument prototype would still apply.  */
16291 #ifdef __cplusplus
16292 extern "C"
16293 #endif
16294 char $ac_func ();
16295 /* The GNU C library defines this for functions which it implements
16296     to always fail with ENOSYS.  Some functions are actually named
16297     something starting with __ and the normal name is an alias.  */
16298 #if defined __stub_$ac_func || defined __stub___$ac_func
16299 choke me
16300 #endif
16301
16302 int
16303 main ()
16304 {
16305 return $ac_func ();
16306   ;
16307   return 0;
16308 }
16309 _ACEOF
16310 rm -f conftest.$ac_objext conftest$ac_exeext
16311 if { (ac_try="$ac_link"
16312 case "(($ac_try" in
16313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16314   *) ac_try_echo=$ac_try;;
16315 esac
16316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16317   (eval "$ac_link") 2>conftest.er1
16318   ac_status=$?
16319   grep -v '^ *+' conftest.er1 >conftest.err
16320   rm -f conftest.er1
16321   cat conftest.err >&5
16322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323   (exit $ac_status); } && {
16324          test -z "$ac_c_werror_flag" ||
16325          test ! -s conftest.err
16326        } && test -s conftest$ac_exeext &&
16327        $as_test_x conftest$ac_exeext; then
16328   eval "$as_ac_var=yes"
16329 else
16330   echo "$as_me: failed program was:" >&5
16331 sed 's/^/| /' conftest.$ac_ext >&5
16332
16333         eval "$as_ac_var=no"
16334 fi
16335
16336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16337       conftest$ac_exeext conftest.$ac_ext
16338 fi
16339 ac_res=`eval echo '${'$as_ac_var'}'`
16340                { echo "$as_me:$LINENO: result: $ac_res" >&5
16341 echo "${ECHO_T}$ac_res" >&6; }
16342 if test `eval echo '${'$as_ac_var'}'` = yes; then
16343   cat >>confdefs.h <<_ACEOF
16344 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16345 _ACEOF
16346
16347 fi
16348 done
16349
16350 if test $ac_cv_func_poll = yes; then
16351
16352
16353 for ac_header in poll.h sys/poll.h
16354 do
16355 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16357   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16358 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16360   echo $ECHO_N "(cached) $ECHO_C" >&6
16361 fi
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363                { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16365 else
16366   # Is the header compilable?
16367 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16368 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16369 cat >conftest.$ac_ext <<_ACEOF
16370 /* confdefs.h.  */
16371 _ACEOF
16372 cat confdefs.h >>conftest.$ac_ext
16373 cat >>conftest.$ac_ext <<_ACEOF
16374 /* end confdefs.h.  */
16375 $ac_includes_default
16376 #include <$ac_header>
16377 _ACEOF
16378 rm -f conftest.$ac_objext
16379 if { (ac_try="$ac_compile"
16380 case "(($ac_try" in
16381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382   *) ac_try_echo=$ac_try;;
16383 esac
16384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16385   (eval "$ac_compile") 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } && {
16392          test -z "$ac_c_werror_flag" ||
16393          test ! -s conftest.err
16394        } && test -s conftest.$ac_objext; then
16395   ac_header_compiler=yes
16396 else
16397   echo "$as_me: failed program was:" >&5
16398 sed 's/^/| /' conftest.$ac_ext >&5
16399
16400         ac_header_compiler=no
16401 fi
16402
16403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16405 echo "${ECHO_T}$ac_header_compiler" >&6; }
16406
16407 # Is the header present?
16408 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16409 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16410 cat >conftest.$ac_ext <<_ACEOF
16411 /* confdefs.h.  */
16412 _ACEOF
16413 cat confdefs.h >>conftest.$ac_ext
16414 cat >>conftest.$ac_ext <<_ACEOF
16415 /* end confdefs.h.  */
16416 #include <$ac_header>
16417 _ACEOF
16418 if { (ac_try="$ac_cpp conftest.$ac_ext"
16419 case "(($ac_try" in
16420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421   *) ac_try_echo=$ac_try;;
16422 esac
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16425   ac_status=$?
16426   grep -v '^ *+' conftest.er1 >conftest.err
16427   rm -f conftest.er1
16428   cat conftest.err >&5
16429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16430   (exit $ac_status); } >/dev/null && {
16431          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16432          test ! -s conftest.err
16433        }; then
16434   ac_header_preproc=yes
16435 else
16436   echo "$as_me: failed program was:" >&5
16437 sed 's/^/| /' conftest.$ac_ext >&5
16438
16439   ac_header_preproc=no
16440 fi
16441
16442 rm -f conftest.err conftest.$ac_ext
16443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16444 echo "${ECHO_T}$ac_header_preproc" >&6; }
16445
16446 # So?  What about this header?
16447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16448   yes:no: )
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16450 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16451     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16452 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16453     ac_header_preproc=yes
16454     ;;
16455   no:yes:* )
16456     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16457 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16459 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16461 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16463 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16465 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16466     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16467 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16468     ( cat <<\_ASBOX
16469 ## --------------------------------------------- ##
16470 ## Report this to <http://www.openldap.org/its/> ##
16471 ## --------------------------------------------- ##
16472 _ASBOX
16473      ) | sed "s/^/$as_me: WARNING:     /" >&2
16474     ;;
16475 esac
16476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16479   echo $ECHO_N "(cached) $ECHO_C" >&6
16480 else
16481   eval "$as_ac_Header=\$ac_header_preproc"
16482 fi
16483 ac_res=`eval echo '${'$as_ac_Header'}'`
16484                { echo "$as_me:$LINENO: result: $ac_res" >&5
16485 echo "${ECHO_T}$ac_res" >&6; }
16486
16487 fi
16488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16489   cat >>confdefs.h <<_ACEOF
16490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16491 _ACEOF
16492
16493 fi
16494
16495 done
16496
16497 fi
16498
16499
16500 for ac_header in sys/epoll.h
16501 do
16502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16507   echo $ECHO_N "(cached) $ECHO_C" >&6
16508 fi
16509 ac_res=`eval echo '${'$as_ac_Header'}'`
16510                { echo "$as_me:$LINENO: result: $ac_res" >&5
16511 echo "${ECHO_T}$ac_res" >&6; }
16512 else
16513   # Is the header compilable?
16514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16516 cat >conftest.$ac_ext <<_ACEOF
16517 /* confdefs.h.  */
16518 _ACEOF
16519 cat confdefs.h >>conftest.$ac_ext
16520 cat >>conftest.$ac_ext <<_ACEOF
16521 /* end confdefs.h.  */
16522 $ac_includes_default
16523 #include <$ac_header>
16524 _ACEOF
16525 rm -f conftest.$ac_objext
16526 if { (ac_try="$ac_compile"
16527 case "(($ac_try" in
16528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16529   *) ac_try_echo=$ac_try;;
16530 esac
16531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16532   (eval "$ac_compile") 2>conftest.er1
16533   ac_status=$?
16534   grep -v '^ *+' conftest.er1 >conftest.err
16535   rm -f conftest.er1
16536   cat conftest.err >&5
16537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16538   (exit $ac_status); } && {
16539          test -z "$ac_c_werror_flag" ||
16540          test ! -s conftest.err
16541        } && test -s conftest.$ac_objext; then
16542   ac_header_compiler=yes
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_header_compiler=no
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16552 echo "${ECHO_T}$ac_header_compiler" >&6; }
16553
16554 # Is the header present?
16555 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16557 cat >conftest.$ac_ext <<_ACEOF
16558 /* confdefs.h.  */
16559 _ACEOF
16560 cat confdefs.h >>conftest.$ac_ext
16561 cat >>conftest.$ac_ext <<_ACEOF
16562 /* end confdefs.h.  */
16563 #include <$ac_header>
16564 _ACEOF
16565 if { (ac_try="$ac_cpp conftest.$ac_ext"
16566 case "(($ac_try" in
16567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568   *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16572   ac_status=$?
16573   grep -v '^ *+' conftest.er1 >conftest.err
16574   rm -f conftest.er1
16575   cat conftest.err >&5
16576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577   (exit $ac_status); } >/dev/null && {
16578          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16579          test ! -s conftest.err
16580        }; then
16581   ac_header_preproc=yes
16582 else
16583   echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586   ac_header_preproc=no
16587 fi
16588
16589 rm -f conftest.err conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16591 echo "${ECHO_T}$ac_header_preproc" >&6; }
16592
16593 # So?  What about this header?
16594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16595   yes:no: )
16596     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16597 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16598     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16599 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16600     ac_header_preproc=yes
16601     ;;
16602   no:yes:* )
16603     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16604 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16606 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16608 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16610 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16611     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16612 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16613     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16614 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16615     ( cat <<\_ASBOX
16616 ## --------------------------------------------- ##
16617 ## Report this to <http://www.openldap.org/its/> ##
16618 ## --------------------------------------------- ##
16619 _ASBOX
16620      ) | sed "s/^/$as_me: WARNING:     /" >&2
16621     ;;
16622 esac
16623 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16624 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16626   echo $ECHO_N "(cached) $ECHO_C" >&6
16627 else
16628   eval "$as_ac_Header=\$ac_header_preproc"
16629 fi
16630 ac_res=`eval echo '${'$as_ac_Header'}'`
16631                { echo "$as_me:$LINENO: result: $ac_res" >&5
16632 echo "${ECHO_T}$ac_res" >&6; }
16633
16634 fi
16635 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16636   cat >>confdefs.h <<_ACEOF
16637 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16638 _ACEOF
16639
16640 fi
16641
16642 done
16643
16644 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16645         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16646 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16647         if test "$cross_compiling" = yes; then
16648   { echo "$as_me:$LINENO: result: no" >&5
16649 echo "${ECHO_T}no" >&6; }
16650 else
16651   cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h.  */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h.  */
16657 int main(int argc, char **argv)
16658 {
16659         int epfd = epoll_create(256);
16660         exit (epfd == -1 ? 1 : 0);
16661 }
16662 _ACEOF
16663 rm -f conftest$ac_exeext
16664 if { (ac_try="$ac_link"
16665 case "(($ac_try" in
16666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667   *) ac_try_echo=$ac_try;;
16668 esac
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670   (eval "$ac_link") 2>&5
16671   ac_status=$?
16672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16674   { (case "(($ac_try" in
16675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16676   *) ac_try_echo=$ac_try;;
16677 esac
16678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16679   (eval "$ac_try") 2>&5
16680   ac_status=$?
16681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682   (exit $ac_status); }; }; then
16683   { echo "$as_me:$LINENO: result: yes" >&5
16684 echo "${ECHO_T}yes" >&6; }
16685
16686 cat >>confdefs.h <<\_ACEOF
16687 #define HAVE_EPOLL 1
16688 _ACEOF
16689
16690 else
16691   echo "$as_me: program exited with status $ac_status" >&5
16692 echo "$as_me: failed program was:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16694
16695 ( exit $ac_status )
16696 { echo "$as_me:$LINENO: result: no" >&5
16697 echo "${ECHO_T}no" >&6; }
16698 fi
16699 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16700 fi
16701
16702
16703 fi
16704
16705
16706 for ac_header in sys/devpoll.h
16707 do
16708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16713   echo $ECHO_N "(cached) $ECHO_C" >&6
16714 fi
16715 ac_res=`eval echo '${'$as_ac_Header'}'`
16716                { echo "$as_me:$LINENO: result: $ac_res" >&5
16717 echo "${ECHO_T}$ac_res" >&6; }
16718 else
16719   # Is the header compilable?
16720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16722 cat >conftest.$ac_ext <<_ACEOF
16723 /* confdefs.h.  */
16724 _ACEOF
16725 cat confdefs.h >>conftest.$ac_ext
16726 cat >>conftest.$ac_ext <<_ACEOF
16727 /* end confdefs.h.  */
16728 $ac_includes_default
16729 #include <$ac_header>
16730 _ACEOF
16731 rm -f conftest.$ac_objext
16732 if { (ac_try="$ac_compile"
16733 case "(($ac_try" in
16734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735   *) ac_try_echo=$ac_try;;
16736 esac
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738   (eval "$ac_compile") 2>conftest.er1
16739   ac_status=$?
16740   grep -v '^ *+' conftest.er1 >conftest.err
16741   rm -f conftest.er1
16742   cat conftest.err >&5
16743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16744   (exit $ac_status); } && {
16745          test -z "$ac_c_werror_flag" ||
16746          test ! -s conftest.err
16747        } && test -s conftest.$ac_objext; then
16748   ac_header_compiler=yes
16749 else
16750   echo "$as_me: failed program was:" >&5
16751 sed 's/^/| /' conftest.$ac_ext >&5
16752
16753         ac_header_compiler=no
16754 fi
16755
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16758 echo "${ECHO_T}$ac_header_compiler" >&6; }
16759
16760 # Is the header present?
16761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16763 cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769 #include <$ac_header>
16770 _ACEOF
16771 if { (ac_try="$ac_cpp conftest.$ac_ext"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } >/dev/null && {
16784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16785          test ! -s conftest.err
16786        }; then
16787   ac_header_preproc=yes
16788 else
16789   echo "$as_me: failed program was:" >&5
16790 sed 's/^/| /' conftest.$ac_ext >&5
16791
16792   ac_header_preproc=no
16793 fi
16794
16795 rm -f conftest.err conftest.$ac_ext
16796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16797 echo "${ECHO_T}$ac_header_preproc" >&6; }
16798
16799 # So?  What about this header?
16800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16801   yes:no: )
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16806     ac_header_preproc=yes
16807     ;;
16808   no:yes:* )
16809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16821     ( cat <<\_ASBOX
16822 ## --------------------------------------------- ##
16823 ## Report this to <http://www.openldap.org/its/> ##
16824 ## --------------------------------------------- ##
16825 _ASBOX
16826      ) | sed "s/^/$as_me: WARNING:     /" >&2
16827     ;;
16828 esac
16829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   eval "$as_ac_Header=\$ac_header_preproc"
16835 fi
16836 ac_res=`eval echo '${'$as_ac_Header'}'`
16837                { echo "$as_me:$LINENO: result: $ac_res" >&5
16838 echo "${ECHO_T}$ac_res" >&6; }
16839
16840 fi
16841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16842   cat >>confdefs.h <<_ACEOF
16843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844 _ACEOF
16845
16846 fi
16847
16848 done
16849
16850 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16851                 -a "${ac_cv_header_poll_h}" = yes ; \
16852 then
16853         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16854 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16855         if test "$cross_compiling" = yes; then
16856   { echo "$as_me:$LINENO: result: no" >&5
16857 echo "${ECHO_T}no" >&6; }
16858 else
16859   cat >conftest.$ac_ext <<_ACEOF
16860 /* confdefs.h.  */
16861 _ACEOF
16862 cat confdefs.h >>conftest.$ac_ext
16863 cat >>conftest.$ac_ext <<_ACEOF
16864 /* end confdefs.h.  */
16865 int main(int argc, char **argv)
16866 {
16867         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16868         exit (devpollfd == -1 ? 1 : 0);
16869 }
16870 _ACEOF
16871 rm -f conftest$ac_exeext
16872 if { (ac_try="$ac_link"
16873 case "(($ac_try" in
16874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875   *) ac_try_echo=$ac_try;;
16876 esac
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878   (eval "$ac_link") 2>&5
16879   ac_status=$?
16880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16882   { (case "(($ac_try" in
16883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16884   *) ac_try_echo=$ac_try;;
16885 esac
16886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16887   (eval "$ac_try") 2>&5
16888   ac_status=$?
16889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16890   (exit $ac_status); }; }; then
16891   { echo "$as_me:$LINENO: result: yes" >&5
16892 echo "${ECHO_T}yes" >&6; }
16893
16894 cat >>confdefs.h <<\_ACEOF
16895 #define HAVE_DEVPOLL 1
16896 _ACEOF
16897
16898 else
16899   echo "$as_me: program exited with status $ac_status" >&5
16900 echo "$as_me: failed program was:" >&5
16901 sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ( exit $ac_status )
16904 { echo "$as_me:$LINENO: result: no" >&5
16905 echo "${ECHO_T}no" >&6; }
16906 fi
16907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16908 fi
16909
16910
16911 fi
16912
16913 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16914 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16915 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918
16919         cat >conftest.$ac_ext <<_ACEOF
16920 /* confdefs.h.  */
16921 _ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h.  */
16925
16926 #include <stdio.h>
16927 #include <sys/types.h>
16928 #include <errno.h>
16929 #ifdef _WIN32
16930 #include <stdlib.h>
16931 #endif
16932 int
16933 main ()
16934 {
16935 char *c = (char *) *sys_errlist
16936   ;
16937   return 0;
16938 }
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_compile") 2>conftest.er1
16948   ac_status=$?
16949   grep -v '^ *+' conftest.er1 >conftest.err
16950   rm -f conftest.er1
16951   cat conftest.err >&5
16952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953   (exit $ac_status); } && {
16954          test -z "$ac_c_werror_flag" ||
16955          test ! -s conftest.err
16956        } && test -s conftest.$ac_objext; then
16957   ol_cv_dcl_sys_errlist=yes
16958         ol_cv_have_sys_errlist=yes
16959 else
16960   echo "$as_me: failed program was:" >&5
16961 sed 's/^/| /' conftest.$ac_ext >&5
16962
16963         ol_cv_dcl_sys_errlist=no
16964 fi
16965
16966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16967 fi
16968 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16969 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16970 #
16971 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16972 if test $ol_cv_dcl_sys_errlist = no ; then
16973
16974 cat >>confdefs.h <<\_ACEOF
16975 #define DECL_SYS_ERRLIST 1
16976 _ACEOF
16977
16978
16979         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16980 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16981 if test "${ol_cv_have_sys_errlist+set}" = set; then
16982   echo $ECHO_N "(cached) $ECHO_C" >&6
16983 else
16984
16985                 cat >conftest.$ac_ext <<_ACEOF
16986 /* confdefs.h.  */
16987 _ACEOF
16988 cat confdefs.h >>conftest.$ac_ext
16989 cat >>conftest.$ac_ext <<_ACEOF
16990 /* end confdefs.h.  */
16991 #include <errno.h>
16992 int
16993 main ()
16994 {
16995 char *c = (char *) *sys_errlist
16996   ;
16997   return 0;
16998 }
16999 _ACEOF
17000 rm -f conftest.$ac_objext conftest$ac_exeext
17001 if { (ac_try="$ac_link"
17002 case "(($ac_try" in
17003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17004   *) ac_try_echo=$ac_try;;
17005 esac
17006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17007   (eval "$ac_link") 2>conftest.er1
17008   ac_status=$?
17009   grep -v '^ *+' conftest.er1 >conftest.err
17010   rm -f conftest.er1
17011   cat conftest.err >&5
17012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013   (exit $ac_status); } && {
17014          test -z "$ac_c_werror_flag" ||
17015          test ! -s conftest.err
17016        } && test -s conftest$ac_exeext &&
17017        $as_test_x conftest$ac_exeext; then
17018   ol_cv_have_sys_errlist=yes
17019 else
17020   echo "$as_me: failed program was:" >&5
17021 sed 's/^/| /' conftest.$ac_ext >&5
17022
17023         ol_cv_have_sys_errlist=no
17024 fi
17025
17026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17027       conftest$ac_exeext conftest.$ac_ext
17028 fi
17029 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17030 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17031 fi
17032 if test $ol_cv_have_sys_errlist = yes ; then
17033
17034 cat >>confdefs.h <<\_ACEOF
17035 #define HAVE_SYS_ERRLIST 1
17036 _ACEOF
17037
17038 fi
17039
17040
17041 for ac_func in strerror strerror_r
17042 do
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047   echo $ECHO_N "(cached) $ECHO_C" >&6
17048 else
17049   cat >conftest.$ac_ext <<_ACEOF
17050 /* confdefs.h.  */
17051 _ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h.  */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17057 #define $ac_func innocuous_$ac_func
17058
17059 /* System header to define __stub macros and hopefully few prototypes,
17060     which can conflict with char $ac_func (); below.
17061     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062     <limits.h> exists even on freestanding compilers.  */
17063
17064 #ifdef __STDC__
17065 # include <limits.h>
17066 #else
17067 # include <assert.h>
17068 #endif
17069
17070 #undef $ac_func
17071
17072 /* Override any GCC internal prototype to avoid an error.
17073    Use char because int might match the return type of a GCC
17074    builtin and then its argument prototype would still apply.  */
17075 #ifdef __cplusplus
17076 extern "C"
17077 #endif
17078 char $ac_func ();
17079 /* The GNU C library defines this for functions which it implements
17080     to always fail with ENOSYS.  Some functions are actually named
17081     something starting with __ and the normal name is an alias.  */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17083 choke me
17084 #endif
17085
17086 int
17087 main ()
17088 {
17089 return $ac_func ();
17090   ;
17091   return 0;
17092 }
17093 _ACEOF
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098   *) ac_try_echo=$ac_try;;
17099 esac
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101   (eval "$ac_link") 2>conftest.er1
17102   ac_status=$?
17103   grep -v '^ *+' conftest.er1 >conftest.err
17104   rm -f conftest.er1
17105   cat conftest.err >&5
17106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107   (exit $ac_status); } && {
17108          test -z "$ac_c_werror_flag" ||
17109          test ! -s conftest.err
17110        } && test -s conftest$ac_exeext &&
17111        $as_test_x conftest$ac_exeext; then
17112   eval "$as_ac_var=yes"
17113 else
17114   echo "$as_me: failed program was:" >&5
17115 sed 's/^/| /' conftest.$ac_ext >&5
17116
17117         eval "$as_ac_var=no"
17118 fi
17119
17120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17121       conftest$ac_exeext conftest.$ac_ext
17122 fi
17123 ac_res=`eval echo '${'$as_ac_var'}'`
17124                { echo "$as_me:$LINENO: result: $ac_res" >&5
17125 echo "${ECHO_T}$ac_res" >&6; }
17126 if test `eval echo '${'$as_ac_var'}'` = yes; then
17127   cat >>confdefs.h <<_ACEOF
17128 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17129 _ACEOF
17130
17131 fi
17132 done
17133
17134 ol_cv_func_strerror_r=no
17135 if test "${ac_cv_func_strerror_r}" = yes ; then
17136         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17137 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17138 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17139   echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141
17142         cat >conftest.$ac_ext <<_ACEOF
17143 /* confdefs.h.  */
17144 _ACEOF
17145 cat confdefs.h >>conftest.$ac_ext
17146 cat >>conftest.$ac_ext <<_ACEOF
17147 /* end confdefs.h.  */
17148 #include <string.h>
17149 _ACEOF
17150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17151   $EGREP "strerror_r" >/dev/null 2>&1; then
17152   ol_decl_strerror_r=yes
17153 else
17154   ol_decl_strerror_r=no
17155 fi
17156 rm -f conftest*
17157
17158         if test $ol_decl_strerror_r = yes ; then
17159                 cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 #include <string.h>
17166 int
17167 main ()
17168 {
17169    /* from autoconf 2.59 */
17170                                 char buf[100];
17171                                 char x = *strerror_r (0, buf, sizeof buf);
17172                                 char *p = strerror_r (0, buf, sizeof buf);
17173
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_compile") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest.$ac_objext; then
17195   ol_cv_nonposix_strerror_r=yes
17196 else
17197   echo "$as_me: failed program was:" >&5
17198 sed 's/^/| /' conftest.$ac_ext >&5
17199
17200         ol_cv_nonposix_strerror_r=no
17201 fi
17202
17203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17204         else
17205                 if test "$cross_compiling" = yes; then
17206   ol_cv_nonposix_strerror=no
17207 else
17208   cat >conftest.$ac_ext <<_ACEOF
17209 /* confdefs.h.  */
17210 _ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h.  */
17214
17215                         main() {
17216                                 char buf[100];
17217                                 buf[0] = 0;
17218                                 strerror_r( 1, buf, sizeof buf );
17219                                 exit( buf[0] == 0 );
17220                         }
17221
17222 _ACEOF
17223 rm -f conftest$ac_exeext
17224 if { (ac_try="$ac_link"
17225 case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_link") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17234   { (case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_try") 2>&5
17240   ac_status=$?
17241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242   (exit $ac_status); }; }; then
17243   ol_cv_nonposix_strerror_r=yes
17244 else
17245   echo "$as_me: program exited with status $ac_status" >&5
17246 echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249 ( exit $ac_status )
17250 ol_cv_nonposix_strerror=no
17251 fi
17252 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17253 fi
17254
17255
17256         fi
17257
17258 fi
17259 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17260 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17261 if test $ol_cv_nonposix_strerror_r = yes ; then
17262
17263 cat >>confdefs.h <<\_ACEOF
17264 #define HAVE_NONPOSIX_STRERROR_R 1
17265 _ACEOF
17266
17267 fi
17268
17269 elif test "${ac_cv_func_strerror}" = no ; then
17270         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17271 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17272 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17273   echo $ECHO_N "(cached) $ECHO_C" >&6
17274 else
17275
17276         cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282
17283 #include <stdio.h>
17284 #include <sys/types.h>
17285 #include <errno.h>
17286 #ifdef _WIN32
17287 #include <stdlib.h>
17288 #endif
17289 int
17290 main ()
17291 {
17292 char *c = (char *) *sys_errlist
17293   ;
17294   return 0;
17295 }
17296 _ACEOF
17297 rm -f conftest.$ac_objext
17298 if { (ac_try="$ac_compile"
17299 case "(($ac_try" in
17300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301   *) ac_try_echo=$ac_try;;
17302 esac
17303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304   (eval "$ac_compile") 2>conftest.er1
17305   ac_status=$?
17306   grep -v '^ *+' conftest.er1 >conftest.err
17307   rm -f conftest.er1
17308   cat conftest.err >&5
17309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310   (exit $ac_status); } && {
17311          test -z "$ac_c_werror_flag" ||
17312          test ! -s conftest.err
17313        } && test -s conftest.$ac_objext; then
17314   ol_cv_dcl_sys_errlist=yes
17315         ol_cv_have_sys_errlist=yes
17316 else
17317   echo "$as_me: failed program was:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17319
17320         ol_cv_dcl_sys_errlist=no
17321 fi
17322
17323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17324 fi
17325 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17326 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17327 #
17328 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17329 if test $ol_cv_dcl_sys_errlist = no ; then
17330
17331 cat >>confdefs.h <<\_ACEOF
17332 #define DECL_SYS_ERRLIST 1
17333 _ACEOF
17334
17335
17336         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17337 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17338 if test "${ol_cv_have_sys_errlist+set}" = set; then
17339   echo $ECHO_N "(cached) $ECHO_C" >&6
17340 else
17341
17342                 cat >conftest.$ac_ext <<_ACEOF
17343 /* confdefs.h.  */
17344 _ACEOF
17345 cat confdefs.h >>conftest.$ac_ext
17346 cat >>conftest.$ac_ext <<_ACEOF
17347 /* end confdefs.h.  */
17348 #include <errno.h>
17349 int
17350 main ()
17351 {
17352 char *c = (char *) *sys_errlist
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361   *) ac_try_echo=$ac_try;;
17362 esac
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364   (eval "$ac_link") 2>conftest.er1
17365   ac_status=$?
17366   grep -v '^ *+' conftest.er1 >conftest.err
17367   rm -f conftest.er1
17368   cat conftest.err >&5
17369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370   (exit $ac_status); } && {
17371          test -z "$ac_c_werror_flag" ||
17372          test ! -s conftest.err
17373        } && test -s conftest$ac_exeext &&
17374        $as_test_x conftest$ac_exeext; then
17375   ol_cv_have_sys_errlist=yes
17376 else
17377   echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17379
17380         ol_cv_have_sys_errlist=no
17381 fi
17382
17383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17384       conftest$ac_exeext conftest.$ac_ext
17385 fi
17386 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17387 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17388 fi
17389 if test $ol_cv_have_sys_errlist = yes ; then
17390
17391 cat >>confdefs.h <<\_ACEOF
17392 #define HAVE_SYS_ERRLIST 1
17393 _ACEOF
17394
17395 fi
17396
17397 fi
17398
17399
17400
17401 for ac_header in regex.h
17402 do
17403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17407   echo $ECHO_N "(cached) $ECHO_C" >&6
17408 else
17409   cat >conftest.$ac_ext <<_ACEOF
17410 /* confdefs.h.  */
17411 _ACEOF
17412 cat confdefs.h >>conftest.$ac_ext
17413 cat >>conftest.$ac_ext <<_ACEOF
17414 /* end confdefs.h.  */
17415 $ac_includes_default
17416 #ifdef HAVE_SYS_TYPES_H
17417 #include <sys/types.h>
17418 #endif
17419
17420
17421 #include <$ac_header>
17422 _ACEOF
17423 rm -f conftest.$ac_objext
17424 if { (ac_try="$ac_compile"
17425 case "(($ac_try" in
17426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17427   *) ac_try_echo=$ac_try;;
17428 esac
17429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17430   (eval "$ac_compile") 2>conftest.er1
17431   ac_status=$?
17432   grep -v '^ *+' conftest.er1 >conftest.err
17433   rm -f conftest.er1
17434   cat conftest.err >&5
17435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436   (exit $ac_status); } && {
17437          test -z "$ac_c_werror_flag" ||
17438          test ! -s conftest.err
17439        } && test -s conftest.$ac_objext; then
17440   eval "$as_ac_Header=yes"
17441 else
17442   echo "$as_me: failed program was:" >&5
17443 sed 's/^/| /' conftest.$ac_ext >&5
17444
17445         eval "$as_ac_Header=no"
17446 fi
17447
17448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 fi
17450 ac_res=`eval echo '${'$as_ac_Header'}'`
17451                { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17454   cat >>confdefs.h <<_ACEOF
17455 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17456 _ACEOF
17457
17458 fi
17459
17460 done
17461
17462
17463 if test "$ac_cv_header_regex_h" != yes ; then
17464         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17465 echo "$as_me: error: POSIX regex.h required." >&2;}
17466    { (exit 1); exit 1; }; }
17467 fi
17468 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17469 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17470 if test "${ac_cv_search_regfree+set}" = set; then
17471   echo $ECHO_N "(cached) $ECHO_C" >&6
17472 else
17473   ac_func_search_save_LIBS=$LIBS
17474 cat >conftest.$ac_ext <<_ACEOF
17475 /* confdefs.h.  */
17476 _ACEOF
17477 cat confdefs.h >>conftest.$ac_ext
17478 cat >>conftest.$ac_ext <<_ACEOF
17479 /* end confdefs.h.  */
17480
17481 /* Override any GCC internal prototype to avoid an error.
17482    Use char because int might match the return type of a GCC
17483    builtin and then its argument prototype would still apply.  */
17484 #ifdef __cplusplus
17485 extern "C"
17486 #endif
17487 char regfree ();
17488 int
17489 main ()
17490 {
17491 return regfree ();
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 for ac_lib in '' regex gnuregex; do
17497   if test -z "$ac_lib"; then
17498     ac_res="none required"
17499   else
17500     ac_res=-l$ac_lib
17501     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17502   fi
17503   rm -f conftest.$ac_objext conftest$ac_exeext
17504 if { (ac_try="$ac_link"
17505 case "(($ac_try" in
17506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507   *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510   (eval "$ac_link") 2>conftest.er1
17511   ac_status=$?
17512   grep -v '^ *+' conftest.er1 >conftest.err
17513   rm -f conftest.er1
17514   cat conftest.err >&5
17515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516   (exit $ac_status); } && {
17517          test -z "$ac_c_werror_flag" ||
17518          test ! -s conftest.err
17519        } && test -s conftest$ac_exeext &&
17520        $as_test_x conftest$ac_exeext; then
17521   ac_cv_search_regfree=$ac_res
17522 else
17523   echo "$as_me: failed program was:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17525
17526
17527 fi
17528
17529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17530       conftest$ac_exeext
17531   if test "${ac_cv_search_regfree+set}" = set; then
17532   break
17533 fi
17534 done
17535 if test "${ac_cv_search_regfree+set}" = set; then
17536   :
17537 else
17538   ac_cv_search_regfree=no
17539 fi
17540 rm conftest.$ac_ext
17541 LIBS=$ac_func_search_save_LIBS
17542 fi
17543 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17544 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17545 ac_res=$ac_cv_search_regfree
17546 if test "$ac_res" != no; then
17547   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17548   :
17549 else
17550   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17551 echo "$as_me: error: POSIX regex required." >&2;}
17552    { (exit 1); exit 1; }; }
17553 fi
17554
17555
17556
17557 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17558 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17559 if test "${ol_cv_c_posix_regex+set}" = set; then
17560   echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562
17563         if test "$cross_compiling" = yes; then
17564   ol_cv_c_posix_regex=cross
17565 else
17566   cat >conftest.$ac_ext <<_ACEOF
17567 /* confdefs.h.  */
17568 _ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h.  */
17572
17573 #include <sys/types.h>
17574 #include <regex.h>
17575 static char *pattern, *string;
17576 main()
17577 {
17578         int rc;
17579         regex_t re;
17580
17581         pattern = "^A";
17582
17583         if(regcomp(&re, pattern, 0)) {
17584                 return -1;
17585         }
17586
17587         string = "ALL MATCH";
17588
17589         rc = regexec(&re, string, 0, (void*)0, 0);
17590
17591         regfree(&re);
17592
17593         return rc;
17594 }
17595 _ACEOF
17596 rm -f conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_link") 2>&5
17604   ac_status=$?
17605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17607   { (case "(($ac_try" in
17608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609   *) ac_try_echo=$ac_try;;
17610 esac
17611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17612   (eval "$ac_try") 2>&5
17613   ac_status=$?
17614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17615   (exit $ac_status); }; }; then
17616   ol_cv_c_posix_regex=yes
17617 else
17618   echo "$as_me: program exited with status $ac_status" >&5
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17621
17622 ( exit $ac_status )
17623 ol_cv_c_posix_regex=no
17624 fi
17625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17626 fi
17627
17628
17629 fi
17630 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17631 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17632
17633 if test "$ol_cv_c_posix_regex" = no ; then
17634         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17635 echo "$as_me: error: broken POSIX regex!" >&2;}
17636    { (exit 1); exit 1; }; }
17637 fi
17638
17639
17640 have_uuid=no
17641
17642 for ac_header in sys/uuid.h
17643 do
17644 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17645 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17646   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17648 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17649   echo $ECHO_N "(cached) $ECHO_C" >&6
17650 fi
17651 ac_res=`eval echo '${'$as_ac_Header'}'`
17652                { echo "$as_me:$LINENO: result: $ac_res" >&5
17653 echo "${ECHO_T}$ac_res" >&6; }
17654 else
17655   # Is the header compilable?
17656 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17657 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h.  */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h.  */
17664 $ac_includes_default
17665 #include <$ac_header>
17666 _ACEOF
17667 rm -f conftest.$ac_objext
17668 if { (ac_try="$ac_compile"
17669 case "(($ac_try" in
17670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671   *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674   (eval "$ac_compile") 2>conftest.er1
17675   ac_status=$?
17676   grep -v '^ *+' conftest.er1 >conftest.err
17677   rm -f conftest.er1
17678   cat conftest.err >&5
17679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680   (exit $ac_status); } && {
17681          test -z "$ac_c_werror_flag" ||
17682          test ! -s conftest.err
17683        } && test -s conftest.$ac_objext; then
17684   ac_header_compiler=yes
17685 else
17686   echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689         ac_header_compiler=no
17690 fi
17691
17692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17694 echo "${ECHO_T}$ac_header_compiler" >&6; }
17695
17696 # Is the header present?
17697 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17698 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17699 cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 #include <$ac_header>
17706 _ACEOF
17707 if { (ac_try="$ac_cpp conftest.$ac_ext"
17708 case "(($ac_try" in
17709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710   *) ac_try_echo=$ac_try;;
17711 esac
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17714   ac_status=$?
17715   grep -v '^ *+' conftest.er1 >conftest.err
17716   rm -f conftest.er1
17717   cat conftest.err >&5
17718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719   (exit $ac_status); } >/dev/null && {
17720          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17721          test ! -s conftest.err
17722        }; then
17723   ac_header_preproc=yes
17724 else
17725   echo "$as_me: failed program was:" >&5
17726 sed 's/^/| /' conftest.$ac_ext >&5
17727
17728   ac_header_preproc=no
17729 fi
17730
17731 rm -f conftest.err conftest.$ac_ext
17732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17733 echo "${ECHO_T}$ac_header_preproc" >&6; }
17734
17735 # So?  What about this header?
17736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17737   yes:no: )
17738     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17739 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17740     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17741 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17742     ac_header_preproc=yes
17743     ;;
17744   no:yes:* )
17745     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17746 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17748 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17750 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17752 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17754 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17755     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17756 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17757     ( cat <<\_ASBOX
17758 ## --------------------------------------------- ##
17759 ## Report this to <http://www.openldap.org/its/> ##
17760 ## --------------------------------------------- ##
17761 _ASBOX
17762      ) | sed "s/^/$as_me: WARNING:     /" >&2
17763     ;;
17764 esac
17765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17768   echo $ECHO_N "(cached) $ECHO_C" >&6
17769 else
17770   eval "$as_ac_Header=\$ac_header_preproc"
17771 fi
17772 ac_res=`eval echo '${'$as_ac_Header'}'`
17773                { echo "$as_me:$LINENO: result: $ac_res" >&5
17774 echo "${ECHO_T}$ac_res" >&6; }
17775
17776 fi
17777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17778   cat >>confdefs.h <<_ACEOF
17779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17780 _ACEOF
17781
17782 fi
17783
17784 done
17785
17786 if test $ac_cv_header_sys_uuid_h = yes ; then
17787         save_LIBS="$LIBS"
17788         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17789 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17790 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17791   echo $ECHO_N "(cached) $ECHO_C" >&6
17792 else
17793   ac_func_search_save_LIBS=$LIBS
17794 cat >conftest.$ac_ext <<_ACEOF
17795 /* confdefs.h.  */
17796 _ACEOF
17797 cat confdefs.h >>conftest.$ac_ext
17798 cat >>conftest.$ac_ext <<_ACEOF
17799 /* end confdefs.h.  */
17800
17801 /* Override any GCC internal prototype to avoid an error.
17802    Use char because int might match the return type of a GCC
17803    builtin and then its argument prototype would still apply.  */
17804 #ifdef __cplusplus
17805 extern "C"
17806 #endif
17807 char uuid_to_str ();
17808 int
17809 main ()
17810 {
17811 return uuid_to_str ();
17812   ;
17813   return 0;
17814 }
17815 _ACEOF
17816 for ac_lib in '' uuid; do
17817   if test -z "$ac_lib"; then
17818     ac_res="none required"
17819   else
17820     ac_res=-l$ac_lib
17821     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17822   fi
17823   rm -f conftest.$ac_objext conftest$ac_exeext
17824 if { (ac_try="$ac_link"
17825 case "(($ac_try" in
17826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827   *) ac_try_echo=$ac_try;;
17828 esac
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830   (eval "$ac_link") 2>conftest.er1
17831   ac_status=$?
17832   grep -v '^ *+' conftest.er1 >conftest.err
17833   rm -f conftest.er1
17834   cat conftest.err >&5
17835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17836   (exit $ac_status); } && {
17837          test -z "$ac_c_werror_flag" ||
17838          test ! -s conftest.err
17839        } && test -s conftest$ac_exeext &&
17840        $as_test_x conftest$ac_exeext; then
17841   ac_cv_search_uuid_to_str=$ac_res
17842 else
17843   echo "$as_me: failed program was:" >&5
17844 sed 's/^/| /' conftest.$ac_ext >&5
17845
17846
17847 fi
17848
17849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17850       conftest$ac_exeext
17851   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17852   break
17853 fi
17854 done
17855 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17856   :
17857 else
17858   ac_cv_search_uuid_to_str=no
17859 fi
17860 rm conftest.$ac_ext
17861 LIBS=$ac_func_search_save_LIBS
17862 fi
17863 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17864 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17865 ac_res=$ac_cv_search_uuid_to_str
17866 if test "$ac_res" != no; then
17867   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17868   have_uuid=yes
17869 else
17870   :
17871 fi
17872
17873         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17874 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17875 if test "${ac_cv_search_uuid_create+set}" = set; then
17876   echo $ECHO_N "(cached) $ECHO_C" >&6
17877 else
17878   ac_func_search_save_LIBS=$LIBS
17879 cat >conftest.$ac_ext <<_ACEOF
17880 /* confdefs.h.  */
17881 _ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h.  */
17885
17886 /* Override any GCC internal prototype to avoid an error.
17887    Use char because int might match the return type of a GCC
17888    builtin and then its argument prototype would still apply.  */
17889 #ifdef __cplusplus
17890 extern "C"
17891 #endif
17892 char uuid_create ();
17893 int
17894 main ()
17895 {
17896 return uuid_create ();
17897   ;
17898   return 0;
17899 }
17900 _ACEOF
17901 for ac_lib in '' uuid; do
17902   if test -z "$ac_lib"; then
17903     ac_res="none required"
17904   else
17905     ac_res=-l$ac_lib
17906     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17907   fi
17908   rm -f conftest.$ac_objext conftest$ac_exeext
17909 if { (ac_try="$ac_link"
17910 case "(($ac_try" in
17911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17912   *) ac_try_echo=$ac_try;;
17913 esac
17914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17915   (eval "$ac_link") 2>conftest.er1
17916   ac_status=$?
17917   grep -v '^ *+' conftest.er1 >conftest.err
17918   rm -f conftest.er1
17919   cat conftest.err >&5
17920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921   (exit $ac_status); } && {
17922          test -z "$ac_c_werror_flag" ||
17923          test ! -s conftest.err
17924        } && test -s conftest$ac_exeext &&
17925        $as_test_x conftest$ac_exeext; then
17926   ac_cv_search_uuid_create=$ac_res
17927 else
17928   echo "$as_me: failed program was:" >&5
17929 sed 's/^/| /' conftest.$ac_ext >&5
17930
17931
17932 fi
17933
17934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17935       conftest$ac_exeext
17936   if test "${ac_cv_search_uuid_create+set}" = set; then
17937   break
17938 fi
17939 done
17940 if test "${ac_cv_search_uuid_create+set}" = set; then
17941   :
17942 else
17943   ac_cv_search_uuid_create=no
17944 fi
17945 rm conftest.$ac_ext
17946 LIBS=$ac_func_search_save_LIBS
17947 fi
17948 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17949 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17950 ac_res=$ac_cv_search_uuid_create
17951 if test "$ac_res" != no; then
17952   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17953   :
17954 else
17955   have_uuid=no
17956 fi
17957
17958         LIBS="$save_LIBS"
17959
17960         if test $have_uuid = yes ; then
17961
17962 cat >>confdefs.h <<\_ACEOF
17963 #define HAVE_UUID_TO_STR 1
17964 _ACEOF
17965
17966
17967                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17968                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17969         fi
17970 fi
17971
17972 if test $have_uuid = no ; then
17973
17974 for ac_header in uuid/uuid.h
17975 do
17976 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17978   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17981   echo $ECHO_N "(cached) $ECHO_C" >&6
17982 fi
17983 ac_res=`eval echo '${'$as_ac_Header'}'`
17984                { echo "$as_me:$LINENO: result: $ac_res" >&5
17985 echo "${ECHO_T}$ac_res" >&6; }
17986 else
17987   # Is the header compilable?
17988 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17989 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17990 cat >conftest.$ac_ext <<_ACEOF
17991 /* confdefs.h.  */
17992 _ACEOF
17993 cat confdefs.h >>conftest.$ac_ext
17994 cat >>conftest.$ac_ext <<_ACEOF
17995 /* end confdefs.h.  */
17996 $ac_includes_default
17997 #include <$ac_header>
17998 _ACEOF
17999 rm -f conftest.$ac_objext
18000 if { (ac_try="$ac_compile"
18001 case "(($ac_try" in
18002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18003   *) ac_try_echo=$ac_try;;
18004 esac
18005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18006   (eval "$ac_compile") 2>conftest.er1
18007   ac_status=$?
18008   grep -v '^ *+' conftest.er1 >conftest.err
18009   rm -f conftest.er1
18010   cat conftest.err >&5
18011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012   (exit $ac_status); } && {
18013          test -z "$ac_c_werror_flag" ||
18014          test ! -s conftest.err
18015        } && test -s conftest.$ac_objext; then
18016   ac_header_compiler=yes
18017 else
18018   echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18020
18021         ac_header_compiler=no
18022 fi
18023
18024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18025 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18026 echo "${ECHO_T}$ac_header_compiler" >&6; }
18027
18028 # Is the header present?
18029 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18030 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18031 cat >conftest.$ac_ext <<_ACEOF
18032 /* confdefs.h.  */
18033 _ACEOF
18034 cat confdefs.h >>conftest.$ac_ext
18035 cat >>conftest.$ac_ext <<_ACEOF
18036 /* end confdefs.h.  */
18037 #include <$ac_header>
18038 _ACEOF
18039 if { (ac_try="$ac_cpp conftest.$ac_ext"
18040 case "(($ac_try" in
18041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042   *) ac_try_echo=$ac_try;;
18043 esac
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18046   ac_status=$?
18047   grep -v '^ *+' conftest.er1 >conftest.err
18048   rm -f conftest.er1
18049   cat conftest.err >&5
18050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051   (exit $ac_status); } >/dev/null && {
18052          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18053          test ! -s conftest.err
18054        }; then
18055   ac_header_preproc=yes
18056 else
18057   echo "$as_me: failed program was:" >&5
18058 sed 's/^/| /' conftest.$ac_ext >&5
18059
18060   ac_header_preproc=no
18061 fi
18062
18063 rm -f conftest.err conftest.$ac_ext
18064 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18065 echo "${ECHO_T}$ac_header_preproc" >&6; }
18066
18067 # So?  What about this header?
18068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18069   yes:no: )
18070     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18071 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18072     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18074     ac_header_preproc=yes
18075     ;;
18076   no:yes:* )
18077     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18078 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18079     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18080 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18082 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18084 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18087     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18088 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18089     ( cat <<\_ASBOX
18090 ## --------------------------------------------- ##
18091 ## Report this to <http://www.openldap.org/its/> ##
18092 ## --------------------------------------------- ##
18093 _ASBOX
18094      ) | sed "s/^/$as_me: WARNING:     /" >&2
18095     ;;
18096 esac
18097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18100   echo $ECHO_N "(cached) $ECHO_C" >&6
18101 else
18102   eval "$as_ac_Header=\$ac_header_preproc"
18103 fi
18104 ac_res=`eval echo '${'$as_ac_Header'}'`
18105                { echo "$as_me:$LINENO: result: $ac_res" >&5
18106 echo "${ECHO_T}$ac_res" >&6; }
18107
18108 fi
18109 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18110   cat >>confdefs.h <<_ACEOF
18111 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18112 _ACEOF
18113
18114 fi
18115
18116 done
18117
18118         if test $ac_cv_header_uuid_uuid_h = yes ; then
18119                 save_LIBS="$LIBS"
18120                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18121 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18122 if test "${ac_cv_search_uuid_generate+set}" = set; then
18123   echo $ECHO_N "(cached) $ECHO_C" >&6
18124 else
18125   ac_func_search_save_LIBS=$LIBS
18126 cat >conftest.$ac_ext <<_ACEOF
18127 /* confdefs.h.  */
18128 _ACEOF
18129 cat confdefs.h >>conftest.$ac_ext
18130 cat >>conftest.$ac_ext <<_ACEOF
18131 /* end confdefs.h.  */
18132
18133 /* Override any GCC internal prototype to avoid an error.
18134    Use char because int might match the return type of a GCC
18135    builtin and then its argument prototype would still apply.  */
18136 #ifdef __cplusplus
18137 extern "C"
18138 #endif
18139 char uuid_generate ();
18140 int
18141 main ()
18142 {
18143 return uuid_generate ();
18144   ;
18145   return 0;
18146 }
18147 _ACEOF
18148 for ac_lib in '' uuid; do
18149   if test -z "$ac_lib"; then
18150     ac_res="none required"
18151   else
18152     ac_res=-l$ac_lib
18153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18154   fi
18155   rm -f conftest.$ac_objext conftest$ac_exeext
18156 if { (ac_try="$ac_link"
18157 case "(($ac_try" in
18158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159   *) ac_try_echo=$ac_try;;
18160 esac
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162   (eval "$ac_link") 2>conftest.er1
18163   ac_status=$?
18164   grep -v '^ *+' conftest.er1 >conftest.err
18165   rm -f conftest.er1
18166   cat conftest.err >&5
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); } && {
18169          test -z "$ac_c_werror_flag" ||
18170          test ! -s conftest.err
18171        } && test -s conftest$ac_exeext &&
18172        $as_test_x conftest$ac_exeext; then
18173   ac_cv_search_uuid_generate=$ac_res
18174 else
18175   echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18182       conftest$ac_exeext
18183   if test "${ac_cv_search_uuid_generate+set}" = set; then
18184   break
18185 fi
18186 done
18187 if test "${ac_cv_search_uuid_generate+set}" = set; then
18188   :
18189 else
18190   ac_cv_search_uuid_generate=no
18191 fi
18192 rm conftest.$ac_ext
18193 LIBS=$ac_func_search_save_LIBS
18194 fi
18195 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18196 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18197 ac_res=$ac_cv_search_uuid_generate
18198 if test "$ac_res" != no; then
18199   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18200   have_uuid=yes
18201 else
18202   :
18203 fi
18204
18205                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18206 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18207 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18208   echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210   ac_func_search_save_LIBS=$LIBS
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h.  */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h.  */
18217
18218 /* Override any GCC internal prototype to avoid an error.
18219    Use char because int might match the return type of a GCC
18220    builtin and then its argument prototype would still apply.  */
18221 #ifdef __cplusplus
18222 extern "C"
18223 #endif
18224 char uuid_unparse_lower ();
18225 int
18226 main ()
18227 {
18228 return uuid_unparse_lower ();
18229   ;
18230   return 0;
18231 }
18232 _ACEOF
18233 for ac_lib in '' uuid; do
18234   if test -z "$ac_lib"; then
18235     ac_res="none required"
18236   else
18237     ac_res=-l$ac_lib
18238     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18239   fi
18240   rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_link") 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } && {
18254          test -z "$ac_c_werror_flag" ||
18255          test ! -s conftest.err
18256        } && test -s conftest$ac_exeext &&
18257        $as_test_x conftest$ac_exeext; then
18258   ac_cv_search_uuid_unparse_lower=$ac_res
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267       conftest$ac_exeext
18268   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18269   break
18270 fi
18271 done
18272 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18273   :
18274 else
18275   ac_cv_search_uuid_unparse_lower=no
18276 fi
18277 rm conftest.$ac_ext
18278 LIBS=$ac_func_search_save_LIBS
18279 fi
18280 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18281 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18282 ac_res=$ac_cv_search_uuid_unparse_lower
18283 if test "$ac_res" != no; then
18284   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18285   :
18286 else
18287   have_uuid=no
18288 fi
18289
18290                 LIBS="$save_LIBS"
18291
18292                 if test $have_uuid = yes ; then
18293
18294 cat >>confdefs.h <<\_ACEOF
18295 #define HAVE_UUID_GENERATE 1
18296 _ACEOF
18297
18298
18299                         test "$ac_cv_search_uuid_generate" = "none required" || \
18300                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18301                 fi
18302         fi
18303 fi
18304
18305 if test $have_uuid = no ; then
18306         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18307 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18308         save_LIBS="$LIBS"
18309         LIBS="$LIBS -lrpcrt4"
18310         cat >conftest.$ac_ext <<_ACEOF
18311 /* confdefs.h.  */
18312 _ACEOF
18313 cat confdefs.h >>conftest.$ac_ext
18314 cat >>conftest.$ac_ext <<_ACEOF
18315 /* end confdefs.h.  */
18316
18317                 int __stdcall UuidCreate(void *);
18318                 int __stdcall UuidToStringA(void *,void **);
18319
18320 int
18321 main ()
18322 {
18323
18324                 UuidCreate(0);
18325                 UuidToStringA(0,0);
18326
18327   ;
18328   return 0;
18329 }
18330 _ACEOF
18331 rm -f conftest.$ac_objext conftest$ac_exeext
18332 if { (ac_try="$ac_link"
18333 case "(($ac_try" in
18334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18335   *) ac_try_echo=$ac_try;;
18336 esac
18337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18338   (eval "$ac_link") 2>conftest.er1
18339   ac_status=$?
18340   grep -v '^ *+' conftest.er1 >conftest.err
18341   rm -f conftest.er1
18342   cat conftest.err >&5
18343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344   (exit $ac_status); } && {
18345          test -z "$ac_c_werror_flag" ||
18346          test ! -s conftest.err
18347        } && test -s conftest$ac_exeext &&
18348        $as_test_x conftest$ac_exeext; then
18349   need_rpcrt=yes
18350 else
18351   echo "$as_me: failed program was:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18353
18354         need_rpcrt=no
18355 fi
18356
18357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18358       conftest$ac_exeext conftest.$ac_ext
18359         if test $need_rpcrt = yes; then
18360                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18361         fi
18362         LIBS="$save_LIBS"
18363         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18364 echo "${ECHO_T}$need_rpcrt" >&6; }
18365 fi
18366
18367 ol_cv_lib_resolver=no
18368 if test $ol_cv_lib_resolver = no ; then
18369         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18370 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18371 if test "${ol_cv_resolver_none+set}" = set; then
18372   echo $ECHO_N "(cached) $ECHO_C" >&6
18373 else
18374
18375         ol_RESOLVER_LIB=
18376         ol_LIBS=$LIBS
18377         LIBS="$ol_RESOLVER_LIB $LIBS"
18378
18379         cat >conftest.$ac_ext <<_ACEOF
18380 /* confdefs.h.  */
18381 _ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h.  */
18385
18386 #ifdef HAVE_SYS_TYPES_H
18387 #       include <sys/types.h>
18388 #endif
18389 #include <netinet/in.h>
18390 #ifdef HAVE_ARPA_NAMESER_H
18391 #       include <arpa/nameser.h>
18392 #endif
18393 #ifdef HAVE_RESOLV_H
18394 #       include <resolv.h>
18395 #endif
18396
18397 int
18398 main ()
18399 {
18400 {
18401         int len, status;
18402         char *request = NULL;
18403         unsigned char reply[64*1024];
18404         unsigned char host[64*1024];
18405         unsigned char *p;
18406
18407 #ifdef NS_HFIXEDSZ
18408         /* Bind 8/9 interface */
18409         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18410 #else
18411         /* Bind 4 interface */
18412 # ifndef T_SRV
18413 #  define T_SRV 33
18414 # endif
18415         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18416 #endif
18417         p = reply;
18418 #ifdef NS_HFIXEDSZ
18419         /* Bind 8/9 interface */
18420         p += NS_HFIXEDSZ;
18421 #elif defined(HFIXEDSZ)
18422         /* Bind 4 interface w/ HFIXEDSZ */
18423         p += HFIXEDSZ;
18424 #else
18425         /* Bind 4 interface w/o HFIXEDSZ */
18426         p += sizeof(HEADER);
18427 #endif
18428         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18429 }
18430   ;
18431   return 0;
18432 }
18433 _ACEOF
18434 rm -f conftest.$ac_objext conftest$ac_exeext
18435 if { (ac_try="$ac_link"
18436 case "(($ac_try" in
18437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438   *) ac_try_echo=$ac_try;;
18439 esac
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441   (eval "$ac_link") 2>conftest.er1
18442   ac_status=$?
18443   grep -v '^ *+' conftest.er1 >conftest.err
18444   rm -f conftest.er1
18445   cat conftest.err >&5
18446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447   (exit $ac_status); } && {
18448          test -z "$ac_c_werror_flag" ||
18449          test ! -s conftest.err
18450        } && test -s conftest$ac_exeext &&
18451        $as_test_x conftest$ac_exeext; then
18452   ol_cv_resolver_none=yes
18453 else
18454   echo "$as_me: failed program was:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18456
18457         ol_cv_resolver_none=no
18458 fi
18459
18460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18461       conftest$ac_exeext conftest.$ac_ext
18462
18463         LIBS="$ol_LIBS"
18464
18465 fi
18466 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18467 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18468
18469         if test $ol_cv_resolver_none = yes ; then
18470                 ol_cv_lib_resolver=yes
18471         fi
18472 fi
18473
18474 if test $ol_cv_lib_resolver = no ; then
18475         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18476 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18477 if test "${ol_cv_resolver_resolv+set}" = set; then
18478   echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480
18481         ol_RESOLVER_LIB=-lresolv
18482         ol_LIBS=$LIBS
18483         LIBS="$ol_RESOLVER_LIB $LIBS"
18484
18485         cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h.  */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h.  */
18491
18492 #ifdef HAVE_SYS_TYPES_H
18493 #       include <sys/types.h>
18494 #endif
18495 #include <netinet/in.h>
18496 #ifdef HAVE_ARPA_NAMESER_H
18497 #       include <arpa/nameser.h>
18498 #endif
18499 #ifdef HAVE_RESOLV_H
18500 #       include <resolv.h>
18501 #endif
18502
18503 int
18504 main ()
18505 {
18506 {
18507         int len, status;
18508         char *request = NULL;
18509         unsigned char reply[64*1024];
18510         unsigned char host[64*1024];
18511         unsigned char *p;
18512
18513 #ifdef NS_HFIXEDSZ
18514         /* Bind 8/9 interface */
18515         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18516 #else
18517         /* Bind 4 interface */
18518 # ifndef T_SRV
18519 #  define T_SRV 33
18520 # endif
18521         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18522 #endif
18523         p = reply;
18524 #ifdef NS_HFIXEDSZ
18525         /* Bind 8/9 interface */
18526         p += NS_HFIXEDSZ;
18527 #elif defined(HFIXEDSZ)
18528         /* Bind 4 interface w/ HFIXEDSZ */
18529         p += HFIXEDSZ;
18530 #else
18531         /* Bind 4 interface w/o HFIXEDSZ */
18532         p += sizeof(HEADER);
18533 #endif
18534         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18535 }
18536   ;
18537   return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544   *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547   (eval "$ac_link") 2>conftest.er1
18548   ac_status=$?
18549   grep -v '^ *+' conftest.er1 >conftest.err
18550   rm -f conftest.er1
18551   cat conftest.err >&5
18552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553   (exit $ac_status); } && {
18554          test -z "$ac_c_werror_flag" ||
18555          test ! -s conftest.err
18556        } && test -s conftest$ac_exeext &&
18557        $as_test_x conftest$ac_exeext; then
18558   ol_cv_resolver_resolv=yes
18559 else
18560   echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563         ol_cv_resolver_resolv=no
18564 fi
18565
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567       conftest$ac_exeext conftest.$ac_ext
18568
18569         LIBS="$ol_LIBS"
18570
18571 fi
18572 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18573 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18574
18575         if test $ol_cv_resolver_resolv = yes ; then
18576                 ol_cv_lib_resolver=-lresolv
18577         fi
18578 fi
18579
18580 if test $ol_cv_lib_resolver = no ; then
18581         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18582 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18583 if test "${ol_cv_resolver_bind+set}" = set; then
18584   echo $ECHO_N "(cached) $ECHO_C" >&6
18585 else
18586
18587         ol_RESOLVER_LIB=-lbind
18588         ol_LIBS=$LIBS
18589         LIBS="$ol_RESOLVER_LIB $LIBS"
18590
18591         cat >conftest.$ac_ext <<_ACEOF
18592 /* confdefs.h.  */
18593 _ACEOF
18594 cat confdefs.h >>conftest.$ac_ext
18595 cat >>conftest.$ac_ext <<_ACEOF
18596 /* end confdefs.h.  */
18597
18598 #ifdef HAVE_SYS_TYPES_H
18599 #       include <sys/types.h>
18600 #endif
18601 #include <netinet/in.h>
18602 #ifdef HAVE_ARPA_NAMESER_H
18603 #       include <arpa/nameser.h>
18604 #endif
18605 #ifdef HAVE_RESOLV_H
18606 #       include <resolv.h>
18607 #endif
18608
18609 int
18610 main ()
18611 {
18612 {
18613         int len, status;
18614         char *request = NULL;
18615         unsigned char reply[64*1024];
18616         unsigned char host[64*1024];
18617         unsigned char *p;
18618
18619 #ifdef NS_HFIXEDSZ
18620         /* Bind 8/9 interface */
18621         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18622 #else
18623         /* Bind 4 interface */
18624 # ifndef T_SRV
18625 #  define T_SRV 33
18626 # endif
18627         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18628 #endif
18629         p = reply;
18630 #ifdef NS_HFIXEDSZ
18631         /* Bind 8/9 interface */
18632         p += NS_HFIXEDSZ;
18633 #elif defined(HFIXEDSZ)
18634         /* Bind 4 interface w/ HFIXEDSZ */
18635         p += HFIXEDSZ;
18636 #else
18637         /* Bind 4 interface w/o HFIXEDSZ */
18638         p += sizeof(HEADER);
18639 #endif
18640         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18641 }
18642   ;
18643   return 0;
18644 }
18645 _ACEOF
18646 rm -f conftest.$ac_objext conftest$ac_exeext
18647 if { (ac_try="$ac_link"
18648 case "(($ac_try" in
18649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650   *) ac_try_echo=$ac_try;;
18651 esac
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653   (eval "$ac_link") 2>conftest.er1
18654   ac_status=$?
18655   grep -v '^ *+' conftest.er1 >conftest.err
18656   rm -f conftest.er1
18657   cat conftest.err >&5
18658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18659   (exit $ac_status); } && {
18660          test -z "$ac_c_werror_flag" ||
18661          test ! -s conftest.err
18662        } && test -s conftest$ac_exeext &&
18663        $as_test_x conftest$ac_exeext; then
18664   ol_cv_resolver_bind=yes
18665 else
18666   echo "$as_me: failed program was:" >&5
18667 sed 's/^/| /' conftest.$ac_ext >&5
18668
18669         ol_cv_resolver_bind=no
18670 fi
18671
18672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18673       conftest$ac_exeext conftest.$ac_ext
18674
18675         LIBS="$ol_LIBS"
18676
18677 fi
18678 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18679 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18680
18681         if test $ol_cv_resolver_bind = yes ; then
18682                 ol_cv_lib_resolver=-lbind
18683         fi
18684 fi
18685
18686
18687
18688 ol_link_dnssrv=no
18689 if test "$ol_cv_lib_resolver" != no ; then
18690
18691 cat >>confdefs.h <<\_ACEOF
18692 #define HAVE_RES_QUERY 1
18693 _ACEOF
18694
18695
18696         if test "$ol_enable_dnssrv" != no ; then
18697                 ol_link_dnssrv=yes
18698         fi
18699
18700         if test "$ol_cv_lib_resolver" != yes ; then
18701                 LIBS="$ol_cv_lib_resolver $LIBS"
18702         fi
18703 fi
18704
18705 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18706         if test "$ol_link_dnssrv" = no ; then
18707                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18708 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18709    { (exit 1); exit 1; }; }
18710         fi
18711 else
18712         ol_enable_dnssrv=no
18713 fi
18714
18715
18716 for ac_func in hstrerror
18717 do
18718 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18719 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18720 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18721 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18722   echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724   cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18732 #define $ac_func innocuous_$ac_func
18733
18734 /* System header to define __stub macros and hopefully few prototypes,
18735     which can conflict with char $ac_func (); below.
18736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737     <limits.h> exists even on freestanding compilers.  */
18738
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744
18745 #undef $ac_func
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char $ac_func ();
18754 /* The GNU C library defines this for functions which it implements
18755     to always fail with ENOSYS.  Some functions are actually named
18756     something starting with __ and the normal name is an alias.  */
18757 #if defined __stub_$ac_func || defined __stub___$ac_func
18758 choke me
18759 #endif
18760
18761 int
18762 main ()
18763 {
18764 return $ac_func ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_link") 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } && {
18783          test -z "$ac_c_werror_flag" ||
18784          test ! -s conftest.err
18785        } && test -s conftest$ac_exeext &&
18786        $as_test_x conftest$ac_exeext; then
18787   eval "$as_ac_var=yes"
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         eval "$as_ac_var=no"
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796       conftest$ac_exeext conftest.$ac_ext
18797 fi
18798 ac_res=`eval echo '${'$as_ac_var'}'`
18799                { echo "$as_me:$LINENO: result: $ac_res" >&5
18800 echo "${ECHO_T}$ac_res" >&6; }
18801 if test `eval echo '${'$as_ac_var'}'` = yes; then
18802   cat >>confdefs.h <<_ACEOF
18803 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18804 _ACEOF
18805
18806 fi
18807 done
18808
18809
18810
18811
18812
18813
18814 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18815 do
18816 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18817 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18818 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18819 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18820   echo $ECHO_N "(cached) $ECHO_C" >&6
18821 else
18822   cat >conftest.$ac_ext <<_ACEOF
18823 /* confdefs.h.  */
18824 _ACEOF
18825 cat confdefs.h >>conftest.$ac_ext
18826 cat >>conftest.$ac_ext <<_ACEOF
18827 /* end confdefs.h.  */
18828 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18829    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18830 #define $ac_func innocuous_$ac_func
18831
18832 /* System header to define __stub macros and hopefully few prototypes,
18833     which can conflict with char $ac_func (); below.
18834     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18835     <limits.h> exists even on freestanding compilers.  */
18836
18837 #ifdef __STDC__
18838 # include <limits.h>
18839 #else
18840 # include <assert.h>
18841 #endif
18842
18843 #undef $ac_func
18844
18845 /* Override any GCC internal prototype to avoid an error.
18846    Use char because int might match the return type of a GCC
18847    builtin and then its argument prototype would still apply.  */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char $ac_func ();
18852 /* The GNU C library defines this for functions which it implements
18853     to always fail with ENOSYS.  Some functions are actually named
18854     something starting with __ and the normal name is an alias.  */
18855 #if defined __stub_$ac_func || defined __stub___$ac_func
18856 choke me
18857 #endif
18858
18859 int
18860 main ()
18861 {
18862 return $ac_func ();
18863   ;
18864   return 0;
18865 }
18866 _ACEOF
18867 rm -f conftest.$ac_objext conftest$ac_exeext
18868 if { (ac_try="$ac_link"
18869 case "(($ac_try" in
18870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871   *) ac_try_echo=$ac_try;;
18872 esac
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874   (eval "$ac_link") 2>conftest.er1
18875   ac_status=$?
18876   grep -v '^ *+' conftest.er1 >conftest.err
18877   rm -f conftest.er1
18878   cat conftest.err >&5
18879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18880   (exit $ac_status); } && {
18881          test -z "$ac_c_werror_flag" ||
18882          test ! -s conftest.err
18883        } && test -s conftest$ac_exeext &&
18884        $as_test_x conftest$ac_exeext; then
18885   eval "$as_ac_var=yes"
18886 else
18887   echo "$as_me: failed program was:" >&5
18888 sed 's/^/| /' conftest.$ac_ext >&5
18889
18890         eval "$as_ac_var=no"
18891 fi
18892
18893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18894       conftest$ac_exeext conftest.$ac_ext
18895 fi
18896 ac_res=`eval echo '${'$as_ac_var'}'`
18897                { echo "$as_me:$LINENO: result: $ac_res" >&5
18898 echo "${ECHO_T}$ac_res" >&6; }
18899 if test `eval echo '${'$as_ac_var'}'` = yes; then
18900   cat >>confdefs.h <<_ACEOF
18901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18902 _ACEOF
18903
18904 fi
18905 done
18906
18907
18908 ol_link_ipv6=no
18909 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18910         if test $ol_enable_ipv6 = yes ; then
18911                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18912 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18913    { (exit 1); exit 1; }; }
18914         fi
18915 elif test $ol_enable_ipv6 != no ; then
18916         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18917 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18918 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18919   echo $ECHO_N "(cached) $ECHO_C" >&6
18920 else
18921
18922                 cat >conftest.$ac_ext <<_ACEOF
18923 /* confdefs.h.  */
18924 _ACEOF
18925 cat confdefs.h >>conftest.$ac_ext
18926 cat >>conftest.$ac_ext <<_ACEOF
18927 /* end confdefs.h.  */
18928
18929 #                       include <netinet/in.h>
18930 #                       ifdef INET6_ADDRSTRLEN
18931                                 __has_inet6_addrstrlen__;
18932 #                       endif
18933
18934 _ACEOF
18935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18936   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18937   ol_cv_inet6_addrstrlen=yes
18938 else
18939   ol_cv_inet6_addrstrlen=no
18940 fi
18941 rm -f conftest*
18942
18943 fi
18944 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18945 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18946
18947
18948         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18949 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18950 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18951   echo $ECHO_N "(cached) $ECHO_C" >&6
18952 else
18953
18954                 cat >conftest.$ac_ext <<_ACEOF
18955 /* confdefs.h.  */
18956 _ACEOF
18957 cat confdefs.h >>conftest.$ac_ext
18958 cat >>conftest.$ac_ext <<_ACEOF
18959 /* end confdefs.h.  */
18960
18961 #include <sys/types.h>
18962 #include <sys/socket.h>
18963
18964 int
18965 main ()
18966 {
18967
18968                         struct sockaddr_storage ss;
18969
18970   ;
18971   return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext
18975 if { (ac_try="$ac_compile"
18976 case "(($ac_try" in
18977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978   *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981   (eval "$ac_compile") 2>conftest.er1
18982   ac_status=$?
18983   grep -v '^ *+' conftest.er1 >conftest.err
18984   rm -f conftest.er1
18985   cat conftest.err >&5
18986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987   (exit $ac_status); } && {
18988          test -z "$ac_c_werror_flag" ||
18989          test ! -s conftest.err
18990        } && test -s conftest.$ac_objext; then
18991   ol_cv_struct_sockaddr_storage=yes
18992 else
18993   echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996         ol_cv_struct_sockaddr_storage=no
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19000 fi
19001 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19002 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19003
19004         if test $ol_cv_inet6_addrstrlen = yes &&
19005            test $ol_cv_struct_sockaddr_storage = yes ; then
19006                 ol_link_ipv6=yes
19007         elif test $ol_enable_ipv6 = yes &&
19008              test $ol_cv_inet6_addrstrlen = no ; then
19009                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19010 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19011    { (exit 1); exit 1; }; }
19012         elif test $ol_enable_ipv6 = yes &&
19013              test $ol_cv_struct_sockaddr_storage = no ; then
19014                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19015 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19016    { (exit 1); exit 1; }; }
19017         fi
19018 fi
19019
19020 if test $ol_enable_local != no ; then
19021
19022 for ac_header in sys/un.h
19023 do
19024 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19026   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 fi
19031 ac_res=`eval echo '${'$as_ac_Header'}'`
19032                { echo "$as_me:$LINENO: result: $ac_res" >&5
19033 echo "${ECHO_T}$ac_res" >&6; }
19034 else
19035   # Is the header compilable?
19036 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19037 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19038 cat >conftest.$ac_ext <<_ACEOF
19039 /* confdefs.h.  */
19040 _ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h.  */
19044 $ac_includes_default
19045 #include <$ac_header>
19046 _ACEOF
19047 rm -f conftest.$ac_objext
19048 if { (ac_try="$ac_compile"
19049 case "(($ac_try" in
19050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19051   *) ac_try_echo=$ac_try;;
19052 esac
19053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19054   (eval "$ac_compile") 2>conftest.er1
19055   ac_status=$?
19056   grep -v '^ *+' conftest.er1 >conftest.err
19057   rm -f conftest.er1
19058   cat conftest.err >&5
19059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19060   (exit $ac_status); } && {
19061          test -z "$ac_c_werror_flag" ||
19062          test ! -s conftest.err
19063        } && test -s conftest.$ac_objext; then
19064   ac_header_compiler=yes
19065 else
19066   echo "$as_me: failed program was:" >&5
19067 sed 's/^/| /' conftest.$ac_ext >&5
19068
19069         ac_header_compiler=no
19070 fi
19071
19072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19074 echo "${ECHO_T}$ac_header_compiler" >&6; }
19075
19076 # Is the header present?
19077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19079 cat >conftest.$ac_ext <<_ACEOF
19080 /* confdefs.h.  */
19081 _ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h.  */
19085 #include <$ac_header>
19086 _ACEOF
19087 if { (ac_try="$ac_cpp conftest.$ac_ext"
19088 case "(($ac_try" in
19089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090   *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19094   ac_status=$?
19095   grep -v '^ *+' conftest.er1 >conftest.err
19096   rm -f conftest.er1
19097   cat conftest.err >&5
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); } >/dev/null && {
19100          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19101          test ! -s conftest.err
19102        }; then
19103   ac_header_preproc=yes
19104 else
19105   echo "$as_me: failed program was:" >&5
19106 sed 's/^/| /' conftest.$ac_ext >&5
19107
19108   ac_header_preproc=no
19109 fi
19110
19111 rm -f conftest.err conftest.$ac_ext
19112 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19113 echo "${ECHO_T}$ac_header_preproc" >&6; }
19114
19115 # So?  What about this header?
19116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19117   yes:no: )
19118     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19119 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19120     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19122     ac_header_preproc=yes
19123     ;;
19124   no:yes:* )
19125     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19126 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19128 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19130 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19132 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19135     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19136 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19137     ( cat <<\_ASBOX
19138 ## --------------------------------------------- ##
19139 ## Report this to <http://www.openldap.org/its/> ##
19140 ## --------------------------------------------- ##
19141 _ASBOX
19142      ) | sed "s/^/$as_me: WARNING:     /" >&2
19143     ;;
19144 esac
19145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19148   echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150   eval "$as_ac_Header=\$ac_header_preproc"
19151 fi
19152 ac_res=`eval echo '${'$as_ac_Header'}'`
19153                { echo "$as_me:$LINENO: result: $ac_res" >&5
19154 echo "${ECHO_T}$ac_res" >&6; }
19155
19156 fi
19157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19158   cat >>confdefs.h <<_ACEOF
19159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19160 _ACEOF
19161
19162 fi
19163
19164 done
19165
19166
19167         if test $ol_enable_local = auto ; then
19168                 ol_enable_local=$ac_cv_header_sys_un_h
19169         elif test $ac_cv_header_sys_un_h = no ; then
19170                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19171 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19172    { (exit 1); exit 1; }; }
19173         fi
19174 fi
19175
19176
19177 if test $ol_with_tls = yes ; then
19178         ol_with_tls=auto
19179 fi
19180
19181 ol_link_tls=no
19182 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19183
19184 for ac_header in openssl/ssl.h
19185 do
19186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19188   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19191   echo $ECHO_N "(cached) $ECHO_C" >&6
19192 fi
19193 ac_res=`eval echo '${'$as_ac_Header'}'`
19194                { echo "$as_me:$LINENO: result: $ac_res" >&5
19195 echo "${ECHO_T}$ac_res" >&6; }
19196 else
19197   # Is the header compilable?
19198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19200 cat >conftest.$ac_ext <<_ACEOF
19201 /* confdefs.h.  */
19202 _ACEOF
19203 cat confdefs.h >>conftest.$ac_ext
19204 cat >>conftest.$ac_ext <<_ACEOF
19205 /* end confdefs.h.  */
19206 $ac_includes_default
19207 #include <$ac_header>
19208 _ACEOF
19209 rm -f conftest.$ac_objext
19210 if { (ac_try="$ac_compile"
19211 case "(($ac_try" in
19212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213   *) ac_try_echo=$ac_try;;
19214 esac
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216   (eval "$ac_compile") 2>conftest.er1
19217   ac_status=$?
19218   grep -v '^ *+' conftest.er1 >conftest.err
19219   rm -f conftest.er1
19220   cat conftest.err >&5
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); } && {
19223          test -z "$ac_c_werror_flag" ||
19224          test ! -s conftest.err
19225        } && test -s conftest.$ac_objext; then
19226   ac_header_compiler=yes
19227 else
19228   echo "$as_me: failed program was:" >&5
19229 sed 's/^/| /' conftest.$ac_ext >&5
19230
19231         ac_header_compiler=no
19232 fi
19233
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19236 echo "${ECHO_T}$ac_header_compiler" >&6; }
19237
19238 # Is the header present?
19239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19241 cat >conftest.$ac_ext <<_ACEOF
19242 /* confdefs.h.  */
19243 _ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h.  */
19247 #include <$ac_header>
19248 _ACEOF
19249 if { (ac_try="$ac_cpp conftest.$ac_ext"
19250 case "(($ac_try" in
19251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19252   *) ac_try_echo=$ac_try;;
19253 esac
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19256   ac_status=$?
19257   grep -v '^ *+' conftest.er1 >conftest.err
19258   rm -f conftest.er1
19259   cat conftest.err >&5
19260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261   (exit $ac_status); } >/dev/null && {
19262          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19263          test ! -s conftest.err
19264        }; then
19265   ac_header_preproc=yes
19266 else
19267   echo "$as_me: failed program was:" >&5
19268 sed 's/^/| /' conftest.$ac_ext >&5
19269
19270   ac_header_preproc=no
19271 fi
19272
19273 rm -f conftest.err conftest.$ac_ext
19274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19275 echo "${ECHO_T}$ac_header_preproc" >&6; }
19276
19277 # So?  What about this header?
19278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19279   yes:no: )
19280     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19282     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19284     ac_header_preproc=yes
19285     ;;
19286   no:yes:* )
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19290 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19294 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19295     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19297     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19299     ( cat <<\_ASBOX
19300 ## --------------------------------------------- ##
19301 ## Report this to <http://www.openldap.org/its/> ##
19302 ## --------------------------------------------- ##
19303 _ASBOX
19304      ) | sed "s/^/$as_me: WARNING:     /" >&2
19305     ;;
19306 esac
19307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19310   echo $ECHO_N "(cached) $ECHO_C" >&6
19311 else
19312   eval "$as_ac_Header=\$ac_header_preproc"
19313 fi
19314 ac_res=`eval echo '${'$as_ac_Header'}'`
19315                { echo "$as_me:$LINENO: result: $ac_res" >&5
19316 echo "${ECHO_T}$ac_res" >&6; }
19317
19318 fi
19319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19320   cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19322 _ACEOF
19323
19324 fi
19325
19326 done
19327
19328
19329         if test $ac_cv_header_openssl_ssl_h = yes ; then
19330                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19331 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19332 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19333   echo $ECHO_N "(cached) $ECHO_C" >&6
19334 else
19335   ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lssl -lcrypto $LIBS"
19337 cat >conftest.$ac_ext <<_ACEOF
19338 /* confdefs.h.  */
19339 _ACEOF
19340 cat confdefs.h >>conftest.$ac_ext
19341 cat >>conftest.$ac_ext <<_ACEOF
19342 /* end confdefs.h.  */
19343
19344 /* Override any GCC internal prototype to avoid an error.
19345    Use char because int might match the return type of a GCC
19346    builtin and then its argument prototype would still apply.  */
19347 #ifdef __cplusplus
19348 extern "C"
19349 #endif
19350 char SSL_library_init ();
19351 int
19352 main ()
19353 {
19354 return SSL_library_init ();
19355   ;
19356   return 0;
19357 }
19358 _ACEOF
19359 rm -f conftest.$ac_objext conftest$ac_exeext
19360 if { (ac_try="$ac_link"
19361 case "(($ac_try" in
19362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363   *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366   (eval "$ac_link") 2>conftest.er1
19367   ac_status=$?
19368   grep -v '^ *+' conftest.er1 >conftest.err
19369   rm -f conftest.er1
19370   cat conftest.err >&5
19371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372   (exit $ac_status); } && {
19373          test -z "$ac_c_werror_flag" ||
19374          test ! -s conftest.err
19375        } && test -s conftest$ac_exeext &&
19376        $as_test_x conftest$ac_exeext; then
19377   ac_cv_lib_ssl_SSL_library_init=yes
19378 else
19379   echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382         ac_cv_lib_ssl_SSL_library_init=no
19383 fi
19384
19385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19386       conftest$ac_exeext conftest.$ac_ext
19387 LIBS=$ac_check_lib_save_LIBS
19388 fi
19389 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19390 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19391 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19392   have_openssl=yes
19393                         need_rsaref=no
19394 else
19395   have_openssl=no
19396 fi
19397
19398
19399                 if test $have_openssl = no ; then
19400                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19401 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19402 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19403   echo $ECHO_N "(cached) $ECHO_C" >&6
19404 else
19405   ac_check_lib_save_LIBS=$LIBS
19406 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h.  */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h.  */
19413
19414 /* Override any GCC internal prototype to avoid an error.
19415    Use char because int might match the return type of a GCC
19416    builtin and then its argument prototype would still apply.  */
19417 #ifdef __cplusplus
19418 extern "C"
19419 #endif
19420 char ssl3_accept ();
19421 int
19422 main ()
19423 {
19424 return ssl3_accept ();
19425   ;
19426   return 0;
19427 }
19428 _ACEOF
19429 rm -f conftest.$ac_objext conftest$ac_exeext
19430 if { (ac_try="$ac_link"
19431 case "(($ac_try" in
19432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19433   *) ac_try_echo=$ac_try;;
19434 esac
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436   (eval "$ac_link") 2>conftest.er1
19437   ac_status=$?
19438   grep -v '^ *+' conftest.er1 >conftest.err
19439   rm -f conftest.er1
19440   cat conftest.err >&5
19441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442   (exit $ac_status); } && {
19443          test -z "$ac_c_werror_flag" ||
19444          test ! -s conftest.err
19445        } && test -s conftest$ac_exeext &&
19446        $as_test_x conftest$ac_exeext; then
19447   ac_cv_lib_ssl_ssl3_accept=yes
19448 else
19449   echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19451
19452         ac_cv_lib_ssl_ssl3_accept=no
19453 fi
19454
19455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19456       conftest$ac_exeext conftest.$ac_ext
19457 LIBS=$ac_check_lib_save_LIBS
19458 fi
19459 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19460 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19461 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19462   have_openssl=yes
19463                                 need_rsaref=yes
19464 else
19465   have_openssl=no
19466 fi
19467
19468                 fi
19469
19470                 if test $have_openssl = yes ; then
19471                         ol_with_tls=openssl
19472                         ol_link_tls=yes
19473
19474
19475 cat >>confdefs.h <<\_ACEOF
19476 #define HAVE_OPENSSL 1
19477 _ACEOF
19478
19479
19480                         if test $need_rsaref = yes; then
19481
19482 cat >>confdefs.h <<\_ACEOF
19483 #define HAVE_RSAREF 1
19484 _ACEOF
19485
19486
19487                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19488                         else
19489                                 TLS_LIBS="-lssl -lcrypto"
19490                         fi
19491
19492                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19493 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19494 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19495   echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497
19498                 cat >conftest.$ac_ext <<_ACEOF
19499 /* confdefs.h.  */
19500 _ACEOF
19501 cat confdefs.h >>conftest.$ac_ext
19502 cat >>conftest.$ac_ext <<_ACEOF
19503 /* end confdefs.h.  */
19504
19505 #ifdef HAVE_OPENSSL_SSL_H
19506 #include <openssl/ssl.h>
19507 #endif
19508
19509 /* Require 0.9.7d+ */
19510 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19511         char *__ssl_compat = "0.9.7d";
19512 #endif
19513
19514 _ACEOF
19515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19516   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19517   ol_cv_ssl_crl_compat=yes
19518 else
19519   ol_cv_ssl_crl_compat=no
19520 fi
19521 rm -f conftest*
19522
19523 fi
19524 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19525 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19526
19527                         if test $ol_cv_ssl_crl_compat = yes ; then
19528
19529 cat >>confdefs.h <<\_ACEOF
19530 #define HAVE_OPENSSL_CRL 1
19531 _ACEOF
19532
19533                         fi
19534                 fi
19535         fi
19536 fi
19537
19538 if test $ol_link_tls = no ; then
19539         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19540
19541 for ac_header in gnutls/gnutls.h
19542 do
19543 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19544 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19545   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19548   echo $ECHO_N "(cached) $ECHO_C" >&6
19549 fi
19550 ac_res=`eval echo '${'$as_ac_Header'}'`
19551                { echo "$as_me:$LINENO: result: $ac_res" >&5
19552 echo "${ECHO_T}$ac_res" >&6; }
19553 else
19554   # Is the header compilable?
19555 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19556 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h.  */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h.  */
19563 $ac_includes_default
19564 #include <$ac_header>
19565 _ACEOF
19566 rm -f conftest.$ac_objext
19567 if { (ac_try="$ac_compile"
19568 case "(($ac_try" in
19569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570   *) ac_try_echo=$ac_try;;
19571 esac
19572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19573   (eval "$ac_compile") 2>conftest.er1
19574   ac_status=$?
19575   grep -v '^ *+' conftest.er1 >conftest.err
19576   rm -f conftest.er1
19577   cat conftest.err >&5
19578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579   (exit $ac_status); } && {
19580          test -z "$ac_c_werror_flag" ||
19581          test ! -s conftest.err
19582        } && test -s conftest.$ac_objext; then
19583   ac_header_compiler=yes
19584 else
19585   echo "$as_me: failed program was:" >&5
19586 sed 's/^/| /' conftest.$ac_ext >&5
19587
19588         ac_header_compiler=no
19589 fi
19590
19591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19592 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19593 echo "${ECHO_T}$ac_header_compiler" >&6; }
19594
19595 # Is the header present?
19596 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19597 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19598 cat >conftest.$ac_ext <<_ACEOF
19599 /* confdefs.h.  */
19600 _ACEOF
19601 cat confdefs.h >>conftest.$ac_ext
19602 cat >>conftest.$ac_ext <<_ACEOF
19603 /* end confdefs.h.  */
19604 #include <$ac_header>
19605 _ACEOF
19606 if { (ac_try="$ac_cpp conftest.$ac_ext"
19607 case "(($ac_try" in
19608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609   *) ac_try_echo=$ac_try;;
19610 esac
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19613   ac_status=$?
19614   grep -v '^ *+' conftest.er1 >conftest.err
19615   rm -f conftest.er1
19616   cat conftest.err >&5
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); } >/dev/null && {
19619          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19620          test ! -s conftest.err
19621        }; then
19622   ac_header_preproc=yes
19623 else
19624   echo "$as_me: failed program was:" >&5
19625 sed 's/^/| /' conftest.$ac_ext >&5
19626
19627   ac_header_preproc=no
19628 fi
19629
19630 rm -f conftest.err conftest.$ac_ext
19631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19632 echo "${ECHO_T}$ac_header_preproc" >&6; }
19633
19634 # So?  What about this header?
19635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19636   yes:no: )
19637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19641     ac_header_preproc=yes
19642     ;;
19643   no:yes:* )
19644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19656     ( cat <<\_ASBOX
19657 ## --------------------------------------------- ##
19658 ## Report this to <http://www.openldap.org/its/> ##
19659 ## --------------------------------------------- ##
19660 _ASBOX
19661      ) | sed "s/^/$as_me: WARNING:     /" >&2
19662     ;;
19663 esac
19664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19667   echo $ECHO_N "(cached) $ECHO_C" >&6
19668 else
19669   eval "$as_ac_Header=\$ac_header_preproc"
19670 fi
19671 ac_res=`eval echo '${'$as_ac_Header'}'`
19672                { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674
19675 fi
19676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19677   cat >>confdefs.h <<_ACEOF
19678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19679 _ACEOF
19680
19681 fi
19682
19683 done
19684
19685
19686                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19687                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19688 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19689 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19690   echo $ECHO_N "(cached) $ECHO_C" >&6
19691 else
19692   ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lgnutls  $LIBS"
19694 cat >conftest.$ac_ext <<_ACEOF
19695 /* confdefs.h.  */
19696 _ACEOF
19697 cat confdefs.h >>conftest.$ac_ext
19698 cat >>conftest.$ac_ext <<_ACEOF
19699 /* end confdefs.h.  */
19700
19701 /* Override any GCC internal prototype to avoid an error.
19702    Use char because int might match the return type of a GCC
19703    builtin and then its argument prototype would still apply.  */
19704 #ifdef __cplusplus
19705 extern "C"
19706 #endif
19707 char gnutls_init ();
19708 int
19709 main ()
19710 {
19711 return gnutls_init ();
19712   ;
19713   return 0;
19714 }
19715 _ACEOF
19716 rm -f conftest.$ac_objext conftest$ac_exeext
19717 if { (ac_try="$ac_link"
19718 case "(($ac_try" in
19719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19720   *) ac_try_echo=$ac_try;;
19721 esac
19722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19723   (eval "$ac_link") 2>conftest.er1
19724   ac_status=$?
19725   grep -v '^ *+' conftest.er1 >conftest.err
19726   rm -f conftest.er1
19727   cat conftest.err >&5
19728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729   (exit $ac_status); } && {
19730          test -z "$ac_c_werror_flag" ||
19731          test ! -s conftest.err
19732        } && test -s conftest$ac_exeext &&
19733        $as_test_x conftest$ac_exeext; then
19734   ac_cv_lib_gnutls_gnutls_init=yes
19735 else
19736   echo "$as_me: failed program was:" >&5
19737 sed 's/^/| /' conftest.$ac_ext >&5
19738
19739         ac_cv_lib_gnutls_gnutls_init=no
19740 fi
19741
19742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19743       conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19745 fi
19746 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19747 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19748 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19749   have_gnutls=yes
19750 else
19751   have_gnutls=no
19752 fi
19753
19754
19755                         if test $have_gnutls = yes ; then
19756                                 ol_with_tls=gnutls
19757                                 ol_link_tls=yes
19758
19759                                 TLS_LIBS="-lgnutls"
19760
19761
19762 cat >>confdefs.h <<\_ACEOF
19763 #define HAVE_GNUTLS 1
19764 _ACEOF
19765
19766                         fi
19767                 fi
19768         fi
19769 fi
19770
19771 WITH_TLS=no
19772 if test $ol_link_tls = yes ; then
19773
19774 cat >>confdefs.h <<\_ACEOF
19775 #define HAVE_TLS 1
19776 _ACEOF
19777
19778         WITH_TLS=yes
19779 elif test $ol_with_tls = auto ; then
19780         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
19781 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
19782         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19783 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19784 elif test $ol_with_tls != no ; then
19785         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
19786 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
19787    { (exit 1); exit 1; }; }
19788 else
19789         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
19790 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
19791 fi
19792
19793 if test $ol_enable_lmpasswd != no; then
19794         if test $ol_link_tls != yes ; then
19795                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
19796 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
19797    { (exit 1); exit 1; }; }
19798         fi
19799
19800
19801 cat >>confdefs.h <<\_ACEOF
19802 #define SLAPD_LMHASH 1
19803 _ACEOF
19804
19805 fi
19806
19807 ol_link_threads=no
19808
19809 case $ol_with_threads in auto | yes | nt)
19810
19811
19812         { echo "$as_me:$LINENO: checking for _beginthread" >&5
19813 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
19814 if test "${ac_cv_func__beginthread+set}" = set; then
19815   echo $ECHO_N "(cached) $ECHO_C" >&6
19816 else
19817   cat >conftest.$ac_ext <<_ACEOF
19818 /* confdefs.h.  */
19819 _ACEOF
19820 cat confdefs.h >>conftest.$ac_ext
19821 cat >>conftest.$ac_ext <<_ACEOF
19822 /* end confdefs.h.  */
19823 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
19824    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19825 #define _beginthread innocuous__beginthread
19826
19827 /* System header to define __stub macros and hopefully few prototypes,
19828     which can conflict with char _beginthread (); below.
19829     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19830     <limits.h> exists even on freestanding compilers.  */
19831
19832 #ifdef __STDC__
19833 # include <limits.h>
19834 #else
19835 # include <assert.h>
19836 #endif
19837
19838 #undef _beginthread
19839
19840 /* Override any GCC internal prototype to avoid an error.
19841    Use char because int might match the return type of a GCC
19842    builtin and then its argument prototype would still apply.  */
19843 #ifdef __cplusplus
19844 extern "C"
19845 #endif
19846 char _beginthread ();
19847 /* The GNU C library defines this for functions which it implements
19848     to always fail with ENOSYS.  Some functions are actually named
19849     something starting with __ and the normal name is an alias.  */
19850 #if defined __stub__beginthread || defined __stub____beginthread
19851 choke me
19852 #endif
19853
19854 int
19855 main ()
19856 {
19857 return _beginthread ();
19858   ;
19859   return 0;
19860 }
19861 _ACEOF
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (ac_try="$ac_link"
19864 case "(($ac_try" in
19865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866   *) ac_try_echo=$ac_try;;
19867 esac
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869   (eval "$ac_link") 2>conftest.er1
19870   ac_status=$?
19871   grep -v '^ *+' conftest.er1 >conftest.err
19872   rm -f conftest.er1
19873   cat conftest.err >&5
19874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875   (exit $ac_status); } && {
19876          test -z "$ac_c_werror_flag" ||
19877          test ! -s conftest.err
19878        } && test -s conftest$ac_exeext &&
19879        $as_test_x conftest$ac_exeext; then
19880   ac_cv_func__beginthread=yes
19881 else
19882   echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19884
19885         ac_cv_func__beginthread=no
19886 fi
19887
19888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19889       conftest$ac_exeext conftest.$ac_ext
19890 fi
19891 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
19892 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
19893
19894
19895         if test $ac_cv_func__beginthread = yes ; then
19896
19897 cat >>confdefs.h <<\_ACEOF
19898 #define HAVE_NT_THREADS 1
19899 _ACEOF
19900
19901                 ol_cv_nt_threads=yes
19902         fi
19903
19904
19905         if test "$ol_cv_nt_threads" = yes ; then
19906                 ol_link_threads=nt
19907                 ol_with_threads=found
19908                 ol_with_yielding_select=yes
19909
19910
19911 cat >>confdefs.h <<\_ACEOF
19912 #define HAVE_NT_SERVICE_MANAGER 1
19913 _ACEOF
19914
19915
19916 cat >>confdefs.h <<\_ACEOF
19917 #define HAVE_NT_EVENT_LOG 1
19918 _ACEOF
19919
19920         fi
19921
19922         if test $ol_with_threads = nt ; then
19923                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
19924 echo "$as_me: error: could not locate NT Threads" >&2;}
19925    { (exit 1); exit 1; }; }
19926         fi
19927         ;;
19928 esac
19929
19930 case $ol_with_threads in auto | yes | posix)
19931
19932
19933 for ac_header in pthread.h
19934 do
19935 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19937   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19938 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19940   echo $ECHO_N "(cached) $ECHO_C" >&6
19941 fi
19942 ac_res=`eval echo '${'$as_ac_Header'}'`
19943                { echo "$as_me:$LINENO: result: $ac_res" >&5
19944 echo "${ECHO_T}$ac_res" >&6; }
19945 else
19946   # Is the header compilable?
19947 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19948 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19949 cat >conftest.$ac_ext <<_ACEOF
19950 /* confdefs.h.  */
19951 _ACEOF
19952 cat confdefs.h >>conftest.$ac_ext
19953 cat >>conftest.$ac_ext <<_ACEOF
19954 /* end confdefs.h.  */
19955 $ac_includes_default
19956 #include <$ac_header>
19957 _ACEOF
19958 rm -f conftest.$ac_objext
19959 if { (ac_try="$ac_compile"
19960 case "(($ac_try" in
19961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19962   *) ac_try_echo=$ac_try;;
19963 esac
19964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19965   (eval "$ac_compile") 2>conftest.er1
19966   ac_status=$?
19967   grep -v '^ *+' conftest.er1 >conftest.err
19968   rm -f conftest.er1
19969   cat conftest.err >&5
19970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971   (exit $ac_status); } && {
19972          test -z "$ac_c_werror_flag" ||
19973          test ! -s conftest.err
19974        } && test -s conftest.$ac_objext; then
19975   ac_header_compiler=yes
19976 else
19977   echo "$as_me: failed program was:" >&5
19978 sed 's/^/| /' conftest.$ac_ext >&5
19979
19980         ac_header_compiler=no
19981 fi
19982
19983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19984 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19985 echo "${ECHO_T}$ac_header_compiler" >&6; }
19986
19987 # Is the header present?
19988 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19989 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19990 cat >conftest.$ac_ext <<_ACEOF
19991 /* confdefs.h.  */
19992 _ACEOF
19993 cat confdefs.h >>conftest.$ac_ext
19994 cat >>conftest.$ac_ext <<_ACEOF
19995 /* end confdefs.h.  */
19996 #include <$ac_header>
19997 _ACEOF
19998 if { (ac_try="$ac_cpp conftest.$ac_ext"
19999 case "(($ac_try" in
20000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20001   *) ac_try_echo=$ac_try;;
20002 esac
20003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20004   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20005   ac_status=$?
20006   grep -v '^ *+' conftest.er1 >conftest.err
20007   rm -f conftest.er1
20008   cat conftest.err >&5
20009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010   (exit $ac_status); } >/dev/null && {
20011          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20012          test ! -s conftest.err
20013        }; then
20014   ac_header_preproc=yes
20015 else
20016   echo "$as_me: failed program was:" >&5
20017 sed 's/^/| /' conftest.$ac_ext >&5
20018
20019   ac_header_preproc=no
20020 fi
20021
20022 rm -f conftest.err conftest.$ac_ext
20023 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20024 echo "${ECHO_T}$ac_header_preproc" >&6; }
20025
20026 # So?  What about this header?
20027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20028   yes:no: )
20029     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20030 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20031     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20032 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20033     ac_header_preproc=yes
20034     ;;
20035   no:yes:* )
20036     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20037 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20038     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20039 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20040     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20041 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20042     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20043 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20044     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20045 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20046     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20047 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20048     ( cat <<\_ASBOX
20049 ## --------------------------------------------- ##
20050 ## Report this to <http://www.openldap.org/its/> ##
20051 ## --------------------------------------------- ##
20052 _ASBOX
20053      ) | sed "s/^/$as_me: WARNING:     /" >&2
20054     ;;
20055 esac
20056 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20057 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20058 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20059   echo $ECHO_N "(cached) $ECHO_C" >&6
20060 else
20061   eval "$as_ac_Header=\$ac_header_preproc"
20062 fi
20063 ac_res=`eval echo '${'$as_ac_Header'}'`
20064                { echo "$as_me:$LINENO: result: $ac_res" >&5
20065 echo "${ECHO_T}$ac_res" >&6; }
20066
20067 fi
20068 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20069   cat >>confdefs.h <<_ACEOF
20070 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20071 _ACEOF
20072
20073 fi
20074
20075 done
20076
20077
20078         if test $ac_cv_header_pthread_h = yes ; then
20079                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20080 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20081 if test "${ol_cv_pthread_version+set}" = set; then
20082   echo $ECHO_N "(cached) $ECHO_C" >&6
20083 else
20084
20085         cat >conftest.$ac_ext <<_ACEOF
20086 /* confdefs.h.  */
20087 _ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h.  */
20091
20092 #               include <pthread.h>
20093
20094 int
20095 main ()
20096 {
20097
20098                 int i = PTHREAD_CREATE_JOINABLE;
20099
20100   ;
20101   return 0;
20102 }
20103 _ACEOF
20104 rm -f conftest.$ac_objext
20105 if { (ac_try="$ac_compile"
20106 case "(($ac_try" in
20107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108   *) ac_try_echo=$ac_try;;
20109 esac
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111   (eval "$ac_compile") 2>conftest.er1
20112   ac_status=$?
20113   grep -v '^ *+' conftest.er1 >conftest.err
20114   rm -f conftest.er1
20115   cat conftest.err >&5
20116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20117   (exit $ac_status); } && {
20118          test -z "$ac_c_werror_flag" ||
20119          test ! -s conftest.err
20120        } && test -s conftest.$ac_objext; then
20121
20122         cat >conftest.$ac_ext <<_ACEOF
20123 /* confdefs.h.  */
20124 _ACEOF
20125 cat confdefs.h >>conftest.$ac_ext
20126 cat >>conftest.$ac_ext <<_ACEOF
20127 /* end confdefs.h.  */
20128 #include <pthread.h>
20129
20130 _ACEOF
20131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20132   $EGREP "pthread_detach" >/dev/null 2>&1; then
20133   ol_cv_pthread_version=10
20134 else
20135   ol_cv_pthread_version=8
20136 fi
20137 rm -f conftest*
20138
20139 else
20140   echo "$as_me: failed program was:" >&5
20141 sed 's/^/| /' conftest.$ac_ext >&5
20142
20143
20144         cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h.  */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h.  */
20150
20151 #               include <pthread.h>
20152 #               ifdef PTHREAD_CREATE_UNDETACHED
20153                 draft7
20154 #               endif
20155
20156 _ACEOF
20157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20158   $EGREP "draft7" >/dev/null 2>&1; then
20159   ol_cv_pthread_version=7
20160 else
20161
20162         cat >conftest.$ac_ext <<_ACEOF
20163 /* confdefs.h.  */
20164 _ACEOF
20165 cat confdefs.h >>conftest.$ac_ext
20166 cat >>conftest.$ac_ext <<_ACEOF
20167 /* end confdefs.h.  */
20168 #include <pthread.h>
20169
20170 _ACEOF
20171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20172   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20173   ol_cv_pthread_version=6
20174 else
20175
20176         cat >conftest.$ac_ext <<_ACEOF
20177 /* confdefs.h.  */
20178 _ACEOF
20179 cat confdefs.h >>conftest.$ac_ext
20180 cat >>conftest.$ac_ext <<_ACEOF
20181 /* end confdefs.h.  */
20182
20183 #               include <pthread.h>
20184 #ifdef          PTHREAD_MUTEX_INITIALIZER
20185                 draft5
20186 #endif
20187
20188 _ACEOF
20189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20190   $EGREP "draft5" >/dev/null 2>&1; then
20191   ol_cv_pthread_version=5
20192 else
20193   ol_cv_pthread_version=4
20194 fi
20195 rm -f conftest*
20196
20197 fi
20198 rm -f conftest*
20199
20200 fi
20201 rm -f conftest*
20202
20203 fi
20204
20205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20206
20207 fi
20208 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20209 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20210
20211
20212                 if test $ol_cv_pthread_version != 0 ; then
20213
20214 cat >>confdefs.h <<_ACEOF
20215 #define HAVE_PTHREADS $ol_cv_pthread_version
20216 _ACEOF
20217
20218                 else
20219                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20220 echo "$as_me: error: unknown pthread version" >&2;}
20221    { (exit 1); exit 1; }; }
20222                 fi
20223
20224                 # consider threads found
20225                 ol_with_threads=found
20226
20227
20228         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20229 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20230 if test "${ol_cv_header_linux_threads+set}" = set; then
20231   echo $ECHO_N "(cached) $ECHO_C" >&6
20232 else
20233   cat >conftest.$ac_ext <<_ACEOF
20234 /* confdefs.h.  */
20235 _ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h.  */
20239 #include <pthread.h>
20240 _ACEOF
20241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20242   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20243   ol_cv_header_linux_threads=yes
20244 else
20245   ol_cv_header_linux_threads=no
20246 fi
20247 rm -f conftest*
20248
20249
20250 fi
20251 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20252 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20253         if test $ol_cv_header_linux_threads = yes; then
20254
20255 cat >>confdefs.h <<\_ACEOF
20256 #define HAVE_LINUX_THREADS 1
20257 _ACEOF
20258
20259         fi
20260
20261
20262         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20263 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20264 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20265   echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267   cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h.  */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h.  */
20273 #include <pthread.h>
20274 #ifdef _POSIX_THREAD_IS_GNU_PTH
20275         __gnu_pth__;
20276 #endif
20277
20278 _ACEOF
20279 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20280   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20281   ol_cv_header_gnu_pth_pthread_h=yes
20282 else
20283   ol_cv_header_gnu_pth_pthread_h=no
20284 fi
20285 rm -f conftest*
20286
20287
20288 fi
20289 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20290 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20291
20292
20293                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20294
20295 for ac_header in sched.h
20296 do
20297 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20298 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20299   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20302   echo $ECHO_N "(cached) $ECHO_C" >&6
20303 fi
20304 ac_res=`eval echo '${'$as_ac_Header'}'`
20305                { echo "$as_me:$LINENO: result: $ac_res" >&5
20306 echo "${ECHO_T}$ac_res" >&6; }
20307 else
20308   # Is the header compilable?
20309 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20311 cat >conftest.$ac_ext <<_ACEOF
20312 /* confdefs.h.  */
20313 _ACEOF
20314 cat confdefs.h >>conftest.$ac_ext
20315 cat >>conftest.$ac_ext <<_ACEOF
20316 /* end confdefs.h.  */
20317 $ac_includes_default
20318 #include <$ac_header>
20319 _ACEOF
20320 rm -f conftest.$ac_objext
20321 if { (ac_try="$ac_compile"
20322 case "(($ac_try" in
20323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20324   *) ac_try_echo=$ac_try;;
20325 esac
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327   (eval "$ac_compile") 2>conftest.er1
20328   ac_status=$?
20329   grep -v '^ *+' conftest.er1 >conftest.err
20330   rm -f conftest.er1
20331   cat conftest.err >&5
20332   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20333   (exit $ac_status); } && {
20334          test -z "$ac_c_werror_flag" ||
20335          test ! -s conftest.err
20336        } && test -s conftest.$ac_objext; then
20337   ac_header_compiler=yes
20338 else
20339   echo "$as_me: failed program was:" >&5
20340 sed 's/^/| /' conftest.$ac_ext >&5
20341
20342         ac_header_compiler=no
20343 fi
20344
20345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20347 echo "${ECHO_T}$ac_header_compiler" >&6; }
20348
20349 # Is the header present?
20350 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20351 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20352 cat >conftest.$ac_ext <<_ACEOF
20353 /* confdefs.h.  */
20354 _ACEOF
20355 cat confdefs.h >>conftest.$ac_ext
20356 cat >>conftest.$ac_ext <<_ACEOF
20357 /* end confdefs.h.  */
20358 #include <$ac_header>
20359 _ACEOF
20360 if { (ac_try="$ac_cpp conftest.$ac_ext"
20361 case "(($ac_try" in
20362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363   *) ac_try_echo=$ac_try;;
20364 esac
20365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20366   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20367   ac_status=$?
20368   grep -v '^ *+' conftest.er1 >conftest.err
20369   rm -f conftest.er1
20370   cat conftest.err >&5
20371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20372   (exit $ac_status); } >/dev/null && {
20373          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20374          test ! -s conftest.err
20375        }; then
20376   ac_header_preproc=yes
20377 else
20378   echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381   ac_header_preproc=no
20382 fi
20383
20384 rm -f conftest.err conftest.$ac_ext
20385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20386 echo "${ECHO_T}$ac_header_preproc" >&6; }
20387
20388 # So?  What about this header?
20389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20390   yes:no: )
20391     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20393     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20395     ac_header_preproc=yes
20396     ;;
20397   no:yes:* )
20398     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20400     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20401 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20402     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20404     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20405 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20406     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20408     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20410     ( cat <<\_ASBOX
20411 ## --------------------------------------------- ##
20412 ## Report this to <http://www.openldap.org/its/> ##
20413 ## --------------------------------------------- ##
20414 _ASBOX
20415      ) | sed "s/^/$as_me: WARNING:     /" >&2
20416     ;;
20417 esac
20418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20421   echo $ECHO_N "(cached) $ECHO_C" >&6
20422 else
20423   eval "$as_ac_Header=\$ac_header_preproc"
20424 fi
20425 ac_res=`eval echo '${'$as_ac_Header'}'`
20426                { echo "$as_me:$LINENO: result: $ac_res" >&5
20427 echo "${ECHO_T}$ac_res" >&6; }
20428
20429 fi
20430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20431   cat >>confdefs.h <<_ACEOF
20432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20433 _ACEOF
20434
20435 fi
20436
20437 done
20438
20439                 fi
20440
20441
20442                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20443 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20444 if test "${ol_cv_pthread_create+set}" = set; then
20445   echo $ECHO_N "(cached) $ECHO_C" >&6
20446 else
20447
20448                         if test "$cross_compiling" = yes; then
20449   cat >conftest.$ac_ext <<_ACEOF
20450 /* confdefs.h.  */
20451 _ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h.  */
20455
20456 /* pthread test headers */
20457 #include <pthread.h>
20458 #if HAVE_PTHREADS < 7
20459 #include <errno.h>
20460 #endif
20461 #ifndef NULL
20462 #define NULL (void*)0
20463 #endif
20464
20465 static void *task(p)
20466         void *p;
20467 {
20468         return (void *) (p == NULL);
20469 }
20470
20471 int
20472 main ()
20473 {
20474
20475         /* pthread test function */
20476 #ifndef PTHREAD_CREATE_DETACHED
20477 #define PTHREAD_CREATE_DETACHED 1
20478 #endif
20479         pthread_t t;
20480         int status;
20481         int detach = PTHREAD_CREATE_DETACHED;
20482
20483 #if HAVE_PTHREADS > 4
20484         /* Final pthreads */
20485         pthread_attr_t attr;
20486
20487         status = pthread_attr_init(&attr);
20488         if( status ) return status;
20489
20490 #if HAVE_PTHREADS < 7
20491         status = pthread_attr_setdetachstate(&attr, &detach);
20492         if( status < 0 ) status = errno;
20493 #else
20494         status = pthread_attr_setdetachstate(&attr, detach);
20495 #endif
20496         if( status ) return status;
20497         status = pthread_create( &t, &attr, task, NULL );
20498 #if HAVE_PTHREADS < 7
20499         if( status < 0 ) status = errno;
20500 #endif
20501         if( status ) return status;
20502 #else
20503         /* Draft 4 pthreads */
20504         status = pthread_create( &t, pthread_attr_default, task, NULL );
20505         if( status ) return errno;
20506
20507         /* give thread a chance to complete */
20508         /* it should remain joinable and hence detachable */
20509         sleep( 1 );
20510
20511         status = pthread_detach( &t );
20512         if( status ) return errno;
20513 #endif
20514
20515 #ifdef HAVE_LINUX_THREADS
20516         pthread_kill_other_threads_np();
20517 #endif
20518
20519         return 0;
20520
20521   ;
20522   return 0;
20523 }
20524 _ACEOF
20525 rm -f conftest.$ac_objext conftest$ac_exeext
20526 if { (ac_try="$ac_link"
20527 case "(($ac_try" in
20528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20529   *) ac_try_echo=$ac_try;;
20530 esac
20531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20532   (eval "$ac_link") 2>conftest.er1
20533   ac_status=$?
20534   grep -v '^ *+' conftest.er1 >conftest.err
20535   rm -f conftest.er1
20536   cat conftest.err >&5
20537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); } && {
20539          test -z "$ac_c_werror_flag" ||
20540          test ! -s conftest.err
20541        } && test -s conftest$ac_exeext &&
20542        $as_test_x conftest$ac_exeext; then
20543   ol_cv_pthread_create=yes
20544 else
20545   echo "$as_me: failed program was:" >&5
20546 sed 's/^/| /' conftest.$ac_ext >&5
20547
20548         ol_cv_pthread_create=no
20549 fi
20550
20551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20552       conftest$ac_exeext conftest.$ac_ext
20553 else
20554   cat >conftest.$ac_ext <<_ACEOF
20555 /* confdefs.h.  */
20556 _ACEOF
20557 cat confdefs.h >>conftest.$ac_ext
20558 cat >>conftest.$ac_ext <<_ACEOF
20559 /* end confdefs.h.  */
20560
20561 /* pthread test headers */
20562 #include <pthread.h>
20563 #if HAVE_PTHREADS < 7
20564 #include <errno.h>
20565 #endif
20566 #ifndef NULL
20567 #define NULL (void*)0
20568 #endif
20569
20570 static void *task(p)
20571         void *p;
20572 {
20573         return (void *) (p == NULL);
20574 }
20575
20576
20577 int main(argc, argv)
20578         int argc;
20579         char **argv;
20580 {
20581
20582         /* pthread test function */
20583 #ifndef PTHREAD_CREATE_DETACHED
20584 #define PTHREAD_CREATE_DETACHED 1
20585 #endif
20586         pthread_t t;
20587         int status;
20588         int detach = PTHREAD_CREATE_DETACHED;
20589
20590 #if HAVE_PTHREADS > 4
20591         /* Final pthreads */
20592         pthread_attr_t attr;
20593
20594         status = pthread_attr_init(&attr);
20595         if( status ) return status;
20596
20597 #if HAVE_PTHREADS < 7
20598         status = pthread_attr_setdetachstate(&attr, &detach);
20599         if( status < 0 ) status = errno;
20600 #else
20601         status = pthread_attr_setdetachstate(&attr, detach);
20602 #endif
20603         if( status ) return status;
20604         status = pthread_create( &t, &attr, task, NULL );
20605 #if HAVE_PTHREADS < 7
20606         if( status < 0 ) status = errno;
20607 #endif
20608         if( status ) return status;
20609 #else
20610         /* Draft 4 pthreads */
20611         status = pthread_create( &t, pthread_attr_default, task, NULL );
20612         if( status ) return errno;
20613
20614         /* give thread a chance to complete */
20615         /* it should remain joinable and hence detachable */
20616         sleep( 1 );
20617
20618         status = pthread_detach( &t );
20619         if( status ) return errno;
20620 #endif
20621
20622 #ifdef HAVE_LINUX_THREADS
20623         pthread_kill_other_threads_np();
20624 #endif
20625
20626         return 0;
20627
20628 }
20629
20630 _ACEOF
20631 rm -f conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635   *) ac_try_echo=$ac_try;;
20636 esac
20637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20638   (eval "$ac_link") 2>&5
20639   ac_status=$?
20640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20641   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20642   { (case "(($ac_try" in
20643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20644   *) ac_try_echo=$ac_try;;
20645 esac
20646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20647   (eval "$ac_try") 2>&5
20648   ac_status=$?
20649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20650   (exit $ac_status); }; }; then
20651   ol_cv_pthread_create=yes
20652 else
20653   echo "$as_me: program exited with status $ac_status" >&5
20654 echo "$as_me: failed program was:" >&5
20655 sed 's/^/| /' conftest.$ac_ext >&5
20656
20657 ( exit $ac_status )
20658 ol_cv_pthread_create=no
20659 fi
20660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20661 fi
20662
20663
20664 fi
20665 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
20666 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
20667
20668                 if test $ol_cv_pthread_create != no ; then
20669                         ol_link_threads=posix
20670                         ol_link_pthreads=""
20671                 fi
20672
20673                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
20674 if test "$ol_link_threads" = no ; then
20675         # try -kthread
20676         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
20677 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
20678 if test "${ol_cv_pthread_kthread+set}" = set; then
20679   echo $ECHO_N "(cached) $ECHO_C" >&6
20680 else
20681
20682                 # save the flags
20683                 ol_LIBS="$LIBS"
20684                 LIBS="-kthread $LIBS"
20685
20686                 if test "$cross_compiling" = yes; then
20687   cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693
20694 /* pthread test headers */
20695 #include <pthread.h>
20696 #if HAVE_PTHREADS < 7
20697 #include <errno.h>
20698 #endif
20699 #ifndef NULL
20700 #define NULL (void*)0
20701 #endif
20702
20703 static void *task(p)
20704         void *p;
20705 {
20706         return (void *) (p == NULL);
20707 }
20708
20709 int
20710 main ()
20711 {
20712
20713         /* pthread test function */
20714 #ifndef PTHREAD_CREATE_DETACHED
20715 #define PTHREAD_CREATE_DETACHED 1
20716 #endif
20717         pthread_t t;
20718         int status;
20719         int detach = PTHREAD_CREATE_DETACHED;
20720
20721 #if HAVE_PTHREADS > 4
20722         /* Final pthreads */
20723         pthread_attr_t attr;
20724
20725         status = pthread_attr_init(&attr);
20726         if( status ) return status;
20727
20728 #if HAVE_PTHREADS < 7
20729         status = pthread_attr_setdetachstate(&attr, &detach);
20730         if( status < 0 ) status = errno;
20731 #else
20732         status = pthread_attr_setdetachstate(&attr, detach);
20733 #endif
20734         if( status ) return status;
20735         status = pthread_create( &t, &attr, task, NULL );
20736 #if HAVE_PTHREADS < 7
20737         if( status < 0 ) status = errno;
20738 #endif
20739         if( status ) return status;
20740 #else
20741         /* Draft 4 pthreads */
20742         status = pthread_create( &t, pthread_attr_default, task, NULL );
20743         if( status ) return errno;
20744
20745         /* give thread a chance to complete */
20746         /* it should remain joinable and hence detachable */
20747         sleep( 1 );
20748
20749         status = pthread_detach( &t );
20750         if( status ) return errno;
20751 #endif
20752
20753 #ifdef HAVE_LINUX_THREADS
20754         pthread_kill_other_threads_np();
20755 #endif
20756
20757         return 0;
20758
20759   ;
20760   return 0;
20761 }
20762 _ACEOF
20763 rm -f conftest.$ac_objext conftest$ac_exeext
20764 if { (ac_try="$ac_link"
20765 case "(($ac_try" in
20766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20767   *) ac_try_echo=$ac_try;;
20768 esac
20769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20770   (eval "$ac_link") 2>conftest.er1
20771   ac_status=$?
20772   grep -v '^ *+' conftest.er1 >conftest.err
20773   rm -f conftest.er1
20774   cat conftest.err >&5
20775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776   (exit $ac_status); } && {
20777          test -z "$ac_c_werror_flag" ||
20778          test ! -s conftest.err
20779        } && test -s conftest$ac_exeext &&
20780        $as_test_x conftest$ac_exeext; then
20781   ol_cv_pthread_kthread=yes
20782 else
20783   echo "$as_me: failed program was:" >&5
20784 sed 's/^/| /' conftest.$ac_ext >&5
20785
20786         ol_cv_pthread_kthread=no
20787 fi
20788
20789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20790       conftest$ac_exeext conftest.$ac_ext
20791 else
20792   cat >conftest.$ac_ext <<_ACEOF
20793 /* confdefs.h.  */
20794 _ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h.  */
20798
20799 /* pthread test headers */
20800 #include <pthread.h>
20801 #if HAVE_PTHREADS < 7
20802 #include <errno.h>
20803 #endif
20804 #ifndef NULL
20805 #define NULL (void*)0
20806 #endif
20807
20808 static void *task(p)
20809         void *p;
20810 {
20811         return (void *) (p == NULL);
20812 }
20813
20814
20815 int main(argc, argv)
20816         int argc;
20817         char **argv;
20818 {
20819
20820         /* pthread test function */
20821 #ifndef PTHREAD_CREATE_DETACHED
20822 #define PTHREAD_CREATE_DETACHED 1
20823 #endif
20824         pthread_t t;
20825         int status;
20826         int detach = PTHREAD_CREATE_DETACHED;
20827
20828 #if HAVE_PTHREADS > 4
20829         /* Final pthreads */
20830         pthread_attr_t attr;
20831
20832         status = pthread_attr_init(&attr);
20833         if( status ) return status;
20834
20835 #if HAVE_PTHREADS < 7
20836         status = pthread_attr_setdetachstate(&attr, &detach);
20837         if( status < 0 ) status = errno;
20838 #else
20839         status = pthread_attr_setdetachstate(&attr, detach);
20840 #endif
20841         if( status ) return status;
20842         status = pthread_create( &t, &attr, task, NULL );
20843 #if HAVE_PTHREADS < 7
20844         if( status < 0 ) status = errno;
20845 #endif
20846         if( status ) return status;
20847 #else
20848         /* Draft 4 pthreads */
20849         status = pthread_create( &t, pthread_attr_default, task, NULL );
20850         if( status ) return errno;
20851
20852         /* give thread a chance to complete */
20853         /* it should remain joinable and hence detachable */
20854         sleep( 1 );
20855
20856         status = pthread_detach( &t );
20857         if( status ) return errno;
20858 #endif
20859
20860 #ifdef HAVE_LINUX_THREADS
20861         pthread_kill_other_threads_np();
20862 #endif
20863
20864         return 0;
20865
20866 }
20867
20868 _ACEOF
20869 rm -f conftest$ac_exeext
20870 if { (ac_try="$ac_link"
20871 case "(($ac_try" in
20872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20873   *) ac_try_echo=$ac_try;;
20874 esac
20875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20876   (eval "$ac_link") 2>&5
20877   ac_status=$?
20878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20880   { (case "(($ac_try" in
20881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20882   *) ac_try_echo=$ac_try;;
20883 esac
20884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20885   (eval "$ac_try") 2>&5
20886   ac_status=$?
20887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888   (exit $ac_status); }; }; then
20889   ol_cv_pthread_kthread=yes
20890 else
20891   echo "$as_me: program exited with status $ac_status" >&5
20892 echo "$as_me: failed program was:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20894
20895 ( exit $ac_status )
20896 ol_cv_pthread_kthread=no
20897 fi
20898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20899 fi
20900
20901
20902
20903                 # restore the LIBS
20904                 LIBS="$ol_LIBS"
20905
20906 fi
20907 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
20908 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
20909
20910         if test $ol_cv_pthread_kthread = yes ; then
20911                 ol_link_pthreads="-kthread"
20912                 ol_link_threads=posix
20913         fi
20914 fi
20915
20916                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
20917 if test "$ol_link_threads" = no ; then
20918         # try -pthread
20919         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
20920 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
20921 if test "${ol_cv_pthread_pthread+set}" = set; then
20922   echo $ECHO_N "(cached) $ECHO_C" >&6
20923 else
20924
20925                 # save the flags
20926                 ol_LIBS="$LIBS"
20927                 LIBS="-pthread $LIBS"
20928
20929                 if test "$cross_compiling" = yes; then
20930   cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936
20937 /* pthread test headers */
20938 #include <pthread.h>
20939 #if HAVE_PTHREADS < 7
20940 #include <errno.h>
20941 #endif
20942 #ifndef NULL
20943 #define NULL (void*)0
20944 #endif
20945
20946 static void *task(p)
20947         void *p;
20948 {
20949         return (void *) (p == NULL);
20950 }
20951
20952 int
20953 main ()
20954 {
20955
20956         /* pthread test function */
20957 #ifndef PTHREAD_CREATE_DETACHED
20958 #define PTHREAD_CREATE_DETACHED 1
20959 #endif
20960         pthread_t t;
20961         int status;
20962         int detach = PTHREAD_CREATE_DETACHED;
20963
20964 #if HAVE_PTHREADS > 4
20965         /* Final pthreads */
20966         pthread_attr_t attr;
20967
20968         status = pthread_attr_init(&attr);
20969         if( status ) return status;
20970
20971 #if HAVE_PTHREADS < 7
20972         status = pthread_attr_setdetachstate(&attr, &detach);
20973         if( status < 0 ) status = errno;
20974 #else
20975         status = pthread_attr_setdetachstate(&attr, detach);
20976 #endif
20977         if( status ) return status;
20978         status = pthread_create( &t, &attr, task, NULL );
20979 #if HAVE_PTHREADS < 7
20980         if( status < 0 ) status = errno;
20981 #endif
20982         if( status ) return status;
20983 #else
20984         /* Draft 4 pthreads */
20985         status = pthread_create( &t, pthread_attr_default, task, NULL );
20986         if( status ) return errno;
20987
20988         /* give thread a chance to complete */
20989         /* it should remain joinable and hence detachable */
20990         sleep( 1 );
20991
20992         status = pthread_detach( &t );
20993         if( status ) return errno;
20994 #endif
20995
20996 #ifdef HAVE_LINUX_THREADS
20997         pthread_kill_other_threads_np();
20998 #endif
20999
21000         return 0;
21001
21002   ;
21003   return 0;
21004 }
21005 _ACEOF
21006 rm -f conftest.$ac_objext conftest$ac_exeext
21007 if { (ac_try="$ac_link"
21008 case "(($ac_try" in
21009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010   *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013   (eval "$ac_link") 2>conftest.er1
21014   ac_status=$?
21015   grep -v '^ *+' conftest.er1 >conftest.err
21016   rm -f conftest.er1
21017   cat conftest.err >&5
21018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019   (exit $ac_status); } && {
21020          test -z "$ac_c_werror_flag" ||
21021          test ! -s conftest.err
21022        } && test -s conftest$ac_exeext &&
21023        $as_test_x conftest$ac_exeext; then
21024   ol_cv_pthread_pthread=yes
21025 else
21026   echo "$as_me: failed program was:" >&5
21027 sed 's/^/| /' conftest.$ac_ext >&5
21028
21029         ol_cv_pthread_pthread=no
21030 fi
21031
21032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21033       conftest$ac_exeext conftest.$ac_ext
21034 else
21035   cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h.  */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h.  */
21041
21042 /* pthread test headers */
21043 #include <pthread.h>
21044 #if HAVE_PTHREADS < 7
21045 #include <errno.h>
21046 #endif
21047 #ifndef NULL
21048 #define NULL (void*)0
21049 #endif
21050
21051 static void *task(p)
21052         void *p;
21053 {
21054         return (void *) (p == NULL);
21055 }
21056
21057
21058 int main(argc, argv)
21059         int argc;
21060         char **argv;
21061 {
21062
21063         /* pthread test function */
21064 #ifndef PTHREAD_CREATE_DETACHED
21065 #define PTHREAD_CREATE_DETACHED 1
21066 #endif
21067         pthread_t t;
21068         int status;
21069         int detach = PTHREAD_CREATE_DETACHED;
21070
21071 #if HAVE_PTHREADS > 4
21072         /* Final pthreads */
21073         pthread_attr_t attr;
21074
21075         status = pthread_attr_init(&attr);
21076         if( status ) return status;
21077
21078 #if HAVE_PTHREADS < 7
21079         status = pthread_attr_setdetachstate(&attr, &detach);
21080         if( status < 0 ) status = errno;
21081 #else
21082         status = pthread_attr_setdetachstate(&attr, detach);
21083 #endif
21084         if( status ) return status;
21085         status = pthread_create( &t, &attr, task, NULL );
21086 #if HAVE_PTHREADS < 7
21087         if( status < 0 ) status = errno;
21088 #endif
21089         if( status ) return status;
21090 #else
21091         /* Draft 4 pthreads */
21092         status = pthread_create( &t, pthread_attr_default, task, NULL );
21093         if( status ) return errno;
21094
21095         /* give thread a chance to complete */
21096         /* it should remain joinable and hence detachable */
21097         sleep( 1 );
21098
21099         status = pthread_detach( &t );
21100         if( status ) return errno;
21101 #endif
21102
21103 #ifdef HAVE_LINUX_THREADS
21104         pthread_kill_other_threads_np();
21105 #endif
21106
21107         return 0;
21108
21109 }
21110
21111 _ACEOF
21112 rm -f conftest$ac_exeext
21113 if { (ac_try="$ac_link"
21114 case "(($ac_try" in
21115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21116   *) ac_try_echo=$ac_try;;
21117 esac
21118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21119   (eval "$ac_link") 2>&5
21120   ac_status=$?
21121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21123   { (case "(($ac_try" in
21124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21125   *) ac_try_echo=$ac_try;;
21126 esac
21127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21128   (eval "$ac_try") 2>&5
21129   ac_status=$?
21130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131   (exit $ac_status); }; }; then
21132   ol_cv_pthread_pthread=yes
21133 else
21134   echo "$as_me: program exited with status $ac_status" >&5
21135 echo "$as_me: failed program was:" >&5
21136 sed 's/^/| /' conftest.$ac_ext >&5
21137
21138 ( exit $ac_status )
21139 ol_cv_pthread_pthread=no
21140 fi
21141 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21142 fi
21143
21144
21145
21146                 # restore the LIBS
21147                 LIBS="$ol_LIBS"
21148
21149 fi
21150 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21151 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21152
21153         if test $ol_cv_pthread_pthread = yes ; then
21154                 ol_link_pthreads="-pthread"
21155                 ol_link_threads=posix
21156         fi
21157 fi
21158
21159                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21160 if test "$ol_link_threads" = no ; then
21161         # try -pthreads
21162         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21163 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21164 if test "${ol_cv_pthread_pthreads+set}" = set; then
21165   echo $ECHO_N "(cached) $ECHO_C" >&6
21166 else
21167
21168                 # save the flags
21169                 ol_LIBS="$LIBS"
21170                 LIBS="-pthreads $LIBS"
21171
21172                 if test "$cross_compiling" = yes; then
21173   cat >conftest.$ac_ext <<_ACEOF
21174 /* confdefs.h.  */
21175 _ACEOF
21176 cat confdefs.h >>conftest.$ac_ext
21177 cat >>conftest.$ac_ext <<_ACEOF
21178 /* end confdefs.h.  */
21179
21180 /* pthread test headers */
21181 #include <pthread.h>
21182 #if HAVE_PTHREADS < 7
21183 #include <errno.h>
21184 #endif
21185 #ifndef NULL
21186 #define NULL (void*)0
21187 #endif
21188
21189 static void *task(p)
21190         void *p;
21191 {
21192         return (void *) (p == NULL);
21193 }
21194
21195 int
21196 main ()
21197 {
21198
21199         /* pthread test function */
21200 #ifndef PTHREAD_CREATE_DETACHED
21201 #define PTHREAD_CREATE_DETACHED 1
21202 #endif
21203         pthread_t t;
21204         int status;
21205         int detach = PTHREAD_CREATE_DETACHED;
21206
21207 #if HAVE_PTHREADS > 4
21208         /* Final pthreads */
21209         pthread_attr_t attr;
21210
21211         status = pthread_attr_init(&attr);
21212         if( status ) return status;
21213
21214 #if HAVE_PTHREADS < 7
21215         status = pthread_attr_setdetachstate(&attr, &detach);
21216         if( status < 0 ) status = errno;
21217 #else
21218         status = pthread_attr_setdetachstate(&attr, detach);
21219 #endif
21220         if( status ) return status;
21221         status = pthread_create( &t, &attr, task, NULL );
21222 #if HAVE_PTHREADS < 7
21223         if( status < 0 ) status = errno;
21224 #endif
21225         if( status ) return status;
21226 #else
21227         /* Draft 4 pthreads */
21228         status = pthread_create( &t, pthread_attr_default, task, NULL );
21229         if( status ) return errno;
21230
21231         /* give thread a chance to complete */
21232         /* it should remain joinable and hence detachable */
21233         sleep( 1 );
21234
21235         status = pthread_detach( &t );
21236         if( status ) return errno;
21237 #endif
21238
21239 #ifdef HAVE_LINUX_THREADS
21240         pthread_kill_other_threads_np();
21241 #endif
21242
21243         return 0;
21244
21245   ;
21246   return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (ac_try="$ac_link"
21251 case "(($ac_try" in
21252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253   *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256   (eval "$ac_link") 2>conftest.er1
21257   ac_status=$?
21258   grep -v '^ *+' conftest.er1 >conftest.err
21259   rm -f conftest.er1
21260   cat conftest.err >&5
21261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262   (exit $ac_status); } && {
21263          test -z "$ac_c_werror_flag" ||
21264          test ! -s conftest.err
21265        } && test -s conftest$ac_exeext &&
21266        $as_test_x conftest$ac_exeext; then
21267   ol_cv_pthread_pthreads=yes
21268 else
21269   echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272         ol_cv_pthread_pthreads=no
21273 fi
21274
21275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21276       conftest$ac_exeext conftest.$ac_ext
21277 else
21278   cat >conftest.$ac_ext <<_ACEOF
21279 /* confdefs.h.  */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h.  */
21284
21285 /* pthread test headers */
21286 #include <pthread.h>
21287 #if HAVE_PTHREADS < 7
21288 #include <errno.h>
21289 #endif
21290 #ifndef NULL
21291 #define NULL (void*)0
21292 #endif
21293
21294 static void *task(p)
21295         void *p;
21296 {
21297         return (void *) (p == NULL);
21298 }
21299
21300
21301 int main(argc, argv)
21302         int argc;
21303         char **argv;
21304 {
21305
21306         /* pthread test function */
21307 #ifndef PTHREAD_CREATE_DETACHED
21308 #define PTHREAD_CREATE_DETACHED 1
21309 #endif
21310         pthread_t t;
21311         int status;
21312         int detach = PTHREAD_CREATE_DETACHED;
21313
21314 #if HAVE_PTHREADS > 4
21315         /* Final pthreads */
21316         pthread_attr_t attr;
21317
21318         status = pthread_attr_init(&attr);
21319         if( status ) return status;
21320
21321 #if HAVE_PTHREADS < 7
21322         status = pthread_attr_setdetachstate(&attr, &detach);
21323         if( status < 0 ) status = errno;
21324 #else
21325         status = pthread_attr_setdetachstate(&attr, detach);
21326 #endif
21327         if( status ) return status;
21328         status = pthread_create( &t, &attr, task, NULL );
21329 #if HAVE_PTHREADS < 7
21330         if( status < 0 ) status = errno;
21331 #endif
21332         if( status ) return status;
21333 #else
21334         /* Draft 4 pthreads */
21335         status = pthread_create( &t, pthread_attr_default, task, NULL );
21336         if( status ) return errno;
21337
21338         /* give thread a chance to complete */
21339         /* it should remain joinable and hence detachable */
21340         sleep( 1 );
21341
21342         status = pthread_detach( &t );
21343         if( status ) return errno;
21344 #endif
21345
21346 #ifdef HAVE_LINUX_THREADS
21347         pthread_kill_other_threads_np();
21348 #endif
21349
21350         return 0;
21351
21352 }
21353
21354 _ACEOF
21355 rm -f conftest$ac_exeext
21356 if { (ac_try="$ac_link"
21357 case "(($ac_try" in
21358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21359   *) ac_try_echo=$ac_try;;
21360 esac
21361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21362   (eval "$ac_link") 2>&5
21363   ac_status=$?
21364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21366   { (case "(($ac_try" in
21367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21368   *) ac_try_echo=$ac_try;;
21369 esac
21370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21371   (eval "$ac_try") 2>&5
21372   ac_status=$?
21373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374   (exit $ac_status); }; }; then
21375   ol_cv_pthread_pthreads=yes
21376 else
21377   echo "$as_me: program exited with status $ac_status" >&5
21378 echo "$as_me: failed program was:" >&5
21379 sed 's/^/| /' conftest.$ac_ext >&5
21380
21381 ( exit $ac_status )
21382 ol_cv_pthread_pthreads=no
21383 fi
21384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21385 fi
21386
21387
21388
21389                 # restore the LIBS
21390                 LIBS="$ol_LIBS"
21391
21392 fi
21393 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21394 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21395
21396         if test $ol_cv_pthread_pthreads = yes ; then
21397                 ol_link_pthreads="-pthreads"
21398                 ol_link_threads=posix
21399         fi
21400 fi
21401
21402                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21403 if test "$ol_link_threads" = no ; then
21404         # try -mthreads
21405         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21406 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21407 if test "${ol_cv_pthread_mthreads+set}" = set; then
21408   echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410
21411                 # save the flags
21412                 ol_LIBS="$LIBS"
21413                 LIBS="-mthreads $LIBS"
21414
21415                 if test "$cross_compiling" = yes; then
21416   cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h.  */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h.  */
21422
21423 /* pthread test headers */
21424 #include <pthread.h>
21425 #if HAVE_PTHREADS < 7
21426 #include <errno.h>
21427 #endif
21428 #ifndef NULL
21429 #define NULL (void*)0
21430 #endif
21431
21432 static void *task(p)
21433         void *p;
21434 {
21435         return (void *) (p == NULL);
21436 }
21437
21438 int
21439 main ()
21440 {
21441
21442         /* pthread test function */
21443 #ifndef PTHREAD_CREATE_DETACHED
21444 #define PTHREAD_CREATE_DETACHED 1
21445 #endif
21446         pthread_t t;
21447         int status;
21448         int detach = PTHREAD_CREATE_DETACHED;
21449
21450 #if HAVE_PTHREADS > 4
21451         /* Final pthreads */
21452         pthread_attr_t attr;
21453
21454         status = pthread_attr_init(&attr);
21455         if( status ) return status;
21456
21457 #if HAVE_PTHREADS < 7
21458         status = pthread_attr_setdetachstate(&attr, &detach);
21459         if( status < 0 ) status = errno;
21460 #else
21461         status = pthread_attr_setdetachstate(&attr, detach);
21462 #endif
21463         if( status ) return status;
21464         status = pthread_create( &t, &attr, task, NULL );
21465 #if HAVE_PTHREADS < 7
21466         if( status < 0 ) status = errno;
21467 #endif
21468         if( status ) return status;
21469 #else
21470         /* Draft 4 pthreads */
21471         status = pthread_create( &t, pthread_attr_default, task, NULL );
21472         if( status ) return errno;
21473
21474         /* give thread a chance to complete */
21475         /* it should remain joinable and hence detachable */
21476         sleep( 1 );
21477
21478         status = pthread_detach( &t );
21479         if( status ) return errno;
21480 #endif
21481
21482 #ifdef HAVE_LINUX_THREADS
21483         pthread_kill_other_threads_np();
21484 #endif
21485
21486         return 0;
21487
21488   ;
21489   return 0;
21490 }
21491 _ACEOF
21492 rm -f conftest.$ac_objext conftest$ac_exeext
21493 if { (ac_try="$ac_link"
21494 case "(($ac_try" in
21495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21496   *) ac_try_echo=$ac_try;;
21497 esac
21498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21499   (eval "$ac_link") 2>conftest.er1
21500   ac_status=$?
21501   grep -v '^ *+' conftest.er1 >conftest.err
21502   rm -f conftest.er1
21503   cat conftest.err >&5
21504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21505   (exit $ac_status); } && {
21506          test -z "$ac_c_werror_flag" ||
21507          test ! -s conftest.err
21508        } && test -s conftest$ac_exeext &&
21509        $as_test_x conftest$ac_exeext; then
21510   ol_cv_pthread_mthreads=yes
21511 else
21512   echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21514
21515         ol_cv_pthread_mthreads=no
21516 fi
21517
21518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21519       conftest$ac_exeext conftest.$ac_ext
21520 else
21521   cat >conftest.$ac_ext <<_ACEOF
21522 /* confdefs.h.  */
21523 _ACEOF
21524 cat confdefs.h >>conftest.$ac_ext
21525 cat >>conftest.$ac_ext <<_ACEOF
21526 /* end confdefs.h.  */
21527
21528 /* pthread test headers */
21529 #include <pthread.h>
21530 #if HAVE_PTHREADS < 7
21531 #include <errno.h>
21532 #endif
21533 #ifndef NULL
21534 #define NULL (void*)0
21535 #endif
21536
21537 static void *task(p)
21538         void *p;
21539 {
21540         return (void *) (p == NULL);
21541 }
21542
21543
21544 int main(argc, argv)
21545         int argc;
21546         char **argv;
21547 {
21548
21549         /* pthread test function */
21550 #ifndef PTHREAD_CREATE_DETACHED
21551 #define PTHREAD_CREATE_DETACHED 1
21552 #endif
21553         pthread_t t;
21554         int status;
21555         int detach = PTHREAD_CREATE_DETACHED;
21556
21557 #if HAVE_PTHREADS > 4
21558         /* Final pthreads */
21559         pthread_attr_t attr;
21560
21561         status = pthread_attr_init(&attr);
21562         if( status ) return status;
21563
21564 #if HAVE_PTHREADS < 7
21565         status = pthread_attr_setdetachstate(&attr, &detach);
21566         if( status < 0 ) status = errno;
21567 #else
21568         status = pthread_attr_setdetachstate(&attr, detach);
21569 #endif
21570         if( status ) return status;
21571         status = pthread_create( &t, &attr, task, NULL );
21572 #if HAVE_PTHREADS < 7
21573         if( status < 0 ) status = errno;
21574 #endif
21575         if( status ) return status;
21576 #else
21577         /* Draft 4 pthreads */
21578         status = pthread_create( &t, pthread_attr_default, task, NULL );
21579         if( status ) return errno;
21580
21581         /* give thread a chance to complete */
21582         /* it should remain joinable and hence detachable */
21583         sleep( 1 );
21584
21585         status = pthread_detach( &t );
21586         if( status ) return errno;
21587 #endif
21588
21589 #ifdef HAVE_LINUX_THREADS
21590         pthread_kill_other_threads_np();
21591 #endif
21592
21593         return 0;
21594
21595 }
21596
21597 _ACEOF
21598 rm -f conftest$ac_exeext
21599 if { (ac_try="$ac_link"
21600 case "(($ac_try" in
21601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21602   *) ac_try_echo=$ac_try;;
21603 esac
21604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21605   (eval "$ac_link") 2>&5
21606   ac_status=$?
21607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21609   { (case "(($ac_try" in
21610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611   *) ac_try_echo=$ac_try;;
21612 esac
21613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21614   (eval "$ac_try") 2>&5
21615   ac_status=$?
21616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617   (exit $ac_status); }; }; then
21618   ol_cv_pthread_mthreads=yes
21619 else
21620   echo "$as_me: program exited with status $ac_status" >&5
21621 echo "$as_me: failed program was:" >&5
21622 sed 's/^/| /' conftest.$ac_ext >&5
21623
21624 ( exit $ac_status )
21625 ol_cv_pthread_mthreads=no
21626 fi
21627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21628 fi
21629
21630
21631
21632                 # restore the LIBS
21633                 LIBS="$ol_LIBS"
21634
21635 fi
21636 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
21637 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
21638
21639         if test $ol_cv_pthread_mthreads = yes ; then
21640                 ol_link_pthreads="-mthreads"
21641                 ol_link_threads=posix
21642         fi
21643 fi
21644
21645                 # Pthread try link: -thread (ol_cv_pthread_thread)
21646 if test "$ol_link_threads" = no ; then
21647         # try -thread
21648         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
21649 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
21650 if test "${ol_cv_pthread_thread+set}" = set; then
21651   echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653
21654                 # save the flags
21655                 ol_LIBS="$LIBS"
21656                 LIBS="-thread $LIBS"
21657
21658                 if test "$cross_compiling" = yes; then
21659   cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h.  */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h.  */
21665
21666 /* pthread test headers */
21667 #include <pthread.h>
21668 #if HAVE_PTHREADS < 7
21669 #include <errno.h>
21670 #endif
21671 #ifndef NULL
21672 #define NULL (void*)0
21673 #endif
21674
21675 static void *task(p)
21676         void *p;
21677 {
21678         return (void *) (p == NULL);
21679 }
21680
21681 int
21682 main ()
21683 {
21684
21685         /* pthread test function */
21686 #ifndef PTHREAD_CREATE_DETACHED
21687 #define PTHREAD_CREATE_DETACHED 1
21688 #endif
21689         pthread_t t;
21690         int status;
21691         int detach = PTHREAD_CREATE_DETACHED;
21692
21693 #if HAVE_PTHREADS > 4
21694         /* Final pthreads */
21695         pthread_attr_t attr;
21696
21697         status = pthread_attr_init(&attr);
21698         if( status ) return status;
21699
21700 #if HAVE_PTHREADS < 7
21701         status = pthread_attr_setdetachstate(&attr, &detach);
21702         if( status < 0 ) status = errno;
21703 #else
21704         status = pthread_attr_setdetachstate(&attr, detach);
21705 #endif
21706         if( status ) return status;
21707         status = pthread_create( &t, &attr, task, NULL );
21708 #if HAVE_PTHREADS < 7
21709         if( status < 0 ) status = errno;
21710 #endif
21711         if( status ) return status;
21712 #else
21713         /* Draft 4 pthreads */
21714         status = pthread_create( &t, pthread_attr_default, task, NULL );
21715         if( status ) return errno;
21716
21717         /* give thread a chance to complete */
21718         /* it should remain joinable and hence detachable */
21719         sleep( 1 );
21720
21721         status = pthread_detach( &t );
21722         if( status ) return errno;
21723 #endif
21724
21725 #ifdef HAVE_LINUX_THREADS
21726         pthread_kill_other_threads_np();
21727 #endif
21728
21729         return 0;
21730
21731   ;
21732   return 0;
21733 }
21734 _ACEOF
21735 rm -f conftest.$ac_objext conftest$ac_exeext
21736 if { (ac_try="$ac_link"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_link") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } && {
21749          test -z "$ac_c_werror_flag" ||
21750          test ! -s conftest.err
21751        } && test -s conftest$ac_exeext &&
21752        $as_test_x conftest$ac_exeext; then
21753   ol_cv_pthread_thread=yes
21754 else
21755   echo "$as_me: failed program was:" >&5
21756 sed 's/^/| /' conftest.$ac_ext >&5
21757
21758         ol_cv_pthread_thread=no
21759 fi
21760
21761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21762       conftest$ac_exeext conftest.$ac_ext
21763 else
21764   cat >conftest.$ac_ext <<_ACEOF
21765 /* confdefs.h.  */
21766 _ACEOF
21767 cat confdefs.h >>conftest.$ac_ext
21768 cat >>conftest.$ac_ext <<_ACEOF
21769 /* end confdefs.h.  */
21770
21771 /* pthread test headers */
21772 #include <pthread.h>
21773 #if HAVE_PTHREADS < 7
21774 #include <errno.h>
21775 #endif
21776 #ifndef NULL
21777 #define NULL (void*)0
21778 #endif
21779
21780 static void *task(p)
21781         void *p;
21782 {
21783         return (void *) (p == NULL);
21784 }
21785
21786
21787 int main(argc, argv)
21788         int argc;
21789         char **argv;
21790 {
21791
21792         /* pthread test function */
21793 #ifndef PTHREAD_CREATE_DETACHED
21794 #define PTHREAD_CREATE_DETACHED 1
21795 #endif
21796         pthread_t t;
21797         int status;
21798         int detach = PTHREAD_CREATE_DETACHED;
21799
21800 #if HAVE_PTHREADS > 4
21801         /* Final pthreads */
21802         pthread_attr_t attr;
21803
21804         status = pthread_attr_init(&attr);
21805         if( status ) return status;
21806
21807 #if HAVE_PTHREADS < 7
21808         status = pthread_attr_setdetachstate(&attr, &detach);
21809         if( status < 0 ) status = errno;
21810 #else
21811         status = pthread_attr_setdetachstate(&attr, detach);
21812 #endif
21813         if( status ) return status;
21814         status = pthread_create( &t, &attr, task, NULL );
21815 #if HAVE_PTHREADS < 7
21816         if( status < 0 ) status = errno;
21817 #endif
21818         if( status ) return status;
21819 #else
21820         /* Draft 4 pthreads */
21821         status = pthread_create( &t, pthread_attr_default, task, NULL );
21822         if( status ) return errno;
21823
21824         /* give thread a chance to complete */
21825         /* it should remain joinable and hence detachable */
21826         sleep( 1 );
21827
21828         status = pthread_detach( &t );
21829         if( status ) return errno;
21830 #endif
21831
21832 #ifdef HAVE_LINUX_THREADS
21833         pthread_kill_other_threads_np();
21834 #endif
21835
21836         return 0;
21837
21838 }
21839
21840 _ACEOF
21841 rm -f conftest$ac_exeext
21842 if { (ac_try="$ac_link"
21843 case "(($ac_try" in
21844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21845   *) ac_try_echo=$ac_try;;
21846 esac
21847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21848   (eval "$ac_link") 2>&5
21849   ac_status=$?
21850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21852   { (case "(($ac_try" in
21853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21854   *) ac_try_echo=$ac_try;;
21855 esac
21856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21857   (eval "$ac_try") 2>&5
21858   ac_status=$?
21859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860   (exit $ac_status); }; }; then
21861   ol_cv_pthread_thread=yes
21862 else
21863   echo "$as_me: program exited with status $ac_status" >&5
21864 echo "$as_me: failed program was:" >&5
21865 sed 's/^/| /' conftest.$ac_ext >&5
21866
21867 ( exit $ac_status )
21868 ol_cv_pthread_thread=no
21869 fi
21870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21871 fi
21872
21873
21874
21875                 # restore the LIBS
21876                 LIBS="$ol_LIBS"
21877
21878 fi
21879 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
21880 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
21881
21882         if test $ol_cv_pthread_thread = yes ; then
21883                 ol_link_pthreads="-thread"
21884                 ol_link_threads=posix
21885         fi
21886 fi
21887
21888
21889                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
21890 if test "$ol_link_threads" = no ; then
21891         # try -lpthread -lmach -lexc -lc_r
21892         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
21893 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
21894 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897
21898                 # save the flags
21899                 ol_LIBS="$LIBS"
21900                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
21901
21902                 if test "$cross_compiling" = yes; then
21903   cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h.  */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h.  */
21909
21910 /* pthread test headers */
21911 #include <pthread.h>
21912 #if HAVE_PTHREADS < 7
21913 #include <errno.h>
21914 #endif
21915 #ifndef NULL
21916 #define NULL (void*)0
21917 #endif
21918
21919 static void *task(p)
21920         void *p;
21921 {
21922         return (void *) (p == NULL);
21923 }
21924
21925 int
21926 main ()
21927 {
21928
21929         /* pthread test function */
21930 #ifndef PTHREAD_CREATE_DETACHED
21931 #define PTHREAD_CREATE_DETACHED 1
21932 #endif
21933         pthread_t t;
21934         int status;
21935         int detach = PTHREAD_CREATE_DETACHED;
21936
21937 #if HAVE_PTHREADS > 4
21938         /* Final pthreads */
21939         pthread_attr_t attr;
21940
21941         status = pthread_attr_init(&attr);
21942         if( status ) return status;
21943
21944 #if HAVE_PTHREADS < 7
21945         status = pthread_attr_setdetachstate(&attr, &detach);
21946         if( status < 0 ) status = errno;
21947 #else
21948         status = pthread_attr_setdetachstate(&attr, detach);
21949 #endif
21950         if( status ) return status;
21951         status = pthread_create( &t, &attr, task, NULL );
21952 #if HAVE_PTHREADS < 7
21953         if( status < 0 ) status = errno;
21954 #endif
21955         if( status ) return status;
21956 #else
21957         /* Draft 4 pthreads */
21958         status = pthread_create( &t, pthread_attr_default, task, NULL );
21959         if( status ) return errno;
21960
21961         /* give thread a chance to complete */
21962         /* it should remain joinable and hence detachable */
21963         sleep( 1 );
21964
21965         status = pthread_detach( &t );
21966         if( status ) return errno;
21967 #endif
21968
21969 #ifdef HAVE_LINUX_THREADS
21970         pthread_kill_other_threads_np();
21971 #endif
21972
21973         return 0;
21974
21975   ;
21976   return 0;
21977 }
21978 _ACEOF
21979 rm -f conftest.$ac_objext conftest$ac_exeext
21980 if { (ac_try="$ac_link"
21981 case "(($ac_try" in
21982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983   *) ac_try_echo=$ac_try;;
21984 esac
21985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21986   (eval "$ac_link") 2>conftest.er1
21987   ac_status=$?
21988   grep -v '^ *+' conftest.er1 >conftest.err
21989   rm -f conftest.er1
21990   cat conftest.err >&5
21991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21992   (exit $ac_status); } && {
21993          test -z "$ac_c_werror_flag" ||
21994          test ! -s conftest.err
21995        } && test -s conftest$ac_exeext &&
21996        $as_test_x conftest$ac_exeext; then
21997   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
21998 else
21999   echo "$as_me: failed program was:" >&5
22000 sed 's/^/| /' conftest.$ac_ext >&5
22001
22002         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22003 fi
22004
22005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22006       conftest$ac_exeext conftest.$ac_ext
22007 else
22008   cat >conftest.$ac_ext <<_ACEOF
22009 /* confdefs.h.  */
22010 _ACEOF
22011 cat confdefs.h >>conftest.$ac_ext
22012 cat >>conftest.$ac_ext <<_ACEOF
22013 /* end confdefs.h.  */
22014
22015 /* pthread test headers */
22016 #include <pthread.h>
22017 #if HAVE_PTHREADS < 7
22018 #include <errno.h>
22019 #endif
22020 #ifndef NULL
22021 #define NULL (void*)0
22022 #endif
22023
22024 static void *task(p)
22025         void *p;
22026 {
22027         return (void *) (p == NULL);
22028 }
22029
22030
22031 int main(argc, argv)
22032         int argc;
22033         char **argv;
22034 {
22035
22036         /* pthread test function */
22037 #ifndef PTHREAD_CREATE_DETACHED
22038 #define PTHREAD_CREATE_DETACHED 1
22039 #endif
22040         pthread_t t;
22041         int status;
22042         int detach = PTHREAD_CREATE_DETACHED;
22043
22044 #if HAVE_PTHREADS > 4
22045         /* Final pthreads */
22046         pthread_attr_t attr;
22047
22048         status = pthread_attr_init(&attr);
22049         if( status ) return status;
22050
22051 #if HAVE_PTHREADS < 7
22052         status = pthread_attr_setdetachstate(&attr, &detach);
22053         if( status < 0 ) status = errno;
22054 #else
22055         status = pthread_attr_setdetachstate(&attr, detach);
22056 #endif
22057         if( status ) return status;
22058         status = pthread_create( &t, &attr, task, NULL );
22059 #if HAVE_PTHREADS < 7
22060         if( status < 0 ) status = errno;
22061 #endif
22062         if( status ) return status;
22063 #else
22064         /* Draft 4 pthreads */
22065         status = pthread_create( &t, pthread_attr_default, task, NULL );
22066         if( status ) return errno;
22067
22068         /* give thread a chance to complete */
22069         /* it should remain joinable and hence detachable */
22070         sleep( 1 );
22071
22072         status = pthread_detach( &t );
22073         if( status ) return errno;
22074 #endif
22075
22076 #ifdef HAVE_LINUX_THREADS
22077         pthread_kill_other_threads_np();
22078 #endif
22079
22080         return 0;
22081
22082 }
22083
22084 _ACEOF
22085 rm -f conftest$ac_exeext
22086 if { (ac_try="$ac_link"
22087 case "(($ac_try" in
22088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089   *) ac_try_echo=$ac_try;;
22090 esac
22091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22092   (eval "$ac_link") 2>&5
22093   ac_status=$?
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22096   { (case "(($ac_try" in
22097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22098   *) ac_try_echo=$ac_try;;
22099 esac
22100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22101   (eval "$ac_try") 2>&5
22102   ac_status=$?
22103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104   (exit $ac_status); }; }; then
22105   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22106 else
22107   echo "$as_me: program exited with status $ac_status" >&5
22108 echo "$as_me: failed program was:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22110
22111 ( exit $ac_status )
22112 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22113 fi
22114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22115 fi
22116
22117
22118
22119                 # restore the LIBS
22120                 LIBS="$ol_LIBS"
22121
22122 fi
22123 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22124 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22125
22126         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22127                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22128                 ol_link_threads=posix
22129         fi
22130 fi
22131
22132                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22133 if test "$ol_link_threads" = no ; then
22134         # try -lpthread -lmach -lexc
22135         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22136 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22137 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22138   echo $ECHO_N "(cached) $ECHO_C" >&6
22139 else
22140
22141                 # save the flags
22142                 ol_LIBS="$LIBS"
22143                 LIBS="-lpthread -lmach -lexc $LIBS"
22144
22145                 if test "$cross_compiling" = yes; then
22146   cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h.  */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h.  */
22152
22153 /* pthread test headers */
22154 #include <pthread.h>
22155 #if HAVE_PTHREADS < 7
22156 #include <errno.h>
22157 #endif
22158 #ifndef NULL
22159 #define NULL (void*)0
22160 #endif
22161
22162 static void *task(p)
22163         void *p;
22164 {
22165         return (void *) (p == NULL);
22166 }
22167
22168 int
22169 main ()
22170 {
22171
22172         /* pthread test function */
22173 #ifndef PTHREAD_CREATE_DETACHED
22174 #define PTHREAD_CREATE_DETACHED 1
22175 #endif
22176         pthread_t t;
22177         int status;
22178         int detach = PTHREAD_CREATE_DETACHED;
22179
22180 #if HAVE_PTHREADS > 4
22181         /* Final pthreads */
22182         pthread_attr_t attr;
22183
22184         status = pthread_attr_init(&attr);
22185         if( status ) return status;
22186
22187 #if HAVE_PTHREADS < 7
22188         status = pthread_attr_setdetachstate(&attr, &detach);
22189         if( status < 0 ) status = errno;
22190 #else
22191         status = pthread_attr_setdetachstate(&attr, detach);
22192 #endif
22193         if( status ) return status;
22194         status = pthread_create( &t, &attr, task, NULL );
22195 #if HAVE_PTHREADS < 7
22196         if( status < 0 ) status = errno;
22197 #endif
22198         if( status ) return status;
22199 #else
22200         /* Draft 4 pthreads */
22201         status = pthread_create( &t, pthread_attr_default, task, NULL );
22202         if( status ) return errno;
22203
22204         /* give thread a chance to complete */
22205         /* it should remain joinable and hence detachable */
22206         sleep( 1 );
22207
22208         status = pthread_detach( &t );
22209         if( status ) return errno;
22210 #endif
22211
22212 #ifdef HAVE_LINUX_THREADS
22213         pthread_kill_other_threads_np();
22214 #endif
22215
22216         return 0;
22217
22218   ;
22219   return 0;
22220 }
22221 _ACEOF
22222 rm -f conftest.$ac_objext conftest$ac_exeext
22223 if { (ac_try="$ac_link"
22224 case "(($ac_try" in
22225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22226   *) ac_try_echo=$ac_try;;
22227 esac
22228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22229   (eval "$ac_link") 2>conftest.er1
22230   ac_status=$?
22231   grep -v '^ *+' conftest.er1 >conftest.err
22232   rm -f conftest.er1
22233   cat conftest.err >&5
22234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235   (exit $ac_status); } && {
22236          test -z "$ac_c_werror_flag" ||
22237          test ! -s conftest.err
22238        } && test -s conftest$ac_exeext &&
22239        $as_test_x conftest$ac_exeext; then
22240   ol_cv_pthread_lpthread_lmach_lexc=yes
22241 else
22242   echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245         ol_cv_pthread_lpthread_lmach_lexc=no
22246 fi
22247
22248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22249       conftest$ac_exeext conftest.$ac_ext
22250 else
22251   cat >conftest.$ac_ext <<_ACEOF
22252 /* confdefs.h.  */
22253 _ACEOF
22254 cat confdefs.h >>conftest.$ac_ext
22255 cat >>conftest.$ac_ext <<_ACEOF
22256 /* end confdefs.h.  */
22257
22258 /* pthread test headers */
22259 #include <pthread.h>
22260 #if HAVE_PTHREADS < 7
22261 #include <errno.h>
22262 #endif
22263 #ifndef NULL
22264 #define NULL (void*)0
22265 #endif
22266
22267 static void *task(p)
22268         void *p;
22269 {
22270         return (void *) (p == NULL);
22271 }
22272
22273
22274 int main(argc, argv)
22275         int argc;
22276         char **argv;
22277 {
22278
22279         /* pthread test function */
22280 #ifndef PTHREAD_CREATE_DETACHED
22281 #define PTHREAD_CREATE_DETACHED 1
22282 #endif
22283         pthread_t t;
22284         int status;
22285         int detach = PTHREAD_CREATE_DETACHED;
22286
22287 #if HAVE_PTHREADS > 4
22288         /* Final pthreads */
22289         pthread_attr_t attr;
22290
22291         status = pthread_attr_init(&attr);
22292         if( status ) return status;
22293
22294 #if HAVE_PTHREADS < 7
22295         status = pthread_attr_setdetachstate(&attr, &detach);
22296         if( status < 0 ) status = errno;
22297 #else
22298         status = pthread_attr_setdetachstate(&attr, detach);
22299 #endif
22300         if( status ) return status;
22301         status = pthread_create( &t, &attr, task, NULL );
22302 #if HAVE_PTHREADS < 7
22303         if( status < 0 ) status = errno;
22304 #endif
22305         if( status ) return status;
22306 #else
22307         /* Draft 4 pthreads */
22308         status = pthread_create( &t, pthread_attr_default, task, NULL );
22309         if( status ) return errno;
22310
22311         /* give thread a chance to complete */
22312         /* it should remain joinable and hence detachable */
22313         sleep( 1 );
22314
22315         status = pthread_detach( &t );
22316         if( status ) return errno;
22317 #endif
22318
22319 #ifdef HAVE_LINUX_THREADS
22320         pthread_kill_other_threads_np();
22321 #endif
22322
22323         return 0;
22324
22325 }
22326
22327 _ACEOF
22328 rm -f conftest$ac_exeext
22329 if { (ac_try="$ac_link"
22330 case "(($ac_try" in
22331   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332   *) ac_try_echo=$ac_try;;
22333 esac
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335   (eval "$ac_link") 2>&5
22336   ac_status=$?
22337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22339   { (case "(($ac_try" in
22340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22341   *) ac_try_echo=$ac_try;;
22342 esac
22343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22344   (eval "$ac_try") 2>&5
22345   ac_status=$?
22346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347   (exit $ac_status); }; }; then
22348   ol_cv_pthread_lpthread_lmach_lexc=yes
22349 else
22350   echo "$as_me: program exited with status $ac_status" >&5
22351 echo "$as_me: failed program was:" >&5
22352 sed 's/^/| /' conftest.$ac_ext >&5
22353
22354 ( exit $ac_status )
22355 ol_cv_pthread_lpthread_lmach_lexc=no
22356 fi
22357 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22358 fi
22359
22360
22361
22362                 # restore the LIBS
22363                 LIBS="$ol_LIBS"
22364
22365 fi
22366 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22367 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22368
22369         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22370                 ol_link_pthreads="-lpthread -lmach -lexc"
22371                 ol_link_threads=posix
22372         fi
22373 fi
22374
22375
22376                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22377 if test "$ol_link_threads" = no ; then
22378         # try -lpthread -Wl,-woff,85
22379         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22380 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22381 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22382   echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384
22385                 # save the flags
22386                 ol_LIBS="$LIBS"
22387                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22388
22389                 if test "$cross_compiling" = yes; then
22390   cat >conftest.$ac_ext <<_ACEOF
22391 /* confdefs.h.  */
22392 _ACEOF
22393 cat confdefs.h >>conftest.$ac_ext
22394 cat >>conftest.$ac_ext <<_ACEOF
22395 /* end confdefs.h.  */
22396
22397 /* pthread test headers */
22398 #include <pthread.h>
22399 #if HAVE_PTHREADS < 7
22400 #include <errno.h>
22401 #endif
22402 #ifndef NULL
22403 #define NULL (void*)0
22404 #endif
22405
22406 static void *task(p)
22407         void *p;
22408 {
22409         return (void *) (p == NULL);
22410 }
22411
22412 int
22413 main ()
22414 {
22415
22416         /* pthread test function */
22417 #ifndef PTHREAD_CREATE_DETACHED
22418 #define PTHREAD_CREATE_DETACHED 1
22419 #endif
22420         pthread_t t;
22421         int status;
22422         int detach = PTHREAD_CREATE_DETACHED;
22423
22424 #if HAVE_PTHREADS > 4
22425         /* Final pthreads */
22426         pthread_attr_t attr;
22427
22428         status = pthread_attr_init(&attr);
22429         if( status ) return status;
22430
22431 #if HAVE_PTHREADS < 7
22432         status = pthread_attr_setdetachstate(&attr, &detach);
22433         if( status < 0 ) status = errno;
22434 #else
22435         status = pthread_attr_setdetachstate(&attr, detach);
22436 #endif
22437         if( status ) return status;
22438         status = pthread_create( &t, &attr, task, NULL );
22439 #if HAVE_PTHREADS < 7
22440         if( status < 0 ) status = errno;
22441 #endif
22442         if( status ) return status;
22443 #else
22444         /* Draft 4 pthreads */
22445         status = pthread_create( &t, pthread_attr_default, task, NULL );
22446         if( status ) return errno;
22447
22448         /* give thread a chance to complete */
22449         /* it should remain joinable and hence detachable */
22450         sleep( 1 );
22451
22452         status = pthread_detach( &t );
22453         if( status ) return errno;
22454 #endif
22455
22456 #ifdef HAVE_LINUX_THREADS
22457         pthread_kill_other_threads_np();
22458 #endif
22459
22460         return 0;
22461
22462   ;
22463   return 0;
22464 }
22465 _ACEOF
22466 rm -f conftest.$ac_objext conftest$ac_exeext
22467 if { (ac_try="$ac_link"
22468 case "(($ac_try" in
22469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22470   *) ac_try_echo=$ac_try;;
22471 esac
22472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22473   (eval "$ac_link") 2>conftest.er1
22474   ac_status=$?
22475   grep -v '^ *+' conftest.er1 >conftest.err
22476   rm -f conftest.er1
22477   cat conftest.err >&5
22478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479   (exit $ac_status); } && {
22480          test -z "$ac_c_werror_flag" ||
22481          test ! -s conftest.err
22482        } && test -s conftest$ac_exeext &&
22483        $as_test_x conftest$ac_exeext; then
22484   ol_cv_pthread_lib_lpthread_woff=yes
22485 else
22486   echo "$as_me: failed program was:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22488
22489         ol_cv_pthread_lib_lpthread_woff=no
22490 fi
22491
22492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22493       conftest$ac_exeext conftest.$ac_ext
22494 else
22495   cat >conftest.$ac_ext <<_ACEOF
22496 /* confdefs.h.  */
22497 _ACEOF
22498 cat confdefs.h >>conftest.$ac_ext
22499 cat >>conftest.$ac_ext <<_ACEOF
22500 /* end confdefs.h.  */
22501
22502 /* pthread test headers */
22503 #include <pthread.h>
22504 #if HAVE_PTHREADS < 7
22505 #include <errno.h>
22506 #endif
22507 #ifndef NULL
22508 #define NULL (void*)0
22509 #endif
22510
22511 static void *task(p)
22512         void *p;
22513 {
22514         return (void *) (p == NULL);
22515 }
22516
22517
22518 int main(argc, argv)
22519         int argc;
22520         char **argv;
22521 {
22522
22523         /* pthread test function */
22524 #ifndef PTHREAD_CREATE_DETACHED
22525 #define PTHREAD_CREATE_DETACHED 1
22526 #endif
22527         pthread_t t;
22528         int status;
22529         int detach = PTHREAD_CREATE_DETACHED;
22530
22531 #if HAVE_PTHREADS > 4
22532         /* Final pthreads */
22533         pthread_attr_t attr;
22534
22535         status = pthread_attr_init(&attr);
22536         if( status ) return status;
22537
22538 #if HAVE_PTHREADS < 7
22539         status = pthread_attr_setdetachstate(&attr, &detach);
22540         if( status < 0 ) status = errno;
22541 #else
22542         status = pthread_attr_setdetachstate(&attr, detach);
22543 #endif
22544         if( status ) return status;
22545         status = pthread_create( &t, &attr, task, NULL );
22546 #if HAVE_PTHREADS < 7
22547         if( status < 0 ) status = errno;
22548 #endif
22549         if( status ) return status;
22550 #else
22551         /* Draft 4 pthreads */
22552         status = pthread_create( &t, pthread_attr_default, task, NULL );
22553         if( status ) return errno;
22554
22555         /* give thread a chance to complete */
22556         /* it should remain joinable and hence detachable */
22557         sleep( 1 );
22558
22559         status = pthread_detach( &t );
22560         if( status ) return errno;
22561 #endif
22562
22563 #ifdef HAVE_LINUX_THREADS
22564         pthread_kill_other_threads_np();
22565 #endif
22566
22567         return 0;
22568
22569 }
22570
22571 _ACEOF
22572 rm -f conftest$ac_exeext
22573 if { (ac_try="$ac_link"
22574 case "(($ac_try" in
22575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22576   *) ac_try_echo=$ac_try;;
22577 esac
22578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22579   (eval "$ac_link") 2>&5
22580   ac_status=$?
22581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22583   { (case "(($ac_try" in
22584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585   *) ac_try_echo=$ac_try;;
22586 esac
22587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22588   (eval "$ac_try") 2>&5
22589   ac_status=$?
22590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591   (exit $ac_status); }; }; then
22592   ol_cv_pthread_lib_lpthread_woff=yes
22593 else
22594   echo "$as_me: program exited with status $ac_status" >&5
22595 echo "$as_me: failed program was:" >&5
22596 sed 's/^/| /' conftest.$ac_ext >&5
22597
22598 ( exit $ac_status )
22599 ol_cv_pthread_lib_lpthread_woff=no
22600 fi
22601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22602 fi
22603
22604
22605
22606                 # restore the LIBS
22607                 LIBS="$ol_LIBS"
22608
22609 fi
22610 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
22611 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
22612
22613         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
22614                 ol_link_pthreads="-lpthread -Wl,-woff,85"
22615                 ol_link_threads=posix
22616         fi
22617 fi
22618
22619
22620                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
22621 if test "$ol_link_threads" = no ; then
22622         # try -lpthread
22623         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
22624 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
22625 if test "${ol_cv_pthread_lpthread+set}" = set; then
22626   echo $ECHO_N "(cached) $ECHO_C" >&6
22627 else
22628
22629                 # save the flags
22630                 ol_LIBS="$LIBS"
22631                 LIBS="-lpthread $LIBS"
22632
22633                 if test "$cross_compiling" = yes; then
22634   cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640
22641 /* pthread test headers */
22642 #include <pthread.h>
22643 #if HAVE_PTHREADS < 7
22644 #include <errno.h>
22645 #endif
22646 #ifndef NULL
22647 #define NULL (void*)0
22648 #endif
22649
22650 static void *task(p)
22651         void *p;
22652 {
22653         return (void *) (p == NULL);
22654 }
22655
22656 int
22657 main ()
22658 {
22659
22660         /* pthread test function */
22661 #ifndef PTHREAD_CREATE_DETACHED
22662 #define PTHREAD_CREATE_DETACHED 1
22663 #endif
22664         pthread_t t;
22665         int status;
22666         int detach = PTHREAD_CREATE_DETACHED;
22667
22668 #if HAVE_PTHREADS > 4
22669         /* Final pthreads */
22670         pthread_attr_t attr;
22671
22672         status = pthread_attr_init(&attr);
22673         if( status ) return status;
22674
22675 #if HAVE_PTHREADS < 7
22676         status = pthread_attr_setdetachstate(&attr, &detach);
22677         if( status < 0 ) status = errno;
22678 #else
22679         status = pthread_attr_setdetachstate(&attr, detach);
22680 #endif
22681         if( status ) return status;
22682         status = pthread_create( &t, &attr, task, NULL );
22683 #if HAVE_PTHREADS < 7
22684         if( status < 0 ) status = errno;
22685 #endif
22686         if( status ) return status;
22687 #else
22688         /* Draft 4 pthreads */
22689         status = pthread_create( &t, pthread_attr_default, task, NULL );
22690         if( status ) return errno;
22691
22692         /* give thread a chance to complete */
22693         /* it should remain joinable and hence detachable */
22694         sleep( 1 );
22695
22696         status = pthread_detach( &t );
22697         if( status ) return errno;
22698 #endif
22699
22700 #ifdef HAVE_LINUX_THREADS
22701         pthread_kill_other_threads_np();
22702 #endif
22703
22704         return 0;
22705
22706   ;
22707   return 0;
22708 }
22709 _ACEOF
22710 rm -f conftest.$ac_objext conftest$ac_exeext
22711 if { (ac_try="$ac_link"
22712 case "(($ac_try" in
22713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714   *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717   (eval "$ac_link") 2>conftest.er1
22718   ac_status=$?
22719   grep -v '^ *+' conftest.er1 >conftest.err
22720   rm -f conftest.er1
22721   cat conftest.err >&5
22722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22723   (exit $ac_status); } && {
22724          test -z "$ac_c_werror_flag" ||
22725          test ! -s conftest.err
22726        } && test -s conftest$ac_exeext &&
22727        $as_test_x conftest$ac_exeext; then
22728   ol_cv_pthread_lpthread=yes
22729 else
22730   echo "$as_me: failed program was:" >&5
22731 sed 's/^/| /' conftest.$ac_ext >&5
22732
22733         ol_cv_pthread_lpthread=no
22734 fi
22735
22736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22737       conftest$ac_exeext conftest.$ac_ext
22738 else
22739   cat >conftest.$ac_ext <<_ACEOF
22740 /* confdefs.h.  */
22741 _ACEOF
22742 cat confdefs.h >>conftest.$ac_ext
22743 cat >>conftest.$ac_ext <<_ACEOF
22744 /* end confdefs.h.  */
22745
22746 /* pthread test headers */
22747 #include <pthread.h>
22748 #if HAVE_PTHREADS < 7
22749 #include <errno.h>
22750 #endif
22751 #ifndef NULL
22752 #define NULL (void*)0
22753 #endif
22754
22755 static void *task(p)
22756         void *p;
22757 {
22758         return (void *) (p == NULL);
22759 }
22760
22761
22762 int main(argc, argv)
22763         int argc;
22764         char **argv;
22765 {
22766
22767         /* pthread test function */
22768 #ifndef PTHREAD_CREATE_DETACHED
22769 #define PTHREAD_CREATE_DETACHED 1
22770 #endif
22771         pthread_t t;
22772         int status;
22773         int detach = PTHREAD_CREATE_DETACHED;
22774
22775 #if HAVE_PTHREADS > 4
22776         /* Final pthreads */
22777         pthread_attr_t attr;
22778
22779         status = pthread_attr_init(&attr);
22780         if( status ) return status;
22781
22782 #if HAVE_PTHREADS < 7
22783         status = pthread_attr_setdetachstate(&attr, &detach);
22784         if( status < 0 ) status = errno;
22785 #else
22786         status = pthread_attr_setdetachstate(&attr, detach);
22787 #endif
22788         if( status ) return status;
22789         status = pthread_create( &t, &attr, task, NULL );
22790 #if HAVE_PTHREADS < 7
22791         if( status < 0 ) status = errno;
22792 #endif
22793         if( status ) return status;
22794 #else
22795         /* Draft 4 pthreads */
22796         status = pthread_create( &t, pthread_attr_default, task, NULL );
22797         if( status ) return errno;
22798
22799         /* give thread a chance to complete */
22800         /* it should remain joinable and hence detachable */
22801         sleep( 1 );
22802
22803         status = pthread_detach( &t );
22804         if( status ) return errno;
22805 #endif
22806
22807 #ifdef HAVE_LINUX_THREADS
22808         pthread_kill_other_threads_np();
22809 #endif
22810
22811         return 0;
22812
22813 }
22814
22815 _ACEOF
22816 rm -f conftest$ac_exeext
22817 if { (ac_try="$ac_link"
22818 case "(($ac_try" in
22819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22820   *) ac_try_echo=$ac_try;;
22821 esac
22822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22823   (eval "$ac_link") 2>&5
22824   ac_status=$?
22825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22826   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22827   { (case "(($ac_try" in
22828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22829   *) ac_try_echo=$ac_try;;
22830 esac
22831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22832   (eval "$ac_try") 2>&5
22833   ac_status=$?
22834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835   (exit $ac_status); }; }; then
22836   ol_cv_pthread_lpthread=yes
22837 else
22838   echo "$as_me: program exited with status $ac_status" >&5
22839 echo "$as_me: failed program was:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22841
22842 ( exit $ac_status )
22843 ol_cv_pthread_lpthread=no
22844 fi
22845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22846 fi
22847
22848
22849
22850                 # restore the LIBS
22851                 LIBS="$ol_LIBS"
22852
22853 fi
22854 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
22855 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
22856
22857         if test $ol_cv_pthread_lpthread = yes ; then
22858                 ol_link_pthreads="-lpthread"
22859                 ol_link_threads=posix
22860         fi
22861 fi
22862
22863                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
22864 if test "$ol_link_threads" = no ; then
22865         # try -lc_r
22866         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
22867 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
22868 if test "${ol_cv_pthread_lc_r+set}" = set; then
22869   echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871
22872                 # save the flags
22873                 ol_LIBS="$LIBS"
22874                 LIBS="-lc_r $LIBS"
22875
22876                 if test "$cross_compiling" = yes; then
22877   cat >conftest.$ac_ext <<_ACEOF
22878 /* confdefs.h.  */
22879 _ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h.  */
22883
22884 /* pthread test headers */
22885 #include <pthread.h>
22886 #if HAVE_PTHREADS < 7
22887 #include <errno.h>
22888 #endif
22889 #ifndef NULL
22890 #define NULL (void*)0
22891 #endif
22892
22893 static void *task(p)
22894         void *p;
22895 {
22896         return (void *) (p == NULL);
22897 }
22898
22899 int
22900 main ()
22901 {
22902
22903         /* pthread test function */
22904 #ifndef PTHREAD_CREATE_DETACHED
22905 #define PTHREAD_CREATE_DETACHED 1
22906 #endif
22907         pthread_t t;
22908         int status;
22909         int detach = PTHREAD_CREATE_DETACHED;
22910
22911 #if HAVE_PTHREADS > 4
22912         /* Final pthreads */
22913         pthread_attr_t attr;
22914
22915         status = pthread_attr_init(&attr);
22916         if( status ) return status;
22917
22918 #if HAVE_PTHREADS < 7
22919         status = pthread_attr_setdetachstate(&attr, &detach);
22920         if( status < 0 ) status = errno;
22921 #else
22922         status = pthread_attr_setdetachstate(&attr, detach);
22923 #endif
22924         if( status ) return status;
22925         status = pthread_create( &t, &attr, task, NULL );
22926 #if HAVE_PTHREADS < 7
22927         if( status < 0 ) status = errno;
22928 #endif
22929         if( status ) return status;
22930 #else
22931         /* Draft 4 pthreads */
22932         status = pthread_create( &t, pthread_attr_default, task, NULL );
22933         if( status ) return errno;
22934
22935         /* give thread a chance to complete */
22936         /* it should remain joinable and hence detachable */
22937         sleep( 1 );
22938
22939         status = pthread_detach( &t );
22940         if( status ) return errno;
22941 #endif
22942
22943 #ifdef HAVE_LINUX_THREADS
22944         pthread_kill_other_threads_np();
22945 #endif
22946
22947         return 0;
22948
22949   ;
22950   return 0;
22951 }
22952 _ACEOF
22953 rm -f conftest.$ac_objext conftest$ac_exeext
22954 if { (ac_try="$ac_link"
22955 case "(($ac_try" in
22956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22957   *) ac_try_echo=$ac_try;;
22958 esac
22959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22960   (eval "$ac_link") 2>conftest.er1
22961   ac_status=$?
22962   grep -v '^ *+' conftest.er1 >conftest.err
22963   rm -f conftest.er1
22964   cat conftest.err >&5
22965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966   (exit $ac_status); } && {
22967          test -z "$ac_c_werror_flag" ||
22968          test ! -s conftest.err
22969        } && test -s conftest$ac_exeext &&
22970        $as_test_x conftest$ac_exeext; then
22971   ol_cv_pthread_lc_r=yes
22972 else
22973   echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22975
22976         ol_cv_pthread_lc_r=no
22977 fi
22978
22979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22980       conftest$ac_exeext conftest.$ac_ext
22981 else
22982   cat >conftest.$ac_ext <<_ACEOF
22983 /* confdefs.h.  */
22984 _ACEOF
22985 cat confdefs.h >>conftest.$ac_ext
22986 cat >>conftest.$ac_ext <<_ACEOF
22987 /* end confdefs.h.  */
22988
22989 /* pthread test headers */
22990 #include <pthread.h>
22991 #if HAVE_PTHREADS < 7
22992 #include <errno.h>
22993 #endif
22994 #ifndef NULL
22995 #define NULL (void*)0
22996 #endif
22997
22998 static void *task(p)
22999         void *p;
23000 {
23001         return (void *) (p == NULL);
23002 }
23003
23004
23005 int main(argc, argv)
23006         int argc;
23007         char **argv;
23008 {
23009
23010         /* pthread test function */
23011 #ifndef PTHREAD_CREATE_DETACHED
23012 #define PTHREAD_CREATE_DETACHED 1
23013 #endif
23014         pthread_t t;
23015         int status;
23016         int detach = PTHREAD_CREATE_DETACHED;
23017
23018 #if HAVE_PTHREADS > 4
23019         /* Final pthreads */
23020         pthread_attr_t attr;
23021
23022         status = pthread_attr_init(&attr);
23023         if( status ) return status;
23024
23025 #if HAVE_PTHREADS < 7
23026         status = pthread_attr_setdetachstate(&attr, &detach);
23027         if( status < 0 ) status = errno;
23028 #else
23029         status = pthread_attr_setdetachstate(&attr, detach);
23030 #endif
23031         if( status ) return status;
23032         status = pthread_create( &t, &attr, task, NULL );
23033 #if HAVE_PTHREADS < 7
23034         if( status < 0 ) status = errno;
23035 #endif
23036         if( status ) return status;
23037 #else
23038         /* Draft 4 pthreads */
23039         status = pthread_create( &t, pthread_attr_default, task, NULL );
23040         if( status ) return errno;
23041
23042         /* give thread a chance to complete */
23043         /* it should remain joinable and hence detachable */
23044         sleep( 1 );
23045
23046         status = pthread_detach( &t );
23047         if( status ) return errno;
23048 #endif
23049
23050 #ifdef HAVE_LINUX_THREADS
23051         pthread_kill_other_threads_np();
23052 #endif
23053
23054         return 0;
23055
23056 }
23057
23058 _ACEOF
23059 rm -f conftest$ac_exeext
23060 if { (ac_try="$ac_link"
23061 case "(($ac_try" in
23062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23063   *) ac_try_echo=$ac_try;;
23064 esac
23065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23066   (eval "$ac_link") 2>&5
23067   ac_status=$?
23068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23070   { (case "(($ac_try" in
23071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23072   *) ac_try_echo=$ac_try;;
23073 esac
23074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23075   (eval "$ac_try") 2>&5
23076   ac_status=$?
23077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23078   (exit $ac_status); }; }; then
23079   ol_cv_pthread_lc_r=yes
23080 else
23081   echo "$as_me: program exited with status $ac_status" >&5
23082 echo "$as_me: failed program was:" >&5
23083 sed 's/^/| /' conftest.$ac_ext >&5
23084
23085 ( exit $ac_status )
23086 ol_cv_pthread_lc_r=no
23087 fi
23088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23089 fi
23090
23091
23092
23093                 # restore the LIBS
23094                 LIBS="$ol_LIBS"
23095
23096 fi
23097 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23098 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23099
23100         if test $ol_cv_pthread_lc_r = yes ; then
23101                 ol_link_pthreads="-lc_r"
23102                 ol_link_threads=posix
23103         fi
23104 fi
23105
23106
23107                 # Pthread try link: -threads (ol_cv_pthread_threads)
23108 if test "$ol_link_threads" = no ; then
23109         # try -threads
23110         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23111 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23112 if test "${ol_cv_pthread_threads+set}" = set; then
23113   echo $ECHO_N "(cached) $ECHO_C" >&6
23114 else
23115
23116                 # save the flags
23117                 ol_LIBS="$LIBS"
23118                 LIBS="-threads $LIBS"
23119
23120                 if test "$cross_compiling" = yes; then
23121   cat >conftest.$ac_ext <<_ACEOF
23122 /* confdefs.h.  */
23123 _ACEOF
23124 cat confdefs.h >>conftest.$ac_ext
23125 cat >>conftest.$ac_ext <<_ACEOF
23126 /* end confdefs.h.  */
23127
23128 /* pthread test headers */
23129 #include <pthread.h>
23130 #if HAVE_PTHREADS < 7
23131 #include <errno.h>
23132 #endif
23133 #ifndef NULL
23134 #define NULL (void*)0
23135 #endif
23136
23137 static void *task(p)
23138         void *p;
23139 {
23140         return (void *) (p == NULL);
23141 }
23142
23143 int
23144 main ()
23145 {
23146
23147         /* pthread test function */
23148 #ifndef PTHREAD_CREATE_DETACHED
23149 #define PTHREAD_CREATE_DETACHED 1
23150 #endif
23151         pthread_t t;
23152         int status;
23153         int detach = PTHREAD_CREATE_DETACHED;
23154
23155 #if HAVE_PTHREADS > 4
23156         /* Final pthreads */
23157         pthread_attr_t attr;
23158
23159         status = pthread_attr_init(&attr);
23160         if( status ) return status;
23161
23162 #if HAVE_PTHREADS < 7
23163         status = pthread_attr_setdetachstate(&attr, &detach);
23164         if( status < 0 ) status = errno;
23165 #else
23166         status = pthread_attr_setdetachstate(&attr, detach);
23167 #endif
23168         if( status ) return status;
23169         status = pthread_create( &t, &attr, task, NULL );
23170 #if HAVE_PTHREADS < 7
23171         if( status < 0 ) status = errno;
23172 #endif
23173         if( status ) return status;
23174 #else
23175         /* Draft 4 pthreads */
23176         status = pthread_create( &t, pthread_attr_default, task, NULL );
23177         if( status ) return errno;
23178
23179         /* give thread a chance to complete */
23180         /* it should remain joinable and hence detachable */
23181         sleep( 1 );
23182
23183         status = pthread_detach( &t );
23184         if( status ) return errno;
23185 #endif
23186
23187 #ifdef HAVE_LINUX_THREADS
23188         pthread_kill_other_threads_np();
23189 #endif
23190
23191         return 0;
23192
23193   ;
23194   return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201   *) ac_try_echo=$ac_try;;
23202 esac
23203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23204   (eval "$ac_link") 2>conftest.er1
23205   ac_status=$?
23206   grep -v '^ *+' conftest.er1 >conftest.err
23207   rm -f conftest.er1
23208   cat conftest.err >&5
23209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210   (exit $ac_status); } && {
23211          test -z "$ac_c_werror_flag" ||
23212          test ! -s conftest.err
23213        } && test -s conftest$ac_exeext &&
23214        $as_test_x conftest$ac_exeext; then
23215   ol_cv_pthread_threads=yes
23216 else
23217   echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
23220         ol_cv_pthread_threads=no
23221 fi
23222
23223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23224       conftest$ac_exeext conftest.$ac_ext
23225 else
23226   cat >conftest.$ac_ext <<_ACEOF
23227 /* confdefs.h.  */
23228 _ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h.  */
23232
23233 /* pthread test headers */
23234 #include <pthread.h>
23235 #if HAVE_PTHREADS < 7
23236 #include <errno.h>
23237 #endif
23238 #ifndef NULL
23239 #define NULL (void*)0
23240 #endif
23241
23242 static void *task(p)
23243         void *p;
23244 {
23245         return (void *) (p == NULL);
23246 }
23247
23248
23249 int main(argc, argv)
23250         int argc;
23251         char **argv;
23252 {
23253
23254         /* pthread test function */
23255 #ifndef PTHREAD_CREATE_DETACHED
23256 #define PTHREAD_CREATE_DETACHED 1
23257 #endif
23258         pthread_t t;
23259         int status;
23260         int detach = PTHREAD_CREATE_DETACHED;
23261
23262 #if HAVE_PTHREADS > 4
23263         /* Final pthreads */
23264         pthread_attr_t attr;
23265
23266         status = pthread_attr_init(&attr);
23267         if( status ) return status;
23268
23269 #if HAVE_PTHREADS < 7
23270         status = pthread_attr_setdetachstate(&attr, &detach);
23271         if( status < 0 ) status = errno;
23272 #else
23273         status = pthread_attr_setdetachstate(&attr, detach);
23274 #endif
23275         if( status ) return status;
23276         status = pthread_create( &t, &attr, task, NULL );
23277 #if HAVE_PTHREADS < 7
23278         if( status < 0 ) status = errno;
23279 #endif
23280         if( status ) return status;
23281 #else
23282         /* Draft 4 pthreads */
23283         status = pthread_create( &t, pthread_attr_default, task, NULL );
23284         if( status ) return errno;
23285
23286         /* give thread a chance to complete */
23287         /* it should remain joinable and hence detachable */
23288         sleep( 1 );
23289
23290         status = pthread_detach( &t );
23291         if( status ) return errno;
23292 #endif
23293
23294 #ifdef HAVE_LINUX_THREADS
23295         pthread_kill_other_threads_np();
23296 #endif
23297
23298         return 0;
23299
23300 }
23301
23302 _ACEOF
23303 rm -f conftest$ac_exeext
23304 if { (ac_try="$ac_link"
23305 case "(($ac_try" in
23306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23307   *) ac_try_echo=$ac_try;;
23308 esac
23309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23310   (eval "$ac_link") 2>&5
23311   ac_status=$?
23312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23314   { (case "(($ac_try" in
23315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316   *) ac_try_echo=$ac_try;;
23317 esac
23318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23319   (eval "$ac_try") 2>&5
23320   ac_status=$?
23321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23322   (exit $ac_status); }; }; then
23323   ol_cv_pthread_threads=yes
23324 else
23325   echo "$as_me: program exited with status $ac_status" >&5
23326 echo "$as_me: failed program was:" >&5
23327 sed 's/^/| /' conftest.$ac_ext >&5
23328
23329 ( exit $ac_status )
23330 ol_cv_pthread_threads=no
23331 fi
23332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23333 fi
23334
23335
23336
23337                 # restore the LIBS
23338                 LIBS="$ol_LIBS"
23339
23340 fi
23341 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23342 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23343
23344         if test $ol_cv_pthread_threads = yes ; then
23345                 ol_link_pthreads="-threads"
23346                 ol_link_threads=posix
23347         fi
23348 fi
23349
23350
23351                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23352 if test "$ol_link_threads" = no ; then
23353         # try -lpthreads -lmach -lexc -lc_r
23354         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23355 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23356 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23357   echo $ECHO_N "(cached) $ECHO_C" >&6
23358 else
23359
23360                 # save the flags
23361                 ol_LIBS="$LIBS"
23362                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23363
23364                 if test "$cross_compiling" = yes; then
23365   cat >conftest.$ac_ext <<_ACEOF
23366 /* confdefs.h.  */
23367 _ACEOF
23368 cat confdefs.h >>conftest.$ac_ext
23369 cat >>conftest.$ac_ext <<_ACEOF
23370 /* end confdefs.h.  */
23371
23372 /* pthread test headers */
23373 #include <pthread.h>
23374 #if HAVE_PTHREADS < 7
23375 #include <errno.h>
23376 #endif
23377 #ifndef NULL
23378 #define NULL (void*)0
23379 #endif
23380
23381 static void *task(p)
23382         void *p;
23383 {
23384         return (void *) (p == NULL);
23385 }
23386
23387 int
23388 main ()
23389 {
23390
23391         /* pthread test function */
23392 #ifndef PTHREAD_CREATE_DETACHED
23393 #define PTHREAD_CREATE_DETACHED 1
23394 #endif
23395         pthread_t t;
23396         int status;
23397         int detach = PTHREAD_CREATE_DETACHED;
23398
23399 #if HAVE_PTHREADS > 4
23400         /* Final pthreads */
23401         pthread_attr_t attr;
23402
23403         status = pthread_attr_init(&attr);
23404         if( status ) return status;
23405
23406 #if HAVE_PTHREADS < 7
23407         status = pthread_attr_setdetachstate(&attr, &detach);
23408         if( status < 0 ) status = errno;
23409 #else
23410         status = pthread_attr_setdetachstate(&attr, detach);
23411 #endif
23412         if( status ) return status;
23413         status = pthread_create( &t, &attr, task, NULL );
23414 #if HAVE_PTHREADS < 7
23415         if( status < 0 ) status = errno;
23416 #endif
23417         if( status ) return status;
23418 #else
23419         /* Draft 4 pthreads */
23420         status = pthread_create( &t, pthread_attr_default, task, NULL );
23421         if( status ) return errno;
23422
23423         /* give thread a chance to complete */
23424         /* it should remain joinable and hence detachable */
23425         sleep( 1 );
23426
23427         status = pthread_detach( &t );
23428         if( status ) return errno;
23429 #endif
23430
23431 #ifdef HAVE_LINUX_THREADS
23432         pthread_kill_other_threads_np();
23433 #endif
23434
23435         return 0;
23436
23437   ;
23438   return 0;
23439 }
23440 _ACEOF
23441 rm -f conftest.$ac_objext conftest$ac_exeext
23442 if { (ac_try="$ac_link"
23443 case "(($ac_try" in
23444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23445   *) ac_try_echo=$ac_try;;
23446 esac
23447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23448   (eval "$ac_link") 2>conftest.er1
23449   ac_status=$?
23450   grep -v '^ *+' conftest.er1 >conftest.err
23451   rm -f conftest.er1
23452   cat conftest.err >&5
23453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454   (exit $ac_status); } && {
23455          test -z "$ac_c_werror_flag" ||
23456          test ! -s conftest.err
23457        } && test -s conftest$ac_exeext &&
23458        $as_test_x conftest$ac_exeext; then
23459   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23460 else
23461   echo "$as_me: failed program was:" >&5
23462 sed 's/^/| /' conftest.$ac_ext >&5
23463
23464         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23465 fi
23466
23467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23468       conftest$ac_exeext conftest.$ac_ext
23469 else
23470   cat >conftest.$ac_ext <<_ACEOF
23471 /* confdefs.h.  */
23472 _ACEOF
23473 cat confdefs.h >>conftest.$ac_ext
23474 cat >>conftest.$ac_ext <<_ACEOF
23475 /* end confdefs.h.  */
23476
23477 /* pthread test headers */
23478 #include <pthread.h>
23479 #if HAVE_PTHREADS < 7
23480 #include <errno.h>
23481 #endif
23482 #ifndef NULL
23483 #define NULL (void*)0
23484 #endif
23485
23486 static void *task(p)
23487         void *p;
23488 {
23489         return (void *) (p == NULL);
23490 }
23491
23492
23493 int main(argc, argv)
23494         int argc;
23495         char **argv;
23496 {
23497
23498         /* pthread test function */
23499 #ifndef PTHREAD_CREATE_DETACHED
23500 #define PTHREAD_CREATE_DETACHED 1
23501 #endif
23502         pthread_t t;
23503         int status;
23504         int detach = PTHREAD_CREATE_DETACHED;
23505
23506 #if HAVE_PTHREADS > 4
23507         /* Final pthreads */
23508         pthread_attr_t attr;
23509
23510         status = pthread_attr_init(&attr);
23511         if( status ) return status;
23512
23513 #if HAVE_PTHREADS < 7
23514         status = pthread_attr_setdetachstate(&attr, &detach);
23515         if( status < 0 ) status = errno;
23516 #else
23517         status = pthread_attr_setdetachstate(&attr, detach);
23518 #endif
23519         if( status ) return status;
23520         status = pthread_create( &t, &attr, task, NULL );
23521 #if HAVE_PTHREADS < 7
23522         if( status < 0 ) status = errno;
23523 #endif
23524         if( status ) return status;
23525 #else
23526         /* Draft 4 pthreads */
23527         status = pthread_create( &t, pthread_attr_default, task, NULL );
23528         if( status ) return errno;
23529
23530         /* give thread a chance to complete */
23531         /* it should remain joinable and hence detachable */
23532         sleep( 1 );
23533
23534         status = pthread_detach( &t );
23535         if( status ) return errno;
23536 #endif
23537
23538 #ifdef HAVE_LINUX_THREADS
23539         pthread_kill_other_threads_np();
23540 #endif
23541
23542         return 0;
23543
23544 }
23545
23546 _ACEOF
23547 rm -f conftest$ac_exeext
23548 if { (ac_try="$ac_link"
23549 case "(($ac_try" in
23550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23551   *) ac_try_echo=$ac_try;;
23552 esac
23553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23554   (eval "$ac_link") 2>&5
23555   ac_status=$?
23556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23557   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23558   { (case "(($ac_try" in
23559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560   *) ac_try_echo=$ac_try;;
23561 esac
23562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23563   (eval "$ac_try") 2>&5
23564   ac_status=$?
23565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23566   (exit $ac_status); }; }; then
23567   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23568 else
23569   echo "$as_me: program exited with status $ac_status" >&5
23570 echo "$as_me: failed program was:" >&5
23571 sed 's/^/| /' conftest.$ac_ext >&5
23572
23573 ( exit $ac_status )
23574 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23575 fi
23576 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23577 fi
23578
23579
23580
23581                 # restore the LIBS
23582                 LIBS="$ol_LIBS"
23583
23584 fi
23585 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23586 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
23587
23588         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
23589                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
23590                 ol_link_threads=posix
23591         fi
23592 fi
23593
23594                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
23595 if test "$ol_link_threads" = no ; then
23596         # try -lpthreads -lmach -lexc
23597         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
23598 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
23599 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
23600   echo $ECHO_N "(cached) $ECHO_C" >&6
23601 else
23602
23603                 # save the flags
23604                 ol_LIBS="$LIBS"
23605                 LIBS="-lpthreads -lmach -lexc $LIBS"
23606
23607                 if test "$cross_compiling" = yes; then
23608   cat >conftest.$ac_ext <<_ACEOF
23609 /* confdefs.h.  */
23610 _ACEOF
23611 cat confdefs.h >>conftest.$ac_ext
23612 cat >>conftest.$ac_ext <<_ACEOF
23613 /* end confdefs.h.  */
23614
23615 /* pthread test headers */
23616 #include <pthread.h>
23617 #if HAVE_PTHREADS < 7
23618 #include <errno.h>
23619 #endif
23620 #ifndef NULL
23621 #define NULL (void*)0
23622 #endif
23623
23624 static void *task(p)
23625         void *p;
23626 {
23627         return (void *) (p == NULL);
23628 }
23629
23630 int
23631 main ()
23632 {
23633
23634         /* pthread test function */
23635 #ifndef PTHREAD_CREATE_DETACHED
23636 #define PTHREAD_CREATE_DETACHED 1
23637 #endif
23638         pthread_t t;
23639         int status;
23640         int detach = PTHREAD_CREATE_DETACHED;
23641
23642 #if HAVE_PTHREADS > 4
23643         /* Final pthreads */
23644         pthread_attr_t attr;
23645
23646         status = pthread_attr_init(&attr);
23647         if( status ) return status;
23648
23649 #if HAVE_PTHREADS < 7
23650         status = pthread_attr_setdetachstate(&attr, &detach);
23651         if( status < 0 ) status = errno;
23652 #else
23653         status = pthread_attr_setdetachstate(&attr, detach);
23654 #endif
23655         if( status ) return status;
23656         status = pthread_create( &t, &attr, task, NULL );
23657 #if HAVE_PTHREADS < 7
23658         if( status < 0 ) status = errno;
23659 #endif
23660         if( status ) return status;
23661 #else
23662         /* Draft 4 pthreads */
23663         status = pthread_create( &t, pthread_attr_default, task, NULL );
23664         if( status ) return errno;
23665
23666         /* give thread a chance to complete */
23667         /* it should remain joinable and hence detachable */
23668         sleep( 1 );
23669
23670         status = pthread_detach( &t );
23671         if( status ) return errno;
23672 #endif
23673
23674 #ifdef HAVE_LINUX_THREADS
23675         pthread_kill_other_threads_np();
23676 #endif
23677
23678         return 0;
23679
23680   ;
23681   return 0;
23682 }
23683 _ACEOF
23684 rm -f conftest.$ac_objext conftest$ac_exeext
23685 if { (ac_try="$ac_link"
23686 case "(($ac_try" in
23687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23688   *) ac_try_echo=$ac_try;;
23689 esac
23690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23691   (eval "$ac_link") 2>conftest.er1
23692   ac_status=$?
23693   grep -v '^ *+' conftest.er1 >conftest.err
23694   rm -f conftest.er1
23695   cat conftest.err >&5
23696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23697   (exit $ac_status); } && {
23698          test -z "$ac_c_werror_flag" ||
23699          test ! -s conftest.err
23700        } && test -s conftest$ac_exeext &&
23701        $as_test_x conftest$ac_exeext; then
23702   ol_cv_pthread_lpthreads_lmach_lexc=yes
23703 else
23704   echo "$as_me: failed program was:" >&5
23705 sed 's/^/| /' conftest.$ac_ext >&5
23706
23707         ol_cv_pthread_lpthreads_lmach_lexc=no
23708 fi
23709
23710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23711       conftest$ac_exeext conftest.$ac_ext
23712 else
23713   cat >conftest.$ac_ext <<_ACEOF
23714 /* confdefs.h.  */
23715 _ACEOF
23716 cat confdefs.h >>conftest.$ac_ext
23717 cat >>conftest.$ac_ext <<_ACEOF
23718 /* end confdefs.h.  */
23719
23720 /* pthread test headers */
23721 #include <pthread.h>
23722 #if HAVE_PTHREADS < 7
23723 #include <errno.h>
23724 #endif
23725 #ifndef NULL
23726 #define NULL (void*)0
23727 #endif
23728
23729 static void *task(p)
23730         void *p;
23731 {
23732         return (void *) (p == NULL);
23733 }
23734
23735
23736 int main(argc, argv)
23737         int argc;
23738         char **argv;
23739 {
23740
23741         /* pthread test function */
23742 #ifndef PTHREAD_CREATE_DETACHED
23743 #define PTHREAD_CREATE_DETACHED 1
23744 #endif
23745         pthread_t t;
23746         int status;
23747         int detach = PTHREAD_CREATE_DETACHED;
23748
23749 #if HAVE_PTHREADS > 4
23750         /* Final pthreads */
23751         pthread_attr_t attr;
23752
23753         status = pthread_attr_init(&attr);
23754         if( status ) return status;
23755
23756 #if HAVE_PTHREADS < 7
23757         status = pthread_attr_setdetachstate(&attr, &detach);
23758         if( status < 0 ) status = errno;
23759 #else
23760         status = pthread_attr_setdetachstate(&attr, detach);
23761 #endif
23762         if( status ) return status;
23763         status = pthread_create( &t, &attr, task, NULL );
23764 #if HAVE_PTHREADS < 7
23765         if( status < 0 ) status = errno;
23766 #endif
23767         if( status ) return status;
23768 #else
23769         /* Draft 4 pthreads */
23770         status = pthread_create( &t, pthread_attr_default, task, NULL );
23771         if( status ) return errno;
23772
23773         /* give thread a chance to complete */
23774         /* it should remain joinable and hence detachable */
23775         sleep( 1 );
23776
23777         status = pthread_detach( &t );
23778         if( status ) return errno;
23779 #endif
23780
23781 #ifdef HAVE_LINUX_THREADS
23782         pthread_kill_other_threads_np();
23783 #endif
23784
23785         return 0;
23786
23787 }
23788
23789 _ACEOF
23790 rm -f conftest$ac_exeext
23791 if { (ac_try="$ac_link"
23792 case "(($ac_try" in
23793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23794   *) ac_try_echo=$ac_try;;
23795 esac
23796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23797   (eval "$ac_link") 2>&5
23798   ac_status=$?
23799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23800   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23801   { (case "(($ac_try" in
23802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803   *) ac_try_echo=$ac_try;;
23804 esac
23805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23806   (eval "$ac_try") 2>&5
23807   ac_status=$?
23808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23809   (exit $ac_status); }; }; then
23810   ol_cv_pthread_lpthreads_lmach_lexc=yes
23811 else
23812   echo "$as_me: program exited with status $ac_status" >&5
23813 echo "$as_me: failed program was:" >&5
23814 sed 's/^/| /' conftest.$ac_ext >&5
23815
23816 ( exit $ac_status )
23817 ol_cv_pthread_lpthreads_lmach_lexc=no
23818 fi
23819 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23820 fi
23821
23822
23823
23824                 # restore the LIBS
23825                 LIBS="$ol_LIBS"
23826
23827 fi
23828 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
23829 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
23830
23831         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
23832                 ol_link_pthreads="-lpthreads -lmach -lexc"
23833                 ol_link_threads=posix
23834         fi
23835 fi
23836
23837                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
23838 if test "$ol_link_threads" = no ; then
23839         # try -lpthreads -lexc
23840         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
23841 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
23842 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
23843   echo $ECHO_N "(cached) $ECHO_C" >&6
23844 else
23845
23846                 # save the flags
23847                 ol_LIBS="$LIBS"
23848                 LIBS="-lpthreads -lexc $LIBS"
23849
23850                 if test "$cross_compiling" = yes; then
23851   cat >conftest.$ac_ext <<_ACEOF
23852 /* confdefs.h.  */
23853 _ACEOF
23854 cat confdefs.h >>conftest.$ac_ext
23855 cat >>conftest.$ac_ext <<_ACEOF
23856 /* end confdefs.h.  */
23857
23858 /* pthread test headers */
23859 #include <pthread.h>
23860 #if HAVE_PTHREADS < 7
23861 #include <errno.h>
23862 #endif
23863 #ifndef NULL
23864 #define NULL (void*)0
23865 #endif
23866
23867 static void *task(p)
23868         void *p;
23869 {
23870         return (void *) (p == NULL);
23871 }
23872
23873 int
23874 main ()
23875 {
23876
23877         /* pthread test function */
23878 #ifndef PTHREAD_CREATE_DETACHED
23879 #define PTHREAD_CREATE_DETACHED 1
23880 #endif
23881         pthread_t t;
23882         int status;
23883         int detach = PTHREAD_CREATE_DETACHED;
23884
23885 #if HAVE_PTHREADS > 4
23886         /* Final pthreads */
23887         pthread_attr_t attr;
23888
23889         status = pthread_attr_init(&attr);
23890         if( status ) return status;
23891
23892 #if HAVE_PTHREADS < 7
23893         status = pthread_attr_setdetachstate(&attr, &detach);
23894         if( status < 0 ) status = errno;
23895 #else
23896         status = pthread_attr_setdetachstate(&attr, detach);
23897 #endif
23898         if( status ) return status;
23899         status = pthread_create( &t, &attr, task, NULL );
23900 #if HAVE_PTHREADS < 7
23901         if( status < 0 ) status = errno;
23902 #endif
23903         if( status ) return status;
23904 #else
23905         /* Draft 4 pthreads */
23906         status = pthread_create( &t, pthread_attr_default, task, NULL );
23907         if( status ) return errno;
23908
23909         /* give thread a chance to complete */
23910         /* it should remain joinable and hence detachable */
23911         sleep( 1 );
23912
23913         status = pthread_detach( &t );
23914         if( status ) return errno;
23915 #endif
23916
23917 #ifdef HAVE_LINUX_THREADS
23918         pthread_kill_other_threads_np();
23919 #endif
23920
23921         return 0;
23922
23923   ;
23924   return 0;
23925 }
23926 _ACEOF
23927 rm -f conftest.$ac_objext conftest$ac_exeext
23928 if { (ac_try="$ac_link"
23929 case "(($ac_try" in
23930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23931   *) ac_try_echo=$ac_try;;
23932 esac
23933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23934   (eval "$ac_link") 2>conftest.er1
23935   ac_status=$?
23936   grep -v '^ *+' conftest.er1 >conftest.err
23937   rm -f conftest.er1
23938   cat conftest.err >&5
23939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23940   (exit $ac_status); } && {
23941          test -z "$ac_c_werror_flag" ||
23942          test ! -s conftest.err
23943        } && test -s conftest$ac_exeext &&
23944        $as_test_x conftest$ac_exeext; then
23945   ol_cv_pthread_lpthreads_lexc=yes
23946 else
23947   echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950         ol_cv_pthread_lpthreads_lexc=no
23951 fi
23952
23953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23954       conftest$ac_exeext conftest.$ac_ext
23955 else
23956   cat >conftest.$ac_ext <<_ACEOF
23957 /* confdefs.h.  */
23958 _ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h.  */
23962
23963 /* pthread test headers */
23964 #include <pthread.h>
23965 #if HAVE_PTHREADS < 7
23966 #include <errno.h>
23967 #endif
23968 #ifndef NULL
23969 #define NULL (void*)0
23970 #endif
23971
23972 static void *task(p)
23973         void *p;
23974 {
23975         return (void *) (p == NULL);
23976 }
23977
23978
23979 int main(argc, argv)
23980         int argc;
23981         char **argv;
23982 {
23983
23984         /* pthread test function */
23985 #ifndef PTHREAD_CREATE_DETACHED
23986 #define PTHREAD_CREATE_DETACHED 1
23987 #endif
23988         pthread_t t;
23989         int status;
23990         int detach = PTHREAD_CREATE_DETACHED;
23991
23992 #if HAVE_PTHREADS > 4
23993         /* Final pthreads */
23994         pthread_attr_t attr;
23995
23996         status = pthread_attr_init(&attr);
23997         if( status ) return status;
23998
23999 #if HAVE_PTHREADS < 7
24000         status = pthread_attr_setdetachstate(&attr, &detach);
24001         if( status < 0 ) status = errno;
24002 #else
24003         status = pthread_attr_setdetachstate(&attr, detach);
24004 #endif
24005         if( status ) return status;
24006         status = pthread_create( &t, &attr, task, NULL );
24007 #if HAVE_PTHREADS < 7
24008         if( status < 0 ) status = errno;
24009 #endif
24010         if( status ) return status;
24011 #else
24012         /* Draft 4 pthreads */
24013         status = pthread_create( &t, pthread_attr_default, task, NULL );
24014         if( status ) return errno;
24015
24016         /* give thread a chance to complete */
24017         /* it should remain joinable and hence detachable */
24018         sleep( 1 );
24019
24020         status = pthread_detach( &t );
24021         if( status ) return errno;
24022 #endif
24023
24024 #ifdef HAVE_LINUX_THREADS
24025         pthread_kill_other_threads_np();
24026 #endif
24027
24028         return 0;
24029
24030 }
24031
24032 _ACEOF
24033 rm -f conftest$ac_exeext
24034 if { (ac_try="$ac_link"
24035 case "(($ac_try" in
24036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037   *) ac_try_echo=$ac_try;;
24038 esac
24039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24040   (eval "$ac_link") 2>&5
24041   ac_status=$?
24042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24043   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24044   { (case "(($ac_try" in
24045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046   *) ac_try_echo=$ac_try;;
24047 esac
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049   (eval "$ac_try") 2>&5
24050   ac_status=$?
24051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24052   (exit $ac_status); }; }; then
24053   ol_cv_pthread_lpthreads_lexc=yes
24054 else
24055   echo "$as_me: program exited with status $ac_status" >&5
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24058
24059 ( exit $ac_status )
24060 ol_cv_pthread_lpthreads_lexc=no
24061 fi
24062 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24063 fi
24064
24065
24066
24067                 # restore the LIBS
24068                 LIBS="$ol_LIBS"
24069
24070 fi
24071 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24072 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24073
24074         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24075                 ol_link_pthreads="-lpthreads -lexc"
24076                 ol_link_threads=posix
24077         fi
24078 fi
24079
24080
24081                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24082 if test "$ol_link_threads" = no ; then
24083         # try -lpthreads
24084         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24085 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24086 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24087   echo $ECHO_N "(cached) $ECHO_C" >&6
24088 else
24089
24090                 # save the flags
24091                 ol_LIBS="$LIBS"
24092                 LIBS="-lpthreads $LIBS"
24093
24094                 if test "$cross_compiling" = yes; then
24095   cat >conftest.$ac_ext <<_ACEOF
24096 /* confdefs.h.  */
24097 _ACEOF
24098 cat confdefs.h >>conftest.$ac_ext
24099 cat >>conftest.$ac_ext <<_ACEOF
24100 /* end confdefs.h.  */
24101
24102 /* pthread test headers */
24103 #include <pthread.h>
24104 #if HAVE_PTHREADS < 7
24105 #include <errno.h>
24106 #endif
24107 #ifndef NULL
24108 #define NULL (void*)0
24109 #endif
24110
24111 static void *task(p)
24112         void *p;
24113 {
24114         return (void *) (p == NULL);
24115 }
24116
24117 int
24118 main ()
24119 {
24120
24121         /* pthread test function */
24122 #ifndef PTHREAD_CREATE_DETACHED
24123 #define PTHREAD_CREATE_DETACHED 1
24124 #endif
24125         pthread_t t;
24126         int status;
24127         int detach = PTHREAD_CREATE_DETACHED;
24128
24129 #if HAVE_PTHREADS > 4
24130         /* Final pthreads */
24131         pthread_attr_t attr;
24132
24133         status = pthread_attr_init(&attr);
24134         if( status ) return status;
24135
24136 #if HAVE_PTHREADS < 7
24137         status = pthread_attr_setdetachstate(&attr, &detach);
24138         if( status < 0 ) status = errno;
24139 #else
24140         status = pthread_attr_setdetachstate(&attr, detach);
24141 #endif
24142         if( status ) return status;
24143         status = pthread_create( &t, &attr, task, NULL );
24144 #if HAVE_PTHREADS < 7
24145         if( status < 0 ) status = errno;
24146 #endif
24147         if( status ) return status;
24148 #else
24149         /* Draft 4 pthreads */
24150         status = pthread_create( &t, pthread_attr_default, task, NULL );
24151         if( status ) return errno;
24152
24153         /* give thread a chance to complete */
24154         /* it should remain joinable and hence detachable */
24155         sleep( 1 );
24156
24157         status = pthread_detach( &t );
24158         if( status ) return errno;
24159 #endif
24160
24161 #ifdef HAVE_LINUX_THREADS
24162         pthread_kill_other_threads_np();
24163 #endif
24164
24165         return 0;
24166
24167   ;
24168   return 0;
24169 }
24170 _ACEOF
24171 rm -f conftest.$ac_objext conftest$ac_exeext
24172 if { (ac_try="$ac_link"
24173 case "(($ac_try" in
24174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24175   *) ac_try_echo=$ac_try;;
24176 esac
24177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24178   (eval "$ac_link") 2>conftest.er1
24179   ac_status=$?
24180   grep -v '^ *+' conftest.er1 >conftest.err
24181   rm -f conftest.er1
24182   cat conftest.err >&5
24183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24184   (exit $ac_status); } && {
24185          test -z "$ac_c_werror_flag" ||
24186          test ! -s conftest.err
24187        } && test -s conftest$ac_exeext &&
24188        $as_test_x conftest$ac_exeext; then
24189   ol_cv_pthread_lib_lpthreads=yes
24190 else
24191   echo "$as_me: failed program was:" >&5
24192 sed 's/^/| /' conftest.$ac_ext >&5
24193
24194         ol_cv_pthread_lib_lpthreads=no
24195 fi
24196
24197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24198       conftest$ac_exeext conftest.$ac_ext
24199 else
24200   cat >conftest.$ac_ext <<_ACEOF
24201 /* confdefs.h.  */
24202 _ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h.  */
24206
24207 /* pthread test headers */
24208 #include <pthread.h>
24209 #if HAVE_PTHREADS < 7
24210 #include <errno.h>
24211 #endif
24212 #ifndef NULL
24213 #define NULL (void*)0
24214 #endif
24215
24216 static void *task(p)
24217         void *p;
24218 {
24219         return (void *) (p == NULL);
24220 }
24221
24222
24223 int main(argc, argv)
24224         int argc;
24225         char **argv;
24226 {
24227
24228         /* pthread test function */
24229 #ifndef PTHREAD_CREATE_DETACHED
24230 #define PTHREAD_CREATE_DETACHED 1
24231 #endif
24232         pthread_t t;
24233         int status;
24234         int detach = PTHREAD_CREATE_DETACHED;
24235
24236 #if HAVE_PTHREADS > 4
24237         /* Final pthreads */
24238         pthread_attr_t attr;
24239
24240         status = pthread_attr_init(&attr);
24241         if( status ) return status;
24242
24243 #if HAVE_PTHREADS < 7
24244         status = pthread_attr_setdetachstate(&attr, &detach);
24245         if( status < 0 ) status = errno;
24246 #else
24247         status = pthread_attr_setdetachstate(&attr, detach);
24248 #endif
24249         if( status ) return status;
24250         status = pthread_create( &t, &attr, task, NULL );
24251 #if HAVE_PTHREADS < 7
24252         if( status < 0 ) status = errno;
24253 #endif
24254         if( status ) return status;
24255 #else
24256         /* Draft 4 pthreads */
24257         status = pthread_create( &t, pthread_attr_default, task, NULL );
24258         if( status ) return errno;
24259
24260         /* give thread a chance to complete */
24261         /* it should remain joinable and hence detachable */
24262         sleep( 1 );
24263
24264         status = pthread_detach( &t );
24265         if( status ) return errno;
24266 #endif
24267
24268 #ifdef HAVE_LINUX_THREADS
24269         pthread_kill_other_threads_np();
24270 #endif
24271
24272         return 0;
24273
24274 }
24275
24276 _ACEOF
24277 rm -f conftest$ac_exeext
24278 if { (ac_try="$ac_link"
24279 case "(($ac_try" in
24280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24281   *) ac_try_echo=$ac_try;;
24282 esac
24283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24284   (eval "$ac_link") 2>&5
24285   ac_status=$?
24286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24288   { (case "(($ac_try" in
24289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24290   *) ac_try_echo=$ac_try;;
24291 esac
24292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24293   (eval "$ac_try") 2>&5
24294   ac_status=$?
24295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24296   (exit $ac_status); }; }; then
24297   ol_cv_pthread_lib_lpthreads=yes
24298 else
24299   echo "$as_me: program exited with status $ac_status" >&5
24300 echo "$as_me: failed program was:" >&5
24301 sed 's/^/| /' conftest.$ac_ext >&5
24302
24303 ( exit $ac_status )
24304 ol_cv_pthread_lib_lpthreads=no
24305 fi
24306 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24307 fi
24308
24309
24310
24311                 # restore the LIBS
24312                 LIBS="$ol_LIBS"
24313
24314 fi
24315 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24316 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24317
24318         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24319                 ol_link_pthreads="-lpthreads"
24320                 ol_link_threads=posix
24321         fi
24322 fi
24323
24324
24325                 if test $ol_link_threads != no ; then
24326                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24327
24328                                                 save_CPPFLAGS="$CPPFLAGS"
24329                         save_LIBS="$LIBS"
24330                         LIBS="$LTHREAD_LIBS $LIBS"
24331
24332
24333
24334
24335 for ac_func in sched_yield pthread_yield thr_yield
24336 do
24337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24341   echo $ECHO_N "(cached) $ECHO_C" >&6
24342 else
24343   cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24351 #define $ac_func innocuous_$ac_func
24352
24353 /* System header to define __stub macros and hopefully few prototypes,
24354     which can conflict with char $ac_func (); below.
24355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24356     <limits.h> exists even on freestanding compilers.  */
24357
24358 #ifdef __STDC__
24359 # include <limits.h>
24360 #else
24361 # include <assert.h>
24362 #endif
24363
24364 #undef $ac_func
24365
24366 /* Override any GCC internal prototype to avoid an error.
24367    Use char because int might match the return type of a GCC
24368    builtin and then its argument prototype would still apply.  */
24369 #ifdef __cplusplus
24370 extern "C"
24371 #endif
24372 char $ac_func ();
24373 /* The GNU C library defines this for functions which it implements
24374     to always fail with ENOSYS.  Some functions are actually named
24375     something starting with __ and the normal name is an alias.  */
24376 #if defined __stub_$ac_func || defined __stub___$ac_func
24377 choke me
24378 #endif
24379
24380 int
24381 main ()
24382 {
24383 return $ac_func ();
24384   ;
24385   return 0;
24386 }
24387 _ACEOF
24388 rm -f conftest.$ac_objext conftest$ac_exeext
24389 if { (ac_try="$ac_link"
24390 case "(($ac_try" in
24391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24392   *) ac_try_echo=$ac_try;;
24393 esac
24394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24395   (eval "$ac_link") 2>conftest.er1
24396   ac_status=$?
24397   grep -v '^ *+' conftest.er1 >conftest.err
24398   rm -f conftest.er1
24399   cat conftest.err >&5
24400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401   (exit $ac_status); } && {
24402          test -z "$ac_c_werror_flag" ||
24403          test ! -s conftest.err
24404        } && test -s conftest$ac_exeext &&
24405        $as_test_x conftest$ac_exeext; then
24406   eval "$as_ac_var=yes"
24407 else
24408   echo "$as_me: failed program was:" >&5
24409 sed 's/^/| /' conftest.$ac_ext >&5
24410
24411         eval "$as_ac_var=no"
24412 fi
24413
24414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24415       conftest$ac_exeext conftest.$ac_ext
24416 fi
24417 ac_res=`eval echo '${'$as_ac_var'}'`
24418                { echo "$as_me:$LINENO: result: $ac_res" >&5
24419 echo "${ECHO_T}$ac_res" >&6; }
24420 if test `eval echo '${'$as_ac_var'}'` = yes; then
24421   cat >>confdefs.h <<_ACEOF
24422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24423 _ACEOF
24424
24425 fi
24426 done
24427
24428
24429                         if test $ac_cv_func_sched_yield = no &&
24430                            test $ac_cv_func_pthread_yield = no &&
24431                            test $ac_cv_func_thr_yield = no ; then
24432                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24433 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24434 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24435   echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437   ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-lrt  $LIBS"
24439 cat >conftest.$ac_ext <<_ACEOF
24440 /* confdefs.h.  */
24441 _ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h.  */
24445
24446 /* Override any GCC internal prototype to avoid an error.
24447    Use char because int might match the return type of a GCC
24448    builtin and then its argument prototype would still apply.  */
24449 #ifdef __cplusplus
24450 extern "C"
24451 #endif
24452 char sched_yield ();
24453 int
24454 main ()
24455 {
24456 return sched_yield ();
24457   ;
24458   return 0;
24459 }
24460 _ACEOF
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (ac_try="$ac_link"
24463 case "(($ac_try" in
24464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24465   *) ac_try_echo=$ac_try;;
24466 esac
24467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24468   (eval "$ac_link") 2>conftest.er1
24469   ac_status=$?
24470   grep -v '^ *+' conftest.er1 >conftest.err
24471   rm -f conftest.er1
24472   cat conftest.err >&5
24473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24474   (exit $ac_status); } && {
24475          test -z "$ac_c_werror_flag" ||
24476          test ! -s conftest.err
24477        } && test -s conftest$ac_exeext &&
24478        $as_test_x conftest$ac_exeext; then
24479   ac_cv_lib_rt_sched_yield=yes
24480 else
24481   echo "$as_me: failed program was:" >&5
24482 sed 's/^/| /' conftest.$ac_ext >&5
24483
24484         ac_cv_lib_rt_sched_yield=no
24485 fi
24486
24487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24488       conftest$ac_exeext conftest.$ac_ext
24489 LIBS=$ac_check_lib_save_LIBS
24490 fi
24491 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24492 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24493 if test $ac_cv_lib_rt_sched_yield = yes; then
24494   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24495
24496 cat >>confdefs.h <<\_ACEOF
24497 #define HAVE_SCHED_YIELD 1
24498 _ACEOF
24499
24500                                         ac_cv_func_sched_yield=yes
24501 else
24502   ac_cv_func_sched_yield=no
24503 fi
24504
24505                         fi
24506                         if test $ac_cv_func_sched_yield = no &&
24507                            test $ac_cv_func_pthread_yield = no &&
24508                            test "$ac_cv_func_thr_yield" = no ; then
24509                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24510 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24511                         fi
24512
24513
24514 for ac_func in pthread_kill
24515 do
24516 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24517 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24518 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24519 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24520   echo $ECHO_N "(cached) $ECHO_C" >&6
24521 else
24522   cat >conftest.$ac_ext <<_ACEOF
24523 /* confdefs.h.  */
24524 _ACEOF
24525 cat confdefs.h >>conftest.$ac_ext
24526 cat >>conftest.$ac_ext <<_ACEOF
24527 /* end confdefs.h.  */
24528 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24529    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24530 #define $ac_func innocuous_$ac_func
24531
24532 /* System header to define __stub macros and hopefully few prototypes,
24533     which can conflict with char $ac_func (); below.
24534     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24535     <limits.h> exists even on freestanding compilers.  */
24536
24537 #ifdef __STDC__
24538 # include <limits.h>
24539 #else
24540 # include <assert.h>
24541 #endif
24542
24543 #undef $ac_func
24544
24545 /* Override any GCC internal prototype to avoid an error.
24546    Use char because int might match the return type of a GCC
24547    builtin and then its argument prototype would still apply.  */
24548 #ifdef __cplusplus
24549 extern "C"
24550 #endif
24551 char $ac_func ();
24552 /* The GNU C library defines this for functions which it implements
24553     to always fail with ENOSYS.  Some functions are actually named
24554     something starting with __ and the normal name is an alias.  */
24555 #if defined __stub_$ac_func || defined __stub___$ac_func
24556 choke me
24557 #endif
24558
24559 int
24560 main ()
24561 {
24562 return $ac_func ();
24563   ;
24564   return 0;
24565 }
24566 _ACEOF
24567 rm -f conftest.$ac_objext conftest$ac_exeext
24568 if { (ac_try="$ac_link"
24569 case "(($ac_try" in
24570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24571   *) ac_try_echo=$ac_try;;
24572 esac
24573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24574   (eval "$ac_link") 2>conftest.er1
24575   ac_status=$?
24576   grep -v '^ *+' conftest.er1 >conftest.err
24577   rm -f conftest.er1
24578   cat conftest.err >&5
24579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24580   (exit $ac_status); } && {
24581          test -z "$ac_c_werror_flag" ||
24582          test ! -s conftest.err
24583        } && test -s conftest$ac_exeext &&
24584        $as_test_x conftest$ac_exeext; then
24585   eval "$as_ac_var=yes"
24586 else
24587   echo "$as_me: failed program was:" >&5
24588 sed 's/^/| /' conftest.$ac_ext >&5
24589
24590         eval "$as_ac_var=no"
24591 fi
24592
24593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24594       conftest$ac_exeext conftest.$ac_ext
24595 fi
24596 ac_res=`eval echo '${'$as_ac_var'}'`
24597                { echo "$as_me:$LINENO: result: $ac_res" >&5
24598 echo "${ECHO_T}$ac_res" >&6; }
24599 if test `eval echo '${'$as_ac_var'}'` = yes; then
24600   cat >>confdefs.h <<_ACEOF
24601 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24602 _ACEOF
24603
24604 fi
24605 done
24606
24607
24608                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
24609 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
24610 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
24611   echo $ECHO_N "(cached) $ECHO_C" >&6
24612 else
24613
24614                                                                 cat >conftest.$ac_ext <<_ACEOF
24615 /* confdefs.h.  */
24616 _ACEOF
24617 cat confdefs.h >>conftest.$ac_ext
24618 cat >>conftest.$ac_ext <<_ACEOF
24619 /* end confdefs.h.  */
24620
24621 #include <pthread.h>
24622 pthread_rwlock_t rwlock;
24623
24624 int
24625 main ()
24626 {
24627 pthread_rwlock_destroy(&rwlock);
24628   ;
24629   return 0;
24630 }
24631 _ACEOF
24632 rm -f conftest.$ac_objext conftest$ac_exeext
24633 if { (ac_try="$ac_link"
24634 case "(($ac_try" in
24635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24636   *) ac_try_echo=$ac_try;;
24637 esac
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639   (eval "$ac_link") 2>conftest.er1
24640   ac_status=$?
24641   grep -v '^ *+' conftest.er1 >conftest.err
24642   rm -f conftest.er1
24643   cat conftest.err >&5
24644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645   (exit $ac_status); } && {
24646          test -z "$ac_c_werror_flag" ||
24647          test ! -s conftest.err
24648        } && test -s conftest$ac_exeext &&
24649        $as_test_x conftest$ac_exeext; then
24650   ol_cv_func_pthread_rwlock_destroy=yes
24651 else
24652   echo "$as_me: failed program was:" >&5
24653 sed 's/^/| /' conftest.$ac_ext >&5
24654
24655         ol_cv_func_pthread_rwlock_destroy=no
24656 fi
24657
24658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24659       conftest$ac_exeext conftest.$ac_ext
24660
24661 fi
24662 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
24663 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
24664                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
24665
24666 cat >>confdefs.h <<\_ACEOF
24667 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
24668 _ACEOF
24669
24670                         fi
24671
24672                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
24673 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
24674 if test "${ol_cv_func_pthread_detach+set}" = set; then
24675   echo $ECHO_N "(cached) $ECHO_C" >&6
24676 else
24677
24678                                                                 cat >conftest.$ac_ext <<_ACEOF
24679 /* confdefs.h.  */
24680 _ACEOF
24681 cat confdefs.h >>conftest.$ac_ext
24682 cat >>conftest.$ac_ext <<_ACEOF
24683 /* end confdefs.h.  */
24684
24685 #include <pthread.h>
24686 #ifndef NULL
24687 #define NULL (void*)0
24688 #endif
24689
24690 int
24691 main ()
24692 {
24693 pthread_detach(NULL);
24694   ;
24695   return 0;
24696 }
24697 _ACEOF
24698 rm -f conftest.$ac_objext conftest$ac_exeext
24699 if { (ac_try="$ac_link"
24700 case "(($ac_try" in
24701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24702   *) ac_try_echo=$ac_try;;
24703 esac
24704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24705   (eval "$ac_link") 2>conftest.er1
24706   ac_status=$?
24707   grep -v '^ *+' conftest.er1 >conftest.err
24708   rm -f conftest.er1
24709   cat conftest.err >&5
24710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711   (exit $ac_status); } && {
24712          test -z "$ac_c_werror_flag" ||
24713          test ! -s conftest.err
24714        } && test -s conftest$ac_exeext &&
24715        $as_test_x conftest$ac_exeext; then
24716   ol_cv_func_pthread_detach=yes
24717 else
24718   echo "$as_me: failed program was:" >&5
24719 sed 's/^/| /' conftest.$ac_ext >&5
24720
24721         ol_cv_func_pthread_detach=no
24722 fi
24723
24724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24725       conftest$ac_exeext conftest.$ac_ext
24726
24727 fi
24728 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
24729 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
24730
24731                         if test $ol_cv_func_pthread_detach = no ; then
24732                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
24733 echo "$as_me: error: could not locate pthread_detach()" >&2;}
24734    { (exit 1); exit 1; }; }
24735                         fi
24736
24737
24738 cat >>confdefs.h <<\_ACEOF
24739 #define HAVE_PTHREAD_DETACH 1
24740 _ACEOF
24741
24742
24743
24744
24745
24746
24747 for ac_func in \
24748                                 pthread_setconcurrency \
24749                                 pthread_getconcurrency \
24750                                 thr_setconcurrency \
24751                                 thr_getconcurrency \
24752
24753 do
24754 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24755 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24756 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24757 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24758   echo $ECHO_N "(cached) $ECHO_C" >&6
24759 else
24760   cat >conftest.$ac_ext <<_ACEOF
24761 /* confdefs.h.  */
24762 _ACEOF
24763 cat confdefs.h >>conftest.$ac_ext
24764 cat >>conftest.$ac_ext <<_ACEOF
24765 /* end confdefs.h.  */
24766 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24767    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24768 #define $ac_func innocuous_$ac_func
24769
24770 /* System header to define __stub macros and hopefully few prototypes,
24771     which can conflict with char $ac_func (); below.
24772     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24773     <limits.h> exists even on freestanding compilers.  */
24774
24775 #ifdef __STDC__
24776 # include <limits.h>
24777 #else
24778 # include <assert.h>
24779 #endif
24780
24781 #undef $ac_func
24782
24783 /* Override any GCC internal prototype to avoid an error.
24784    Use char because int might match the return type of a GCC
24785    builtin and then its argument prototype would still apply.  */
24786 #ifdef __cplusplus
24787 extern "C"
24788 #endif
24789 char $ac_func ();
24790 /* The GNU C library defines this for functions which it implements
24791     to always fail with ENOSYS.  Some functions are actually named
24792     something starting with __ and the normal name is an alias.  */
24793 #if defined __stub_$ac_func || defined __stub___$ac_func
24794 choke me
24795 #endif
24796
24797 int
24798 main ()
24799 {
24800 return $ac_func ();
24801   ;
24802   return 0;
24803 }
24804 _ACEOF
24805 rm -f conftest.$ac_objext conftest$ac_exeext
24806 if { (ac_try="$ac_link"
24807 case "(($ac_try" in
24808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24809   *) ac_try_echo=$ac_try;;
24810 esac
24811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24812   (eval "$ac_link") 2>conftest.er1
24813   ac_status=$?
24814   grep -v '^ *+' conftest.er1 >conftest.err
24815   rm -f conftest.er1
24816   cat conftest.err >&5
24817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24818   (exit $ac_status); } && {
24819          test -z "$ac_c_werror_flag" ||
24820          test ! -s conftest.err
24821        } && test -s conftest$ac_exeext &&
24822        $as_test_x conftest$ac_exeext; then
24823   eval "$as_ac_var=yes"
24824 else
24825   echo "$as_me: failed program was:" >&5
24826 sed 's/^/| /' conftest.$ac_ext >&5
24827
24828         eval "$as_ac_var=no"
24829 fi
24830
24831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24832       conftest$ac_exeext conftest.$ac_ext
24833 fi
24834 ac_res=`eval echo '${'$as_ac_var'}'`
24835                { echo "$as_me:$LINENO: result: $ac_res" >&5
24836 echo "${ECHO_T}$ac_res" >&6; }
24837 if test `eval echo '${'$as_ac_var'}'` = yes; then
24838   cat >>confdefs.h <<_ACEOF
24839 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24840 _ACEOF
24841
24842 fi
24843 done
24844
24845
24846
24847
24848 for ac_func in pthread_kill_other_threads_np
24849 do
24850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24854   echo $ECHO_N "(cached) $ECHO_C" >&6
24855 else
24856   cat >conftest.$ac_ext <<_ACEOF
24857 /* confdefs.h.  */
24858 _ACEOF
24859 cat confdefs.h >>conftest.$ac_ext
24860 cat >>conftest.$ac_ext <<_ACEOF
24861 /* end confdefs.h.  */
24862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24864 #define $ac_func innocuous_$ac_func
24865
24866 /* System header to define __stub macros and hopefully few prototypes,
24867     which can conflict with char $ac_func (); below.
24868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24869     <limits.h> exists even on freestanding compilers.  */
24870
24871 #ifdef __STDC__
24872 # include <limits.h>
24873 #else
24874 # include <assert.h>
24875 #endif
24876
24877 #undef $ac_func
24878
24879 /* Override any GCC internal prototype to avoid an error.
24880    Use char because int might match the return type of a GCC
24881    builtin and then its argument prototype would still apply.  */
24882 #ifdef __cplusplus
24883 extern "C"
24884 #endif
24885 char $ac_func ();
24886 /* The GNU C library defines this for functions which it implements
24887     to always fail with ENOSYS.  Some functions are actually named
24888     something starting with __ and the normal name is an alias.  */
24889 #if defined __stub_$ac_func || defined __stub___$ac_func
24890 choke me
24891 #endif
24892
24893 int
24894 main ()
24895 {
24896 return $ac_func ();
24897   ;
24898   return 0;
24899 }
24900 _ACEOF
24901 rm -f conftest.$ac_objext conftest$ac_exeext
24902 if { (ac_try="$ac_link"
24903 case "(($ac_try" in
24904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24905   *) ac_try_echo=$ac_try;;
24906 esac
24907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24908   (eval "$ac_link") 2>conftest.er1
24909   ac_status=$?
24910   grep -v '^ *+' conftest.er1 >conftest.err
24911   rm -f conftest.er1
24912   cat conftest.err >&5
24913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914   (exit $ac_status); } && {
24915          test -z "$ac_c_werror_flag" ||
24916          test ! -s conftest.err
24917        } && test -s conftest$ac_exeext &&
24918        $as_test_x conftest$ac_exeext; then
24919   eval "$as_ac_var=yes"
24920 else
24921   echo "$as_me: failed program was:" >&5
24922 sed 's/^/| /' conftest.$ac_ext >&5
24923
24924         eval "$as_ac_var=no"
24925 fi
24926
24927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24928       conftest$ac_exeext conftest.$ac_ext
24929 fi
24930 ac_res=`eval echo '${'$as_ac_var'}'`
24931                { echo "$as_me:$LINENO: result: $ac_res" >&5
24932 echo "${ECHO_T}$ac_res" >&6; }
24933 if test `eval echo '${'$as_ac_var'}'` = yes; then
24934   cat >>confdefs.h <<_ACEOF
24935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24936 _ACEOF
24937
24938 fi
24939 done
24940
24941         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
24942 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
24943 if test "${ol_cv_sys_linux_threads+set}" = set; then
24944   echo $ECHO_N "(cached) $ECHO_C" >&6
24945 else
24946   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
24947 fi
24948 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
24949 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
24950
24951
24952
24953
24954         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
24955 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
24956 if test "${ol_cv_linux_threads+set}" = set; then
24957   echo $ECHO_N "(cached) $ECHO_C" >&6
24958 else
24959
24960                 if test $ol_cv_header_linux_threads = yes &&
24961                    test $ol_cv_sys_linux_threads = yes; then
24962                         ol_cv_linux_threads=yes
24963                 elif test $ol_cv_header_linux_threads = no &&
24964                      test $ol_cv_sys_linux_threads = no; then
24965                         ol_cv_linux_threads=no
24966                 else
24967                         ol_cv_linux_threads=error
24968                 fi
24969
24970 fi
24971 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
24972 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
24973
24974
24975                         if test $ol_cv_linux_threads = error; then
24976                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
24977 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
24978    { (exit 1); exit 1; }; };
24979                         fi
24980
24981                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
24982 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
24983 if test "${ol_cv_pthread_create_works+set}" = set; then
24984   echo $ECHO_N "(cached) $ECHO_C" >&6
24985 else
24986
24987                         if test "$cross_compiling" = yes; then
24988                                 ol_cv_pthread_create_works=yes
24989 else
24990   cat >conftest.$ac_ext <<_ACEOF
24991 /* confdefs.h.  */
24992 _ACEOF
24993 cat confdefs.h >>conftest.$ac_ext
24994 cat >>conftest.$ac_ext <<_ACEOF
24995 /* end confdefs.h.  */
24996
24997 /* pthread test headers */
24998 #include <pthread.h>
24999 #if HAVE_PTHREADS < 7
25000 #include <errno.h>
25001 #endif
25002 #ifndef NULL
25003 #define NULL (void*)0
25004 #endif
25005
25006 static void *task(p)
25007         void *p;
25008 {
25009         return (void *) (p == NULL);
25010 }
25011
25012
25013 int main(argc, argv)
25014         int argc;
25015         char **argv;
25016 {
25017
25018         /* pthread test function */
25019 #ifndef PTHREAD_CREATE_DETACHED
25020 #define PTHREAD_CREATE_DETACHED 1
25021 #endif
25022         pthread_t t;
25023         int status;
25024         int detach = PTHREAD_CREATE_DETACHED;
25025
25026 #if HAVE_PTHREADS > 4
25027         /* Final pthreads */
25028         pthread_attr_t attr;
25029
25030         status = pthread_attr_init(&attr);
25031         if( status ) return status;
25032
25033 #if HAVE_PTHREADS < 7
25034         status = pthread_attr_setdetachstate(&attr, &detach);
25035         if( status < 0 ) status = errno;
25036 #else
25037         status = pthread_attr_setdetachstate(&attr, detach);
25038 #endif
25039         if( status ) return status;
25040         status = pthread_create( &t, &attr, task, NULL );
25041 #if HAVE_PTHREADS < 7
25042         if( status < 0 ) status = errno;
25043 #endif
25044         if( status ) return status;
25045 #else
25046         /* Draft 4 pthreads */
25047         status = pthread_create( &t, pthread_attr_default, task, NULL );
25048         if( status ) return errno;
25049
25050         /* give thread a chance to complete */
25051         /* it should remain joinable and hence detachable */
25052         sleep( 1 );
25053
25054         status = pthread_detach( &t );
25055         if( status ) return errno;
25056 #endif
25057
25058 #ifdef HAVE_LINUX_THREADS
25059         pthread_kill_other_threads_np();
25060 #endif
25061
25062         return 0;
25063
25064 }
25065
25066 _ACEOF
25067 rm -f conftest$ac_exeext
25068 if { (ac_try="$ac_link"
25069 case "(($ac_try" in
25070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25071   *) ac_try_echo=$ac_try;;
25072 esac
25073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25074   (eval "$ac_link") 2>&5
25075   ac_status=$?
25076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25077   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25078   { (case "(($ac_try" in
25079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25080   *) ac_try_echo=$ac_try;;
25081 esac
25082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25083   (eval "$ac_try") 2>&5
25084   ac_status=$?
25085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25086   (exit $ac_status); }; }; then
25087   ol_cv_pthread_create_works=yes
25088 else
25089   echo "$as_me: program exited with status $ac_status" >&5
25090 echo "$as_me: failed program was:" >&5
25091 sed 's/^/| /' conftest.$ac_ext >&5
25092
25093 ( exit $ac_status )
25094 ol_cv_pthread_create_works=no
25095 fi
25096 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25097 fi
25098
25099
25100 fi
25101 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25102 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25103
25104                         if test $ol_cv_pthread_create_works = no ; then
25105                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25106 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25107    { (exit 1); exit 1; }; }
25108                         fi
25109
25110                         ol_replace_broken_yield=no
25111
25112                         if test $ol_replace_broken_yield = yes ; then
25113
25114 cat >>confdefs.h <<\_ACEOF
25115 #define REPLACE_BROKEN_YIELD 1
25116 _ACEOF
25117
25118                         fi
25119
25120                                                 if test $ol_with_yielding_select = auto ; then
25121                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25122 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25123 if test "${ol_cv_pthread_select_yields+set}" = set; then
25124   echo $ECHO_N "(cached) $ECHO_C" >&6
25125 else
25126
25127                                 if test "$cross_compiling" = yes; then
25128   ol_cv_pthread_select_yields=cross
25129 else
25130   cat >conftest.$ac_ext <<_ACEOF
25131 /* confdefs.h.  */
25132 _ACEOF
25133 cat confdefs.h >>conftest.$ac_ext
25134 cat >>conftest.$ac_ext <<_ACEOF
25135 /* end confdefs.h.  */
25136
25137 #include <sys/types.h>
25138 #include <sys/time.h>
25139 #include <unistd.h>
25140 #include <pthread.h>
25141 #ifndef NULL
25142 #define NULL (void*) 0
25143 #endif
25144
25145 static int fildes[2];
25146
25147 static void *task(p)
25148         void *p;
25149 {
25150         int i;
25151         struct timeval tv;
25152
25153         fd_set rfds;
25154
25155         tv.tv_sec=10;
25156         tv.tv_usec=0;
25157
25158         FD_ZERO(&rfds);
25159         FD_SET(fildes[0], &rfds);
25160
25161         /* we're not interested in any fds */
25162         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25163
25164         if(i < 0) {
25165                 perror("select");
25166                 exit(10);
25167         }
25168
25169         exit(0); /* if we exit here, the select blocked the whole process */
25170 }
25171
25172 int main(argc, argv)
25173         int argc;
25174         char **argv;
25175 {
25176         pthread_t t;
25177
25178         /* create a pipe to select */
25179         if(pipe(&fildes[0])) {
25180                 perror("select");
25181                 exit(1);
25182         }
25183
25184 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25185         (void) pthread_setconcurrency(2);
25186 #else
25187 #ifdef HAVE_THR_SETCONCURRENCY
25188         /* Set Solaris LWP concurrency to 2 */
25189         thr_setconcurrency(2);
25190 #endif
25191 #endif
25192
25193 #if HAVE_PTHREADS < 6
25194         pthread_create(&t, pthread_attr_default, task, NULL);
25195 #else
25196         pthread_create(&t, NULL, task, NULL);
25197 #endif
25198
25199         /* make sure task runs first */
25200 #ifdef HAVE_THR_YIELD
25201         thr_yield();
25202 #elif defined( HAVE_SCHED_YIELD )
25203         sched_yield();
25204 #elif defined( HAVE_PTHREAD_YIELD )
25205         pthread_yield();
25206 #endif
25207
25208         exit(2);
25209 }
25210 _ACEOF
25211 rm -f conftest$ac_exeext
25212 if { (ac_try="$ac_link"
25213 case "(($ac_try" in
25214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25215   *) ac_try_echo=$ac_try;;
25216 esac
25217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25218   (eval "$ac_link") 2>&5
25219   ac_status=$?
25220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25222   { (case "(($ac_try" in
25223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25224   *) ac_try_echo=$ac_try;;
25225 esac
25226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25227   (eval "$ac_try") 2>&5
25228   ac_status=$?
25229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25230   (exit $ac_status); }; }; then
25231   ol_cv_pthread_select_yields=no
25232 else
25233   echo "$as_me: program exited with status $ac_status" >&5
25234 echo "$as_me: failed program was:" >&5
25235 sed 's/^/| /' conftest.$ac_ext >&5
25236
25237 ( exit $ac_status )
25238 ol_cv_pthread_select_yields=yes
25239 fi
25240 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25241 fi
25242
25243
25244 fi
25245 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25246 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25247
25248                                 if test $ol_cv_pthread_select_yields = cross ; then
25249                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25250 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25251    { (exit 1); exit 1; }; }
25252                                 fi
25253
25254                                 if test $ol_cv_pthread_select_yields = yes ; then
25255                                         ol_with_yielding_select=yes
25256                                 fi
25257                         fi
25258
25259                                                 CPPFLAGS="$save_CPPFLAGS"
25260                         LIBS="$save_LIBS"
25261                 else
25262                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25263 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25264    { (exit 1); exit 1; }; }
25265                 fi
25266         fi
25267
25268         if test $ol_with_threads = posix ; then
25269                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25270 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25271    { (exit 1); exit 1; }; }
25272         fi
25273         ;;
25274 esac
25275
25276 case $ol_with_threads in auto | yes | mach)
25277
25278
25279
25280 for ac_header in mach/cthreads.h cthreads.h
25281 do
25282 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25284   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25285 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25287   echo $ECHO_N "(cached) $ECHO_C" >&6
25288 fi
25289 ac_res=`eval echo '${'$as_ac_Header'}'`
25290                { echo "$as_me:$LINENO: result: $ac_res" >&5
25291 echo "${ECHO_T}$ac_res" >&6; }
25292 else
25293   # Is the header compilable?
25294 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25295 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302 $ac_includes_default
25303 #include <$ac_header>
25304 _ACEOF
25305 rm -f conftest.$ac_objext
25306 if { (ac_try="$ac_compile"
25307 case "(($ac_try" in
25308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309   *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312   (eval "$ac_compile") 2>conftest.er1
25313   ac_status=$?
25314   grep -v '^ *+' conftest.er1 >conftest.err
25315   rm -f conftest.er1
25316   cat conftest.err >&5
25317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25318   (exit $ac_status); } && {
25319          test -z "$ac_c_werror_flag" ||
25320          test ! -s conftest.err
25321        } && test -s conftest.$ac_objext; then
25322   ac_header_compiler=yes
25323 else
25324   echo "$as_me: failed program was:" >&5
25325 sed 's/^/| /' conftest.$ac_ext >&5
25326
25327         ac_header_compiler=no
25328 fi
25329
25330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25332 echo "${ECHO_T}$ac_header_compiler" >&6; }
25333
25334 # Is the header present?
25335 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25336 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25337 cat >conftest.$ac_ext <<_ACEOF
25338 /* confdefs.h.  */
25339 _ACEOF
25340 cat confdefs.h >>conftest.$ac_ext
25341 cat >>conftest.$ac_ext <<_ACEOF
25342 /* end confdefs.h.  */
25343 #include <$ac_header>
25344 _ACEOF
25345 if { (ac_try="$ac_cpp conftest.$ac_ext"
25346 case "(($ac_try" in
25347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25348   *) ac_try_echo=$ac_try;;
25349 esac
25350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25351   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25352   ac_status=$?
25353   grep -v '^ *+' conftest.er1 >conftest.err
25354   rm -f conftest.er1
25355   cat conftest.err >&5
25356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25357   (exit $ac_status); } >/dev/null && {
25358          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25359          test ! -s conftest.err
25360        }; then
25361   ac_header_preproc=yes
25362 else
25363   echo "$as_me: failed program was:" >&5
25364 sed 's/^/| /' conftest.$ac_ext >&5
25365
25366   ac_header_preproc=no
25367 fi
25368
25369 rm -f conftest.err conftest.$ac_ext
25370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25371 echo "${ECHO_T}$ac_header_preproc" >&6; }
25372
25373 # So?  What about this header?
25374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25375   yes:no: )
25376     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25378     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25380     ac_header_preproc=yes
25381     ;;
25382   no:yes:* )
25383     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25385     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25386 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25387     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25389     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25390 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25391     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25393     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25395     ( cat <<\_ASBOX
25396 ## --------------------------------------------- ##
25397 ## Report this to <http://www.openldap.org/its/> ##
25398 ## --------------------------------------------- ##
25399 _ASBOX
25400      ) | sed "s/^/$as_me: WARNING:     /" >&2
25401     ;;
25402 esac
25403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25406   echo $ECHO_N "(cached) $ECHO_C" >&6
25407 else
25408   eval "$as_ac_Header=\$ac_header_preproc"
25409 fi
25410 ac_res=`eval echo '${'$as_ac_Header'}'`
25411                { echo "$as_me:$LINENO: result: $ac_res" >&5
25412 echo "${ECHO_T}$ac_res" >&6; }
25413
25414 fi
25415 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25416   cat >>confdefs.h <<_ACEOF
25417 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25418 _ACEOF
25419
25420 fi
25421
25422 done
25423
25424         if test $ac_cv_header_mach_cthreads_h = yes ; then
25425                 ol_with_threads=found
25426
25427                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25428 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25429 if test "${ac_cv_func_cthread_fork+set}" = set; then
25430   echo $ECHO_N "(cached) $ECHO_C" >&6
25431 else
25432   cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h.  */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h.  */
25438 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25439    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25440 #define cthread_fork innocuous_cthread_fork
25441
25442 /* System header to define __stub macros and hopefully few prototypes,
25443     which can conflict with char cthread_fork (); below.
25444     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25445     <limits.h> exists even on freestanding compilers.  */
25446
25447 #ifdef __STDC__
25448 # include <limits.h>
25449 #else
25450 # include <assert.h>
25451 #endif
25452
25453 #undef cthread_fork
25454
25455 /* Override any GCC internal prototype to avoid an error.
25456    Use char because int might match the return type of a GCC
25457    builtin and then its argument prototype would still apply.  */
25458 #ifdef __cplusplus
25459 extern "C"
25460 #endif
25461 char cthread_fork ();
25462 /* The GNU C library defines this for functions which it implements
25463     to always fail with ENOSYS.  Some functions are actually named
25464     something starting with __ and the normal name is an alias.  */
25465 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25466 choke me
25467 #endif
25468
25469 int
25470 main ()
25471 {
25472 return cthread_fork ();
25473   ;
25474   return 0;
25475 }
25476 _ACEOF
25477 rm -f conftest.$ac_objext conftest$ac_exeext
25478 if { (ac_try="$ac_link"
25479 case "(($ac_try" in
25480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25481   *) ac_try_echo=$ac_try;;
25482 esac
25483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25484   (eval "$ac_link") 2>conftest.er1
25485   ac_status=$?
25486   grep -v '^ *+' conftest.er1 >conftest.err
25487   rm -f conftest.er1
25488   cat conftest.err >&5
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && {
25491          test -z "$ac_c_werror_flag" ||
25492          test ! -s conftest.err
25493        } && test -s conftest$ac_exeext &&
25494        $as_test_x conftest$ac_exeext; then
25495   ac_cv_func_cthread_fork=yes
25496 else
25497   echo "$as_me: failed program was:" >&5
25498 sed 's/^/| /' conftest.$ac_ext >&5
25499
25500         ac_cv_func_cthread_fork=no
25501 fi
25502
25503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25504       conftest$ac_exeext conftest.$ac_ext
25505 fi
25506 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25507 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25508 if test $ac_cv_func_cthread_fork = yes; then
25509   ol_link_threads=yes
25510 fi
25511
25512
25513                 if test $ol_link_threads = no ; then
25514                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25515 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25516 if test "${ol_cv_cthread_all_load+set}" = set; then
25517   echo $ECHO_N "(cached) $ECHO_C" >&6
25518 else
25519
25520                                                                 save_LIBS="$LIBS"
25521                                 LIBS="-all_load $LIBS"
25522                                 cat >conftest.$ac_ext <<_ACEOF
25523 /* confdefs.h.  */
25524 _ACEOF
25525 cat confdefs.h >>conftest.$ac_ext
25526 cat >>conftest.$ac_ext <<_ACEOF
25527 /* end confdefs.h.  */
25528 #include <mach/cthreads.h>
25529 int
25530 main ()
25531 {
25532
25533                                         cthread_fork((void *)0, (void *)0);
25534
25535   ;
25536   return 0;
25537 }
25538 _ACEOF
25539 rm -f conftest.$ac_objext conftest$ac_exeext
25540 if { (ac_try="$ac_link"
25541 case "(($ac_try" in
25542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25543   *) ac_try_echo=$ac_try;;
25544 esac
25545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25546   (eval "$ac_link") 2>conftest.er1
25547   ac_status=$?
25548   grep -v '^ *+' conftest.er1 >conftest.err
25549   rm -f conftest.er1
25550   cat conftest.err >&5
25551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552   (exit $ac_status); } && {
25553          test -z "$ac_c_werror_flag" ||
25554          test ! -s conftest.err
25555        } && test -s conftest$ac_exeext &&
25556        $as_test_x conftest$ac_exeext; then
25557   ol_cv_cthread_all_load=yes
25558 else
25559   echo "$as_me: failed program was:" >&5
25560 sed 's/^/| /' conftest.$ac_ext >&5
25561
25562         ol_cv_cthread_all_load=no
25563 fi
25564
25565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25566       conftest$ac_exeext conftest.$ac_ext
25567                                                                 LIBS="$save_LIBS"
25568
25569 fi
25570 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25571 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25572
25573                         if test $ol_cv_cthread_all_load = yes ; then
25574                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25575                                 ol_link_threads=mach
25576                                 ol_with_threads=found
25577                         fi
25578                 fi
25579
25580         elif test $ac_cv_header_cthreads_h = yes ; then
25581
25582                 ol_with_threads=found
25583
25584                                 save_LIBS="$LIBS"
25585                 LIBS="$LIBS -lthreads"
25586                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25587 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25588 if test "${ac_cv_func_cthread_fork+set}" = set; then
25589   echo $ECHO_N "(cached) $ECHO_C" >&6
25590 else
25591   cat >conftest.$ac_ext <<_ACEOF
25592 /* confdefs.h.  */
25593 _ACEOF
25594 cat confdefs.h >>conftest.$ac_ext
25595 cat >>conftest.$ac_ext <<_ACEOF
25596 /* end confdefs.h.  */
25597 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25599 #define cthread_fork innocuous_cthread_fork
25600
25601 /* System header to define __stub macros and hopefully few prototypes,
25602     which can conflict with char cthread_fork (); below.
25603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25604     <limits.h> exists even on freestanding compilers.  */
25605
25606 #ifdef __STDC__
25607 # include <limits.h>
25608 #else
25609 # include <assert.h>
25610 #endif
25611
25612 #undef cthread_fork
25613
25614 /* Override any GCC internal prototype to avoid an error.
25615    Use char because int might match the return type of a GCC
25616    builtin and then its argument prototype would still apply.  */
25617 #ifdef __cplusplus
25618 extern "C"
25619 #endif
25620 char cthread_fork ();
25621 /* The GNU C library defines this for functions which it implements
25622     to always fail with ENOSYS.  Some functions are actually named
25623     something starting with __ and the normal name is an alias.  */
25624 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25625 choke me
25626 #endif
25627
25628 int
25629 main ()
25630 {
25631 return cthread_fork ();
25632   ;
25633   return 0;
25634 }
25635 _ACEOF
25636 rm -f conftest.$ac_objext conftest$ac_exeext
25637 if { (ac_try="$ac_link"
25638 case "(($ac_try" in
25639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640   *) ac_try_echo=$ac_try;;
25641 esac
25642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25643   (eval "$ac_link") 2>conftest.er1
25644   ac_status=$?
25645   grep -v '^ *+' conftest.er1 >conftest.err
25646   rm -f conftest.er1
25647   cat conftest.err >&5
25648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25649   (exit $ac_status); } && {
25650          test -z "$ac_c_werror_flag" ||
25651          test ! -s conftest.err
25652        } && test -s conftest$ac_exeext &&
25653        $as_test_x conftest$ac_exeext; then
25654   ac_cv_func_cthread_fork=yes
25655 else
25656   echo "$as_me: failed program was:" >&5
25657 sed 's/^/| /' conftest.$ac_ext >&5
25658
25659         ac_cv_func_cthread_fork=no
25660 fi
25661
25662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25663       conftest$ac_exeext conftest.$ac_ext
25664 fi
25665 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25666 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25667 if test $ac_cv_func_cthread_fork = yes; then
25668   ol_link_threads=yes
25669 fi
25670
25671                 LIBS="$save_LIBS"
25672
25673                 if test $ol_link_threads = yes ; then
25674                         LTHREAD_LIBS="-lthreads"
25675                         ol_link_threads=mach
25676                         ol_with_threads=found
25677                 else
25678                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25679 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25680    { (exit 1); exit 1; }; }
25681                 fi
25682
25683         elif test $ol_with_threads = mach ; then
25684                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
25685 echo "$as_me: error: could not locate Mach CThreads" >&2;}
25686    { (exit 1); exit 1; }; }
25687         fi
25688
25689         if test $ol_link_threads = mach ; then
25690
25691 cat >>confdefs.h <<\_ACEOF
25692 #define HAVE_MACH_CTHREADS 1
25693 _ACEOF
25694
25695         elif test $ol_with_threads = found ; then
25696                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
25697 echo "$as_me: error: could not link with Mach CThreads" >&2;}
25698    { (exit 1); exit 1; }; }
25699         fi
25700         ;;
25701 esac
25702
25703 case $ol_with_threads in auto | yes | pth)
25704
25705
25706 for ac_header in pth.h
25707 do
25708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25710   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25713   echo $ECHO_N "(cached) $ECHO_C" >&6
25714 fi
25715 ac_res=`eval echo '${'$as_ac_Header'}'`
25716                { echo "$as_me:$LINENO: result: $ac_res" >&5
25717 echo "${ECHO_T}$ac_res" >&6; }
25718 else
25719   # Is the header compilable?
25720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25722 cat >conftest.$ac_ext <<_ACEOF
25723 /* confdefs.h.  */
25724 _ACEOF
25725 cat confdefs.h >>conftest.$ac_ext
25726 cat >>conftest.$ac_ext <<_ACEOF
25727 /* end confdefs.h.  */
25728 $ac_includes_default
25729 #include <$ac_header>
25730 _ACEOF
25731 rm -f conftest.$ac_objext
25732 if { (ac_try="$ac_compile"
25733 case "(($ac_try" in
25734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25735   *) ac_try_echo=$ac_try;;
25736 esac
25737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25738   (eval "$ac_compile") 2>conftest.er1
25739   ac_status=$?
25740   grep -v '^ *+' conftest.er1 >conftest.err
25741   rm -f conftest.er1
25742   cat conftest.err >&5
25743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25744   (exit $ac_status); } && {
25745          test -z "$ac_c_werror_flag" ||
25746          test ! -s conftest.err
25747        } && test -s conftest.$ac_objext; then
25748   ac_header_compiler=yes
25749 else
25750   echo "$as_me: failed program was:" >&5
25751 sed 's/^/| /' conftest.$ac_ext >&5
25752
25753         ac_header_compiler=no
25754 fi
25755
25756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25758 echo "${ECHO_T}$ac_header_compiler" >&6; }
25759
25760 # Is the header present?
25761 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25763 cat >conftest.$ac_ext <<_ACEOF
25764 /* confdefs.h.  */
25765 _ACEOF
25766 cat confdefs.h >>conftest.$ac_ext
25767 cat >>conftest.$ac_ext <<_ACEOF
25768 /* end confdefs.h.  */
25769 #include <$ac_header>
25770 _ACEOF
25771 if { (ac_try="$ac_cpp conftest.$ac_ext"
25772 case "(($ac_try" in
25773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25774   *) ac_try_echo=$ac_try;;
25775 esac
25776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25777   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25778   ac_status=$?
25779   grep -v '^ *+' conftest.er1 >conftest.err
25780   rm -f conftest.er1
25781   cat conftest.err >&5
25782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25783   (exit $ac_status); } >/dev/null && {
25784          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25785          test ! -s conftest.err
25786        }; then
25787   ac_header_preproc=yes
25788 else
25789   echo "$as_me: failed program was:" >&5
25790 sed 's/^/| /' conftest.$ac_ext >&5
25791
25792   ac_header_preproc=no
25793 fi
25794
25795 rm -f conftest.err conftest.$ac_ext
25796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25797 echo "${ECHO_T}$ac_header_preproc" >&6; }
25798
25799 # So?  What about this header?
25800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25801   yes:no: )
25802     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25803 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25805 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25806     ac_header_preproc=yes
25807     ;;
25808   no:yes:* )
25809     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25810 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25811     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25812 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25813     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25814 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25815     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25816 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25818 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25819     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25820 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25821     ( cat <<\_ASBOX
25822 ## --------------------------------------------- ##
25823 ## Report this to <http://www.openldap.org/its/> ##
25824 ## --------------------------------------------- ##
25825 _ASBOX
25826      ) | sed "s/^/$as_me: WARNING:     /" >&2
25827     ;;
25828 esac
25829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25832   echo $ECHO_N "(cached) $ECHO_C" >&6
25833 else
25834   eval "$as_ac_Header=\$ac_header_preproc"
25835 fi
25836 ac_res=`eval echo '${'$as_ac_Header'}'`
25837                { echo "$as_me:$LINENO: result: $ac_res" >&5
25838 echo "${ECHO_T}$ac_res" >&6; }
25839
25840 fi
25841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25842   cat >>confdefs.h <<_ACEOF
25843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25844 _ACEOF
25845
25846 fi
25847
25848 done
25849
25850
25851         if test $ac_cv_header_pth_h = yes ; then
25852                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
25853 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
25854 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
25855   echo $ECHO_N "(cached) $ECHO_C" >&6
25856 else
25857   ac_check_lib_save_LIBS=$LIBS
25858 LIBS="-lpth  $LIBS"
25859 cat >conftest.$ac_ext <<_ACEOF
25860 /* confdefs.h.  */
25861 _ACEOF
25862 cat confdefs.h >>conftest.$ac_ext
25863 cat >>conftest.$ac_ext <<_ACEOF
25864 /* end confdefs.h.  */
25865
25866 /* Override any GCC internal prototype to avoid an error.
25867    Use char because int might match the return type of a GCC
25868    builtin and then its argument prototype would still apply.  */
25869 #ifdef __cplusplus
25870 extern "C"
25871 #endif
25872 char pth_version ();
25873 int
25874 main ()
25875 {
25876 return pth_version ();
25877   ;
25878   return 0;
25879 }
25880 _ACEOF
25881 rm -f conftest.$ac_objext conftest$ac_exeext
25882 if { (ac_try="$ac_link"
25883 case "(($ac_try" in
25884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25885   *) ac_try_echo=$ac_try;;
25886 esac
25887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25888   (eval "$ac_link") 2>conftest.er1
25889   ac_status=$?
25890   grep -v '^ *+' conftest.er1 >conftest.err
25891   rm -f conftest.er1
25892   cat conftest.err >&5
25893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25894   (exit $ac_status); } && {
25895          test -z "$ac_c_werror_flag" ||
25896          test ! -s conftest.err
25897        } && test -s conftest$ac_exeext &&
25898        $as_test_x conftest$ac_exeext; then
25899   ac_cv_lib_pth_pth_version=yes
25900 else
25901   echo "$as_me: failed program was:" >&5
25902 sed 's/^/| /' conftest.$ac_ext >&5
25903
25904         ac_cv_lib_pth_pth_version=no
25905 fi
25906
25907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25908       conftest$ac_exeext conftest.$ac_ext
25909 LIBS=$ac_check_lib_save_LIBS
25910 fi
25911 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
25912 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
25913 if test $ac_cv_lib_pth_pth_version = yes; then
25914   have_pth=yes
25915 else
25916   have_pth=no
25917 fi
25918
25919
25920                 if test $have_pth = yes ; then
25921
25922 cat >>confdefs.h <<\_ACEOF
25923 #define HAVE_GNU_PTH 1
25924 _ACEOF
25925
25926                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
25927                         ol_link_threads=pth
25928                         ol_with_threads=found
25929
25930                         if test $ol_with_yielding_select = auto ; then
25931                                 ol_with_yielding_select=yes
25932                         fi
25933                 fi
25934         fi
25935         ;;
25936 esac
25937
25938 case $ol_with_threads in auto | yes | lwp)
25939
25940
25941
25942 for ac_header in thread.h synch.h
25943 do
25944 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25946   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25948 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25949   echo $ECHO_N "(cached) $ECHO_C" >&6
25950 fi
25951 ac_res=`eval echo '${'$as_ac_Header'}'`
25952                { echo "$as_me:$LINENO: result: $ac_res" >&5
25953 echo "${ECHO_T}$ac_res" >&6; }
25954 else
25955   # Is the header compilable?
25956 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25957 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25958 cat >conftest.$ac_ext <<_ACEOF
25959 /* confdefs.h.  */
25960 _ACEOF
25961 cat confdefs.h >>conftest.$ac_ext
25962 cat >>conftest.$ac_ext <<_ACEOF
25963 /* end confdefs.h.  */
25964 $ac_includes_default
25965 #include <$ac_header>
25966 _ACEOF
25967 rm -f conftest.$ac_objext
25968 if { (ac_try="$ac_compile"
25969 case "(($ac_try" in
25970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25971   *) ac_try_echo=$ac_try;;
25972 esac
25973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25974   (eval "$ac_compile") 2>conftest.er1
25975   ac_status=$?
25976   grep -v '^ *+' conftest.er1 >conftest.err
25977   rm -f conftest.er1
25978   cat conftest.err >&5
25979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980   (exit $ac_status); } && {
25981          test -z "$ac_c_werror_flag" ||
25982          test ! -s conftest.err
25983        } && test -s conftest.$ac_objext; then
25984   ac_header_compiler=yes
25985 else
25986   echo "$as_me: failed program was:" >&5
25987 sed 's/^/| /' conftest.$ac_ext >&5
25988
25989         ac_header_compiler=no
25990 fi
25991
25992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25993 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25994 echo "${ECHO_T}$ac_header_compiler" >&6; }
25995
25996 # Is the header present?
25997 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25998 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25999 cat >conftest.$ac_ext <<_ACEOF
26000 /* confdefs.h.  */
26001 _ACEOF
26002 cat confdefs.h >>conftest.$ac_ext
26003 cat >>conftest.$ac_ext <<_ACEOF
26004 /* end confdefs.h.  */
26005 #include <$ac_header>
26006 _ACEOF
26007 if { (ac_try="$ac_cpp conftest.$ac_ext"
26008 case "(($ac_try" in
26009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26010   *) ac_try_echo=$ac_try;;
26011 esac
26012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26014   ac_status=$?
26015   grep -v '^ *+' conftest.er1 >conftest.err
26016   rm -f conftest.er1
26017   cat conftest.err >&5
26018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26019   (exit $ac_status); } >/dev/null && {
26020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26021          test ! -s conftest.err
26022        }; then
26023   ac_header_preproc=yes
26024 else
26025   echo "$as_me: failed program was:" >&5
26026 sed 's/^/| /' conftest.$ac_ext >&5
26027
26028   ac_header_preproc=no
26029 fi
26030
26031 rm -f conftest.err conftest.$ac_ext
26032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26033 echo "${ECHO_T}$ac_header_preproc" >&6; }
26034
26035 # So?  What about this header?
26036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26037   yes:no: )
26038     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26040     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26042     ac_header_preproc=yes
26043     ;;
26044   no:yes:* )
26045     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26047     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26048 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26049     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26051     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26052 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26053     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26055     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26057     ( cat <<\_ASBOX
26058 ## --------------------------------------------- ##
26059 ## Report this to <http://www.openldap.org/its/> ##
26060 ## --------------------------------------------- ##
26061 _ASBOX
26062      ) | sed "s/^/$as_me: WARNING:     /" >&2
26063     ;;
26064 esac
26065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26068   echo $ECHO_N "(cached) $ECHO_C" >&6
26069 else
26070   eval "$as_ac_Header=\$ac_header_preproc"
26071 fi
26072 ac_res=`eval echo '${'$as_ac_Header'}'`
26073                { echo "$as_me:$LINENO: result: $ac_res" >&5
26074 echo "${ECHO_T}$ac_res" >&6; }
26075
26076 fi
26077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26078   cat >>confdefs.h <<_ACEOF
26079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26080 _ACEOF
26081
26082 fi
26083
26084 done
26085
26086         if test $ac_cv_header_thread_h = yes &&
26087            test $ac_cv_header_synch_h = yes ; then
26088                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26089 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26090 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26091   echo $ECHO_N "(cached) $ECHO_C" >&6
26092 else
26093   ac_check_lib_save_LIBS=$LIBS
26094 LIBS="-lthread  $LIBS"
26095 cat >conftest.$ac_ext <<_ACEOF
26096 /* confdefs.h.  */
26097 _ACEOF
26098 cat confdefs.h >>conftest.$ac_ext
26099 cat >>conftest.$ac_ext <<_ACEOF
26100 /* end confdefs.h.  */
26101
26102 /* Override any GCC internal prototype to avoid an error.
26103    Use char because int might match the return type of a GCC
26104    builtin and then its argument prototype would still apply.  */
26105 #ifdef __cplusplus
26106 extern "C"
26107 #endif
26108 char thr_create ();
26109 int
26110 main ()
26111 {
26112 return thr_create ();
26113   ;
26114   return 0;
26115 }
26116 _ACEOF
26117 rm -f conftest.$ac_objext conftest$ac_exeext
26118 if { (ac_try="$ac_link"
26119 case "(($ac_try" in
26120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26121   *) ac_try_echo=$ac_try;;
26122 esac
26123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26124   (eval "$ac_link") 2>conftest.er1
26125   ac_status=$?
26126   grep -v '^ *+' conftest.er1 >conftest.err
26127   rm -f conftest.er1
26128   cat conftest.err >&5
26129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26130   (exit $ac_status); } && {
26131          test -z "$ac_c_werror_flag" ||
26132          test ! -s conftest.err
26133        } && test -s conftest$ac_exeext &&
26134        $as_test_x conftest$ac_exeext; then
26135   ac_cv_lib_thread_thr_create=yes
26136 else
26137   echo "$as_me: failed program was:" >&5
26138 sed 's/^/| /' conftest.$ac_ext >&5
26139
26140         ac_cv_lib_thread_thr_create=no
26141 fi
26142
26143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26144       conftest$ac_exeext conftest.$ac_ext
26145 LIBS=$ac_check_lib_save_LIBS
26146 fi
26147 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26148 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26149 if test $ac_cv_lib_thread_thr_create = yes; then
26150   have_thr=yes
26151 else
26152   have_thr=no
26153 fi
26154
26155
26156                 if test $have_thr = yes ; then
26157
26158 cat >>confdefs.h <<\_ACEOF
26159 #define HAVE_THR 1
26160 _ACEOF
26161
26162                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26163                         ol_link_threads=thr
26164
26165                         if test $ol_with_yielding_select = auto ; then
26166                                 ol_with_yielding_select=yes
26167                         fi
26168
26169
26170
26171 for ac_func in \
26172                                 thr_setconcurrency \
26173                                 thr_getconcurrency \
26174
26175 do
26176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26180   echo $ECHO_N "(cached) $ECHO_C" >&6
26181 else
26182   cat >conftest.$ac_ext <<_ACEOF
26183 /* confdefs.h.  */
26184 _ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h.  */
26188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26189    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26190 #define $ac_func innocuous_$ac_func
26191
26192 /* System header to define __stub macros and hopefully few prototypes,
26193     which can conflict with char $ac_func (); below.
26194     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26195     <limits.h> exists even on freestanding compilers.  */
26196
26197 #ifdef __STDC__
26198 # include <limits.h>
26199 #else
26200 # include <assert.h>
26201 #endif
26202
26203 #undef $ac_func
26204
26205 /* Override any GCC internal prototype to avoid an error.
26206    Use char because int might match the return type of a GCC
26207    builtin and then its argument prototype would still apply.  */
26208 #ifdef __cplusplus
26209 extern "C"
26210 #endif
26211 char $ac_func ();
26212 /* The GNU C library defines this for functions which it implements
26213     to always fail with ENOSYS.  Some functions are actually named
26214     something starting with __ and the normal name is an alias.  */
26215 #if defined __stub_$ac_func || defined __stub___$ac_func
26216 choke me
26217 #endif
26218
26219 int
26220 main ()
26221 {
26222 return $ac_func ();
26223   ;
26224   return 0;
26225 }
26226 _ACEOF
26227 rm -f conftest.$ac_objext conftest$ac_exeext
26228 if { (ac_try="$ac_link"
26229 case "(($ac_try" in
26230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26231   *) ac_try_echo=$ac_try;;
26232 esac
26233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26234   (eval "$ac_link") 2>conftest.er1
26235   ac_status=$?
26236   grep -v '^ *+' conftest.er1 >conftest.err
26237   rm -f conftest.er1
26238   cat conftest.err >&5
26239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26240   (exit $ac_status); } && {
26241          test -z "$ac_c_werror_flag" ||
26242          test ! -s conftest.err
26243        } && test -s conftest$ac_exeext &&
26244        $as_test_x conftest$ac_exeext; then
26245   eval "$as_ac_var=yes"
26246 else
26247   echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26249
26250         eval "$as_ac_var=no"
26251 fi
26252
26253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26254       conftest$ac_exeext conftest.$ac_ext
26255 fi
26256 ac_res=`eval echo '${'$as_ac_var'}'`
26257                { echo "$as_me:$LINENO: result: $ac_res" >&5
26258 echo "${ECHO_T}$ac_res" >&6; }
26259 if test `eval echo '${'$as_ac_var'}'` = yes; then
26260   cat >>confdefs.h <<_ACEOF
26261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26262 _ACEOF
26263
26264 fi
26265 done
26266
26267                 fi
26268         fi
26269
26270
26271 for ac_header in lwp/lwp.h
26272 do
26273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26275   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26278   echo $ECHO_N "(cached) $ECHO_C" >&6
26279 fi
26280 ac_res=`eval echo '${'$as_ac_Header'}'`
26281                { echo "$as_me:$LINENO: result: $ac_res" >&5
26282 echo "${ECHO_T}$ac_res" >&6; }
26283 else
26284   # Is the header compilable?
26285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26287 cat >conftest.$ac_ext <<_ACEOF
26288 /* confdefs.h.  */
26289 _ACEOF
26290 cat confdefs.h >>conftest.$ac_ext
26291 cat >>conftest.$ac_ext <<_ACEOF
26292 /* end confdefs.h.  */
26293 $ac_includes_default
26294 #include <$ac_header>
26295 _ACEOF
26296 rm -f conftest.$ac_objext
26297 if { (ac_try="$ac_compile"
26298 case "(($ac_try" in
26299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26300   *) ac_try_echo=$ac_try;;
26301 esac
26302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26303   (eval "$ac_compile") 2>conftest.er1
26304   ac_status=$?
26305   grep -v '^ *+' conftest.er1 >conftest.err
26306   rm -f conftest.er1
26307   cat conftest.err >&5
26308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26309   (exit $ac_status); } && {
26310          test -z "$ac_c_werror_flag" ||
26311          test ! -s conftest.err
26312        } && test -s conftest.$ac_objext; then
26313   ac_header_compiler=yes
26314 else
26315   echo "$as_me: failed program was:" >&5
26316 sed 's/^/| /' conftest.$ac_ext >&5
26317
26318         ac_header_compiler=no
26319 fi
26320
26321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26323 echo "${ECHO_T}$ac_header_compiler" >&6; }
26324
26325 # Is the header present?
26326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26328 cat >conftest.$ac_ext <<_ACEOF
26329 /* confdefs.h.  */
26330 _ACEOF
26331 cat confdefs.h >>conftest.$ac_ext
26332 cat >>conftest.$ac_ext <<_ACEOF
26333 /* end confdefs.h.  */
26334 #include <$ac_header>
26335 _ACEOF
26336 if { (ac_try="$ac_cpp conftest.$ac_ext"
26337 case "(($ac_try" in
26338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26339   *) ac_try_echo=$ac_try;;
26340 esac
26341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26342   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26343   ac_status=$?
26344   grep -v '^ *+' conftest.er1 >conftest.err
26345   rm -f conftest.er1
26346   cat conftest.err >&5
26347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26348   (exit $ac_status); } >/dev/null && {
26349          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26350          test ! -s conftest.err
26351        }; then
26352   ac_header_preproc=yes
26353 else
26354   echo "$as_me: failed program was:" >&5
26355 sed 's/^/| /' conftest.$ac_ext >&5
26356
26357   ac_header_preproc=no
26358 fi
26359
26360 rm -f conftest.err conftest.$ac_ext
26361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26362 echo "${ECHO_T}$ac_header_preproc" >&6; }
26363
26364 # So?  What about this header?
26365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26366   yes:no: )
26367     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26369     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26371     ac_header_preproc=yes
26372     ;;
26373   no:yes:* )
26374     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26376     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26377 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26378     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26380     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26381 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26382     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26384     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26386     ( cat <<\_ASBOX
26387 ## --------------------------------------------- ##
26388 ## Report this to <http://www.openldap.org/its/> ##
26389 ## --------------------------------------------- ##
26390 _ASBOX
26391      ) | sed "s/^/$as_me: WARNING:     /" >&2
26392     ;;
26393 esac
26394 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26397   echo $ECHO_N "(cached) $ECHO_C" >&6
26398 else
26399   eval "$as_ac_Header=\$ac_header_preproc"
26400 fi
26401 ac_res=`eval echo '${'$as_ac_Header'}'`
26402                { echo "$as_me:$LINENO: result: $ac_res" >&5
26403 echo "${ECHO_T}$ac_res" >&6; }
26404
26405 fi
26406 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26407   cat >>confdefs.h <<_ACEOF
26408 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26409 _ACEOF
26410
26411 fi
26412
26413 done
26414
26415         if test $ac_cv_header_lwp_lwp_h = yes ; then
26416                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
26417 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
26418 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
26419   echo $ECHO_N "(cached) $ECHO_C" >&6
26420 else
26421   ac_check_lib_save_LIBS=$LIBS
26422 LIBS="-llwp  $LIBS"
26423 cat >conftest.$ac_ext <<_ACEOF
26424 /* confdefs.h.  */
26425 _ACEOF
26426 cat confdefs.h >>conftest.$ac_ext
26427 cat >>conftest.$ac_ext <<_ACEOF
26428 /* end confdefs.h.  */
26429
26430 /* Override any GCC internal prototype to avoid an error.
26431    Use char because int might match the return type of a GCC
26432    builtin and then its argument prototype would still apply.  */
26433 #ifdef __cplusplus
26434 extern "C"
26435 #endif
26436 char lwp_create ();
26437 int
26438 main ()
26439 {
26440 return lwp_create ();
26441   ;
26442   return 0;
26443 }
26444 _ACEOF
26445 rm -f conftest.$ac_objext conftest$ac_exeext
26446 if { (ac_try="$ac_link"
26447 case "(($ac_try" in
26448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26449   *) ac_try_echo=$ac_try;;
26450 esac
26451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26452   (eval "$ac_link") 2>conftest.er1
26453   ac_status=$?
26454   grep -v '^ *+' conftest.er1 >conftest.err
26455   rm -f conftest.er1
26456   cat conftest.err >&5
26457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26458   (exit $ac_status); } && {
26459          test -z "$ac_c_werror_flag" ||
26460          test ! -s conftest.err
26461        } && test -s conftest$ac_exeext &&
26462        $as_test_x conftest$ac_exeext; then
26463   ac_cv_lib_lwp_lwp_create=yes
26464 else
26465   echo "$as_me: failed program was:" >&5
26466 sed 's/^/| /' conftest.$ac_ext >&5
26467
26468         ac_cv_lib_lwp_lwp_create=no
26469 fi
26470
26471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26472       conftest$ac_exeext conftest.$ac_ext
26473 LIBS=$ac_check_lib_save_LIBS
26474 fi
26475 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
26476 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
26477 if test $ac_cv_lib_lwp_lwp_create = yes; then
26478   have_lwp=yes
26479 else
26480   have_lwp=no
26481 fi
26482
26483
26484                 if test $have_lwp = yes ; then
26485
26486 cat >>confdefs.h <<\_ACEOF
26487 #define HAVE_LWP 1
26488 _ACEOF
26489
26490                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
26491                         ol_link_threads=lwp
26492
26493                         if test $ol_with_yielding_select = auto ; then
26494                                 ol_with_yielding_select=no
26495                         fi
26496                 fi
26497         fi
26498         ;;
26499 esac
26500
26501 if test $ol_with_yielding_select = yes ; then
26502
26503 cat >>confdefs.h <<\_ACEOF
26504 #define HAVE_YIELDING_SELECT 1
26505 _ACEOF
26506
26507 fi
26508
26509 if test $ol_with_threads = manual ; then
26510                 ol_link_threads=yes
26511
26512         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26513 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26514
26515
26516
26517 for ac_header in pthread.h sched.h
26518 do
26519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26524   echo $ECHO_N "(cached) $ECHO_C" >&6
26525 fi
26526 ac_res=`eval echo '${'$as_ac_Header'}'`
26527                { echo "$as_me:$LINENO: result: $ac_res" >&5
26528 echo "${ECHO_T}$ac_res" >&6; }
26529 else
26530   # Is the header compilable?
26531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26533 cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h.  */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h.  */
26539 $ac_includes_default
26540 #include <$ac_header>
26541 _ACEOF
26542 rm -f conftest.$ac_objext
26543 if { (ac_try="$ac_compile"
26544 case "(($ac_try" in
26545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26546   *) ac_try_echo=$ac_try;;
26547 esac
26548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26549   (eval "$ac_compile") 2>conftest.er1
26550   ac_status=$?
26551   grep -v '^ *+' conftest.er1 >conftest.err
26552   rm -f conftest.er1
26553   cat conftest.err >&5
26554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26555   (exit $ac_status); } && {
26556          test -z "$ac_c_werror_flag" ||
26557          test ! -s conftest.err
26558        } && test -s conftest.$ac_objext; then
26559   ac_header_compiler=yes
26560 else
26561   echo "$as_me: failed program was:" >&5
26562 sed 's/^/| /' conftest.$ac_ext >&5
26563
26564         ac_header_compiler=no
26565 fi
26566
26567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26569 echo "${ECHO_T}$ac_header_compiler" >&6; }
26570
26571 # Is the header present?
26572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26574 cat >conftest.$ac_ext <<_ACEOF
26575 /* confdefs.h.  */
26576 _ACEOF
26577 cat confdefs.h >>conftest.$ac_ext
26578 cat >>conftest.$ac_ext <<_ACEOF
26579 /* end confdefs.h.  */
26580 #include <$ac_header>
26581 _ACEOF
26582 if { (ac_try="$ac_cpp conftest.$ac_ext"
26583 case "(($ac_try" in
26584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26585   *) ac_try_echo=$ac_try;;
26586 esac
26587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26589   ac_status=$?
26590   grep -v '^ *+' conftest.er1 >conftest.err
26591   rm -f conftest.er1
26592   cat conftest.err >&5
26593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26594   (exit $ac_status); } >/dev/null && {
26595          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26596          test ! -s conftest.err
26597        }; then
26598   ac_header_preproc=yes
26599 else
26600   echo "$as_me: failed program was:" >&5
26601 sed 's/^/| /' conftest.$ac_ext >&5
26602
26603   ac_header_preproc=no
26604 fi
26605
26606 rm -f conftest.err conftest.$ac_ext
26607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26608 echo "${ECHO_T}$ac_header_preproc" >&6; }
26609
26610 # So?  What about this header?
26611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26612   yes:no: )
26613     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26615     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26617     ac_header_preproc=yes
26618     ;;
26619   no:yes:* )
26620     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26622     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26623 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26624     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26626     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26627 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26628     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26630     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26632     ( cat <<\_ASBOX
26633 ## --------------------------------------------- ##
26634 ## Report this to <http://www.openldap.org/its/> ##
26635 ## --------------------------------------------- ##
26636 _ASBOX
26637      ) | sed "s/^/$as_me: WARNING:     /" >&2
26638     ;;
26639 esac
26640 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26641 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26642 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26643   echo $ECHO_N "(cached) $ECHO_C" >&6
26644 else
26645   eval "$as_ac_Header=\$ac_header_preproc"
26646 fi
26647 ac_res=`eval echo '${'$as_ac_Header'}'`
26648                { echo "$as_me:$LINENO: result: $ac_res" >&5
26649 echo "${ECHO_T}$ac_res" >&6; }
26650
26651 fi
26652 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26653   cat >>confdefs.h <<_ACEOF
26654 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26655 _ACEOF
26656
26657 fi
26658
26659 done
26660
26661
26662
26663 for ac_func in sched_yield pthread_yield
26664 do
26665 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26666 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26667 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26668 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26669   echo $ECHO_N "(cached) $ECHO_C" >&6
26670 else
26671   cat >conftest.$ac_ext <<_ACEOF
26672 /* confdefs.h.  */
26673 _ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h.  */
26677 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26678    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26679 #define $ac_func innocuous_$ac_func
26680
26681 /* System header to define __stub macros and hopefully few prototypes,
26682     which can conflict with char $ac_func (); below.
26683     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26684     <limits.h> exists even on freestanding compilers.  */
26685
26686 #ifdef __STDC__
26687 # include <limits.h>
26688 #else
26689 # include <assert.h>
26690 #endif
26691
26692 #undef $ac_func
26693
26694 /* Override any GCC internal prototype to avoid an error.
26695    Use char because int might match the return type of a GCC
26696    builtin and then its argument prototype would still apply.  */
26697 #ifdef __cplusplus
26698 extern "C"
26699 #endif
26700 char $ac_func ();
26701 /* The GNU C library defines this for functions which it implements
26702     to always fail with ENOSYS.  Some functions are actually named
26703     something starting with __ and the normal name is an alias.  */
26704 #if defined __stub_$ac_func || defined __stub___$ac_func
26705 choke me
26706 #endif
26707
26708 int
26709 main ()
26710 {
26711 return $ac_func ();
26712   ;
26713   return 0;
26714 }
26715 _ACEOF
26716 rm -f conftest.$ac_objext conftest$ac_exeext
26717 if { (ac_try="$ac_link"
26718 case "(($ac_try" in
26719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26720   *) ac_try_echo=$ac_try;;
26721 esac
26722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26723   (eval "$ac_link") 2>conftest.er1
26724   ac_status=$?
26725   grep -v '^ *+' conftest.er1 >conftest.err
26726   rm -f conftest.er1
26727   cat conftest.err >&5
26728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26729   (exit $ac_status); } && {
26730          test -z "$ac_c_werror_flag" ||
26731          test ! -s conftest.err
26732        } && test -s conftest$ac_exeext &&
26733        $as_test_x conftest$ac_exeext; then
26734   eval "$as_ac_var=yes"
26735 else
26736   echo "$as_me: failed program was:" >&5
26737 sed 's/^/| /' conftest.$ac_ext >&5
26738
26739         eval "$as_ac_var=no"
26740 fi
26741
26742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26743       conftest$ac_exeext conftest.$ac_ext
26744 fi
26745 ac_res=`eval echo '${'$as_ac_var'}'`
26746                { echo "$as_me:$LINENO: result: $ac_res" >&5
26747 echo "${ECHO_T}$ac_res" >&6; }
26748 if test `eval echo '${'$as_ac_var'}'` = yes; then
26749   cat >>confdefs.h <<_ACEOF
26750 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26751 _ACEOF
26752
26753 fi
26754 done
26755
26756
26757         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26758 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26759 if test "${ol_cv_header_linux_threads+set}" = set; then
26760   echo $ECHO_N "(cached) $ECHO_C" >&6
26761 else
26762   cat >conftest.$ac_ext <<_ACEOF
26763 /* confdefs.h.  */
26764 _ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h.  */
26768 #include <pthread.h>
26769 _ACEOF
26770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26771   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26772   ol_cv_header_linux_threads=yes
26773 else
26774   ol_cv_header_linux_threads=no
26775 fi
26776 rm -f conftest*
26777
26778
26779 fi
26780 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26781 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26782         if test $ol_cv_header_linux_threads = yes; then
26783
26784 cat >>confdefs.h <<\_ACEOF
26785 #define HAVE_LINUX_THREADS 1
26786 _ACEOF
26787
26788         fi
26789
26790
26791
26792 for ac_header in mach/cthreads.h
26793 do
26794 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26796   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26798 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26799   echo $ECHO_N "(cached) $ECHO_C" >&6
26800 fi
26801 ac_res=`eval echo '${'$as_ac_Header'}'`
26802                { echo "$as_me:$LINENO: result: $ac_res" >&5
26803 echo "${ECHO_T}$ac_res" >&6; }
26804 else
26805   # Is the header compilable?
26806 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26807 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26808 cat >conftest.$ac_ext <<_ACEOF
26809 /* confdefs.h.  */
26810 _ACEOF
26811 cat confdefs.h >>conftest.$ac_ext
26812 cat >>conftest.$ac_ext <<_ACEOF
26813 /* end confdefs.h.  */
26814 $ac_includes_default
26815 #include <$ac_header>
26816 _ACEOF
26817 rm -f conftest.$ac_objext
26818 if { (ac_try="$ac_compile"
26819 case "(($ac_try" in
26820   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26821   *) ac_try_echo=$ac_try;;
26822 esac
26823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26824   (eval "$ac_compile") 2>conftest.er1
26825   ac_status=$?
26826   grep -v '^ *+' conftest.er1 >conftest.err
26827   rm -f conftest.er1
26828   cat conftest.err >&5
26829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26830   (exit $ac_status); } && {
26831          test -z "$ac_c_werror_flag" ||
26832          test ! -s conftest.err
26833        } && test -s conftest.$ac_objext; then
26834   ac_header_compiler=yes
26835 else
26836   echo "$as_me: failed program was:" >&5
26837 sed 's/^/| /' conftest.$ac_ext >&5
26838
26839         ac_header_compiler=no
26840 fi
26841
26842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26844 echo "${ECHO_T}$ac_header_compiler" >&6; }
26845
26846 # Is the header present?
26847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26849 cat >conftest.$ac_ext <<_ACEOF
26850 /* confdefs.h.  */
26851 _ACEOF
26852 cat confdefs.h >>conftest.$ac_ext
26853 cat >>conftest.$ac_ext <<_ACEOF
26854 /* end confdefs.h.  */
26855 #include <$ac_header>
26856 _ACEOF
26857 if { (ac_try="$ac_cpp conftest.$ac_ext"
26858 case "(($ac_try" in
26859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26860   *) ac_try_echo=$ac_try;;
26861 esac
26862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26863   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26864   ac_status=$?
26865   grep -v '^ *+' conftest.er1 >conftest.err
26866   rm -f conftest.er1
26867   cat conftest.err >&5
26868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869   (exit $ac_status); } >/dev/null && {
26870          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26871          test ! -s conftest.err
26872        }; then
26873   ac_header_preproc=yes
26874 else
26875   echo "$as_me: failed program was:" >&5
26876 sed 's/^/| /' conftest.$ac_ext >&5
26877
26878   ac_header_preproc=no
26879 fi
26880
26881 rm -f conftest.err conftest.$ac_ext
26882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26883 echo "${ECHO_T}$ac_header_preproc" >&6; }
26884
26885 # So?  What about this header?
26886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26887   yes:no: )
26888     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26889 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26890     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26891 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26892     ac_header_preproc=yes
26893     ;;
26894   no:yes:* )
26895     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26896 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26897     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26898 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26899     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26900 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26901     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26902 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26903     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26904 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26905     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26906 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26907     ( cat <<\_ASBOX
26908 ## --------------------------------------------- ##
26909 ## Report this to <http://www.openldap.org/its/> ##
26910 ## --------------------------------------------- ##
26911 _ASBOX
26912      ) | sed "s/^/$as_me: WARNING:     /" >&2
26913     ;;
26914 esac
26915 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26916 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26917 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26918   echo $ECHO_N "(cached) $ECHO_C" >&6
26919 else
26920   eval "$as_ac_Header=\$ac_header_preproc"
26921 fi
26922 ac_res=`eval echo '${'$as_ac_Header'}'`
26923                { echo "$as_me:$LINENO: result: $ac_res" >&5
26924 echo "${ECHO_T}$ac_res" >&6; }
26925
26926 fi
26927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26928   cat >>confdefs.h <<_ACEOF
26929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26930 _ACEOF
26931
26932 fi
26933
26934 done
26935
26936
26937 for ac_header in lwp/lwp.h
26938 do
26939 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26941   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26944   echo $ECHO_N "(cached) $ECHO_C" >&6
26945 fi
26946 ac_res=`eval echo '${'$as_ac_Header'}'`
26947                { echo "$as_me:$LINENO: result: $ac_res" >&5
26948 echo "${ECHO_T}$ac_res" >&6; }
26949 else
26950   # Is the header compilable?
26951 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26952 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26953 cat >conftest.$ac_ext <<_ACEOF
26954 /* confdefs.h.  */
26955 _ACEOF
26956 cat confdefs.h >>conftest.$ac_ext
26957 cat >>conftest.$ac_ext <<_ACEOF
26958 /* end confdefs.h.  */
26959 $ac_includes_default
26960 #include <$ac_header>
26961 _ACEOF
26962 rm -f conftest.$ac_objext
26963 if { (ac_try="$ac_compile"
26964 case "(($ac_try" in
26965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26966   *) ac_try_echo=$ac_try;;
26967 esac
26968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26969   (eval "$ac_compile") 2>conftest.er1
26970   ac_status=$?
26971   grep -v '^ *+' conftest.er1 >conftest.err
26972   rm -f conftest.er1
26973   cat conftest.err >&5
26974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26975   (exit $ac_status); } && {
26976          test -z "$ac_c_werror_flag" ||
26977          test ! -s conftest.err
26978        } && test -s conftest.$ac_objext; then
26979   ac_header_compiler=yes
26980 else
26981   echo "$as_me: failed program was:" >&5
26982 sed 's/^/| /' conftest.$ac_ext >&5
26983
26984         ac_header_compiler=no
26985 fi
26986
26987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26989 echo "${ECHO_T}$ac_header_compiler" >&6; }
26990
26991 # Is the header present?
26992 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26993 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26994 cat >conftest.$ac_ext <<_ACEOF
26995 /* confdefs.h.  */
26996 _ACEOF
26997 cat confdefs.h >>conftest.$ac_ext
26998 cat >>conftest.$ac_ext <<_ACEOF
26999 /* end confdefs.h.  */
27000 #include <$ac_header>
27001 _ACEOF
27002 if { (ac_try="$ac_cpp conftest.$ac_ext"
27003 case "(($ac_try" in
27004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005   *) ac_try_echo=$ac_try;;
27006 esac
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } >/dev/null && {
27015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27016          test ! -s conftest.err
27017        }; then
27018   ac_header_preproc=yes
27019 else
27020   echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023   ac_header_preproc=no
27024 fi
27025
27026 rm -f conftest.err conftest.$ac_ext
27027 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27028 echo "${ECHO_T}$ac_header_preproc" >&6; }
27029
27030 # So?  What about this header?
27031 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27032   yes:no: )
27033     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27034 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27036 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27037     ac_header_preproc=yes
27038     ;;
27039   no:yes:* )
27040     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27041 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27042     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27043 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27044     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27045 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27046     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27047 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27048     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27049 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27050     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27051 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27052     ( cat <<\_ASBOX
27053 ## --------------------------------------------- ##
27054 ## Report this to <http://www.openldap.org/its/> ##
27055 ## --------------------------------------------- ##
27056 _ASBOX
27057      ) | sed "s/^/$as_me: WARNING:     /" >&2
27058     ;;
27059 esac
27060 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27061 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27062 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27063   echo $ECHO_N "(cached) $ECHO_C" >&6
27064 else
27065   eval "$as_ac_Header=\$ac_header_preproc"
27066 fi
27067 ac_res=`eval echo '${'$as_ac_Header'}'`
27068                { echo "$as_me:$LINENO: result: $ac_res" >&5
27069 echo "${ECHO_T}$ac_res" >&6; }
27070
27071 fi
27072 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27073   cat >>confdefs.h <<_ACEOF
27074 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27075 _ACEOF
27076
27077 fi
27078
27079 done
27080
27081
27082
27083 for ac_header in thread.h synch.h
27084 do
27085 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27086 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27087   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27088 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27089 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27090   echo $ECHO_N "(cached) $ECHO_C" >&6
27091 fi
27092 ac_res=`eval echo '${'$as_ac_Header'}'`
27093                { echo "$as_me:$LINENO: result: $ac_res" >&5
27094 echo "${ECHO_T}$ac_res" >&6; }
27095 else
27096   # Is the header compilable?
27097 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27098 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27099 cat >conftest.$ac_ext <<_ACEOF
27100 /* confdefs.h.  */
27101 _ACEOF
27102 cat confdefs.h >>conftest.$ac_ext
27103 cat >>conftest.$ac_ext <<_ACEOF
27104 /* end confdefs.h.  */
27105 $ac_includes_default
27106 #include <$ac_header>
27107 _ACEOF
27108 rm -f conftest.$ac_objext
27109 if { (ac_try="$ac_compile"
27110 case "(($ac_try" in
27111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27112   *) ac_try_echo=$ac_try;;
27113 esac
27114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27115   (eval "$ac_compile") 2>conftest.er1
27116   ac_status=$?
27117   grep -v '^ *+' conftest.er1 >conftest.err
27118   rm -f conftest.er1
27119   cat conftest.err >&5
27120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27121   (exit $ac_status); } && {
27122          test -z "$ac_c_werror_flag" ||
27123          test ! -s conftest.err
27124        } && test -s conftest.$ac_objext; then
27125   ac_header_compiler=yes
27126 else
27127   echo "$as_me: failed program was:" >&5
27128 sed 's/^/| /' conftest.$ac_ext >&5
27129
27130         ac_header_compiler=no
27131 fi
27132
27133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27135 echo "${ECHO_T}$ac_header_compiler" >&6; }
27136
27137 # Is the header present?
27138 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27139 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27140 cat >conftest.$ac_ext <<_ACEOF
27141 /* confdefs.h.  */
27142 _ACEOF
27143 cat confdefs.h >>conftest.$ac_ext
27144 cat >>conftest.$ac_ext <<_ACEOF
27145 /* end confdefs.h.  */
27146 #include <$ac_header>
27147 _ACEOF
27148 if { (ac_try="$ac_cpp conftest.$ac_ext"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } >/dev/null && {
27161          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27162          test ! -s conftest.err
27163        }; then
27164   ac_header_preproc=yes
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169   ac_header_preproc=no
27170 fi
27171
27172 rm -f conftest.err conftest.$ac_ext
27173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27174 echo "${ECHO_T}$ac_header_preproc" >&6; }
27175
27176 # So?  What about this header?
27177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27178   yes:no: )
27179     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27180 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27182 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27183     ac_header_preproc=yes
27184     ;;
27185   no:yes:* )
27186     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27187 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27188     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27189 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27190     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27191 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27192     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27193 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27194     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27195 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27196     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27197 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27198     ( cat <<\_ASBOX
27199 ## --------------------------------------------- ##
27200 ## Report this to <http://www.openldap.org/its/> ##
27201 ## --------------------------------------------- ##
27202 _ASBOX
27203      ) | sed "s/^/$as_me: WARNING:     /" >&2
27204     ;;
27205 esac
27206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27209   echo $ECHO_N "(cached) $ECHO_C" >&6
27210 else
27211   eval "$as_ac_Header=\$ac_header_preproc"
27212 fi
27213 ac_res=`eval echo '${'$as_ac_Header'}'`
27214                { echo "$as_me:$LINENO: result: $ac_res" >&5
27215 echo "${ECHO_T}$ac_res" >&6; }
27216
27217 fi
27218 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27219   cat >>confdefs.h <<_ACEOF
27220 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27221 _ACEOF
27222
27223 fi
27224
27225 done
27226
27227 fi
27228
27229 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27230                         cat >>confdefs.h <<\_ACEOF
27231 #define REENTRANT 1
27232 _ACEOF
27233
27234         cat >>confdefs.h <<\_ACEOF
27235 #define _REENTRANT 1
27236 _ACEOF
27237
27238         cat >>confdefs.h <<\_ACEOF
27239 #define THREAD_SAFE 1
27240 _ACEOF
27241
27242         cat >>confdefs.h <<\_ACEOF
27243 #define _THREAD_SAFE 1
27244 _ACEOF
27245
27246         cat >>confdefs.h <<\_ACEOF
27247 #define THREADSAFE 1
27248 _ACEOF
27249
27250         cat >>confdefs.h <<\_ACEOF
27251 #define _THREADSAFE 1
27252 _ACEOF
27253
27254         cat >>confdefs.h <<\_ACEOF
27255 #define _SGI_MP_SOURCE 1
27256 _ACEOF
27257
27258
27259                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27260 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27261 if test "${ol_cv_errno_thread_specific+set}" = set; then
27262   echo $ECHO_N "(cached) $ECHO_C" >&6
27263 else
27264
27265                 cat >conftest.$ac_ext <<_ACEOF
27266 /* confdefs.h.  */
27267 _ACEOF
27268 cat confdefs.h >>conftest.$ac_ext
27269 cat >>conftest.$ac_ext <<_ACEOF
27270 /* end confdefs.h.  */
27271 #include <errno.h>
27272 int
27273 main ()
27274 {
27275 errno = 0;
27276   ;
27277   return 0;
27278 }
27279 _ACEOF
27280 rm -f conftest.$ac_objext conftest$ac_exeext
27281 if { (ac_try="$ac_link"
27282 case "(($ac_try" in
27283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27284   *) ac_try_echo=$ac_try;;
27285 esac
27286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27287   (eval "$ac_link") 2>conftest.er1
27288   ac_status=$?
27289   grep -v '^ *+' conftest.er1 >conftest.err
27290   rm -f conftest.er1
27291   cat conftest.err >&5
27292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27293   (exit $ac_status); } && {
27294          test -z "$ac_c_werror_flag" ||
27295          test ! -s conftest.err
27296        } && test -s conftest$ac_exeext &&
27297        $as_test_x conftest$ac_exeext; then
27298   ol_cv_errno_thread_specific=yes
27299 else
27300   echo "$as_me: failed program was:" >&5
27301 sed 's/^/| /' conftest.$ac_ext >&5
27302
27303         ol_cv_errno_thread_specific=no
27304 fi
27305
27306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27307       conftest$ac_exeext conftest.$ac_ext
27308
27309 fi
27310 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27311 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27312
27313                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27314 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27315 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27316   echo $ECHO_N "(cached) $ECHO_C" >&6
27317 else
27318
27319                 cat >conftest.$ac_ext <<_ACEOF
27320 /* confdefs.h.  */
27321 _ACEOF
27322 cat confdefs.h >>conftest.$ac_ext
27323 cat >>conftest.$ac_ext <<_ACEOF
27324 /* end confdefs.h.  */
27325 #include <netdb.h>
27326 int
27327 main ()
27328 {
27329 h_errno = 0;
27330   ;
27331   return 0;
27332 }
27333 _ACEOF
27334 rm -f conftest.$ac_objext conftest$ac_exeext
27335 if { (ac_try="$ac_link"
27336 case "(($ac_try" in
27337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27338   *) ac_try_echo=$ac_try;;
27339 esac
27340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27341   (eval "$ac_link") 2>conftest.er1
27342   ac_status=$?
27343   grep -v '^ *+' conftest.er1 >conftest.err
27344   rm -f conftest.er1
27345   cat conftest.err >&5
27346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27347   (exit $ac_status); } && {
27348          test -z "$ac_c_werror_flag" ||
27349          test ! -s conftest.err
27350        } && test -s conftest$ac_exeext &&
27351        $as_test_x conftest$ac_exeext; then
27352   ol_cv_h_errno_thread_specific=yes
27353 else
27354   echo "$as_me: failed program was:" >&5
27355 sed 's/^/| /' conftest.$ac_ext >&5
27356
27357         ol_cv_h_errno_thread_specific=no
27358 fi
27359
27360 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27361       conftest$ac_exeext conftest.$ac_ext
27362
27363 fi
27364 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27365 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27366
27367         if test $ol_cv_errno_thread_specific != yes ||
27368            test $ol_cv_h_errno_thread_specific != yes ; then
27369                 LIBS="$LTHREAD_LIBS $LIBS"
27370                 LTHREAD_LIBS=""
27371         fi
27372
27373 fi
27374
27375 if test $ol_link_threads = no ; then
27376         if test $ol_with_threads = yes ; then
27377                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27378 echo "$as_me: error: no suitable thread support" >&2;}
27379    { (exit 1); exit 1; }; }
27380         fi
27381
27382         if test $ol_with_threads = auto ; then
27383                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27384 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27385                 ol_with_threads=no
27386         fi
27387
27388
27389 cat >>confdefs.h <<\_ACEOF
27390 #define NO_THREADS 1
27391 _ACEOF
27392
27393         LTHREAD_LIBS=""
27394         BUILD_THREAD=no
27395 else
27396         BUILD_THREAD=yes
27397 fi
27398
27399 if test $ol_link_threads != no ; then
27400
27401 cat >>confdefs.h <<\_ACEOF
27402 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27403 _ACEOF
27404
27405 fi
27406
27407
27408
27409
27410 for ac_func in \
27411         ctime_r                 \
27412         gethostbyname_r gethostbyaddr_r \
27413
27414 do
27415 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27416 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27417 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27418 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27419   echo $ECHO_N "(cached) $ECHO_C" >&6
27420 else
27421   cat >conftest.$ac_ext <<_ACEOF
27422 /* confdefs.h.  */
27423 _ACEOF
27424 cat confdefs.h >>conftest.$ac_ext
27425 cat >>conftest.$ac_ext <<_ACEOF
27426 /* end confdefs.h.  */
27427 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27428    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27429 #define $ac_func innocuous_$ac_func
27430
27431 /* System header to define __stub macros and hopefully few prototypes,
27432     which can conflict with char $ac_func (); below.
27433     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27434     <limits.h> exists even on freestanding compilers.  */
27435
27436 #ifdef __STDC__
27437 # include <limits.h>
27438 #else
27439 # include <assert.h>
27440 #endif
27441
27442 #undef $ac_func
27443
27444 /* Override any GCC internal prototype to avoid an error.
27445    Use char because int might match the return type of a GCC
27446    builtin and then its argument prototype would still apply.  */
27447 #ifdef __cplusplus
27448 extern "C"
27449 #endif
27450 char $ac_func ();
27451 /* The GNU C library defines this for functions which it implements
27452     to always fail with ENOSYS.  Some functions are actually named
27453     something starting with __ and the normal name is an alias.  */
27454 #if defined __stub_$ac_func || defined __stub___$ac_func
27455 choke me
27456 #endif
27457
27458 int
27459 main ()
27460 {
27461 return $ac_func ();
27462   ;
27463   return 0;
27464 }
27465 _ACEOF
27466 rm -f conftest.$ac_objext conftest$ac_exeext
27467 if { (ac_try="$ac_link"
27468 case "(($ac_try" in
27469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27470   *) ac_try_echo=$ac_try;;
27471 esac
27472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27473   (eval "$ac_link") 2>conftest.er1
27474   ac_status=$?
27475   grep -v '^ *+' conftest.er1 >conftest.err
27476   rm -f conftest.er1
27477   cat conftest.err >&5
27478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27479   (exit $ac_status); } && {
27480          test -z "$ac_c_werror_flag" ||
27481          test ! -s conftest.err
27482        } && test -s conftest$ac_exeext &&
27483        $as_test_x conftest$ac_exeext; then
27484   eval "$as_ac_var=yes"
27485 else
27486   echo "$as_me: failed program was:" >&5
27487 sed 's/^/| /' conftest.$ac_ext >&5
27488
27489         eval "$as_ac_var=no"
27490 fi
27491
27492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27493       conftest$ac_exeext conftest.$ac_ext
27494 fi
27495 ac_res=`eval echo '${'$as_ac_var'}'`
27496                { echo "$as_me:$LINENO: result: $ac_res" >&5
27497 echo "${ECHO_T}$ac_res" >&6; }
27498 if test `eval echo '${'$as_ac_var'}'` = yes; then
27499   cat >>confdefs.h <<_ACEOF
27500 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27501 _ACEOF
27502
27503 fi
27504 done
27505
27506
27507 if test "$ac_cv_func_ctime_r" = no ; then
27508         ol_cv_func_ctime_r_nargs=0
27509 else
27510         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27511 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27512 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27513   echo $ECHO_N "(cached) $ECHO_C" >&6
27514 else
27515   cat >conftest.$ac_ext <<_ACEOF
27516 /* confdefs.h.  */
27517 _ACEOF
27518 cat confdefs.h >>conftest.$ac_ext
27519 cat >>conftest.$ac_ext <<_ACEOF
27520 /* end confdefs.h.  */
27521 #include <time.h>
27522 int
27523 main ()
27524 {
27525 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27526   ;
27527   return 0;
27528 }
27529 _ACEOF
27530 rm -f conftest.$ac_objext
27531 if { (ac_try="$ac_compile"
27532 case "(($ac_try" in
27533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27534   *) ac_try_echo=$ac_try;;
27535 esac
27536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27537   (eval "$ac_compile") 2>conftest.er1
27538   ac_status=$?
27539   grep -v '^ *+' conftest.er1 >conftest.err
27540   rm -f conftest.er1
27541   cat conftest.err >&5
27542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27543   (exit $ac_status); } && {
27544          test -z "$ac_c_werror_flag" ||
27545          test ! -s conftest.err
27546        } && test -s conftest.$ac_objext; then
27547   ol_cv_func_ctime_r_nargs3=yes
27548 else
27549   echo "$as_me: failed program was:" >&5
27550 sed 's/^/| /' conftest.$ac_ext >&5
27551
27552         ol_cv_func_ctime_r_nargs3=no
27553 fi
27554
27555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27556
27557         cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h.  */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h.  */
27563 #include <time.h>
27564 int
27565 main ()
27566 {
27567 time_t ti; char *buffer; ctime_r(&ti,buffer);
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576   *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579   (eval "$ac_compile") 2>conftest.er1
27580   ac_status=$?
27581   grep -v '^ *+' conftest.er1 >conftest.err
27582   rm -f conftest.er1
27583   cat conftest.err >&5
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } && {
27586          test -z "$ac_c_werror_flag" ||
27587          test ! -s conftest.err
27588        } && test -s conftest.$ac_objext; then
27589   ol_cv_func_ctime_r_nargs2=yes
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594         ol_cv_func_ctime_r_nargs2=no
27595 fi
27596
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27598
27599         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27600            test $ol_cv_func_ctime_r_nargs2 = no ; then
27601
27602                 ol_cv_func_ctime_r_nargs=3
27603
27604         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27605              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27606
27607                 ol_cv_func_ctime_r_nargs=2
27608
27609         else
27610                 ol_cv_func_ctime_r_nargs=0
27611         fi
27612
27613 fi
27614 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27615 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27616
27617   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27618
27619 cat >>confdefs.h <<_ACEOF
27620 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27621 _ACEOF
27622
27623   fi
27624
27625 fi
27626
27627 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27628         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27629 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27630 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27631   echo $ECHO_N "(cached) $ECHO_C" >&6
27632 else
27633   cat >conftest.$ac_ext <<_ACEOF
27634 /* confdefs.h.  */
27635 _ACEOF
27636 cat confdefs.h >>conftest.$ac_ext
27637 cat >>conftest.$ac_ext <<_ACEOF
27638 /* end confdefs.h.  */
27639 #include <sys/types.h>
27640 #include <sys/socket.h>
27641 #include <netinet/in.h>
27642 #include <netdb.h>
27643 #define BUFSIZE (sizeof(struct hostent)+10)
27644 int
27645 main ()
27646 {
27647 struct hostent hent; char buffer[BUFSIZE];
27648                 int bufsize=BUFSIZE;int h_errno;
27649                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27650                         buffer, bufsize, &h_errno);
27651   ;
27652   return 0;
27653 }
27654 _ACEOF
27655 rm -f conftest.$ac_objext
27656 if { (ac_try="$ac_compile"
27657 case "(($ac_try" in
27658   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27659   *) ac_try_echo=$ac_try;;
27660 esac
27661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27662   (eval "$ac_compile") 2>conftest.er1
27663   ac_status=$?
27664   grep -v '^ *+' conftest.er1 >conftest.err
27665   rm -f conftest.er1
27666   cat conftest.err >&5
27667   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668   (exit $ac_status); } && {
27669          test -z "$ac_c_werror_flag" ||
27670          test ! -s conftest.err
27671        } && test -s conftest.$ac_objext; then
27672   ol_cv_func_gethostbyname_r_nargs5=yes
27673 else
27674   echo "$as_me: failed program was:" >&5
27675 sed 's/^/| /' conftest.$ac_ext >&5
27676
27677         ol_cv_func_gethostbyname_r_nargs5=no
27678 fi
27679
27680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27681
27682         cat >conftest.$ac_ext <<_ACEOF
27683 /* confdefs.h.  */
27684 _ACEOF
27685 cat confdefs.h >>conftest.$ac_ext
27686 cat >>conftest.$ac_ext <<_ACEOF
27687 /* end confdefs.h.  */
27688 #include <sys/types.h>
27689 #include <sys/socket.h>
27690 #include <netinet/in.h>
27691 #include <netdb.h>
27692 #define BUFSIZE (sizeof(struct hostent)+10)
27693 int
27694 main ()
27695 {
27696 struct hostent hent;struct hostent *rhent;
27697                 char buffer[BUFSIZE];
27698                 int bufsize=BUFSIZE;int h_errno;
27699                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27700                         &rhent, &h_errno);
27701   ;
27702   return 0;
27703 }
27704 _ACEOF
27705 rm -f conftest.$ac_objext
27706 if { (ac_try="$ac_compile"
27707 case "(($ac_try" in
27708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27709   *) ac_try_echo=$ac_try;;
27710 esac
27711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27712   (eval "$ac_compile") 2>conftest.er1
27713   ac_status=$?
27714   grep -v '^ *+' conftest.er1 >conftest.err
27715   rm -f conftest.er1
27716   cat conftest.err >&5
27717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27718   (exit $ac_status); } && {
27719          test -z "$ac_c_werror_flag" ||
27720          test ! -s conftest.err
27721        } && test -s conftest.$ac_objext; then
27722   ol_cv_func_gethostbyname_r_nargs6=yes
27723 else
27724   echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27726
27727         ol_cv_func_gethostbyname_r_nargs6=no
27728 fi
27729
27730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27731
27732         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27733            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27734
27735                 ol_cv_func_gethostbyname_r_nargs=5
27736
27737         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27738              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27739
27740                 ol_cv_func_gethostbyname_r_nargs=6
27741
27742         else
27743                 ol_cv_func_gethostbyname_r_nargs=0
27744         fi
27745
27746 fi
27747 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27748 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27749   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27750
27751 cat >>confdefs.h <<_ACEOF
27752 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27753 _ACEOF
27754
27755   fi
27756
27757 else
27758         ol_cv_func_gethostbyname_r_nargs=0
27759 fi
27760
27761 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27762         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27763 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27764 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27765   echo $ECHO_N "(cached) $ECHO_C" >&6
27766 else
27767   cat >conftest.$ac_ext <<_ACEOF
27768 /* confdefs.h.  */
27769 _ACEOF
27770 cat confdefs.h >>conftest.$ac_ext
27771 cat >>conftest.$ac_ext <<_ACEOF
27772 /* end confdefs.h.  */
27773 #include <sys/types.h>
27774 #include <sys/socket.h>
27775 #include <netinet/in.h>
27776 #include <netdb.h>
27777 #define BUFSIZE (sizeof(struct hostent)+10)
27778 int
27779 main ()
27780 {
27781 struct hostent hent; char buffer[BUFSIZE];
27782             struct in_addr add;
27783             size_t alen=sizeof(struct in_addr);
27784             int bufsize=BUFSIZE;int h_errno;
27785                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27786                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27787   ;
27788   return 0;
27789 }
27790 _ACEOF
27791 rm -f conftest.$ac_objext
27792 if { (ac_try="$ac_compile"
27793 case "(($ac_try" in
27794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795   *) ac_try_echo=$ac_try;;
27796 esac
27797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27798   (eval "$ac_compile") 2>conftest.er1
27799   ac_status=$?
27800   grep -v '^ *+' conftest.er1 >conftest.err
27801   rm -f conftest.er1
27802   cat conftest.err >&5
27803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27804   (exit $ac_status); } && {
27805          test -z "$ac_c_werror_flag" ||
27806          test ! -s conftest.err
27807        } && test -s conftest.$ac_objext; then
27808   ol_cv_func_gethostbyaddr_r_nargs7=yes
27809 else
27810   echo "$as_me: failed program was:" >&5
27811 sed 's/^/| /' conftest.$ac_ext >&5
27812
27813         ol_cv_func_gethostbyaddr_r_nargs7=no
27814 fi
27815
27816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27817
27818         cat >conftest.$ac_ext <<_ACEOF
27819 /* confdefs.h.  */
27820 _ACEOF
27821 cat confdefs.h >>conftest.$ac_ext
27822 cat >>conftest.$ac_ext <<_ACEOF
27823 /* end confdefs.h.  */
27824 #include <sys/types.h>
27825 #include <sys/socket.h>
27826 #include <netinet/in.h>
27827 #include <netdb.h>
27828 #define BUFSIZE (sizeof(struct hostent)+10)
27829 int
27830 main ()
27831 {
27832 struct hostent hent;
27833                 struct hostent *rhent; char buffer[BUFSIZE];
27834                 struct in_addr add;
27835                 size_t alen=sizeof(struct in_addr);
27836                 int bufsize=BUFSIZE;int h_errno;
27837                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27838                         alen, AF_INET, &hent, buffer, bufsize,
27839                         &rhent, &h_errno);
27840   ;
27841   return 0;
27842 }
27843 _ACEOF
27844 rm -f conftest.$ac_objext
27845 if { (ac_try="$ac_compile"
27846 case "(($ac_try" in
27847   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27848   *) ac_try_echo=$ac_try;;
27849 esac
27850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27851   (eval "$ac_compile") 2>conftest.er1
27852   ac_status=$?
27853   grep -v '^ *+' conftest.er1 >conftest.err
27854   rm -f conftest.er1
27855   cat conftest.err >&5
27856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27857   (exit $ac_status); } && {
27858          test -z "$ac_c_werror_flag" ||
27859          test ! -s conftest.err
27860        } && test -s conftest.$ac_objext; then
27861   ol_cv_func_gethostbyaddr_r_nargs8=yes
27862 else
27863   echo "$as_me: failed program was:" >&5
27864 sed 's/^/| /' conftest.$ac_ext >&5
27865
27866         ol_cv_func_gethostbyaddr_r_nargs8=no
27867 fi
27868
27869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27870
27871         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27872            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27873
27874                 ol_cv_func_gethostbyaddr_r_nargs=7
27875
27876         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27877              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27878
27879                 ol_cv_func_gethostbyaddr_r_nargs=8
27880
27881         else
27882                 ol_cv_func_gethostbyaddr_r_nargs=0
27883         fi
27884
27885 fi
27886 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27887 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27888   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27889
27890 cat >>confdefs.h <<_ACEOF
27891 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27892 _ACEOF
27893
27894   fi
27895
27896 else
27897         ol_cv_func_gethostbyaddr_r_nargs=0
27898 fi
27899
27900 ol_link_bdb=no
27901
27902 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27903         ol_cv_berkeley_db=no
27904
27905 for ac_header in db.h
27906 do
27907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27909   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27912   echo $ECHO_N "(cached) $ECHO_C" >&6
27913 fi
27914 ac_res=`eval echo '${'$as_ac_Header'}'`
27915                { echo "$as_me:$LINENO: result: $ac_res" >&5
27916 echo "${ECHO_T}$ac_res" >&6; }
27917 else
27918   # Is the header compilable?
27919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27921 cat >conftest.$ac_ext <<_ACEOF
27922 /* confdefs.h.  */
27923 _ACEOF
27924 cat confdefs.h >>conftest.$ac_ext
27925 cat >>conftest.$ac_ext <<_ACEOF
27926 /* end confdefs.h.  */
27927 $ac_includes_default
27928 #include <$ac_header>
27929 _ACEOF
27930 rm -f conftest.$ac_objext
27931 if { (ac_try="$ac_compile"
27932 case "(($ac_try" in
27933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27934   *) ac_try_echo=$ac_try;;
27935 esac
27936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27937   (eval "$ac_compile") 2>conftest.er1
27938   ac_status=$?
27939   grep -v '^ *+' conftest.er1 >conftest.err
27940   rm -f conftest.er1
27941   cat conftest.err >&5
27942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27943   (exit $ac_status); } && {
27944          test -z "$ac_c_werror_flag" ||
27945          test ! -s conftest.err
27946        } && test -s conftest.$ac_objext; then
27947   ac_header_compiler=yes
27948 else
27949   echo "$as_me: failed program was:" >&5
27950 sed 's/^/| /' conftest.$ac_ext >&5
27951
27952         ac_header_compiler=no
27953 fi
27954
27955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27957 echo "${ECHO_T}$ac_header_compiler" >&6; }
27958
27959 # Is the header present?
27960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27962 cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968 #include <$ac_header>
27969 _ACEOF
27970 if { (ac_try="$ac_cpp conftest.$ac_ext"
27971 case "(($ac_try" in
27972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27973   *) ac_try_echo=$ac_try;;
27974 esac
27975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27976   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27977   ac_status=$?
27978   grep -v '^ *+' conftest.er1 >conftest.err
27979   rm -f conftest.er1
27980   cat conftest.err >&5
27981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27982   (exit $ac_status); } >/dev/null && {
27983          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27984          test ! -s conftest.err
27985        }; then
27986   ac_header_preproc=yes
27987 else
27988   echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27990
27991   ac_header_preproc=no
27992 fi
27993
27994 rm -f conftest.err conftest.$ac_ext
27995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27996 echo "${ECHO_T}$ac_header_preproc" >&6; }
27997
27998 # So?  What about this header?
27999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28000   yes:no: )
28001     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28003     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28005     ac_header_preproc=yes
28006     ;;
28007   no:yes:* )
28008     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28010     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28011 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28012     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28014     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28015 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28016     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28018     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28020     ( cat <<\_ASBOX
28021 ## --------------------------------------------- ##
28022 ## Report this to <http://www.openldap.org/its/> ##
28023 ## --------------------------------------------- ##
28024 _ASBOX
28025      ) | sed "s/^/$as_me: WARNING:     /" >&2
28026     ;;
28027 esac
28028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28031   echo $ECHO_N "(cached) $ECHO_C" >&6
28032 else
28033   eval "$as_ac_Header=\$ac_header_preproc"
28034 fi
28035 ac_res=`eval echo '${'$as_ac_Header'}'`
28036                { echo "$as_me:$LINENO: result: $ac_res" >&5
28037 echo "${ECHO_T}$ac_res" >&6; }
28038
28039 fi
28040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28041   cat >>confdefs.h <<_ACEOF
28042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28043 _ACEOF
28044
28045 fi
28046
28047 done
28048
28049 if test $ac_cv_header_db_h = yes; then
28050         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28051 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28052 if test "${ol_cv_bdb_major+set}" = set; then
28053   echo $ECHO_N "(cached) $ECHO_C" >&6
28054 else
28055
28056         cat >conftest.$ac_ext <<_ACEOF
28057
28058 #include <db.h>
28059 #ifndef DB_VERSION_MAJOR
28060 #       define DB_VERSION_MAJOR 1
28061 #endif
28062 __db_version DB_VERSION_MAJOR
28063
28064 _ACEOF
28065         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28066         ol_cv_bdb_major=${3}
28067
28068 fi
28069 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28070 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28071 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28072         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28073 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28074    { (exit 1); exit 1; }; } ;;
28075 esac
28076
28077 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28078 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28079 if test "${ol_cv_bdb_minor+set}" = set; then
28080   echo $ECHO_N "(cached) $ECHO_C" >&6
28081 else
28082
28083         cat >conftest.$ac_ext <<_ACEOF
28084
28085 #include <db.h>
28086 #ifndef DB_VERSION_MINOR
28087 #       define DB_VERSION_MINOR 0
28088 #endif
28089 __db_version DB_VERSION_MINOR
28090
28091 _ACEOF
28092         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28093         ol_cv_bdb_minor=${3}
28094
28095 fi
28096 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28097 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28098 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28099         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28100 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28101    { (exit 1); exit 1; }; } ;;
28102 esac
28103
28104         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28105 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28106 if test "${ol_cv_bdb_compat+set}" = set; then
28107   echo $ECHO_N "(cached) $ECHO_C" >&6
28108 else
28109
28110         cat >conftest.$ac_ext <<_ACEOF
28111 /* confdefs.h.  */
28112 _ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h.  */
28116
28117 #include <db.h>
28118
28119  /* this check could be improved */
28120 #ifndef DB_VERSION_MAJOR
28121 #       define DB_VERSION_MAJOR 1
28122 #endif
28123 #ifndef DB_VERSION_MINOR
28124 #       define DB_VERSION_MINOR 0
28125 #endif
28126
28127 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28128
28129 /* require 4.4 or later */
28130 #if DB_VERSION_MM >= 0x0404
28131         __db_version_compat
28132 #endif
28133
28134 _ACEOF
28135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28136   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28137   ol_cv_bdb_compat=yes
28138 else
28139   ol_cv_bdb_compat=no
28140 fi
28141 rm -f conftest*
28142
28143 fi
28144 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28145 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28146
28147
28148         if test $ol_cv_bdb_compat != yes ; then
28149                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28150 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28151    { (exit 1); exit 1; }; }
28152         fi
28153
28154         ol_cv_lib_db=no
28155
28156 if test $ol_cv_bdb_major = 4 ; then
28157         if test $ol_cv_lib_db = no ; then
28158         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28159 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28160 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28161   echo $ECHO_N "(cached) $ECHO_C" >&6
28162 else
28163
28164         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28165         ol_LIBS=$LIBS
28166         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28167
28168         cat >conftest.$ac_ext <<_ACEOF
28169 /* confdefs.h.  */
28170 _ACEOF
28171 cat confdefs.h >>conftest.$ac_ext
28172 cat >>conftest.$ac_ext <<_ACEOF
28173 /* end confdefs.h.  */
28174
28175 #ifdef HAVE_DB_185_H
28176 # include <db_185.h>
28177 #else
28178 # include <db.h>
28179 #endif
28180
28181 #ifndef DB_VERSION_MAJOR
28182 # define DB_VERSION_MAJOR 1
28183 #endif
28184
28185 #ifndef NULL
28186 #define NULL ((void*)0)
28187 #endif
28188
28189 int
28190 main ()
28191 {
28192
28193 #if DB_VERSION_MAJOR > 2
28194         db_env_create( NULL, 0 );
28195 #elif DB_VERSION_MAJOR > 1
28196         db_appexit( NULL );
28197 #else
28198         (void) dbopen( NULL, 0, 0, 0, NULL);
28199 #endif
28200
28201   ;
28202   return 0;
28203 }
28204 _ACEOF
28205 rm -f conftest.$ac_objext conftest$ac_exeext
28206 if { (ac_try="$ac_link"
28207 case "(($ac_try" in
28208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28209   *) ac_try_echo=$ac_try;;
28210 esac
28211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28212   (eval "$ac_link") 2>conftest.er1
28213   ac_status=$?
28214   grep -v '^ *+' conftest.er1 >conftest.err
28215   rm -f conftest.er1
28216   cat conftest.err >&5
28217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28218   (exit $ac_status); } && {
28219          test -z "$ac_c_werror_flag" ||
28220          test ! -s conftest.err
28221        } && test -s conftest$ac_exeext &&
28222        $as_test_x conftest$ac_exeext; then
28223   ol_cv_db_db_4_dot_m=yes
28224 else
28225   echo "$as_me: failed program was:" >&5
28226 sed 's/^/| /' conftest.$ac_ext >&5
28227
28228         ol_cv_db_db_4_dot_m=no
28229 fi
28230
28231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28232       conftest$ac_exeext conftest.$ac_ext
28233
28234         LIBS="$ol_LIBS"
28235
28236 fi
28237 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28238 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28239
28240         if test $ol_cv_db_db_4_dot_m = yes ; then
28241                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28242         fi
28243 fi
28244
28245         if test $ol_cv_lib_db = no ; then
28246         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28247 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28248 if test "${ol_cv_db_db4m+set}" = set; then
28249   echo $ECHO_N "(cached) $ECHO_C" >&6
28250 else
28251
28252         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28253         ol_LIBS=$LIBS
28254         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28255
28256         cat >conftest.$ac_ext <<_ACEOF
28257 /* confdefs.h.  */
28258 _ACEOF
28259 cat confdefs.h >>conftest.$ac_ext
28260 cat >>conftest.$ac_ext <<_ACEOF
28261 /* end confdefs.h.  */
28262
28263 #ifdef HAVE_DB_185_H
28264 # include <db_185.h>
28265 #else
28266 # include <db.h>
28267 #endif
28268
28269 #ifndef DB_VERSION_MAJOR
28270 # define DB_VERSION_MAJOR 1
28271 #endif
28272
28273 #ifndef NULL
28274 #define NULL ((void*)0)
28275 #endif
28276
28277 int
28278 main ()
28279 {
28280
28281 #if DB_VERSION_MAJOR > 2
28282         db_env_create( NULL, 0 );
28283 #elif DB_VERSION_MAJOR > 1
28284         db_appexit( NULL );
28285 #else
28286         (void) dbopen( NULL, 0, 0, 0, NULL);
28287 #endif
28288
28289   ;
28290   return 0;
28291 }
28292 _ACEOF
28293 rm -f conftest.$ac_objext conftest$ac_exeext
28294 if { (ac_try="$ac_link"
28295 case "(($ac_try" in
28296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28297   *) ac_try_echo=$ac_try;;
28298 esac
28299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28300   (eval "$ac_link") 2>conftest.er1
28301   ac_status=$?
28302   grep -v '^ *+' conftest.er1 >conftest.err
28303   rm -f conftest.er1
28304   cat conftest.err >&5
28305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28306   (exit $ac_status); } && {
28307          test -z "$ac_c_werror_flag" ||
28308          test ! -s conftest.err
28309        } && test -s conftest$ac_exeext &&
28310        $as_test_x conftest$ac_exeext; then
28311   ol_cv_db_db4m=yes
28312 else
28313   echo "$as_me: failed program was:" >&5
28314 sed 's/^/| /' conftest.$ac_ext >&5
28315
28316         ol_cv_db_db4m=no
28317 fi
28318
28319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28320       conftest$ac_exeext conftest.$ac_ext
28321
28322         LIBS="$ol_LIBS"
28323
28324 fi
28325 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28326 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28327
28328         if test $ol_cv_db_db4m = yes ; then
28329                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28330         fi
28331 fi
28332
28333         if test $ol_cv_lib_db = no ; then
28334         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28335 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28336 if test "${ol_cv_db_db_4m+set}" = set; then
28337   echo $ECHO_N "(cached) $ECHO_C" >&6
28338 else
28339
28340         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28341         ol_LIBS=$LIBS
28342         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28343
28344         cat >conftest.$ac_ext <<_ACEOF
28345 /* confdefs.h.  */
28346 _ACEOF
28347 cat confdefs.h >>conftest.$ac_ext
28348 cat >>conftest.$ac_ext <<_ACEOF
28349 /* end confdefs.h.  */
28350
28351 #ifdef HAVE_DB_185_H
28352 # include <db_185.h>
28353 #else
28354 # include <db.h>
28355 #endif
28356
28357 #ifndef DB_VERSION_MAJOR
28358 # define DB_VERSION_MAJOR 1
28359 #endif
28360
28361 #ifndef NULL
28362 #define NULL ((void*)0)
28363 #endif
28364
28365 int
28366 main ()
28367 {
28368
28369 #if DB_VERSION_MAJOR > 2
28370         db_env_create( NULL, 0 );
28371 #elif DB_VERSION_MAJOR > 1
28372         db_appexit( NULL );
28373 #else
28374         (void) dbopen( NULL, 0, 0, 0, NULL);
28375 #endif
28376
28377   ;
28378   return 0;
28379 }
28380 _ACEOF
28381 rm -f conftest.$ac_objext conftest$ac_exeext
28382 if { (ac_try="$ac_link"
28383 case "(($ac_try" in
28384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28385   *) ac_try_echo=$ac_try;;
28386 esac
28387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28388   (eval "$ac_link") 2>conftest.er1
28389   ac_status=$?
28390   grep -v '^ *+' conftest.er1 >conftest.err
28391   rm -f conftest.er1
28392   cat conftest.err >&5
28393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28394   (exit $ac_status); } && {
28395          test -z "$ac_c_werror_flag" ||
28396          test ! -s conftest.err
28397        } && test -s conftest$ac_exeext &&
28398        $as_test_x conftest$ac_exeext; then
28399   ol_cv_db_db_4m=yes
28400 else
28401   echo "$as_me: failed program was:" >&5
28402 sed 's/^/| /' conftest.$ac_ext >&5
28403
28404         ol_cv_db_db_4m=no
28405 fi
28406
28407 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28408       conftest$ac_exeext conftest.$ac_ext
28409
28410         LIBS="$ol_LIBS"
28411
28412 fi
28413 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28414 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28415
28416         if test $ol_cv_db_db_4m = yes ; then
28417                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28418         fi
28419 fi
28420
28421         if test $ol_cv_lib_db = no ; then
28422         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28423 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28424 if test "${ol_cv_db_db_4_m+set}" = set; then
28425   echo $ECHO_N "(cached) $ECHO_C" >&6
28426 else
28427
28428         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
28429         ol_LIBS=$LIBS
28430         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28431
28432         cat >conftest.$ac_ext <<_ACEOF
28433 /* confdefs.h.  */
28434 _ACEOF
28435 cat confdefs.h >>conftest.$ac_ext
28436 cat >>conftest.$ac_ext <<_ACEOF
28437 /* end confdefs.h.  */
28438
28439 #ifdef HAVE_DB_185_H
28440 # include <db_185.h>
28441 #else
28442 # include <db.h>
28443 #endif
28444
28445 #ifndef DB_VERSION_MAJOR
28446 # define DB_VERSION_MAJOR 1
28447 #endif
28448
28449 #ifndef NULL
28450 #define NULL ((void*)0)
28451 #endif
28452
28453 int
28454 main ()
28455 {
28456
28457 #if DB_VERSION_MAJOR > 2
28458         db_env_create( NULL, 0 );
28459 #elif DB_VERSION_MAJOR > 1
28460         db_appexit( NULL );
28461 #else
28462         (void) dbopen( NULL, 0, 0, 0, NULL);
28463 #endif
28464
28465   ;
28466   return 0;
28467 }
28468 _ACEOF
28469 rm -f conftest.$ac_objext conftest$ac_exeext
28470 if { (ac_try="$ac_link"
28471 case "(($ac_try" in
28472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28473   *) ac_try_echo=$ac_try;;
28474 esac
28475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28476   (eval "$ac_link") 2>conftest.er1
28477   ac_status=$?
28478   grep -v '^ *+' conftest.er1 >conftest.err
28479   rm -f conftest.er1
28480   cat conftest.err >&5
28481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28482   (exit $ac_status); } && {
28483          test -z "$ac_c_werror_flag" ||
28484          test ! -s conftest.err
28485        } && test -s conftest$ac_exeext &&
28486        $as_test_x conftest$ac_exeext; then
28487   ol_cv_db_db_4_m=yes
28488 else
28489   echo "$as_me: failed program was:" >&5
28490 sed 's/^/| /' conftest.$ac_ext >&5
28491
28492         ol_cv_db_db_4_m=no
28493 fi
28494
28495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28496       conftest$ac_exeext conftest.$ac_ext
28497
28498         LIBS="$ol_LIBS"
28499
28500 fi
28501 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
28502 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
28503
28504         if test $ol_cv_db_db_4_m = yes ; then
28505                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
28506         fi
28507 fi
28508
28509         if test $ol_cv_lib_db = no ; then
28510         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
28511 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
28512 if test "${ol_cv_db_db_4+set}" = set; then
28513   echo $ECHO_N "(cached) $ECHO_C" >&6
28514 else
28515
28516         ol_DB_LIB=-ldb-4
28517         ol_LIBS=$LIBS
28518         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28519
28520         cat >conftest.$ac_ext <<_ACEOF
28521 /* confdefs.h.  */
28522 _ACEOF
28523 cat confdefs.h >>conftest.$ac_ext
28524 cat >>conftest.$ac_ext <<_ACEOF
28525 /* end confdefs.h.  */
28526
28527 #ifdef HAVE_DB_185_H
28528 # include <db_185.h>
28529 #else
28530 # include <db.h>
28531 #endif
28532
28533 #ifndef DB_VERSION_MAJOR
28534 # define DB_VERSION_MAJOR 1
28535 #endif
28536
28537 #ifndef NULL
28538 #define NULL ((void*)0)
28539 #endif
28540
28541 int
28542 main ()
28543 {
28544
28545 #if DB_VERSION_MAJOR > 2
28546         db_env_create( NULL, 0 );
28547 #elif DB_VERSION_MAJOR > 1
28548         db_appexit( NULL );
28549 #else
28550         (void) dbopen( NULL, 0, 0, 0, NULL);
28551 #endif
28552
28553   ;
28554   return 0;
28555 }
28556 _ACEOF
28557 rm -f conftest.$ac_objext conftest$ac_exeext
28558 if { (ac_try="$ac_link"
28559 case "(($ac_try" in
28560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28561   *) ac_try_echo=$ac_try;;
28562 esac
28563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28564   (eval "$ac_link") 2>conftest.er1
28565   ac_status=$?
28566   grep -v '^ *+' conftest.er1 >conftest.err
28567   rm -f conftest.er1
28568   cat conftest.err >&5
28569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28570   (exit $ac_status); } && {
28571          test -z "$ac_c_werror_flag" ||
28572          test ! -s conftest.err
28573        } && test -s conftest$ac_exeext &&
28574        $as_test_x conftest$ac_exeext; then
28575   ol_cv_db_db_4=yes
28576 else
28577   echo "$as_me: failed program was:" >&5
28578 sed 's/^/| /' conftest.$ac_ext >&5
28579
28580         ol_cv_db_db_4=no
28581 fi
28582
28583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28584       conftest$ac_exeext conftest.$ac_ext
28585
28586         LIBS="$ol_LIBS"
28587
28588 fi
28589 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
28590 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
28591
28592         if test $ol_cv_db_db_4 = yes ; then
28593                 ol_cv_lib_db=-ldb-4
28594         fi
28595 fi
28596
28597         if test $ol_cv_lib_db = no ; then
28598         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
28599 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
28600 if test "${ol_cv_db_db4+set}" = set; then
28601   echo $ECHO_N "(cached) $ECHO_C" >&6
28602 else
28603
28604         ol_DB_LIB=-ldb4
28605         ol_LIBS=$LIBS
28606         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28607
28608         cat >conftest.$ac_ext <<_ACEOF
28609 /* confdefs.h.  */
28610 _ACEOF
28611 cat confdefs.h >>conftest.$ac_ext
28612 cat >>conftest.$ac_ext <<_ACEOF
28613 /* end confdefs.h.  */
28614
28615 #ifdef HAVE_DB_185_H
28616 # include <db_185.h>
28617 #else
28618 # include <db.h>
28619 #endif
28620
28621 #ifndef DB_VERSION_MAJOR
28622 # define DB_VERSION_MAJOR 1
28623 #endif
28624
28625 #ifndef NULL
28626 #define NULL ((void*)0)
28627 #endif
28628
28629 int
28630 main ()
28631 {
28632
28633 #if DB_VERSION_MAJOR > 2
28634         db_env_create( NULL, 0 );
28635 #elif DB_VERSION_MAJOR > 1
28636         db_appexit( NULL );
28637 #else
28638         (void) dbopen( NULL, 0, 0, 0, NULL);
28639 #endif
28640
28641   ;
28642   return 0;
28643 }
28644 _ACEOF
28645 rm -f conftest.$ac_objext conftest$ac_exeext
28646 if { (ac_try="$ac_link"
28647 case "(($ac_try" in
28648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28649   *) ac_try_echo=$ac_try;;
28650 esac
28651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28652   (eval "$ac_link") 2>conftest.er1
28653   ac_status=$?
28654   grep -v '^ *+' conftest.er1 >conftest.err
28655   rm -f conftest.er1
28656   cat conftest.err >&5
28657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28658   (exit $ac_status); } && {
28659          test -z "$ac_c_werror_flag" ||
28660          test ! -s conftest.err
28661        } && test -s conftest$ac_exeext &&
28662        $as_test_x conftest$ac_exeext; then
28663   ol_cv_db_db4=yes
28664 else
28665   echo "$as_me: failed program was:" >&5
28666 sed 's/^/| /' conftest.$ac_ext >&5
28667
28668         ol_cv_db_db4=no
28669 fi
28670
28671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28672       conftest$ac_exeext conftest.$ac_ext
28673
28674         LIBS="$ol_LIBS"
28675
28676 fi
28677 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
28678 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
28679
28680         if test $ol_cv_db_db4 = yes ; then
28681                 ol_cv_lib_db=-ldb4
28682         fi
28683 fi
28684
28685         if test $ol_cv_lib_db = no ; then
28686         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
28687 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
28688 if test "${ol_cv_db_db+set}" = set; then
28689   echo $ECHO_N "(cached) $ECHO_C" >&6
28690 else
28691
28692         ol_DB_LIB=-ldb
28693         ol_LIBS=$LIBS
28694         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28695
28696         cat >conftest.$ac_ext <<_ACEOF
28697 /* confdefs.h.  */
28698 _ACEOF
28699 cat confdefs.h >>conftest.$ac_ext
28700 cat >>conftest.$ac_ext <<_ACEOF
28701 /* end confdefs.h.  */
28702
28703 #ifdef HAVE_DB_185_H
28704 # include <db_185.h>
28705 #else
28706 # include <db.h>
28707 #endif
28708
28709 #ifndef DB_VERSION_MAJOR
28710 # define DB_VERSION_MAJOR 1
28711 #endif
28712
28713 #ifndef NULL
28714 #define NULL ((void*)0)
28715 #endif
28716
28717 int
28718 main ()
28719 {
28720
28721 #if DB_VERSION_MAJOR > 2
28722         db_env_create( NULL, 0 );
28723 #elif DB_VERSION_MAJOR > 1
28724         db_appexit( NULL );
28725 #else
28726         (void) dbopen( NULL, 0, 0, 0, NULL);
28727 #endif
28728
28729   ;
28730   return 0;
28731 }
28732 _ACEOF
28733 rm -f conftest.$ac_objext conftest$ac_exeext
28734 if { (ac_try="$ac_link"
28735 case "(($ac_try" in
28736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28737   *) ac_try_echo=$ac_try;;
28738 esac
28739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28740   (eval "$ac_link") 2>conftest.er1
28741   ac_status=$?
28742   grep -v '^ *+' conftest.er1 >conftest.err
28743   rm -f conftest.er1
28744   cat conftest.err >&5
28745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28746   (exit $ac_status); } && {
28747          test -z "$ac_c_werror_flag" ||
28748          test ! -s conftest.err
28749        } && test -s conftest$ac_exeext &&
28750        $as_test_x conftest$ac_exeext; then
28751   ol_cv_db_db=yes
28752 else
28753   echo "$as_me: failed program was:" >&5
28754 sed 's/^/| /' conftest.$ac_ext >&5
28755
28756         ol_cv_db_db=no
28757 fi
28758
28759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28760       conftest$ac_exeext conftest.$ac_ext
28761
28762         LIBS="$ol_LIBS"
28763
28764 fi
28765 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
28766 echo "${ECHO_T}$ol_cv_db_db" >&6; }
28767
28768         if test $ol_cv_db_db = yes ; then
28769                 ol_cv_lib_db=-ldb
28770         fi
28771 fi
28772
28773 fi
28774 if test $ol_cv_lib_db = no ; then
28775         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
28776 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
28777 if test "${ol_cv_db_none+set}" = set; then
28778   echo $ECHO_N "(cached) $ECHO_C" >&6
28779 else
28780
28781         ol_DB_LIB=
28782         ol_LIBS=$LIBS
28783         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28784
28785         cat >conftest.$ac_ext <<_ACEOF
28786 /* confdefs.h.  */
28787 _ACEOF
28788 cat confdefs.h >>conftest.$ac_ext
28789 cat >>conftest.$ac_ext <<_ACEOF
28790 /* end confdefs.h.  */
28791
28792 #ifdef HAVE_DB_185_H
28793 # include <db_185.h>
28794 #else
28795 # include <db.h>
28796 #endif
28797
28798 #ifndef DB_VERSION_MAJOR
28799 # define DB_VERSION_MAJOR 1
28800 #endif
28801
28802 #ifndef NULL
28803 #define NULL ((void*)0)
28804 #endif
28805
28806 int
28807 main ()
28808 {
28809
28810 #if DB_VERSION_MAJOR > 2
28811         db_env_create( NULL, 0 );
28812 #elif DB_VERSION_MAJOR > 1
28813         db_appexit( NULL );
28814 #else
28815         (void) dbopen( NULL, 0, 0, 0, NULL);
28816 #endif
28817
28818   ;
28819   return 0;
28820 }
28821 _ACEOF
28822 rm -f conftest.$ac_objext conftest$ac_exeext
28823 if { (ac_try="$ac_link"
28824 case "(($ac_try" in
28825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28826   *) ac_try_echo=$ac_try;;
28827 esac
28828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28829   (eval "$ac_link") 2>conftest.er1
28830   ac_status=$?
28831   grep -v '^ *+' conftest.er1 >conftest.err
28832   rm -f conftest.er1
28833   cat conftest.err >&5
28834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28835   (exit $ac_status); } && {
28836          test -z "$ac_c_werror_flag" ||
28837          test ! -s conftest.err
28838        } && test -s conftest$ac_exeext &&
28839        $as_test_x conftest$ac_exeext; then
28840   ol_cv_db_none=yes
28841 else
28842   echo "$as_me: failed program was:" >&5
28843 sed 's/^/| /' conftest.$ac_ext >&5
28844
28845         ol_cv_db_none=no
28846 fi
28847
28848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28849       conftest$ac_exeext conftest.$ac_ext
28850
28851         LIBS="$ol_LIBS"
28852
28853 fi
28854 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
28855 echo "${ECHO_T}$ol_cv_db_none" >&6; }
28856
28857         if test $ol_cv_db_none = yes ; then
28858                 ol_cv_lib_db=yes
28859         fi
28860 fi
28861
28862
28863         if test "$ol_cv_lib_db" != no ; then
28864                 ol_cv_berkeley_db=yes
28865                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
28866 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
28867 if test "${ol_cv_berkeley_db_version+set}" = set; then
28868   echo $ECHO_N "(cached) $ECHO_C" >&6
28869 else
28870
28871         ol_LIBS="$LIBS"
28872         LIBS="$LTHREAD_LIBS $LIBS"
28873         if test $ol_cv_lib_db != yes ; then
28874                 LIBS="$ol_cv_lib_db $LIBS"
28875         fi
28876
28877         if test "$cross_compiling" = yes; then
28878   ol_cv_berkeley_db_version=cross
28879 else
28880   cat >conftest.$ac_ext <<_ACEOF
28881 /* confdefs.h.  */
28882 _ACEOF
28883 cat confdefs.h >>conftest.$ac_ext
28884 cat >>conftest.$ac_ext <<_ACEOF
28885 /* end confdefs.h.  */
28886
28887 #ifdef HAVE_DB_185_H
28888         choke me;
28889 #else
28890 #include <db.h>
28891 #endif
28892 #ifndef DB_VERSION_MAJOR
28893 # define DB_VERSION_MAJOR 1
28894 #endif
28895 #ifndef NULL
28896 #define NULL ((void *)0)
28897 #endif
28898 main()
28899 {
28900 #if DB_VERSION_MAJOR > 1
28901         char *version;
28902         int major, minor, patch;
28903
28904         version = db_version( &major, &minor, &patch );
28905
28906         if( major != DB_VERSION_MAJOR ||
28907                 minor != DB_VERSION_MINOR ||
28908                 patch != DB_VERSION_PATCH )
28909         {
28910                 printf("Berkeley DB version mismatch\n"
28911                         "\theader: %s\n\tlibrary: %s\n",
28912                         DB_VERSION_STRING, version);
28913                 return 1;
28914         }
28915 #endif
28916
28917         return 0;
28918 }
28919 _ACEOF
28920 rm -f conftest$ac_exeext
28921 if { (ac_try="$ac_link"
28922 case "(($ac_try" in
28923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28924   *) ac_try_echo=$ac_try;;
28925 esac
28926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28927   (eval "$ac_link") 2>&5
28928   ac_status=$?
28929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28930   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28931   { (case "(($ac_try" in
28932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28933   *) ac_try_echo=$ac_try;;
28934 esac
28935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28936   (eval "$ac_try") 2>&5
28937   ac_status=$?
28938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28939   (exit $ac_status); }; }; then
28940   ol_cv_berkeley_db_version=yes
28941 else
28942   echo "$as_me: program exited with status $ac_status" >&5
28943 echo "$as_me: failed program was:" >&5
28944 sed 's/^/| /' conftest.$ac_ext >&5
28945
28946 ( exit $ac_status )
28947 ol_cv_berkeley_db_version=no
28948 fi
28949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28950 fi
28951
28952
28953
28954         LIBS="$ol_LIBS"
28955
28956 fi
28957 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
28958 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
28959
28960         if test $ol_cv_berkeley_db_version = no ; then
28961                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
28962 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
28963    { (exit 1); exit 1; }; }
28964         fi
28965
28966                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
28967 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
28968 if test "${ol_cv_berkeley_db_thread+set}" = set; then
28969   echo $ECHO_N "(cached) $ECHO_C" >&6
28970 else
28971
28972         ol_LIBS="$LIBS"
28973         LIBS="$LTHREAD_LIBS $LIBS"
28974         if test $ol_cv_lib_db != yes ; then
28975                 LIBS="$ol_cv_lib_db $LIBS"
28976         fi
28977
28978         if test "$cross_compiling" = yes; then
28979   ol_cv_berkeley_db_thread=cross
28980 else
28981   cat >conftest.$ac_ext <<_ACEOF
28982 /* confdefs.h.  */
28983 _ACEOF
28984 cat confdefs.h >>conftest.$ac_ext
28985 cat >>conftest.$ac_ext <<_ACEOF
28986 /* end confdefs.h.  */
28987
28988 #ifdef HAVE_DB_185_H
28989         choke me;
28990 #else
28991 #include <db.h>
28992 #endif
28993 #ifndef NULL
28994 #define NULL ((void *)0)
28995 #endif
28996 main()
28997 {
28998         int rc;
28999         u_int32_t flags = DB_CREATE |
29000 #ifdef DB_PRIVATE
29001                 DB_PRIVATE |
29002 #endif
29003                 DB_THREAD;
29004
29005 #if DB_VERSION_MAJOR > 2
29006         DB_ENV *env = NULL;
29007
29008         rc = db_env_create( &env, 0 );
29009
29010         flags |= DB_INIT_MPOOL;
29011 #ifdef DB_MPOOL_PRIVATE
29012         flags |= DB_MPOOL_PRIVATE;
29013 #endif
29014
29015         if( rc ) {
29016                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29017                 return rc;
29018         }
29019
29020 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29021         rc = (env->open)( env, NULL, flags, 0 );
29022 #else
29023         rc = (env->open)( env, NULL, NULL, flags, 0 );
29024 #endif
29025
29026         if ( rc == 0 ) {
29027                 rc = env->close( env, 0 );
29028         }
29029
29030         if( rc ) {
29031                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29032                 return rc;
29033         }
29034
29035 #else
29036         DB_ENV env;
29037         memset( &env, '\0', sizeof(env) );
29038
29039         rc = db_appinit( NULL, NULL, &env, flags );
29040
29041         if( rc == 0 ) {
29042                 db_appexit( &env );
29043         }
29044
29045         unlink("__db_mpool.share");
29046         unlink("__db_lock.share");
29047 #endif
29048
29049         return rc;
29050 }
29051 _ACEOF
29052 rm -f conftest$ac_exeext
29053 if { (ac_try="$ac_link"
29054 case "(($ac_try" in
29055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29056   *) ac_try_echo=$ac_try;;
29057 esac
29058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29059   (eval "$ac_link") 2>&5
29060   ac_status=$?
29061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29063   { (case "(($ac_try" in
29064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29065   *) ac_try_echo=$ac_try;;
29066 esac
29067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29068   (eval "$ac_try") 2>&5
29069   ac_status=$?
29070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29071   (exit $ac_status); }; }; then
29072   ol_cv_berkeley_db_thread=yes
29073 else
29074   echo "$as_me: program exited with status $ac_status" >&5
29075 echo "$as_me: failed program was:" >&5
29076 sed 's/^/| /' conftest.$ac_ext >&5
29077
29078 ( exit $ac_status )
29079 ol_cv_berkeley_db_thread=no
29080 fi
29081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29082 fi
29083
29084
29085
29086         LIBS="$ol_LIBS"
29087
29088 fi
29089 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29090 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29091
29092         if test $ol_cv_berkeley_db_thread != no ; then
29093
29094 cat >>confdefs.h <<\_ACEOF
29095 #define HAVE_BERKELEY_DB_THREAD 1
29096 _ACEOF
29097
29098         fi
29099
29100         fi
29101 fi
29102
29103
29104         if test $ol_cv_berkeley_db = no ; then
29105                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29106 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29107    { (exit 1); exit 1; }; }
29108         fi
29109
29110
29111 cat >>confdefs.h <<\_ACEOF
29112 #define HAVE_BERKELEY_DB 1
29113 _ACEOF
29114
29115
29116                         if test $ol_cv_lib_db != yes ; then
29117                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29118         fi
29119
29120         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29121
29122         ol_link_bdb=yes
29123 fi
29124
29125
29126 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29127         BUILD_LIBS_DYNAMIC=shared
29128
29129 cat >>confdefs.h <<\_ACEOF
29130 #define LDAP_LIBS_DYNAMIC 1
29131 _ACEOF
29132
29133         LTSTATIC=""
29134 else
29135         BUILD_LIBS_DYNAMIC=static
29136         LTSTATIC="-static"
29137 fi
29138
29139 if test $ol_enable_wrappers != no ; then
29140
29141 for ac_header in tcpd.h
29142 do
29143 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29145   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29148   echo $ECHO_N "(cached) $ECHO_C" >&6
29149 fi
29150 ac_res=`eval echo '${'$as_ac_Header'}'`
29151                { echo "$as_me:$LINENO: result: $ac_res" >&5
29152 echo "${ECHO_T}$ac_res" >&6; }
29153 else
29154   # Is the header compilable?
29155 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29156 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29157 cat >conftest.$ac_ext <<_ACEOF
29158 /* confdefs.h.  */
29159 _ACEOF
29160 cat confdefs.h >>conftest.$ac_ext
29161 cat >>conftest.$ac_ext <<_ACEOF
29162 /* end confdefs.h.  */
29163 $ac_includes_default
29164 #include <$ac_header>
29165 _ACEOF
29166 rm -f conftest.$ac_objext
29167 if { (ac_try="$ac_compile"
29168 case "(($ac_try" in
29169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29170   *) ac_try_echo=$ac_try;;
29171 esac
29172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29173   (eval "$ac_compile") 2>conftest.er1
29174   ac_status=$?
29175   grep -v '^ *+' conftest.er1 >conftest.err
29176   rm -f conftest.er1
29177   cat conftest.err >&5
29178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179   (exit $ac_status); } && {
29180          test -z "$ac_c_werror_flag" ||
29181          test ! -s conftest.err
29182        } && test -s conftest.$ac_objext; then
29183   ac_header_compiler=yes
29184 else
29185   echo "$as_me: failed program was:" >&5
29186 sed 's/^/| /' conftest.$ac_ext >&5
29187
29188         ac_header_compiler=no
29189 fi
29190
29191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29192 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29193 echo "${ECHO_T}$ac_header_compiler" >&6; }
29194
29195 # Is the header present?
29196 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29197 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29198 cat >conftest.$ac_ext <<_ACEOF
29199 /* confdefs.h.  */
29200 _ACEOF
29201 cat confdefs.h >>conftest.$ac_ext
29202 cat >>conftest.$ac_ext <<_ACEOF
29203 /* end confdefs.h.  */
29204 #include <$ac_header>
29205 _ACEOF
29206 if { (ac_try="$ac_cpp conftest.$ac_ext"
29207 case "(($ac_try" in
29208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29209   *) ac_try_echo=$ac_try;;
29210 esac
29211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29212   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29213   ac_status=$?
29214   grep -v '^ *+' conftest.er1 >conftest.err
29215   rm -f conftest.er1
29216   cat conftest.err >&5
29217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29218   (exit $ac_status); } >/dev/null && {
29219          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29220          test ! -s conftest.err
29221        }; then
29222   ac_header_preproc=yes
29223 else
29224   echo "$as_me: failed program was:" >&5
29225 sed 's/^/| /' conftest.$ac_ext >&5
29226
29227   ac_header_preproc=no
29228 fi
29229
29230 rm -f conftest.err conftest.$ac_ext
29231 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29232 echo "${ECHO_T}$ac_header_preproc" >&6; }
29233
29234 # So?  What about this header?
29235 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29236   yes:no: )
29237     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29238 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29239     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29240 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29241     ac_header_preproc=yes
29242     ;;
29243   no:yes:* )
29244     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29245 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29246     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29247 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29248     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29249 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29250     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29251 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29254     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29255 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29256     ( cat <<\_ASBOX
29257 ## --------------------------------------------- ##
29258 ## Report this to <http://www.openldap.org/its/> ##
29259 ## --------------------------------------------- ##
29260 _ASBOX
29261      ) | sed "s/^/$as_me: WARNING:     /" >&2
29262     ;;
29263 esac
29264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29267   echo $ECHO_N "(cached) $ECHO_C" >&6
29268 else
29269   eval "$as_ac_Header=\$ac_header_preproc"
29270 fi
29271 ac_res=`eval echo '${'$as_ac_Header'}'`
29272                { echo "$as_me:$LINENO: result: $ac_res" >&5
29273 echo "${ECHO_T}$ac_res" >&6; }
29274
29275 fi
29276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29277   cat >>confdefs.h <<_ACEOF
29278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29279 _ACEOF
29280
29281                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29282 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29283                 save_LIBS="$LIBS"
29284                 LIBS="$LIBS -lwrap"
29285                 cat >conftest.$ac_ext <<_ACEOF
29286 /* confdefs.h.  */
29287 _ACEOF
29288 cat confdefs.h >>conftest.$ac_ext
29289 cat >>conftest.$ac_ext <<_ACEOF
29290 /* end confdefs.h.  */
29291
29292 #include <tcpd.h>
29293 int allow_severity = 0;
29294 int deny_severity  = 0;
29295
29296 struct request_info *req;
29297
29298 int
29299 main ()
29300 {
29301
29302 hosts_access(req)
29303
29304   ;
29305   return 0;
29306 }
29307 _ACEOF
29308 rm -f conftest.$ac_objext conftest$ac_exeext
29309 if { (ac_try="$ac_link"
29310 case "(($ac_try" in
29311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29312   *) ac_try_echo=$ac_try;;
29313 esac
29314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29315   (eval "$ac_link") 2>conftest.er1
29316   ac_status=$?
29317   grep -v '^ *+' conftest.er1 >conftest.err
29318   rm -f conftest.er1
29319   cat conftest.err >&5
29320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321   (exit $ac_status); } && {
29322          test -z "$ac_c_werror_flag" ||
29323          test ! -s conftest.err
29324        } && test -s conftest$ac_exeext &&
29325        $as_test_x conftest$ac_exeext; then
29326   { echo "$as_me:$LINENO: result: -lwrap" >&5
29327 echo "${ECHO_T}-lwrap" >&6; }
29328                 have_wrappers=yes
29329                 LIBS="$save_LIBS"
29330 else
29331   echo "$as_me: failed program was:" >&5
29332 sed 's/^/| /' conftest.$ac_ext >&5
29333
29334
29335                                 LIBS="$LIBS -lnsl"
29336                 cat >conftest.$ac_ext <<_ACEOF
29337 /* confdefs.h.  */
29338 _ACEOF
29339 cat confdefs.h >>conftest.$ac_ext
29340 cat >>conftest.$ac_ext <<_ACEOF
29341 /* end confdefs.h.  */
29342
29343 #include <tcpd.h>
29344 int allow_severity = 0;
29345 int deny_severity  = 0;
29346
29347 struct request_info *req;
29348
29349 int
29350 main ()
29351 {
29352
29353 hosts_access(req)
29354
29355   ;
29356   return 0;
29357 }
29358 _ACEOF
29359 rm -f conftest.$ac_objext conftest$ac_exeext
29360 if { (ac_try="$ac_link"
29361 case "(($ac_try" in
29362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29363   *) ac_try_echo=$ac_try;;
29364 esac
29365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29366   (eval "$ac_link") 2>conftest.er1
29367   ac_status=$?
29368   grep -v '^ *+' conftest.er1 >conftest.err
29369   rm -f conftest.er1
29370   cat conftest.err >&5
29371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29372   (exit $ac_status); } && {
29373          test -z "$ac_c_werror_flag" ||
29374          test ! -s conftest.err
29375        } && test -s conftest$ac_exeext &&
29376        $as_test_x conftest$ac_exeext; then
29377   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29378 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29379                 have_wrappers=yes
29380                 LIBS="$save_LIBS -lnsl"
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385
29386                 { echo "$as_me:$LINENO: result: no" >&5
29387 echo "${ECHO_T}no" >&6; }
29388                 have_wrappers=no
29389                 LIBS=$save_LIBS
29390 fi
29391
29392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29393       conftest$ac_exeext conftest.$ac_ext
29394 fi
29395
29396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29397       conftest$ac_exeext conftest.$ac_ext
29398 else
29399   have_wrappers=no
29400 fi
29401
29402 done
29403
29404
29405         if test $have_wrappers = yes ; then
29406
29407 cat >>confdefs.h <<\_ACEOF
29408 #define HAVE_TCPD 1
29409 _ACEOF
29410
29411                 WRAP_LIBS="-lwrap"
29412         elif test $ol_enable_wrappers = yes ; then
29413                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29414 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29415    { (exit 1); exit 1; }; }
29416         else
29417                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29418 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29419                 WRAP_LIBS=""
29420         fi
29421 fi
29422
29423 if test $ol_enable_syslog != no ; then
29424         { echo "$as_me:$LINENO: checking for openlog" >&5
29425 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29426 if test "${ac_cv_func_openlog+set}" = set; then
29427   echo $ECHO_N "(cached) $ECHO_C" >&6
29428 else
29429   cat >conftest.$ac_ext <<_ACEOF
29430 /* confdefs.h.  */
29431 _ACEOF
29432 cat confdefs.h >>conftest.$ac_ext
29433 cat >>conftest.$ac_ext <<_ACEOF
29434 /* end confdefs.h.  */
29435 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
29436    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29437 #define openlog innocuous_openlog
29438
29439 /* System header to define __stub macros and hopefully few prototypes,
29440     which can conflict with char openlog (); below.
29441     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29442     <limits.h> exists even on freestanding compilers.  */
29443
29444 #ifdef __STDC__
29445 # include <limits.h>
29446 #else
29447 # include <assert.h>
29448 #endif
29449
29450 #undef openlog
29451
29452 /* Override any GCC internal prototype to avoid an error.
29453    Use char because int might match the return type of a GCC
29454    builtin and then its argument prototype would still apply.  */
29455 #ifdef __cplusplus
29456 extern "C"
29457 #endif
29458 char openlog ();
29459 /* The GNU C library defines this for functions which it implements
29460     to always fail with ENOSYS.  Some functions are actually named
29461     something starting with __ and the normal name is an alias.  */
29462 #if defined __stub_openlog || defined __stub___openlog
29463 choke me
29464 #endif
29465
29466 int
29467 main ()
29468 {
29469 return openlog ();
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 rm -f conftest.$ac_objext conftest$ac_exeext
29475 if { (ac_try="$ac_link"
29476 case "(($ac_try" in
29477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29478   *) ac_try_echo=$ac_try;;
29479 esac
29480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29481   (eval "$ac_link") 2>conftest.er1
29482   ac_status=$?
29483   grep -v '^ *+' conftest.er1 >conftest.err
29484   rm -f conftest.er1
29485   cat conftest.err >&5
29486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487   (exit $ac_status); } && {
29488          test -z "$ac_c_werror_flag" ||
29489          test ! -s conftest.err
29490        } && test -s conftest$ac_exeext &&
29491        $as_test_x conftest$ac_exeext; then
29492   ac_cv_func_openlog=yes
29493 else
29494   echo "$as_me: failed program was:" >&5
29495 sed 's/^/| /' conftest.$ac_ext >&5
29496
29497         ac_cv_func_openlog=no
29498 fi
29499
29500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29501       conftest$ac_exeext conftest.$ac_ext
29502 fi
29503 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
29504 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
29505
29506         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
29507                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
29508 echo "$as_me: error: could not find syslog" >&2;}
29509    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
29510         fi
29511         ol_enable_syslog=$ac_cv_func_openlog
29512 fi
29513
29514 ol_link_sql=no
29515 if test $ol_enable_sql != no ; then
29516
29517
29518 for ac_header in sql.h sqlext.h
29519 do
29520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29522   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29525   echo $ECHO_N "(cached) $ECHO_C" >&6
29526 fi
29527 ac_res=`eval echo '${'$as_ac_Header'}'`
29528                { echo "$as_me:$LINENO: result: $ac_res" >&5
29529 echo "${ECHO_T}$ac_res" >&6; }
29530 else
29531   # Is the header compilable?
29532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29534 cat >conftest.$ac_ext <<_ACEOF
29535 /* confdefs.h.  */
29536 _ACEOF
29537 cat confdefs.h >>conftest.$ac_ext
29538 cat >>conftest.$ac_ext <<_ACEOF
29539 /* end confdefs.h.  */
29540 $ac_includes_default
29541 #include <$ac_header>
29542 _ACEOF
29543 rm -f conftest.$ac_objext
29544 if { (ac_try="$ac_compile"
29545 case "(($ac_try" in
29546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29547   *) ac_try_echo=$ac_try;;
29548 esac
29549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29550   (eval "$ac_compile") 2>conftest.er1
29551   ac_status=$?
29552   grep -v '^ *+' conftest.er1 >conftest.err
29553   rm -f conftest.er1
29554   cat conftest.err >&5
29555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29556   (exit $ac_status); } && {
29557          test -z "$ac_c_werror_flag" ||
29558          test ! -s conftest.err
29559        } && test -s conftest.$ac_objext; then
29560   ac_header_compiler=yes
29561 else
29562   echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29564
29565         ac_header_compiler=no
29566 fi
29567
29568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29570 echo "${ECHO_T}$ac_header_compiler" >&6; }
29571
29572 # Is the header present?
29573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29575 cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h.  */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h.  */
29581 #include <$ac_header>
29582 _ACEOF
29583 if { (ac_try="$ac_cpp conftest.$ac_ext"
29584 case "(($ac_try" in
29585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29586   *) ac_try_echo=$ac_try;;
29587 esac
29588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29589   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29590   ac_status=$?
29591   grep -v '^ *+' conftest.er1 >conftest.err
29592   rm -f conftest.er1
29593   cat conftest.err >&5
29594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29595   (exit $ac_status); } >/dev/null && {
29596          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29597          test ! -s conftest.err
29598        }; then
29599   ac_header_preproc=yes
29600 else
29601   echo "$as_me: failed program was:" >&5
29602 sed 's/^/| /' conftest.$ac_ext >&5
29603
29604   ac_header_preproc=no
29605 fi
29606
29607 rm -f conftest.err conftest.$ac_ext
29608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29609 echo "${ECHO_T}$ac_header_preproc" >&6; }
29610
29611 # So?  What about this header?
29612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29613   yes:no: )
29614     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29615 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29616     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29617 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29618     ac_header_preproc=yes
29619     ;;
29620   no:yes:* )
29621     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29622 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29623     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29624 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29625     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29626 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29627     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29628 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29630 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29631     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29632 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29633     ( cat <<\_ASBOX
29634 ## --------------------------------------------- ##
29635 ## Report this to <http://www.openldap.org/its/> ##
29636 ## --------------------------------------------- ##
29637 _ASBOX
29638      ) | sed "s/^/$as_me: WARNING:     /" >&2
29639     ;;
29640 esac
29641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29644   echo $ECHO_N "(cached) $ECHO_C" >&6
29645 else
29646   eval "$as_ac_Header=\$ac_header_preproc"
29647 fi
29648 ac_res=`eval echo '${'$as_ac_Header'}'`
29649                { echo "$as_me:$LINENO: result: $ac_res" >&5
29650 echo "${ECHO_T}$ac_res" >&6; }
29651
29652 fi
29653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29654   cat >>confdefs.h <<_ACEOF
29655 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29656 _ACEOF
29657
29658 else
29659
29660                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
29661 echo "$as_me: error: could not locate SQL headers" >&2;}
29662    { (exit 1); exit 1; }; }
29663
29664 fi
29665
29666 done
29667
29668
29669         sql_LIBS="$LIBS"
29670         LIBS="$LTHREAD_LIBS"
29671
29672         if test $ol_with_odbc = auto ; then
29673                 ol_with_odbc="iodbc unixodbc odbc32"
29674         fi
29675
29676         for odbc in $ol_with_odbc ; do
29677                 if test $ol_link_sql = no ; then
29678                         case $odbc in
29679                         iodbc)
29680                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
29681 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
29682 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
29683   echo $ECHO_N "(cached) $ECHO_C" >&6
29684 else
29685   ac_check_lib_save_LIBS=$LIBS
29686 LIBS="-liodbc  $LIBS"
29687 cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693
29694 /* Override any GCC internal prototype to avoid an error.
29695    Use char because int might match the return type of a GCC
29696    builtin and then its argument prototype would still apply.  */
29697 #ifdef __cplusplus
29698 extern "C"
29699 #endif
29700 char SQLDriverConnect ();
29701 int
29702 main ()
29703 {
29704 return SQLDriverConnect ();
29705   ;
29706   return 0;
29707 }
29708 _ACEOF
29709 rm -f conftest.$ac_objext conftest$ac_exeext
29710 if { (ac_try="$ac_link"
29711 case "(($ac_try" in
29712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29713   *) ac_try_echo=$ac_try;;
29714 esac
29715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29716   (eval "$ac_link") 2>conftest.er1
29717   ac_status=$?
29718   grep -v '^ *+' conftest.er1 >conftest.err
29719   rm -f conftest.er1
29720   cat conftest.err >&5
29721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29722   (exit $ac_status); } && {
29723          test -z "$ac_c_werror_flag" ||
29724          test ! -s conftest.err
29725        } && test -s conftest$ac_exeext &&
29726        $as_test_x conftest$ac_exeext; then
29727   ac_cv_lib_iodbc_SQLDriverConnect=yes
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_cv_lib_iodbc_SQLDriverConnect=no
29733 fi
29734
29735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29736       conftest$ac_exeext conftest.$ac_ext
29737 LIBS=$ac_check_lib_save_LIBS
29738 fi
29739 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
29740 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
29741 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
29742   have_iodbc=yes
29743 else
29744   have_iodbc=no
29745 fi
29746
29747                                 if test $have_iodbc = yes ; then
29748                                         ol_link_sql="-liodbc"
29749                                 fi
29750                                 ;;
29751
29752                         unixodbc)
29753                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
29754 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
29755 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
29756   echo $ECHO_N "(cached) $ECHO_C" >&6
29757 else
29758   ac_check_lib_save_LIBS=$LIBS
29759 LIBS="-lodbc  $LIBS"
29760 cat >conftest.$ac_ext <<_ACEOF
29761 /* confdefs.h.  */
29762 _ACEOF
29763 cat confdefs.h >>conftest.$ac_ext
29764 cat >>conftest.$ac_ext <<_ACEOF
29765 /* end confdefs.h.  */
29766
29767 /* Override any GCC internal prototype to avoid an error.
29768    Use char because int might match the return type of a GCC
29769    builtin and then its argument prototype would still apply.  */
29770 #ifdef __cplusplus
29771 extern "C"
29772 #endif
29773 char SQLDriverConnect ();
29774 int
29775 main ()
29776 {
29777 return SQLDriverConnect ();
29778   ;
29779   return 0;
29780 }
29781 _ACEOF
29782 rm -f conftest.$ac_objext conftest$ac_exeext
29783 if { (ac_try="$ac_link"
29784 case "(($ac_try" in
29785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29786   *) ac_try_echo=$ac_try;;
29787 esac
29788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29789   (eval "$ac_link") 2>conftest.er1
29790   ac_status=$?
29791   grep -v '^ *+' conftest.er1 >conftest.err
29792   rm -f conftest.er1
29793   cat conftest.err >&5
29794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29795   (exit $ac_status); } && {
29796          test -z "$ac_c_werror_flag" ||
29797          test ! -s conftest.err
29798        } && test -s conftest$ac_exeext &&
29799        $as_test_x conftest$ac_exeext; then
29800   ac_cv_lib_odbc_SQLDriverConnect=yes
29801 else
29802   echo "$as_me: failed program was:" >&5
29803 sed 's/^/| /' conftest.$ac_ext >&5
29804
29805         ac_cv_lib_odbc_SQLDriverConnect=no
29806 fi
29807
29808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29809       conftest$ac_exeext conftest.$ac_ext
29810 LIBS=$ac_check_lib_save_LIBS
29811 fi
29812 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
29813 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
29814 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
29815   have_odbc=yes
29816 else
29817   have_odbc=no
29818 fi
29819
29820                                 if test $have_odbc = yes ; then
29821                                         ol_link_sql="-lodbc"
29822                                 fi
29823                                 ;;
29824
29825                         odbc32)
29826                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
29827 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
29828 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
29829   echo $ECHO_N "(cached) $ECHO_C" >&6
29830 else
29831   ac_check_lib_save_LIBS=$LIBS
29832 LIBS="-lodbc32  $LIBS"
29833 cat >conftest.$ac_ext <<_ACEOF
29834 /* confdefs.h.  */
29835 _ACEOF
29836 cat confdefs.h >>conftest.$ac_ext
29837 cat >>conftest.$ac_ext <<_ACEOF
29838 /* end confdefs.h.  */
29839
29840 /* Override any GCC internal prototype to avoid an error.
29841    Use char because int might match the return type of a GCC
29842    builtin and then its argument prototype would still apply.  */
29843 #ifdef __cplusplus
29844 extern "C"
29845 #endif
29846 char SQLDriverConnect ();
29847 int
29848 main ()
29849 {
29850 return SQLDriverConnect ();
29851   ;
29852   return 0;
29853 }
29854 _ACEOF
29855 rm -f conftest.$ac_objext conftest$ac_exeext
29856 if { (ac_try="$ac_link"
29857 case "(($ac_try" in
29858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29859   *) ac_try_echo=$ac_try;;
29860 esac
29861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29862   (eval "$ac_link") 2>conftest.er1
29863   ac_status=$?
29864   grep -v '^ *+' conftest.er1 >conftest.err
29865   rm -f conftest.er1
29866   cat conftest.err >&5
29867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29868   (exit $ac_status); } && {
29869          test -z "$ac_c_werror_flag" ||
29870          test ! -s conftest.err
29871        } && test -s conftest$ac_exeext &&
29872        $as_test_x conftest$ac_exeext; then
29873   ac_cv_lib_odbc32_SQLDriverConnect=yes
29874 else
29875   echo "$as_me: failed program was:" >&5
29876 sed 's/^/| /' conftest.$ac_ext >&5
29877
29878         ac_cv_lib_odbc32_SQLDriverConnect=no
29879 fi
29880
29881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29882       conftest$ac_exeext conftest.$ac_ext
29883 LIBS=$ac_check_lib_save_LIBS
29884 fi
29885 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
29886 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
29887 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
29888   have_odbc32=yes
29889 else
29890   have_odbc32=no
29891 fi
29892
29893                                 if test $have_odbc32 = yes ; then
29894                                         ol_link_sql="-lodbc32"
29895                                 fi
29896                                 ;;
29897
29898                         *)
29899                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
29900 echo "$as_me: error: unknown ODBC library" >&2;}
29901    { (exit 1); exit 1; }; }
29902                                 ;;
29903                         esac
29904                 fi
29905         done
29906
29907         LIBS="$sql_LIBS"
29908
29909         if test $ol_link_sql != no ; then
29910                 SLAPD_SQL_LIBS="$ol_link_sql"
29911
29912         elif test $ol_enable_sql != auto ; then
29913                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
29914 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
29915    { (exit 1); exit 1; }; }
29916         fi
29917 fi
29918
29919 ol_link_ndb=no
29920 if test $ol_enable_ndb != no ; then
29921         # Extract the first word of "mysql_config", so it can be a program name with args.
29922 set dummy mysql_config; ac_word=$2
29923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
29924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
29925 if test "${ac_cv_prog_MYSQL+set}" = set; then
29926   echo $ECHO_N "(cached) $ECHO_C" >&6
29927 else
29928   if test -n "$MYSQL"; then
29929   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
29930 else
29931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29932 for as_dir in $PATH
29933 do
29934   IFS=$as_save_IFS
29935   test -z "$as_dir" && as_dir=.
29936   for ac_exec_ext in '' $ac_executable_extensions; do
29937   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
29938     ac_cv_prog_MYSQL="yes"
29939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29940     break 2
29941   fi
29942 done
29943 done
29944 IFS=$as_save_IFS
29945
29946 fi
29947 fi
29948 MYSQL=$ac_cv_prog_MYSQL
29949 if test -n "$MYSQL"; then
29950   { echo "$as_me:$LINENO: result: $MYSQL" >&5
29951 echo "${ECHO_T}$MYSQL" >&6; }
29952 else
29953   { echo "$as_me:$LINENO: result: no" >&5
29954 echo "${ECHO_T}no" >&6; }
29955 fi
29956
29957
29958         if test "$MYSQL" != yes ; then
29959                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
29960 echo "$as_me: error: could not locate mysql_config" >&2;}
29961    { (exit 1); exit 1; }; }
29962         fi
29963
29964         SQL_INC=`mysql_config --include`
29965         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
29966
29967         save_CPPFLAGS="$CPPFLAGS"
29968         CPPFLAGS="$SLAPD_NDB_INCS"
29969         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
29970 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
29971         cat >conftest.$ac_ext <<_ACEOF
29972 /* confdefs.h.  */
29973 _ACEOF
29974 cat confdefs.h >>conftest.$ac_ext
29975 cat >>conftest.$ac_ext <<_ACEOF
29976 /* end confdefs.h.  */
29977 #include <NdbApi.hpp>
29978 _ACEOF
29979 if { (ac_try="$ac_cpp conftest.$ac_ext"
29980 case "(($ac_try" in
29981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29982   *) ac_try_echo=$ac_try;;
29983 esac
29984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29985   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29986   ac_status=$?
29987   grep -v '^ *+' conftest.er1 >conftest.err
29988   rm -f conftest.er1
29989   cat conftest.err >&5
29990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29991   (exit $ac_status); } >/dev/null && {
29992          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29993          test ! -s conftest.err
29994        }; then
29995   { echo "$as_me:$LINENO: result: yes" >&5
29996 echo "${ECHO_T}yes" >&6; }
29997 else
29998   echo "$as_me: failed program was:" >&5
29999 sed 's/^/| /' conftest.$ac_ext >&5
30000
30001   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30002 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30003    { (exit 1); exit 1; }; }
30004
30005 fi
30006
30007 rm -f conftest.err conftest.$ac_ext
30008         CPPFLAGS="$save_CPPFLAGS"
30009
30010         SQL_LIB=`mysql_config --libs_r`
30011         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30012
30013         save_LDFLAGS="$LDFLAGS"
30014         save_LIBS="$LIBS"
30015         LDFLAGS="$SQL_LIB"
30016         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30017 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30018 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30019   echo $ECHO_N "(cached) $ECHO_C" >&6
30020 else
30021   ac_check_lib_save_LIBS=$LIBS
30022 LIBS="-lndbclient -lstdc++ $LIBS"
30023 cat >conftest.$ac_ext <<_ACEOF
30024 /* confdefs.h.  */
30025 _ACEOF
30026 cat confdefs.h >>conftest.$ac_ext
30027 cat >>conftest.$ac_ext <<_ACEOF
30028 /* end confdefs.h.  */
30029
30030 /* Override any GCC internal prototype to avoid an error.
30031    Use char because int might match the return type of a GCC
30032    builtin and then its argument prototype would still apply.  */
30033 #ifdef __cplusplus
30034 extern "C"
30035 #endif
30036 char ndb_init ();
30037 int
30038 main ()
30039 {
30040 return ndb_init ();
30041   ;
30042   return 0;
30043 }
30044 _ACEOF
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049   *) ac_try_echo=$ac_try;;
30050 esac
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052   (eval "$ac_link") 2>conftest.er1
30053   ac_status=$?
30054   grep -v '^ *+' conftest.er1 >conftest.err
30055   rm -f conftest.er1
30056   cat conftest.err >&5
30057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058   (exit $ac_status); } && {
30059          test -z "$ac_c_werror_flag" ||
30060          test ! -s conftest.err
30061        } && test -s conftest$ac_exeext &&
30062        $as_test_x conftest$ac_exeext; then
30063   ac_cv_lib_ndbclient_ndb_init=yes
30064 else
30065   echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068         ac_cv_lib_ndbclient_ndb_init=no
30069 fi
30070
30071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30072       conftest$ac_exeext conftest.$ac_ext
30073 LIBS=$ac_check_lib_save_LIBS
30074 fi
30075 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30076 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30077 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30078   : ok
30079 else
30080
30081                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30082 echo "$as_me: error: could not locate ndbclient library" >&2;}
30083    { (exit 1); exit 1; }; }
30084
30085 fi
30086
30087         LIBS="$save_LIBS"
30088         LDFLAGS="$save_LDFLAGS"
30089
30090         if test "$ol_enable_ndb" = yes ; then
30091                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30092         fi
30093 fi
30094
30095 ol_icu=no
30096
30097 for ac_header in unicode/utypes.h
30098 do
30099 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30101   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30102 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30104   echo $ECHO_N "(cached) $ECHO_C" >&6
30105 fi
30106 ac_res=`eval echo '${'$as_ac_Header'}'`
30107                { echo "$as_me:$LINENO: result: $ac_res" >&5
30108 echo "${ECHO_T}$ac_res" >&6; }
30109 else
30110   # Is the header compilable?
30111 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30112 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30113 cat >conftest.$ac_ext <<_ACEOF
30114 /* confdefs.h.  */
30115 _ACEOF
30116 cat confdefs.h >>conftest.$ac_ext
30117 cat >>conftest.$ac_ext <<_ACEOF
30118 /* end confdefs.h.  */
30119 $ac_includes_default
30120 #include <$ac_header>
30121 _ACEOF
30122 rm -f conftest.$ac_objext
30123 if { (ac_try="$ac_compile"
30124 case "(($ac_try" in
30125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30126   *) ac_try_echo=$ac_try;;
30127 esac
30128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30129   (eval "$ac_compile") 2>conftest.er1
30130   ac_status=$?
30131   grep -v '^ *+' conftest.er1 >conftest.err
30132   rm -f conftest.er1
30133   cat conftest.err >&5
30134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30135   (exit $ac_status); } && {
30136          test -z "$ac_c_werror_flag" ||
30137          test ! -s conftest.err
30138        } && test -s conftest.$ac_objext; then
30139   ac_header_compiler=yes
30140 else
30141   echo "$as_me: failed program was:" >&5
30142 sed 's/^/| /' conftest.$ac_ext >&5
30143
30144         ac_header_compiler=no
30145 fi
30146
30147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30148 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30149 echo "${ECHO_T}$ac_header_compiler" >&6; }
30150
30151 # Is the header present?
30152 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30153 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30154 cat >conftest.$ac_ext <<_ACEOF
30155 /* confdefs.h.  */
30156 _ACEOF
30157 cat confdefs.h >>conftest.$ac_ext
30158 cat >>conftest.$ac_ext <<_ACEOF
30159 /* end confdefs.h.  */
30160 #include <$ac_header>
30161 _ACEOF
30162 if { (ac_try="$ac_cpp conftest.$ac_ext"
30163 case "(($ac_try" in
30164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30165   *) ac_try_echo=$ac_try;;
30166 esac
30167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30168   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30169   ac_status=$?
30170   grep -v '^ *+' conftest.er1 >conftest.err
30171   rm -f conftest.er1
30172   cat conftest.err >&5
30173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30174   (exit $ac_status); } >/dev/null && {
30175          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30176          test ! -s conftest.err
30177        }; then
30178   ac_header_preproc=yes
30179 else
30180   echo "$as_me: failed program was:" >&5
30181 sed 's/^/| /' conftest.$ac_ext >&5
30182
30183   ac_header_preproc=no
30184 fi
30185
30186 rm -f conftest.err conftest.$ac_ext
30187 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30188 echo "${ECHO_T}$ac_header_preproc" >&6; }
30189
30190 # So?  What about this header?
30191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30192   yes:no: )
30193     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30194 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30195     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30197     ac_header_preproc=yes
30198     ;;
30199   no:yes:* )
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30201 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30202     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30203 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30204     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30205 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30206     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30207 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30208     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30210     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30211 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30212     ( cat <<\_ASBOX
30213 ## --------------------------------------------- ##
30214 ## Report this to <http://www.openldap.org/its/> ##
30215 ## --------------------------------------------- ##
30216 _ASBOX
30217      ) | sed "s/^/$as_me: WARNING:     /" >&2
30218     ;;
30219 esac
30220 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30223   echo $ECHO_N "(cached) $ECHO_C" >&6
30224 else
30225   eval "$as_ac_Header=\$ac_header_preproc"
30226 fi
30227 ac_res=`eval echo '${'$as_ac_Header'}'`
30228                { echo "$as_me:$LINENO: result: $ac_res" >&5
30229 echo "${ECHO_T}$ac_res" >&6; }
30230
30231 fi
30232 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30233   cat >>confdefs.h <<_ACEOF
30234 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30235 _ACEOF
30236
30237 fi
30238
30239 done
30240
30241 if test $ac_cv_header_unicode_utypes_h = yes ; then
30242                 OL_ICULIBS="-licuuc -licudata"
30243
30244         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30245 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30246 if test "${ol_cv_lib_icu+set}" = set; then
30247   echo $ECHO_N "(cached) $ECHO_C" >&6
30248 else
30249
30250                 ol_LIBS="$LIBS"
30251                 LIBS="$OL_ICULIBS $LIBS"
30252                 cat >conftest.$ac_ext <<_ACEOF
30253 /* confdefs.h.  */
30254 _ACEOF
30255 cat confdefs.h >>conftest.$ac_ext
30256 cat >>conftest.$ac_ext <<_ACEOF
30257 /* end confdefs.h.  */
30258
30259 #include <unicode/utypes.h>
30260
30261 int
30262 main ()
30263 {
30264
30265 (void) u_errorName(0);
30266
30267   ;
30268   return 0;
30269 }
30270 _ACEOF
30271 rm -f conftest.$ac_objext conftest$ac_exeext
30272 if { (ac_try="$ac_link"
30273 case "(($ac_try" in
30274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30275   *) ac_try_echo=$ac_try;;
30276 esac
30277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30278   (eval "$ac_link") 2>conftest.er1
30279   ac_status=$?
30280   grep -v '^ *+' conftest.er1 >conftest.err
30281   rm -f conftest.er1
30282   cat conftest.err >&5
30283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30284   (exit $ac_status); } && {
30285          test -z "$ac_c_werror_flag" ||
30286          test ! -s conftest.err
30287        } && test -s conftest$ac_exeext &&
30288        $as_test_x conftest$ac_exeext; then
30289   ol_cv_lib_icu=yes
30290 else
30291   echo "$as_me: failed program was:" >&5
30292 sed 's/^/| /' conftest.$ac_ext >&5
30293
30294         ol_cv_lib_icu=no
30295 fi
30296
30297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30298       conftest$ac_exeext conftest.$ac_ext
30299                 LIBS="$ol_LIBS"
30300
30301 fi
30302 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30303 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30304
30305         if test $ol_cv_lib_icu != no ; then
30306                 ol_icu="$OL_ICULIBS"
30307
30308 cat >>confdefs.h <<\_ACEOF
30309 #define HAVE_ICU 1
30310 _ACEOF
30311
30312         fi
30313 fi
30314
30315 if test "$ol_icu" = no ; then
30316         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30317 echo "$as_me: WARNING: ICU not available" >&2;}
30318 else
30319         ICU_LIBS="$ol_icu"
30320 fi
30321 WITH_SASL=no
30322 ol_link_sasl=no
30323 ol_link_spasswd=no
30324 if test $ol_with_cyrus_sasl != no ; then
30325
30326
30327 for ac_header in sasl/sasl.h sasl.h
30328 do
30329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30331   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30334   echo $ECHO_N "(cached) $ECHO_C" >&6
30335 fi
30336 ac_res=`eval echo '${'$as_ac_Header'}'`
30337                { echo "$as_me:$LINENO: result: $ac_res" >&5
30338 echo "${ECHO_T}$ac_res" >&6; }
30339 else
30340   # Is the header compilable?
30341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30343 cat >conftest.$ac_ext <<_ACEOF
30344 /* confdefs.h.  */
30345 _ACEOF
30346 cat confdefs.h >>conftest.$ac_ext
30347 cat >>conftest.$ac_ext <<_ACEOF
30348 /* end confdefs.h.  */
30349 $ac_includes_default
30350 #include <$ac_header>
30351 _ACEOF
30352 rm -f conftest.$ac_objext
30353 if { (ac_try="$ac_compile"
30354 case "(($ac_try" in
30355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30356   *) ac_try_echo=$ac_try;;
30357 esac
30358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30359   (eval "$ac_compile") 2>conftest.er1
30360   ac_status=$?
30361   grep -v '^ *+' conftest.er1 >conftest.err
30362   rm -f conftest.er1
30363   cat conftest.err >&5
30364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365   (exit $ac_status); } && {
30366          test -z "$ac_c_werror_flag" ||
30367          test ! -s conftest.err
30368        } && test -s conftest.$ac_objext; then
30369   ac_header_compiler=yes
30370 else
30371   echo "$as_me: failed program was:" >&5
30372 sed 's/^/| /' conftest.$ac_ext >&5
30373
30374         ac_header_compiler=no
30375 fi
30376
30377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30379 echo "${ECHO_T}$ac_header_compiler" >&6; }
30380
30381 # Is the header present?
30382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30384 cat >conftest.$ac_ext <<_ACEOF
30385 /* confdefs.h.  */
30386 _ACEOF
30387 cat confdefs.h >>conftest.$ac_ext
30388 cat >>conftest.$ac_ext <<_ACEOF
30389 /* end confdefs.h.  */
30390 #include <$ac_header>
30391 _ACEOF
30392 if { (ac_try="$ac_cpp conftest.$ac_ext"
30393 case "(($ac_try" in
30394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30395   *) ac_try_echo=$ac_try;;
30396 esac
30397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30398   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30399   ac_status=$?
30400   grep -v '^ *+' conftest.er1 >conftest.err
30401   rm -f conftest.er1
30402   cat conftest.err >&5
30403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30404   (exit $ac_status); } >/dev/null && {
30405          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30406          test ! -s conftest.err
30407        }; then
30408   ac_header_preproc=yes
30409 else
30410   echo "$as_me: failed program was:" >&5
30411 sed 's/^/| /' conftest.$ac_ext >&5
30412
30413   ac_header_preproc=no
30414 fi
30415
30416 rm -f conftest.err conftest.$ac_ext
30417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30418 echo "${ECHO_T}$ac_header_preproc" >&6; }
30419
30420 # So?  What about this header?
30421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30422   yes:no: )
30423     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30425     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30427     ac_header_preproc=yes
30428     ;;
30429   no:yes:* )
30430     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30432     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30433 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30434     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30436     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30437 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30438     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30440     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30442     ( cat <<\_ASBOX
30443 ## --------------------------------------------- ##
30444 ## Report this to <http://www.openldap.org/its/> ##
30445 ## --------------------------------------------- ##
30446 _ASBOX
30447      ) | sed "s/^/$as_me: WARNING:     /" >&2
30448     ;;
30449 esac
30450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30453   echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30455   eval "$as_ac_Header=\$ac_header_preproc"
30456 fi
30457 ac_res=`eval echo '${'$as_ac_Header'}'`
30458                { echo "$as_me:$LINENO: result: $ac_res" >&5
30459 echo "${ECHO_T}$ac_res" >&6; }
30460
30461 fi
30462 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30463   cat >>confdefs.h <<_ACEOF
30464 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30465 _ACEOF
30466
30467 fi
30468
30469 done
30470
30471
30472         if test $ac_cv_header_sasl_sasl_h = yes ||
30473            test $ac_cv_header_sasl_h = yes; then
30474                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
30475 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
30476 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
30477   echo $ECHO_N "(cached) $ECHO_C" >&6
30478 else
30479   ac_check_lib_save_LIBS=$LIBS
30480 LIBS="-lsasl2  $LIBS"
30481 cat >conftest.$ac_ext <<_ACEOF
30482 /* confdefs.h.  */
30483 _ACEOF
30484 cat confdefs.h >>conftest.$ac_ext
30485 cat >>conftest.$ac_ext <<_ACEOF
30486 /* end confdefs.h.  */
30487
30488 /* Override any GCC internal prototype to avoid an error.
30489    Use char because int might match the return type of a GCC
30490    builtin and then its argument prototype would still apply.  */
30491 #ifdef __cplusplus
30492 extern "C"
30493 #endif
30494 char sasl_client_init ();
30495 int
30496 main ()
30497 {
30498 return sasl_client_init ();
30499   ;
30500   return 0;
30501 }
30502 _ACEOF
30503 rm -f conftest.$ac_objext conftest$ac_exeext
30504 if { (ac_try="$ac_link"
30505 case "(($ac_try" in
30506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30507   *) ac_try_echo=$ac_try;;
30508 esac
30509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30510   (eval "$ac_link") 2>conftest.er1
30511   ac_status=$?
30512   grep -v '^ *+' conftest.er1 >conftest.err
30513   rm -f conftest.er1
30514   cat conftest.err >&5
30515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516   (exit $ac_status); } && {
30517          test -z "$ac_c_werror_flag" ||
30518          test ! -s conftest.err
30519        } && test -s conftest$ac_exeext &&
30520        $as_test_x conftest$ac_exeext; then
30521   ac_cv_lib_sasl2_sasl_client_init=yes
30522 else
30523   echo "$as_me: failed program was:" >&5
30524 sed 's/^/| /' conftest.$ac_ext >&5
30525
30526         ac_cv_lib_sasl2_sasl_client_init=no
30527 fi
30528
30529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30530       conftest$ac_exeext conftest.$ac_ext
30531 LIBS=$ac_check_lib_save_LIBS
30532 fi
30533 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
30534 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
30535 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
30536   ol_link_sasl="-lsasl2"
30537 else
30538   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
30539 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
30540 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
30541   echo $ECHO_N "(cached) $ECHO_C" >&6
30542 else
30543   ac_check_lib_save_LIBS=$LIBS
30544 LIBS="-lsasl  $LIBS"
30545 cat >conftest.$ac_ext <<_ACEOF
30546 /* confdefs.h.  */
30547 _ACEOF
30548 cat confdefs.h >>conftest.$ac_ext
30549 cat >>conftest.$ac_ext <<_ACEOF
30550 /* end confdefs.h.  */
30551
30552 /* Override any GCC internal prototype to avoid an error.
30553    Use char because int might match the return type of a GCC
30554    builtin and then its argument prototype would still apply.  */
30555 #ifdef __cplusplus
30556 extern "C"
30557 #endif
30558 char sasl_client_init ();
30559 int
30560 main ()
30561 {
30562 return sasl_client_init ();
30563   ;
30564   return 0;
30565 }
30566 _ACEOF
30567 rm -f conftest.$ac_objext conftest$ac_exeext
30568 if { (ac_try="$ac_link"
30569 case "(($ac_try" in
30570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30571   *) ac_try_echo=$ac_try;;
30572 esac
30573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30574   (eval "$ac_link") 2>conftest.er1
30575   ac_status=$?
30576   grep -v '^ *+' conftest.er1 >conftest.err
30577   rm -f conftest.er1
30578   cat conftest.err >&5
30579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30580   (exit $ac_status); } && {
30581          test -z "$ac_c_werror_flag" ||
30582          test ! -s conftest.err
30583        } && test -s conftest$ac_exeext &&
30584        $as_test_x conftest$ac_exeext; then
30585   ac_cv_lib_sasl_sasl_client_init=yes
30586 else
30587   echo "$as_me: failed program was:" >&5
30588 sed 's/^/| /' conftest.$ac_ext >&5
30589
30590         ac_cv_lib_sasl_sasl_client_init=no
30591 fi
30592
30593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30594       conftest$ac_exeext conftest.$ac_ext
30595 LIBS=$ac_check_lib_save_LIBS
30596 fi
30597 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
30598 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
30599 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
30600   ol_link_sasl="-lsasl"
30601 fi
30602
30603 fi
30604
30605         fi
30606
30607         if test $ol_link_sasl = no ; then
30608                 if test $ol_with_cyrus_sasl != auto ; then
30609                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
30610 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
30611    { (exit 1); exit 1; }; }
30612                 else
30613                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
30614 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
30615                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30616 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30617                         if test $ol_link_tls = no ; then
30618                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30619 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30620                         fi
30621                 fi
30622         else
30623                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
30624 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
30625 if test "${ol_cv_sasl_compat+set}" = set; then
30626   echo $ECHO_N "(cached) $ECHO_C" >&6
30627 else
30628
30629         cat >conftest.$ac_ext <<_ACEOF
30630 /* confdefs.h.  */
30631 _ACEOF
30632 cat confdefs.h >>conftest.$ac_ext
30633 cat >>conftest.$ac_ext <<_ACEOF
30634 /* end confdefs.h.  */
30635
30636 #ifdef HAVE_SASL_SASL_H
30637 #include <sasl/sasl.h>
30638 #else
30639 #include <sasl.h>
30640 #endif
30641
30642 /* Require 2.1.15+ */
30643 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
30644         char *__sasl_compat = "2.2+ or better okay (we guess)";
30645 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
30646         && SASL_VERSION_STEP >=15
30647         char *__sasl_compat = "2.1.15+ or better okay";
30648 #endif
30649
30650 _ACEOF
30651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30652   $EGREP "__sasl_compat" >/dev/null 2>&1; then
30653   ol_cv_sasl_compat=yes
30654 else
30655   ol_cv_sasl_compat=no
30656 fi
30657 rm -f conftest*
30658
30659 fi
30660 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
30661 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
30662
30663                 if test $ol_cv_sasl_compat = no ; then
30664                         ol_link_sasl=no
30665                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
30666 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
30667    { (exit 1); exit 1; }; }
30668                 fi
30669
30670
30671 cat >>confdefs.h <<\_ACEOF
30672 #define HAVE_CYRUS_SASL 1
30673 _ACEOF
30674
30675                 SASL_LIBS="$ol_link_sasl"
30676                 if test $ol_enable_spasswd != no ; then
30677                         ol_link_spasswd=yes
30678                 fi
30679
30680                 ac_save_LIBS="$LIBS"
30681                 LIBS="$LIBS $ol_link_sasl"
30682                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
30683 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
30684 if test "${ac_cv_func_sasl_version+set}" = set; then
30685   echo $ECHO_N "(cached) $ECHO_C" >&6
30686 else
30687   cat >conftest.$ac_ext <<_ACEOF
30688 /* confdefs.h.  */
30689 _ACEOF
30690 cat confdefs.h >>conftest.$ac_ext
30691 cat >>conftest.$ac_ext <<_ACEOF
30692 /* end confdefs.h.  */
30693 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
30694    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30695 #define sasl_version innocuous_sasl_version
30696
30697 /* System header to define __stub macros and hopefully few prototypes,
30698     which can conflict with char sasl_version (); below.
30699     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30700     <limits.h> exists even on freestanding compilers.  */
30701
30702 #ifdef __STDC__
30703 # include <limits.h>
30704 #else
30705 # include <assert.h>
30706 #endif
30707
30708 #undef sasl_version
30709
30710 /* Override any GCC internal prototype to avoid an error.
30711    Use char because int might match the return type of a GCC
30712    builtin and then its argument prototype would still apply.  */
30713 #ifdef __cplusplus
30714 extern "C"
30715 #endif
30716 char sasl_version ();
30717 /* The GNU C library defines this for functions which it implements
30718     to always fail with ENOSYS.  Some functions are actually named
30719     something starting with __ and the normal name is an alias.  */
30720 #if defined __stub_sasl_version || defined __stub___sasl_version
30721 choke me
30722 #endif
30723
30724 int
30725 main ()
30726 {
30727 return sasl_version ();
30728   ;
30729   return 0;
30730 }
30731 _ACEOF
30732 rm -f conftest.$ac_objext conftest$ac_exeext
30733 if { (ac_try="$ac_link"
30734 case "(($ac_try" in
30735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30736   *) ac_try_echo=$ac_try;;
30737 esac
30738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30739   (eval "$ac_link") 2>conftest.er1
30740   ac_status=$?
30741   grep -v '^ *+' conftest.er1 >conftest.err
30742   rm -f conftest.er1
30743   cat conftest.err >&5
30744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30745   (exit $ac_status); } && {
30746          test -z "$ac_c_werror_flag" ||
30747          test ! -s conftest.err
30748        } && test -s conftest$ac_exeext &&
30749        $as_test_x conftest$ac_exeext; then
30750   ac_cv_func_sasl_version=yes
30751 else
30752   echo "$as_me: failed program was:" >&5
30753 sed 's/^/| /' conftest.$ac_ext >&5
30754
30755         ac_cv_func_sasl_version=no
30756 fi
30757
30758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30759       conftest$ac_exeext conftest.$ac_ext
30760 fi
30761 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
30762 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
30763 if test $ac_cv_func_sasl_version = yes; then
30764
30765 cat >>confdefs.h <<\_ACEOF
30766 #define HAVE_SASL_VERSION 1
30767 _ACEOF
30768
30769 fi
30770
30771                 LIBS="$ac_save_LIBS"
30772
30773                 WITH_SASL=yes
30774         fi
30775
30776 else
30777         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
30778 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
30779         if test $ol_link_tls = no ; then
30780                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
30781 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
30782         fi
30783 fi
30784
30785 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
30786         dev=no
30787         if test -r /dev/urandom ; then
30788                 dev="/dev/urandom";
30789         elif test -r /idev/urandom ; then
30790                 dev="/idev/urandom";
30791         elif test -r /dev/srandom ; then
30792                 dev="/dev/srandom";
30793         elif test -r /dev/random ; then
30794                 dev="/dev/random";
30795         elif test -r /idev/random ; then
30796                 dev="/idev/random";
30797         fi
30798
30799         if test $dev != no ; then
30800
30801 cat >>confdefs.h <<_ACEOF
30802 #define URANDOM_DEVICE "$dev"
30803 _ACEOF
30804
30805         fi
30806 fi
30807
30808 ol_link_fetch=no
30809 if test $ol_with_fetch != no ; then
30810         ol_LIBS=$LIBS
30811 LIBS="-lfetch -lcom_err $LIBS"
30812 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
30813 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
30814 if test "${ol_cv_lib_fetch+set}" = set; then
30815   echo $ECHO_N "(cached) $ECHO_C" >&6
30816 else
30817
30818         cat >conftest.$ac_ext <<_ACEOF
30819 /* confdefs.h.  */
30820 _ACEOF
30821 cat confdefs.h >>conftest.$ac_ext
30822 cat >>conftest.$ac_ext <<_ACEOF
30823 /* end confdefs.h.  */
30824
30825 #ifdef HAVE_SYS_PARAM_H
30826 #include <sys/param.h>
30827 #endif
30828 #include <stdio.h>
30829 #include <fetch.h>
30830 int
30831 main ()
30832 {
30833 struct url *u = fetchParseURL("file:///");
30834   ;
30835   return 0;
30836 }
30837 _ACEOF
30838 rm -f conftest.$ac_objext conftest$ac_exeext
30839 if { (ac_try="$ac_link"
30840 case "(($ac_try" in
30841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30842   *) ac_try_echo=$ac_try;;
30843 esac
30844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30845   (eval "$ac_link") 2>conftest.er1
30846   ac_status=$?
30847   grep -v '^ *+' conftest.er1 >conftest.err
30848   rm -f conftest.er1
30849   cat conftest.err >&5
30850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30851   (exit $ac_status); } && {
30852          test -z "$ac_c_werror_flag" ||
30853          test ! -s conftest.err
30854        } && test -s conftest$ac_exeext &&
30855        $as_test_x conftest$ac_exeext; then
30856   ol_cv_lib_fetch=yes
30857 else
30858   echo "$as_me: failed program was:" >&5
30859 sed 's/^/| /' conftest.$ac_ext >&5
30860
30861         ol_cv_lib_fetch=no
30862 fi
30863
30864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30865       conftest$ac_exeext conftest.$ac_ext
30866 fi
30867 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
30868 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
30869 LIBS=$ol_LIBS
30870 if test $ol_cv_lib_fetch != no ; then
30871         ol_link_fetch="-lfetch -lcom_err"
30872
30873 cat >>confdefs.h <<\_ACEOF
30874 #define HAVE_FETCH 1
30875 _ACEOF
30876
30877 fi
30878
30879
30880         if test $ol_cv_lib_fetch != no ; then
30881                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
30882                 ol_link_fetch=freebsd
30883
30884         elif test $ol_with_fetch != auto ; then
30885                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
30886 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
30887    { (exit 1); exit 1; }; }
30888         fi
30889 fi
30890
30891 if test $ol_enable_crypt != no ; then
30892         save_LIBS="$LIBS"
30893         LIBS="$TLS_LIBS $LIBS"
30894
30895         { echo "$as_me:$LINENO: checking for crypt" >&5
30896 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
30897 if test "${ac_cv_func_crypt+set}" = set; then
30898   echo $ECHO_N "(cached) $ECHO_C" >&6
30899 else
30900   cat >conftest.$ac_ext <<_ACEOF
30901 /* confdefs.h.  */
30902 _ACEOF
30903 cat confdefs.h >>conftest.$ac_ext
30904 cat >>conftest.$ac_ext <<_ACEOF
30905 /* end confdefs.h.  */
30906 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
30907    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30908 #define crypt innocuous_crypt
30909
30910 /* System header to define __stub macros and hopefully few prototypes,
30911     which can conflict with char crypt (); below.
30912     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30913     <limits.h> exists even on freestanding compilers.  */
30914
30915 #ifdef __STDC__
30916 # include <limits.h>
30917 #else
30918 # include <assert.h>
30919 #endif
30920
30921 #undef crypt
30922
30923 /* Override any GCC internal prototype to avoid an error.
30924    Use char because int might match the return type of a GCC
30925    builtin and then its argument prototype would still apply.  */
30926 #ifdef __cplusplus
30927 extern "C"
30928 #endif
30929 char crypt ();
30930 /* The GNU C library defines this for functions which it implements
30931     to always fail with ENOSYS.  Some functions are actually named
30932     something starting with __ and the normal name is an alias.  */
30933 #if defined __stub_crypt || defined __stub___crypt
30934 choke me
30935 #endif
30936
30937 int
30938 main ()
30939 {
30940 return crypt ();
30941   ;
30942   return 0;
30943 }
30944 _ACEOF
30945 rm -f conftest.$ac_objext conftest$ac_exeext
30946 if { (ac_try="$ac_link"
30947 case "(($ac_try" in
30948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30949   *) ac_try_echo=$ac_try;;
30950 esac
30951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30952   (eval "$ac_link") 2>conftest.er1
30953   ac_status=$?
30954   grep -v '^ *+' conftest.er1 >conftest.err
30955   rm -f conftest.er1
30956   cat conftest.err >&5
30957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30958   (exit $ac_status); } && {
30959          test -z "$ac_c_werror_flag" ||
30960          test ! -s conftest.err
30961        } && test -s conftest$ac_exeext &&
30962        $as_test_x conftest$ac_exeext; then
30963   ac_cv_func_crypt=yes
30964 else
30965   echo "$as_me: failed program was:" >&5
30966 sed 's/^/| /' conftest.$ac_ext >&5
30967
30968         ac_cv_func_crypt=no
30969 fi
30970
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972       conftest$ac_exeext conftest.$ac_ext
30973 fi
30974 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
30975 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
30976 if test $ac_cv_func_crypt = yes; then
30977   have_crypt=yes
30978 else
30979
30980                 LIBS="$save_LIBS"
30981                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
30982 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
30983 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
30984   echo $ECHO_N "(cached) $ECHO_C" >&6
30985 else
30986   ac_check_lib_save_LIBS=$LIBS
30987 LIBS="-lcrypt  $LIBS"
30988 cat >conftest.$ac_ext <<_ACEOF
30989 /* confdefs.h.  */
30990 _ACEOF
30991 cat confdefs.h >>conftest.$ac_ext
30992 cat >>conftest.$ac_ext <<_ACEOF
30993 /* end confdefs.h.  */
30994
30995 /* Override any GCC internal prototype to avoid an error.
30996    Use char because int might match the return type of a GCC
30997    builtin and then its argument prototype would still apply.  */
30998 #ifdef __cplusplus
30999 extern "C"
31000 #endif
31001 char crypt ();
31002 int
31003 main ()
31004 {
31005 return crypt ();
31006   ;
31007   return 0;
31008 }
31009 _ACEOF
31010 rm -f conftest.$ac_objext conftest$ac_exeext
31011 if { (ac_try="$ac_link"
31012 case "(($ac_try" in
31013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31014   *) ac_try_echo=$ac_try;;
31015 esac
31016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31017   (eval "$ac_link") 2>conftest.er1
31018   ac_status=$?
31019   grep -v '^ *+' conftest.er1 >conftest.err
31020   rm -f conftest.er1
31021   cat conftest.err >&5
31022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31023   (exit $ac_status); } && {
31024          test -z "$ac_c_werror_flag" ||
31025          test ! -s conftest.err
31026        } && test -s conftest$ac_exeext &&
31027        $as_test_x conftest$ac_exeext; then
31028   ac_cv_lib_crypt_crypt=yes
31029 else
31030   echo "$as_me: failed program was:" >&5
31031 sed 's/^/| /' conftest.$ac_ext >&5
31032
31033         ac_cv_lib_crypt_crypt=no
31034 fi
31035
31036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31037       conftest$ac_exeext conftest.$ac_ext
31038 LIBS=$ac_check_lib_save_LIBS
31039 fi
31040 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31041 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31042 if test $ac_cv_lib_crypt_crypt = yes; then
31043   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31044                         have_crypt=yes
31045 else
31046   have_crypt=no
31047 fi
31048
31049 fi
31050
31051
31052         LIBS="$save_LIBS"
31053
31054         if test $have_crypt = yes ; then
31055
31056 cat >>confdefs.h <<\_ACEOF
31057 #define HAVE_CRYPT 1
31058 _ACEOF
31059
31060         else
31061                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31062 echo "$as_me: WARNING: could not find crypt" >&2;}
31063                 if test $ol_enable_crypt = yes ; then
31064                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31065 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31066    { (exit 1); exit 1; }; }
31067                 fi
31068
31069                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31070 echo "$as_me: WARNING: disabling crypt support" >&2;}
31071                 ol_enable_crypt=no
31072         fi
31073 fi
31074
31075 if test $ol_enable_proctitle != no ; then
31076         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31077 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31078 if test "${ac_cv_func_setproctitle+set}" = set; then
31079   echo $ECHO_N "(cached) $ECHO_C" >&6
31080 else
31081   cat >conftest.$ac_ext <<_ACEOF
31082 /* confdefs.h.  */
31083 _ACEOF
31084 cat confdefs.h >>conftest.$ac_ext
31085 cat >>conftest.$ac_ext <<_ACEOF
31086 /* end confdefs.h.  */
31087 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31089 #define setproctitle innocuous_setproctitle
31090
31091 /* System header to define __stub macros and hopefully few prototypes,
31092     which can conflict with char setproctitle (); below.
31093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31094     <limits.h> exists even on freestanding compilers.  */
31095
31096 #ifdef __STDC__
31097 # include <limits.h>
31098 #else
31099 # include <assert.h>
31100 #endif
31101
31102 #undef setproctitle
31103
31104 /* Override any GCC internal prototype to avoid an error.
31105    Use char because int might match the return type of a GCC
31106    builtin and then its argument prototype would still apply.  */
31107 #ifdef __cplusplus
31108 extern "C"
31109 #endif
31110 char setproctitle ();
31111 /* The GNU C library defines this for functions which it implements
31112     to always fail with ENOSYS.  Some functions are actually named
31113     something starting with __ and the normal name is an alias.  */
31114 #if defined __stub_setproctitle || defined __stub___setproctitle
31115 choke me
31116 #endif
31117
31118 int
31119 main ()
31120 {
31121 return setproctitle ();
31122   ;
31123   return 0;
31124 }
31125 _ACEOF
31126 rm -f conftest.$ac_objext conftest$ac_exeext
31127 if { (ac_try="$ac_link"
31128 case "(($ac_try" in
31129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31130   *) ac_try_echo=$ac_try;;
31131 esac
31132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31133   (eval "$ac_link") 2>conftest.er1
31134   ac_status=$?
31135   grep -v '^ *+' conftest.er1 >conftest.err
31136   rm -f conftest.er1
31137   cat conftest.err >&5
31138   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31139   (exit $ac_status); } && {
31140          test -z "$ac_c_werror_flag" ||
31141          test ! -s conftest.err
31142        } && test -s conftest$ac_exeext &&
31143        $as_test_x conftest$ac_exeext; then
31144   ac_cv_func_setproctitle=yes
31145 else
31146   echo "$as_me: failed program was:" >&5
31147 sed 's/^/| /' conftest.$ac_ext >&5
31148
31149         ac_cv_func_setproctitle=no
31150 fi
31151
31152 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31153       conftest$ac_exeext conftest.$ac_ext
31154 fi
31155 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31156 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31157 if test $ac_cv_func_setproctitle = yes; then
31158   have_setproctitle=yes
31159 else
31160
31161                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31162 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31163 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31164   echo $ECHO_N "(cached) $ECHO_C" >&6
31165 else
31166   ac_check_lib_save_LIBS=$LIBS
31167 LIBS="-lutil  $LIBS"
31168 cat >conftest.$ac_ext <<_ACEOF
31169 /* confdefs.h.  */
31170 _ACEOF
31171 cat confdefs.h >>conftest.$ac_ext
31172 cat >>conftest.$ac_ext <<_ACEOF
31173 /* end confdefs.h.  */
31174
31175 /* Override any GCC internal prototype to avoid an error.
31176    Use char because int might match the return type of a GCC
31177    builtin and then its argument prototype would still apply.  */
31178 #ifdef __cplusplus
31179 extern "C"
31180 #endif
31181 char setproctitle ();
31182 int
31183 main ()
31184 {
31185 return setproctitle ();
31186   ;
31187   return 0;
31188 }
31189 _ACEOF
31190 rm -f conftest.$ac_objext conftest$ac_exeext
31191 if { (ac_try="$ac_link"
31192 case "(($ac_try" in
31193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31194   *) ac_try_echo=$ac_try;;
31195 esac
31196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31197   (eval "$ac_link") 2>conftest.er1
31198   ac_status=$?
31199   grep -v '^ *+' conftest.er1 >conftest.err
31200   rm -f conftest.er1
31201   cat conftest.err >&5
31202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31203   (exit $ac_status); } && {
31204          test -z "$ac_c_werror_flag" ||
31205          test ! -s conftest.err
31206        } && test -s conftest$ac_exeext &&
31207        $as_test_x conftest$ac_exeext; then
31208   ac_cv_lib_util_setproctitle=yes
31209 else
31210   echo "$as_me: failed program was:" >&5
31211 sed 's/^/| /' conftest.$ac_ext >&5
31212
31213         ac_cv_lib_util_setproctitle=no
31214 fi
31215
31216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31217       conftest$ac_exeext conftest.$ac_ext
31218 LIBS=$ac_check_lib_save_LIBS
31219 fi
31220 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31221 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31222 if test $ac_cv_lib_util_setproctitle = yes; then
31223   have_setproctitle=yes
31224                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31225 else
31226   have_setproctitle=no
31227                         case " $LIBOBJS " in
31228   *" setproctitle.$ac_objext "* ) ;;
31229   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31230  ;;
31231 esac
31232
31233                         LIBSRCS="$LIBSRCS setproctitle.c"
31234 fi
31235
31236 fi
31237
31238
31239         if test $have_setproctitle = yes ; then
31240
31241 cat >>confdefs.h <<\_ACEOF
31242 #define HAVE_SETPROCTITLE 1
31243 _ACEOF
31244
31245         fi
31246 fi
31247
31248 if test $ol_enable_slp != no ; then
31249
31250 for ac_header in slp.h
31251 do
31252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31254   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31257   echo $ECHO_N "(cached) $ECHO_C" >&6
31258 fi
31259 ac_res=`eval echo '${'$as_ac_Header'}'`
31260                { echo "$as_me:$LINENO: result: $ac_res" >&5
31261 echo "${ECHO_T}$ac_res" >&6; }
31262 else
31263   # Is the header compilable?
31264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31266 cat >conftest.$ac_ext <<_ACEOF
31267 /* confdefs.h.  */
31268 _ACEOF
31269 cat confdefs.h >>conftest.$ac_ext
31270 cat >>conftest.$ac_ext <<_ACEOF
31271 /* end confdefs.h.  */
31272 $ac_includes_default
31273 #include <$ac_header>
31274 _ACEOF
31275 rm -f conftest.$ac_objext
31276 if { (ac_try="$ac_compile"
31277 case "(($ac_try" in
31278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31279   *) ac_try_echo=$ac_try;;
31280 esac
31281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31282   (eval "$ac_compile") 2>conftest.er1
31283   ac_status=$?
31284   grep -v '^ *+' conftest.er1 >conftest.err
31285   rm -f conftest.er1
31286   cat conftest.err >&5
31287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288   (exit $ac_status); } && {
31289          test -z "$ac_c_werror_flag" ||
31290          test ! -s conftest.err
31291        } && test -s conftest.$ac_objext; then
31292   ac_header_compiler=yes
31293 else
31294   echo "$as_me: failed program was:" >&5
31295 sed 's/^/| /' conftest.$ac_ext >&5
31296
31297         ac_header_compiler=no
31298 fi
31299
31300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31302 echo "${ECHO_T}$ac_header_compiler" >&6; }
31303
31304 # Is the header present?
31305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31307 cat >conftest.$ac_ext <<_ACEOF
31308 /* confdefs.h.  */
31309 _ACEOF
31310 cat confdefs.h >>conftest.$ac_ext
31311 cat >>conftest.$ac_ext <<_ACEOF
31312 /* end confdefs.h.  */
31313 #include <$ac_header>
31314 _ACEOF
31315 if { (ac_try="$ac_cpp conftest.$ac_ext"
31316 case "(($ac_try" in
31317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31318   *) ac_try_echo=$ac_try;;
31319 esac
31320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31322   ac_status=$?
31323   grep -v '^ *+' conftest.er1 >conftest.err
31324   rm -f conftest.er1
31325   cat conftest.err >&5
31326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31327   (exit $ac_status); } >/dev/null && {
31328          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31329          test ! -s conftest.err
31330        }; then
31331   ac_header_preproc=yes
31332 else
31333   echo "$as_me: failed program was:" >&5
31334 sed 's/^/| /' conftest.$ac_ext >&5
31335
31336   ac_header_preproc=no
31337 fi
31338
31339 rm -f conftest.err conftest.$ac_ext
31340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31341 echo "${ECHO_T}$ac_header_preproc" >&6; }
31342
31343 # So?  What about this header?
31344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31345   yes:no: )
31346     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31347 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31348     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31349 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31350     ac_header_preproc=yes
31351     ;;
31352   no:yes:* )
31353     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31354 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31355     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31356 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31357     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31358 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31359     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31360 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31361     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31362 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31363     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31364 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31365     ( cat <<\_ASBOX
31366 ## --------------------------------------------- ##
31367 ## Report this to <http://www.openldap.org/its/> ##
31368 ## --------------------------------------------- ##
31369 _ASBOX
31370      ) | sed "s/^/$as_me: WARNING:     /" >&2
31371     ;;
31372 esac
31373 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31374 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31376   echo $ECHO_N "(cached) $ECHO_C" >&6
31377 else
31378   eval "$as_ac_Header=\$ac_header_preproc"
31379 fi
31380 ac_res=`eval echo '${'$as_ac_Header'}'`
31381                { echo "$as_me:$LINENO: result: $ac_res" >&5
31382 echo "${ECHO_T}$ac_res" >&6; }
31383
31384 fi
31385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31386   cat >>confdefs.h <<_ACEOF
31387 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31388 _ACEOF
31389
31390 fi
31391
31392 done
31393
31394
31395         if test $ac_cv_header_slp_h = yes ; then
31396                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
31397 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
31398 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
31399   echo $ECHO_N "(cached) $ECHO_C" >&6
31400 else
31401   ac_check_lib_save_LIBS=$LIBS
31402 LIBS="-lslp  $LIBS"
31403 cat >conftest.$ac_ext <<_ACEOF
31404 /* confdefs.h.  */
31405 _ACEOF
31406 cat confdefs.h >>conftest.$ac_ext
31407 cat >>conftest.$ac_ext <<_ACEOF
31408 /* end confdefs.h.  */
31409
31410 /* Override any GCC internal prototype to avoid an error.
31411    Use char because int might match the return type of a GCC
31412    builtin and then its argument prototype would still apply.  */
31413 #ifdef __cplusplus
31414 extern "C"
31415 #endif
31416 char SLPOpen ();
31417 int
31418 main ()
31419 {
31420 return SLPOpen ();
31421   ;
31422   return 0;
31423 }
31424 _ACEOF
31425 rm -f conftest.$ac_objext conftest$ac_exeext
31426 if { (ac_try="$ac_link"
31427 case "(($ac_try" in
31428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31429   *) ac_try_echo=$ac_try;;
31430 esac
31431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31432   (eval "$ac_link") 2>conftest.er1
31433   ac_status=$?
31434   grep -v '^ *+' conftest.er1 >conftest.err
31435   rm -f conftest.er1
31436   cat conftest.err >&5
31437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31438   (exit $ac_status); } && {
31439          test -z "$ac_c_werror_flag" ||
31440          test ! -s conftest.err
31441        } && test -s conftest$ac_exeext &&
31442        $as_test_x conftest$ac_exeext; then
31443   ac_cv_lib_slp_SLPOpen=yes
31444 else
31445   echo "$as_me: failed program was:" >&5
31446 sed 's/^/| /' conftest.$ac_ext >&5
31447
31448         ac_cv_lib_slp_SLPOpen=no
31449 fi
31450
31451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31452       conftest$ac_exeext conftest.$ac_ext
31453 LIBS=$ac_check_lib_save_LIBS
31454 fi
31455 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
31456 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
31457 if test $ac_cv_lib_slp_SLPOpen = yes; then
31458   have_slp=yes
31459 else
31460   have_slp=no
31461 fi
31462
31463                 if test $have_slp = yes ; then
31464
31465 cat >>confdefs.h <<\_ACEOF
31466 #define HAVE_SLP 1
31467 _ACEOF
31468
31469                         SLAPD_SLP_LIBS=-lslp
31470                 fi
31471
31472         elif test $ol_enable_slp = yes ; then
31473                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
31474 echo "$as_me: error: SLP not found" >&2;}
31475    { (exit 1); exit 1; }; }
31476         fi
31477 fi
31478
31479
31480 { echo "$as_me:$LINENO: checking for mode_t" >&5
31481 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
31482 if test "${ac_cv_type_mode_t+set}" = set; then
31483   echo $ECHO_N "(cached) $ECHO_C" >&6
31484 else
31485   cat >conftest.$ac_ext <<_ACEOF
31486 /* confdefs.h.  */
31487 _ACEOF
31488 cat confdefs.h >>conftest.$ac_ext
31489 cat >>conftest.$ac_ext <<_ACEOF
31490 /* end confdefs.h.  */
31491 $ac_includes_default
31492 typedef mode_t ac__type_new_;
31493 int
31494 main ()
31495 {
31496 if ((ac__type_new_ *) 0)
31497   return 0;
31498 if (sizeof (ac__type_new_))
31499   return 0;
31500   ;
31501   return 0;
31502 }
31503 _ACEOF
31504 rm -f conftest.$ac_objext
31505 if { (ac_try="$ac_compile"
31506 case "(($ac_try" in
31507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31508   *) ac_try_echo=$ac_try;;
31509 esac
31510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31511   (eval "$ac_compile") 2>conftest.er1
31512   ac_status=$?
31513   grep -v '^ *+' conftest.er1 >conftest.err
31514   rm -f conftest.er1
31515   cat conftest.err >&5
31516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31517   (exit $ac_status); } && {
31518          test -z "$ac_c_werror_flag" ||
31519          test ! -s conftest.err
31520        } && test -s conftest.$ac_objext; then
31521   ac_cv_type_mode_t=yes
31522 else
31523   echo "$as_me: failed program was:" >&5
31524 sed 's/^/| /' conftest.$ac_ext >&5
31525
31526         ac_cv_type_mode_t=no
31527 fi
31528
31529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31530 fi
31531 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
31532 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
31533 if test $ac_cv_type_mode_t = yes; then
31534   :
31535 else
31536
31537 cat >>confdefs.h <<_ACEOF
31538 #define mode_t int
31539 _ACEOF
31540
31541 fi
31542
31543 { echo "$as_me:$LINENO: checking for off_t" >&5
31544 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
31545 if test "${ac_cv_type_off_t+set}" = set; then
31546   echo $ECHO_N "(cached) $ECHO_C" >&6
31547 else
31548   cat >conftest.$ac_ext <<_ACEOF
31549 /* confdefs.h.  */
31550 _ACEOF
31551 cat confdefs.h >>conftest.$ac_ext
31552 cat >>conftest.$ac_ext <<_ACEOF
31553 /* end confdefs.h.  */
31554 $ac_includes_default
31555 typedef off_t ac__type_new_;
31556 int
31557 main ()
31558 {
31559 if ((ac__type_new_ *) 0)
31560   return 0;
31561 if (sizeof (ac__type_new_))
31562   return 0;
31563   ;
31564   return 0;
31565 }
31566 _ACEOF
31567 rm -f conftest.$ac_objext
31568 if { (ac_try="$ac_compile"
31569 case "(($ac_try" in
31570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31571   *) ac_try_echo=$ac_try;;
31572 esac
31573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31574   (eval "$ac_compile") 2>conftest.er1
31575   ac_status=$?
31576   grep -v '^ *+' conftest.er1 >conftest.err
31577   rm -f conftest.er1
31578   cat conftest.err >&5
31579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31580   (exit $ac_status); } && {
31581          test -z "$ac_c_werror_flag" ||
31582          test ! -s conftest.err
31583        } && test -s conftest.$ac_objext; then
31584   ac_cv_type_off_t=yes
31585 else
31586   echo "$as_me: failed program was:" >&5
31587 sed 's/^/| /' conftest.$ac_ext >&5
31588
31589         ac_cv_type_off_t=no
31590 fi
31591
31592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31593 fi
31594 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
31595 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
31596 if test $ac_cv_type_off_t = yes; then
31597   :
31598 else
31599
31600 cat >>confdefs.h <<_ACEOF
31601 #define off_t long
31602 _ACEOF
31603
31604 fi
31605
31606 { echo "$as_me:$LINENO: checking for pid_t" >&5
31607 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
31608 if test "${ac_cv_type_pid_t+set}" = set; then
31609   echo $ECHO_N "(cached) $ECHO_C" >&6
31610 else
31611   cat >conftest.$ac_ext <<_ACEOF
31612 /* confdefs.h.  */
31613 _ACEOF
31614 cat confdefs.h >>conftest.$ac_ext
31615 cat >>conftest.$ac_ext <<_ACEOF
31616 /* end confdefs.h.  */
31617 $ac_includes_default
31618 typedef pid_t ac__type_new_;
31619 int
31620 main ()
31621 {
31622 if ((ac__type_new_ *) 0)
31623   return 0;
31624 if (sizeof (ac__type_new_))
31625   return 0;
31626   ;
31627   return 0;
31628 }
31629 _ACEOF
31630 rm -f conftest.$ac_objext
31631 if { (ac_try="$ac_compile"
31632 case "(($ac_try" in
31633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31634   *) ac_try_echo=$ac_try;;
31635 esac
31636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31637   (eval "$ac_compile") 2>conftest.er1
31638   ac_status=$?
31639   grep -v '^ *+' conftest.er1 >conftest.err
31640   rm -f conftest.er1
31641   cat conftest.err >&5
31642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31643   (exit $ac_status); } && {
31644          test -z "$ac_c_werror_flag" ||
31645          test ! -s conftest.err
31646        } && test -s conftest.$ac_objext; then
31647   ac_cv_type_pid_t=yes
31648 else
31649   echo "$as_me: failed program was:" >&5
31650 sed 's/^/| /' conftest.$ac_ext >&5
31651
31652         ac_cv_type_pid_t=no
31653 fi
31654
31655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31656 fi
31657 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
31658 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
31659 if test $ac_cv_type_pid_t = yes; then
31660   :
31661 else
31662
31663 cat >>confdefs.h <<_ACEOF
31664 #define pid_t int
31665 _ACEOF
31666
31667 fi
31668
31669 { echo "$as_me:$LINENO: checking for ssize_t" >&5
31670 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
31671 if test "${ac_cv_type_ssize_t+set}" = set; then
31672   echo $ECHO_N "(cached) $ECHO_C" >&6
31673 else
31674   cat >conftest.$ac_ext <<_ACEOF
31675 /* confdefs.h.  */
31676 _ACEOF
31677 cat confdefs.h >>conftest.$ac_ext
31678 cat >>conftest.$ac_ext <<_ACEOF
31679 /* end confdefs.h.  */
31680 $ac_includes_default
31681 typedef ssize_t ac__type_new_;
31682 int
31683 main ()
31684 {
31685 if ((ac__type_new_ *) 0)
31686   return 0;
31687 if (sizeof (ac__type_new_))
31688   return 0;
31689   ;
31690   return 0;
31691 }
31692 _ACEOF
31693 rm -f conftest.$ac_objext
31694 if { (ac_try="$ac_compile"
31695 case "(($ac_try" in
31696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31697   *) ac_try_echo=$ac_try;;
31698 esac
31699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31700   (eval "$ac_compile") 2>conftest.er1
31701   ac_status=$?
31702   grep -v '^ *+' conftest.er1 >conftest.err
31703   rm -f conftest.er1
31704   cat conftest.err >&5
31705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); } && {
31707          test -z "$ac_c_werror_flag" ||
31708          test ! -s conftest.err
31709        } && test -s conftest.$ac_objext; then
31710   ac_cv_type_ssize_t=yes
31711 else
31712   echo "$as_me: failed program was:" >&5
31713 sed 's/^/| /' conftest.$ac_ext >&5
31714
31715         ac_cv_type_ssize_t=no
31716 fi
31717
31718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31719 fi
31720 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
31721 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
31722 if test $ac_cv_type_ssize_t = yes; then
31723   :
31724 else
31725
31726 cat >>confdefs.h <<_ACEOF
31727 #define ssize_t signed int
31728 _ACEOF
31729
31730 fi
31731
31732 { echo "$as_me:$LINENO: checking for caddr_t" >&5
31733 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
31734 if test "${ac_cv_type_caddr_t+set}" = set; then
31735   echo $ECHO_N "(cached) $ECHO_C" >&6
31736 else
31737   cat >conftest.$ac_ext <<_ACEOF
31738 /* confdefs.h.  */
31739 _ACEOF
31740 cat confdefs.h >>conftest.$ac_ext
31741 cat >>conftest.$ac_ext <<_ACEOF
31742 /* end confdefs.h.  */
31743 $ac_includes_default
31744 typedef caddr_t ac__type_new_;
31745 int
31746 main ()
31747 {
31748 if ((ac__type_new_ *) 0)
31749   return 0;
31750 if (sizeof (ac__type_new_))
31751   return 0;
31752   ;
31753   return 0;
31754 }
31755 _ACEOF
31756 rm -f conftest.$ac_objext
31757 if { (ac_try="$ac_compile"
31758 case "(($ac_try" in
31759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31760   *) ac_try_echo=$ac_try;;
31761 esac
31762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31763   (eval "$ac_compile") 2>conftest.er1
31764   ac_status=$?
31765   grep -v '^ *+' conftest.er1 >conftest.err
31766   rm -f conftest.er1
31767   cat conftest.err >&5
31768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31769   (exit $ac_status); } && {
31770          test -z "$ac_c_werror_flag" ||
31771          test ! -s conftest.err
31772        } && test -s conftest.$ac_objext; then
31773   ac_cv_type_caddr_t=yes
31774 else
31775   echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.$ac_ext >&5
31777
31778         ac_cv_type_caddr_t=no
31779 fi
31780
31781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31782 fi
31783 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
31784 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
31785 if test $ac_cv_type_caddr_t = yes; then
31786   :
31787 else
31788
31789 cat >>confdefs.h <<_ACEOF
31790 #define caddr_t char *
31791 _ACEOF
31792
31793 fi
31794
31795 { echo "$as_me:$LINENO: checking for size_t" >&5
31796 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
31797 if test "${ac_cv_type_size_t+set}" = set; then
31798   echo $ECHO_N "(cached) $ECHO_C" >&6
31799 else
31800   cat >conftest.$ac_ext <<_ACEOF
31801 /* confdefs.h.  */
31802 _ACEOF
31803 cat confdefs.h >>conftest.$ac_ext
31804 cat >>conftest.$ac_ext <<_ACEOF
31805 /* end confdefs.h.  */
31806 $ac_includes_default
31807 typedef size_t ac__type_new_;
31808 int
31809 main ()
31810 {
31811 if ((ac__type_new_ *) 0)
31812   return 0;
31813 if (sizeof (ac__type_new_))
31814   return 0;
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext
31820 if { (ac_try="$ac_compile"
31821 case "(($ac_try" in
31822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31823   *) ac_try_echo=$ac_try;;
31824 esac
31825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31826   (eval "$ac_compile") 2>conftest.er1
31827   ac_status=$?
31828   grep -v '^ *+' conftest.er1 >conftest.err
31829   rm -f conftest.er1
31830   cat conftest.err >&5
31831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31832   (exit $ac_status); } && {
31833          test -z "$ac_c_werror_flag" ||
31834          test ! -s conftest.err
31835        } && test -s conftest.$ac_objext; then
31836   ac_cv_type_size_t=yes
31837 else
31838   echo "$as_me: failed program was:" >&5
31839 sed 's/^/| /' conftest.$ac_ext >&5
31840
31841         ac_cv_type_size_t=no
31842 fi
31843
31844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31845 fi
31846 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
31847 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
31848 if test $ac_cv_type_size_t = yes; then
31849   :
31850 else
31851
31852 cat >>confdefs.h <<_ACEOF
31853 #define size_t unsigned
31854 _ACEOF
31855
31856 fi
31857
31858
31859 { echo "$as_me:$LINENO: checking for long long" >&5
31860 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
31861 if test "${ac_cv_type_long_long+set}" = set; then
31862   echo $ECHO_N "(cached) $ECHO_C" >&6
31863 else
31864   cat >conftest.$ac_ext <<_ACEOF
31865 /* confdefs.h.  */
31866 _ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h.  */
31870 $ac_includes_default
31871 typedef long long ac__type_new_;
31872 int
31873 main ()
31874 {
31875 if ((ac__type_new_ *) 0)
31876   return 0;
31877 if (sizeof (ac__type_new_))
31878   return 0;
31879   ;
31880   return 0;
31881 }
31882 _ACEOF
31883 rm -f conftest.$ac_objext
31884 if { (ac_try="$ac_compile"
31885 case "(($ac_try" in
31886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31887   *) ac_try_echo=$ac_try;;
31888 esac
31889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31890   (eval "$ac_compile") 2>conftest.er1
31891   ac_status=$?
31892   grep -v '^ *+' conftest.er1 >conftest.err
31893   rm -f conftest.er1
31894   cat conftest.err >&5
31895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31896   (exit $ac_status); } && {
31897          test -z "$ac_c_werror_flag" ||
31898          test ! -s conftest.err
31899        } && test -s conftest.$ac_objext; then
31900   ac_cv_type_long_long=yes
31901 else
31902   echo "$as_me: failed program was:" >&5
31903 sed 's/^/| /' conftest.$ac_ext >&5
31904
31905         ac_cv_type_long_long=no
31906 fi
31907
31908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31909 fi
31910 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
31911 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
31912 if test $ac_cv_type_long_long = yes; then
31913
31914 cat >>confdefs.h <<_ACEOF
31915 #define HAVE_LONG_LONG 1
31916 _ACEOF
31917
31918
31919 fi
31920
31921 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
31922 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
31923 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
31924   echo $ECHO_N "(cached) $ECHO_C" >&6
31925 else
31926   cat >conftest.$ac_ext <<_ACEOF
31927 /* confdefs.h.  */
31928 _ACEOF
31929 cat confdefs.h >>conftest.$ac_ext
31930 cat >>conftest.$ac_ext <<_ACEOF
31931 /* end confdefs.h.  */
31932 $ac_includes_default
31933 typedef ptrdiff_t ac__type_new_;
31934 int
31935 main ()
31936 {
31937 if ((ac__type_new_ *) 0)
31938   return 0;
31939 if (sizeof (ac__type_new_))
31940   return 0;
31941   ;
31942   return 0;
31943 }
31944 _ACEOF
31945 rm -f conftest.$ac_objext
31946 if { (ac_try="$ac_compile"
31947 case "(($ac_try" in
31948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31949   *) ac_try_echo=$ac_try;;
31950 esac
31951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31952   (eval "$ac_compile") 2>conftest.er1
31953   ac_status=$?
31954   grep -v '^ *+' conftest.er1 >conftest.err
31955   rm -f conftest.er1
31956   cat conftest.err >&5
31957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31958   (exit $ac_status); } && {
31959          test -z "$ac_c_werror_flag" ||
31960          test ! -s conftest.err
31961        } && test -s conftest.$ac_objext; then
31962   ac_cv_type_ptrdiff_t=yes
31963 else
31964   echo "$as_me: failed program was:" >&5
31965 sed 's/^/| /' conftest.$ac_ext >&5
31966
31967         ac_cv_type_ptrdiff_t=no
31968 fi
31969
31970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31971 fi
31972 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
31973 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
31974 if test $ac_cv_type_ptrdiff_t = yes; then
31975
31976 cat >>confdefs.h <<_ACEOF
31977 #define HAVE_PTRDIFF_T 1
31978 _ACEOF
31979
31980
31981 fi
31982
31983
31984
31985 { echo "$as_me:$LINENO: checking for socklen_t" >&5
31986 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
31987 if test "${ac_cv_type_socklen_t+set}" = set; then
31988   echo $ECHO_N "(cached) $ECHO_C" >&6
31989 else
31990   cat >conftest.$ac_ext <<_ACEOF
31991 /* confdefs.h.  */
31992 _ACEOF
31993 cat confdefs.h >>conftest.$ac_ext
31994 cat >>conftest.$ac_ext <<_ACEOF
31995 /* end confdefs.h.  */
31996 $ac_includes_default
31997 #ifdef HAVE_SYS_SOCKET_H
31998 #include <sys/socket.h>
31999 #endif
32000
32001 typedef socklen_t ac__type_new_;
32002 int
32003 main ()
32004 {
32005 if ((ac__type_new_ *) 0)
32006   return 0;
32007 if (sizeof (ac__type_new_))
32008   return 0;
32009   ;
32010   return 0;
32011 }
32012 _ACEOF
32013 rm -f conftest.$ac_objext
32014 if { (ac_try="$ac_compile"
32015 case "(($ac_try" in
32016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32017   *) ac_try_echo=$ac_try;;
32018 esac
32019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32020   (eval "$ac_compile") 2>conftest.er1
32021   ac_status=$?
32022   grep -v '^ *+' conftest.er1 >conftest.err
32023   rm -f conftest.er1
32024   cat conftest.err >&5
32025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32026   (exit $ac_status); } && {
32027          test -z "$ac_c_werror_flag" ||
32028          test ! -s conftest.err
32029        } && test -s conftest.$ac_objext; then
32030   ac_cv_type_socklen_t=yes
32031 else
32032   echo "$as_me: failed program was:" >&5
32033 sed 's/^/| /' conftest.$ac_ext >&5
32034
32035         ac_cv_type_socklen_t=no
32036 fi
32037
32038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32039 fi
32040 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32041 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32042
32043
32044 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32045 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32046 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32047   echo $ECHO_N "(cached) $ECHO_C" >&6
32048 else
32049
32050         set socklen_t int unsigned "unsigned long" long size_t
32051         test "$ac_cv_type_socklen_t" = yes || shift
32052         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32053         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32054                 cat >conftest.$ac_ext <<_ACEOF
32055 /* confdefs.h.  */
32056 _ACEOF
32057 cat confdefs.h >>conftest.$ac_ext
32058 cat >>conftest.$ac_ext <<_ACEOF
32059 /* end confdefs.h.  */
32060 $ac_includes_default
32061 #ifdef HAVE_SYS_SOCKET_H
32062 #include <sys/socket.h>
32063 #endif
32064 extern int accept(int s, $addrtype *ap, $lentype *lp);
32065
32066 int
32067 main ()
32068 {
32069
32070 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32071
32072   ;
32073   return 0;
32074 }
32075 _ACEOF
32076 rm -f conftest.$ac_objext
32077 if { (ac_try="$ac_compile"
32078 case "(($ac_try" in
32079   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32080   *) ac_try_echo=$ac_try;;
32081 esac
32082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32083   (eval "$ac_compile") 2>conftest.er1
32084   ac_status=$?
32085   grep -v '^ *+' conftest.er1 >conftest.err
32086   rm -f conftest.er1
32087   cat conftest.err >&5
32088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32089   (exit $ac_status); } && {
32090          test -z "$ac_c_werror_flag" ||
32091          test ! -s conftest.err
32092        } && test -s conftest.$ac_objext; then
32093   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32094 else
32095   echo "$as_me: failed program was:" >&5
32096 sed 's/^/| /' conftest.$ac_ext >&5
32097
32098
32099 fi
32100
32101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32102         done ; done
32103 fi
32104
32105 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32106 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32107
32108 cat >>confdefs.h <<_ACEOF
32109 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32110 _ACEOF
32111
32112
32113 if test "$ac_cv_type_socklen_t" != yes; then
32114
32115 cat >>confdefs.h <<_ACEOF
32116 #define socklen_t $ol_cv_type_ber_socklen_t
32117 _ACEOF
32118
32119 fi
32120
32121
32122 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32123 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32124 if test "${ac_cv_type_signal+set}" = set; then
32125   echo $ECHO_N "(cached) $ECHO_C" >&6
32126 else
32127   cat >conftest.$ac_ext <<_ACEOF
32128 /* confdefs.h.  */
32129 _ACEOF
32130 cat confdefs.h >>conftest.$ac_ext
32131 cat >>conftest.$ac_ext <<_ACEOF
32132 /* end confdefs.h.  */
32133 #include <sys/types.h>
32134 #include <signal.h>
32135
32136 int
32137 main ()
32138 {
32139 return *(signal (0, 0)) (0) == 1;
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext
32145 if { (ac_try="$ac_compile"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_compile") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && {
32158          test -z "$ac_c_werror_flag" ||
32159          test ! -s conftest.err
32160        } && test -s conftest.$ac_objext; then
32161   ac_cv_type_signal=int
32162 else
32163   echo "$as_me: failed program was:" >&5
32164 sed 's/^/| /' conftest.$ac_ext >&5
32165
32166         ac_cv_type_signal=void
32167 fi
32168
32169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32170 fi
32171 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32172 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32173
32174 cat >>confdefs.h <<_ACEOF
32175 #define RETSIGTYPE $ac_cv_type_signal
32176 _ACEOF
32177
32178
32179
32180 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32181 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32182 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32183   echo $ECHO_N "(cached) $ECHO_C" >&6
32184 else
32185   cat >conftest.$ac_ext <<_ACEOF
32186 /* confdefs.h.  */
32187 _ACEOF
32188 cat confdefs.h >>conftest.$ac_ext
32189 cat >>conftest.$ac_ext <<_ACEOF
32190 /* end confdefs.h.  */
32191 $ac_includes_default
32192 #include <signal.h>
32193
32194
32195 typedef sig_atomic_t ac__type_new_;
32196 int
32197 main ()
32198 {
32199 if ((ac__type_new_ *) 0)
32200   return 0;
32201 if (sizeof (ac__type_new_))
32202   return 0;
32203   ;
32204   return 0;
32205 }
32206 _ACEOF
32207 rm -f conftest.$ac_objext
32208 if { (ac_try="$ac_compile"
32209 case "(($ac_try" in
32210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32211   *) ac_try_echo=$ac_try;;
32212 esac
32213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32214   (eval "$ac_compile") 2>conftest.er1
32215   ac_status=$?
32216   grep -v '^ *+' conftest.er1 >conftest.err
32217   rm -f conftest.er1
32218   cat conftest.err >&5
32219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32220   (exit $ac_status); } && {
32221          test -z "$ac_c_werror_flag" ||
32222          test ! -s conftest.err
32223        } && test -s conftest.$ac_objext; then
32224   ac_cv_type_sig_atomic_t=yes
32225 else
32226   echo "$as_me: failed program was:" >&5
32227 sed 's/^/| /' conftest.$ac_ext >&5
32228
32229         ac_cv_type_sig_atomic_t=no
32230 fi
32231
32232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32233 fi
32234 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32235 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32236 if test $ac_cv_type_sig_atomic_t = yes; then
32237   :
32238 else
32239
32240 cat >>confdefs.h <<_ACEOF
32241 #define sig_atomic_t int
32242 _ACEOF
32243
32244 fi
32245
32246
32247 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32248 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32249 if test "${ac_cv_type_uid_t+set}" = set; then
32250   echo $ECHO_N "(cached) $ECHO_C" >&6
32251 else
32252   cat >conftest.$ac_ext <<_ACEOF
32253 /* confdefs.h.  */
32254 _ACEOF
32255 cat confdefs.h >>conftest.$ac_ext
32256 cat >>conftest.$ac_ext <<_ACEOF
32257 /* end confdefs.h.  */
32258 #include <sys/types.h>
32259
32260 _ACEOF
32261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32262   $EGREP "uid_t" >/dev/null 2>&1; then
32263   ac_cv_type_uid_t=yes
32264 else
32265   ac_cv_type_uid_t=no
32266 fi
32267 rm -f conftest*
32268
32269 fi
32270 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32271 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32272 if test $ac_cv_type_uid_t = no; then
32273
32274 cat >>confdefs.h <<\_ACEOF
32275 #define uid_t int
32276 _ACEOF
32277
32278
32279 cat >>confdefs.h <<\_ACEOF
32280 #define gid_t int
32281 _ACEOF
32282
32283 fi
32284
32285
32286 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32287 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32288 if test "${ac_cv_header_time+set}" = set; then
32289   echo $ECHO_N "(cached) $ECHO_C" >&6
32290 else
32291   cat >conftest.$ac_ext <<_ACEOF
32292 /* confdefs.h.  */
32293 _ACEOF
32294 cat confdefs.h >>conftest.$ac_ext
32295 cat >>conftest.$ac_ext <<_ACEOF
32296 /* end confdefs.h.  */
32297 #include <sys/types.h>
32298 #include <sys/time.h>
32299 #include <time.h>
32300
32301 int
32302 main ()
32303 {
32304 if ((struct tm *) 0)
32305 return 0;
32306   ;
32307   return 0;
32308 }
32309 _ACEOF
32310 rm -f conftest.$ac_objext
32311 if { (ac_try="$ac_compile"
32312 case "(($ac_try" in
32313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32314   *) ac_try_echo=$ac_try;;
32315 esac
32316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32317   (eval "$ac_compile") 2>conftest.er1
32318   ac_status=$?
32319   grep -v '^ *+' conftest.er1 >conftest.err
32320   rm -f conftest.er1
32321   cat conftest.err >&5
32322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32323   (exit $ac_status); } && {
32324          test -z "$ac_c_werror_flag" ||
32325          test ! -s conftest.err
32326        } && test -s conftest.$ac_objext; then
32327   ac_cv_header_time=yes
32328 else
32329   echo "$as_me: failed program was:" >&5
32330 sed 's/^/| /' conftest.$ac_ext >&5
32331
32332         ac_cv_header_time=no
32333 fi
32334
32335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32336 fi
32337 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32338 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32339 if test $ac_cv_header_time = yes; then
32340
32341 cat >>confdefs.h <<\_ACEOF
32342 #define TIME_WITH_SYS_TIME 1
32343 _ACEOF
32344
32345 fi
32346
32347 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32348 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32349 if test "${ac_cv_struct_tm+set}" = set; then
32350   echo $ECHO_N "(cached) $ECHO_C" >&6
32351 else
32352   cat >conftest.$ac_ext <<_ACEOF
32353 /* confdefs.h.  */
32354 _ACEOF
32355 cat confdefs.h >>conftest.$ac_ext
32356 cat >>conftest.$ac_ext <<_ACEOF
32357 /* end confdefs.h.  */
32358 #include <sys/types.h>
32359 #include <time.h>
32360
32361 int
32362 main ()
32363 {
32364 struct tm tm;
32365                                      int *p = &tm.tm_sec;
32366                                      return !p;
32367   ;
32368   return 0;
32369 }
32370 _ACEOF
32371 rm -f conftest.$ac_objext
32372 if { (ac_try="$ac_compile"
32373 case "(($ac_try" in
32374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375   *) ac_try_echo=$ac_try;;
32376 esac
32377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32378   (eval "$ac_compile") 2>conftest.er1
32379   ac_status=$?
32380   grep -v '^ *+' conftest.er1 >conftest.err
32381   rm -f conftest.er1
32382   cat conftest.err >&5
32383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32384   (exit $ac_status); } && {
32385          test -z "$ac_c_werror_flag" ||
32386          test ! -s conftest.err
32387        } && test -s conftest.$ac_objext; then
32388   ac_cv_struct_tm=time.h
32389 else
32390   echo "$as_me: failed program was:" >&5
32391 sed 's/^/| /' conftest.$ac_ext >&5
32392
32393         ac_cv_struct_tm=sys/time.h
32394 fi
32395
32396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32397 fi
32398 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
32399 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
32400 if test $ac_cv_struct_tm = sys/time.h; then
32401
32402 cat >>confdefs.h <<\_ACEOF
32403 #define TM_IN_SYS_TIME 1
32404 _ACEOF
32405
32406 fi
32407
32408 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
32409 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
32410 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
32411   echo $ECHO_N "(cached) $ECHO_C" >&6
32412 else
32413   cat >conftest.$ac_ext <<_ACEOF
32414 /* confdefs.h.  */
32415 _ACEOF
32416 cat confdefs.h >>conftest.$ac_ext
32417 cat >>conftest.$ac_ext <<_ACEOF
32418 /* end confdefs.h.  */
32419 $ac_includes_default
32420 int
32421 main ()
32422 {
32423 static struct stat ac_aggr;
32424 if (ac_aggr.st_blksize)
32425 return 0;
32426   ;
32427   return 0;
32428 }
32429 _ACEOF
32430 rm -f conftest.$ac_objext
32431 if { (ac_try="$ac_compile"
32432 case "(($ac_try" in
32433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32434   *) ac_try_echo=$ac_try;;
32435 esac
32436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32437   (eval "$ac_compile") 2>conftest.er1
32438   ac_status=$?
32439   grep -v '^ *+' conftest.er1 >conftest.err
32440   rm -f conftest.er1
32441   cat conftest.err >&5
32442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32443   (exit $ac_status); } && {
32444          test -z "$ac_c_werror_flag" ||
32445          test ! -s conftest.err
32446        } && test -s conftest.$ac_objext; then
32447   ac_cv_member_struct_stat_st_blksize=yes
32448 else
32449   echo "$as_me: failed program was:" >&5
32450 sed 's/^/| /' conftest.$ac_ext >&5
32451
32452         cat >conftest.$ac_ext <<_ACEOF
32453 /* confdefs.h.  */
32454 _ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h.  */
32458 $ac_includes_default
32459 int
32460 main ()
32461 {
32462 static struct stat ac_aggr;
32463 if (sizeof ac_aggr.st_blksize)
32464 return 0;
32465   ;
32466   return 0;
32467 }
32468 _ACEOF
32469 rm -f conftest.$ac_objext
32470 if { (ac_try="$ac_compile"
32471 case "(($ac_try" in
32472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32473   *) ac_try_echo=$ac_try;;
32474 esac
32475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32476   (eval "$ac_compile") 2>conftest.er1
32477   ac_status=$?
32478   grep -v '^ *+' conftest.er1 >conftest.err
32479   rm -f conftest.er1
32480   cat conftest.err >&5
32481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482   (exit $ac_status); } && {
32483          test -z "$ac_c_werror_flag" ||
32484          test ! -s conftest.err
32485        } && test -s conftest.$ac_objext; then
32486   ac_cv_member_struct_stat_st_blksize=yes
32487 else
32488   echo "$as_me: failed program was:" >&5
32489 sed 's/^/| /' conftest.$ac_ext >&5
32490
32491         ac_cv_member_struct_stat_st_blksize=no
32492 fi
32493
32494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32495 fi
32496
32497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32498 fi
32499 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
32500 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
32501 if test $ac_cv_member_struct_stat_st_blksize = yes; then
32502
32503 cat >>confdefs.h <<_ACEOF
32504 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
32505 _ACEOF
32506
32507
32508 fi
32509
32510 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
32511 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
32512 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
32513   echo $ECHO_N "(cached) $ECHO_C" >&6
32514 else
32515   cat >conftest.$ac_ext <<_ACEOF
32516 /* confdefs.h.  */
32517 _ACEOF
32518 cat confdefs.h >>conftest.$ac_ext
32519 cat >>conftest.$ac_ext <<_ACEOF
32520 /* end confdefs.h.  */
32521 $ac_includes_default
32522 #include <pwd.h>
32523
32524 int
32525 main ()
32526 {
32527 static struct passwd ac_aggr;
32528 if (ac_aggr.pw_gecos)
32529 return 0;
32530   ;
32531   return 0;
32532 }
32533 _ACEOF
32534 rm -f conftest.$ac_objext
32535 if { (ac_try="$ac_compile"
32536 case "(($ac_try" in
32537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538   *) ac_try_echo=$ac_try;;
32539 esac
32540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32541   (eval "$ac_compile") 2>conftest.er1
32542   ac_status=$?
32543   grep -v '^ *+' conftest.er1 >conftest.err
32544   rm -f conftest.er1
32545   cat conftest.err >&5
32546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32547   (exit $ac_status); } && {
32548          test -z "$ac_c_werror_flag" ||
32549          test ! -s conftest.err
32550        } && test -s conftest.$ac_objext; then
32551   ac_cv_member_struct_passwd_pw_gecos=yes
32552 else
32553   echo "$as_me: failed program was:" >&5
32554 sed 's/^/| /' conftest.$ac_ext >&5
32555
32556         cat >conftest.$ac_ext <<_ACEOF
32557 /* confdefs.h.  */
32558 _ACEOF
32559 cat confdefs.h >>conftest.$ac_ext
32560 cat >>conftest.$ac_ext <<_ACEOF
32561 /* end confdefs.h.  */
32562 $ac_includes_default
32563 #include <pwd.h>
32564
32565 int
32566 main ()
32567 {
32568 static struct passwd ac_aggr;
32569 if (sizeof ac_aggr.pw_gecos)
32570 return 0;
32571   ;
32572   return 0;
32573 }
32574 _ACEOF
32575 rm -f conftest.$ac_objext
32576 if { (ac_try="$ac_compile"
32577 case "(($ac_try" in
32578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32579   *) ac_try_echo=$ac_try;;
32580 esac
32581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32582   (eval "$ac_compile") 2>conftest.er1
32583   ac_status=$?
32584   grep -v '^ *+' conftest.er1 >conftest.err
32585   rm -f conftest.er1
32586   cat conftest.err >&5
32587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32588   (exit $ac_status); } && {
32589          test -z "$ac_c_werror_flag" ||
32590          test ! -s conftest.err
32591        } && test -s conftest.$ac_objext; then
32592   ac_cv_member_struct_passwd_pw_gecos=yes
32593 else
32594   echo "$as_me: failed program was:" >&5
32595 sed 's/^/| /' conftest.$ac_ext >&5
32596
32597         ac_cv_member_struct_passwd_pw_gecos=no
32598 fi
32599
32600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32601 fi
32602
32603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32604 fi
32605 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
32606 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
32607 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
32608
32609 cat >>confdefs.h <<_ACEOF
32610 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
32611 _ACEOF
32612
32613
32614 fi
32615
32616 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
32617 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
32618 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
32619   echo $ECHO_N "(cached) $ECHO_C" >&6
32620 else
32621   cat >conftest.$ac_ext <<_ACEOF
32622 /* confdefs.h.  */
32623 _ACEOF
32624 cat confdefs.h >>conftest.$ac_ext
32625 cat >>conftest.$ac_ext <<_ACEOF
32626 /* end confdefs.h.  */
32627 $ac_includes_default
32628 #include <pwd.h>
32629
32630 int
32631 main ()
32632 {
32633 static struct passwd ac_aggr;
32634 if (ac_aggr.pw_passwd)
32635 return 0;
32636   ;
32637   return 0;
32638 }
32639 _ACEOF
32640 rm -f conftest.$ac_objext
32641 if { (ac_try="$ac_compile"
32642 case "(($ac_try" in
32643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32644   *) ac_try_echo=$ac_try;;
32645 esac
32646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32647   (eval "$ac_compile") 2>conftest.er1
32648   ac_status=$?
32649   grep -v '^ *+' conftest.er1 >conftest.err
32650   rm -f conftest.er1
32651   cat conftest.err >&5
32652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32653   (exit $ac_status); } && {
32654          test -z "$ac_c_werror_flag" ||
32655          test ! -s conftest.err
32656        } && test -s conftest.$ac_objext; then
32657   ac_cv_member_struct_passwd_pw_passwd=yes
32658 else
32659   echo "$as_me: failed program was:" >&5
32660 sed 's/^/| /' conftest.$ac_ext >&5
32661
32662         cat >conftest.$ac_ext <<_ACEOF
32663 /* confdefs.h.  */
32664 _ACEOF
32665 cat confdefs.h >>conftest.$ac_ext
32666 cat >>conftest.$ac_ext <<_ACEOF
32667 /* end confdefs.h.  */
32668 $ac_includes_default
32669 #include <pwd.h>
32670
32671 int
32672 main ()
32673 {
32674 static struct passwd ac_aggr;
32675 if (sizeof ac_aggr.pw_passwd)
32676 return 0;
32677   ;
32678   return 0;
32679 }
32680 _ACEOF
32681 rm -f conftest.$ac_objext
32682 if { (ac_try="$ac_compile"
32683 case "(($ac_try" in
32684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32685   *) ac_try_echo=$ac_try;;
32686 esac
32687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32688   (eval "$ac_compile") 2>conftest.er1
32689   ac_status=$?
32690   grep -v '^ *+' conftest.er1 >conftest.err
32691   rm -f conftest.er1
32692   cat conftest.err >&5
32693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32694   (exit $ac_status); } && {
32695          test -z "$ac_c_werror_flag" ||
32696          test ! -s conftest.err
32697        } && test -s conftest.$ac_objext; then
32698   ac_cv_member_struct_passwd_pw_passwd=yes
32699 else
32700   echo "$as_me: failed program was:" >&5
32701 sed 's/^/| /' conftest.$ac_ext >&5
32702
32703         ac_cv_member_struct_passwd_pw_passwd=no
32704 fi
32705
32706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32707 fi
32708
32709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32710 fi
32711 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
32712 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
32713 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
32714
32715 cat >>confdefs.h <<_ACEOF
32716 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
32717 _ACEOF
32718
32719
32720 fi
32721
32722
32723 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
32724 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
32725 if test "${ol_cv_c_upper_lower+set}" = set; then
32726   echo $ECHO_N "(cached) $ECHO_C" >&6
32727 else
32728
32729         if test "$cross_compiling" = yes; then
32730   ol_cv_c_upper_lower=safe
32731 else
32732   cat >conftest.$ac_ext <<_ACEOF
32733 /* confdefs.h.  */
32734 _ACEOF
32735 cat confdefs.h >>conftest.$ac_ext
32736 cat >>conftest.$ac_ext <<_ACEOF
32737 /* end confdefs.h.  */
32738
32739 #include <ctype.h>
32740 main()
32741 {
32742         if ('C' == toupper('C'))
32743                 exit(0);
32744         else
32745                 exit(1);
32746 }
32747 _ACEOF
32748 rm -f conftest$ac_exeext
32749 if { (ac_try="$ac_link"
32750 case "(($ac_try" in
32751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32752   *) ac_try_echo=$ac_try;;
32753 esac
32754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32755   (eval "$ac_link") 2>&5
32756   ac_status=$?
32757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32758   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32759   { (case "(($ac_try" in
32760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32761   *) ac_try_echo=$ac_try;;
32762 esac
32763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32764   (eval "$ac_try") 2>&5
32765   ac_status=$?
32766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32767   (exit $ac_status); }; }; then
32768   ol_cv_c_upper_lower=no
32769 else
32770   echo "$as_me: program exited with status $ac_status" >&5
32771 echo "$as_me: failed program was:" >&5
32772 sed 's/^/| /' conftest.$ac_ext >&5
32773
32774 ( exit $ac_status )
32775 ol_cv_c_upper_lower=yes
32776 fi
32777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32778 fi
32779
32780
32781 fi
32782 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
32783 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
32784 if test $ol_cv_c_upper_lower != no ; then
32785
32786 cat >>confdefs.h <<\_ACEOF
32787 #define C_UPPER_LOWER 1
32788 _ACEOF
32789
32790 fi
32791
32792 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
32793 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
32794 if test "${ac_cv_c_const+set}" = set; then
32795   echo $ECHO_N "(cached) $ECHO_C" >&6
32796 else
32797   cat >conftest.$ac_ext <<_ACEOF
32798 /* confdefs.h.  */
32799 _ACEOF
32800 cat confdefs.h >>conftest.$ac_ext
32801 cat >>conftest.$ac_ext <<_ACEOF
32802 /* end confdefs.h.  */
32803
32804 int
32805 main ()
32806 {
32807 /* FIXME: Include the comments suggested by Paul. */
32808 #ifndef __cplusplus
32809   /* Ultrix mips cc rejects this.  */
32810   typedef int charset[2];
32811   const charset cs;
32812   /* SunOS 4.1.1 cc rejects this.  */
32813   char const *const *pcpcc;
32814   char **ppc;
32815   /* NEC SVR4.0.2 mips cc rejects this.  */
32816   struct point {int x, y;};
32817   static struct point const zero = {0,0};
32818   /* AIX XL C 1.02.0.0 rejects this.
32819      It does not let you subtract one const X* pointer from another in
32820      an arm of an if-expression whose if-part is not a constant
32821      expression */
32822   const char *g = "string";
32823   pcpcc = &g + (g ? g-g : 0);
32824   /* HPUX 7.0 cc rejects these. */
32825   ++pcpcc;
32826   ppc = (char**) pcpcc;
32827   pcpcc = (char const *const *) ppc;
32828   { /* SCO 3.2v4 cc rejects this.  */
32829     char *t;
32830     char const *s = 0 ? (char *) 0 : (char const *) 0;
32831
32832     *t++ = 0;
32833     if (s) return 0;
32834   }
32835   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
32836     int x[] = {25, 17};
32837     const int *foo = &x[0];
32838     ++foo;
32839   }
32840   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
32841     typedef const int *iptr;
32842     iptr p = 0;
32843     ++p;
32844   }
32845   { /* AIX XL C 1.02.0.0 rejects this saying
32846        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
32847     struct s { int j; const int *ap[3]; };
32848     struct s *b; b->j = 5;
32849   }
32850   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
32851     const int foo = 10;
32852     if (!foo) return 0;
32853   }
32854   return !cs[0] && !zero.x;
32855 #endif
32856
32857   ;
32858   return 0;
32859 }
32860 _ACEOF
32861 rm -f conftest.$ac_objext
32862 if { (ac_try="$ac_compile"
32863 case "(($ac_try" in
32864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32865   *) ac_try_echo=$ac_try;;
32866 esac
32867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32868   (eval "$ac_compile") 2>conftest.er1
32869   ac_status=$?
32870   grep -v '^ *+' conftest.er1 >conftest.err
32871   rm -f conftest.er1
32872   cat conftest.err >&5
32873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874   (exit $ac_status); } && {
32875          test -z "$ac_c_werror_flag" ||
32876          test ! -s conftest.err
32877        } && test -s conftest.$ac_objext; then
32878   ac_cv_c_const=yes
32879 else
32880   echo "$as_me: failed program was:" >&5
32881 sed 's/^/| /' conftest.$ac_ext >&5
32882
32883         ac_cv_c_const=no
32884 fi
32885
32886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32887 fi
32888 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
32889 echo "${ECHO_T}$ac_cv_c_const" >&6; }
32890 if test $ac_cv_c_const = no; then
32891
32892 cat >>confdefs.h <<\_ACEOF
32893 #define const
32894 _ACEOF
32895
32896 fi
32897
32898 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
32899 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
32900 if test "${ol_cv_c_volatile+set}" = set; then
32901   echo $ECHO_N "(cached) $ECHO_C" >&6
32902 else
32903   cat >conftest.$ac_ext <<_ACEOF
32904 /* confdefs.h.  */
32905 _ACEOF
32906 cat confdefs.h >>conftest.$ac_ext
32907 cat >>conftest.$ac_ext <<_ACEOF
32908 /* end confdefs.h.  */
32909 int x, y, z;
32910 int
32911 main ()
32912 {
32913 volatile int a; int * volatile b = x ? &y : &z;
32914       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
32915       *b = 0;
32916   ;
32917   return 0;
32918 }
32919 _ACEOF
32920 rm -f conftest.$ac_objext
32921 if { (ac_try="$ac_compile"
32922 case "(($ac_try" in
32923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32924   *) ac_try_echo=$ac_try;;
32925 esac
32926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32927   (eval "$ac_compile") 2>conftest.er1
32928   ac_status=$?
32929   grep -v '^ *+' conftest.er1 >conftest.err
32930   rm -f conftest.er1
32931   cat conftest.err >&5
32932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32933   (exit $ac_status); } && {
32934          test -z "$ac_c_werror_flag" ||
32935          test ! -s conftest.err
32936        } && test -s conftest.$ac_objext; then
32937   ol_cv_c_volatile=yes
32938 else
32939   echo "$as_me: failed program was:" >&5
32940 sed 's/^/| /' conftest.$ac_ext >&5
32941
32942         ol_cv_c_volatile=no
32943 fi
32944
32945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32946 fi
32947 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
32948 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
32949   if test $ol_cv_c_volatile = yes; then
32950     :
32951   else
32952
32953 cat >>confdefs.h <<\_ACEOF
32954 #define volatile
32955 _ACEOF
32956
32957   fi
32958
32959
32960 if test $cross_compiling = yes ; then
32961         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
32962 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
32963
32964 cat >>confdefs.h <<\_ACEOF
32965 #define CROSS_COMPILING 1
32966 _ACEOF
32967
32968 else
32969         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
32970 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
32971 if test "${ac_cv_c_bigendian+set}" = set; then
32972   echo $ECHO_N "(cached) $ECHO_C" >&6
32973 else
32974   # See if sys/param.h defines the BYTE_ORDER macro.
32975 cat >conftest.$ac_ext <<_ACEOF
32976 /* confdefs.h.  */
32977 _ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h.  */
32981 #include <sys/types.h>
32982 #include <sys/param.h>
32983
32984 int
32985 main ()
32986 {
32987 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
32988         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
32989  bogus endian macros
32990 #endif
32991
32992   ;
32993   return 0;
32994 }
32995 _ACEOF
32996 rm -f conftest.$ac_objext
32997 if { (ac_try="$ac_compile"
32998 case "(($ac_try" in
32999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33000   *) ac_try_echo=$ac_try;;
33001 esac
33002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33003   (eval "$ac_compile") 2>conftest.er1
33004   ac_status=$?
33005   grep -v '^ *+' conftest.er1 >conftest.err
33006   rm -f conftest.er1
33007   cat conftest.err >&5
33008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33009   (exit $ac_status); } && {
33010          test -z "$ac_c_werror_flag" ||
33011          test ! -s conftest.err
33012        } && test -s conftest.$ac_objext; then
33013   # It does; now see whether it defined to BIG_ENDIAN or not.
33014 cat >conftest.$ac_ext <<_ACEOF
33015 /* confdefs.h.  */
33016 _ACEOF
33017 cat confdefs.h >>conftest.$ac_ext
33018 cat >>conftest.$ac_ext <<_ACEOF
33019 /* end confdefs.h.  */
33020 #include <sys/types.h>
33021 #include <sys/param.h>
33022
33023 int
33024 main ()
33025 {
33026 #if BYTE_ORDER != BIG_ENDIAN
33027  not big endian
33028 #endif
33029
33030   ;
33031   return 0;
33032 }
33033 _ACEOF
33034 rm -f conftest.$ac_objext
33035 if { (ac_try="$ac_compile"
33036 case "(($ac_try" in
33037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33038   *) ac_try_echo=$ac_try;;
33039 esac
33040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33041   (eval "$ac_compile") 2>conftest.er1
33042   ac_status=$?
33043   grep -v '^ *+' conftest.er1 >conftest.err
33044   rm -f conftest.er1
33045   cat conftest.err >&5
33046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33047   (exit $ac_status); } && {
33048          test -z "$ac_c_werror_flag" ||
33049          test ! -s conftest.err
33050        } && test -s conftest.$ac_objext; then
33051   ac_cv_c_bigendian=yes
33052 else
33053   echo "$as_me: failed program was:" >&5
33054 sed 's/^/| /' conftest.$ac_ext >&5
33055
33056         ac_cv_c_bigendian=no
33057 fi
33058
33059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33060 else
33061   echo "$as_me: failed program was:" >&5
33062 sed 's/^/| /' conftest.$ac_ext >&5
33063
33064         # It does not; compile a test program.
33065 if test "$cross_compiling" = yes; then
33066   # try to guess the endianness by grepping values into an object file
33067   ac_cv_c_bigendian=unknown
33068   cat >conftest.$ac_ext <<_ACEOF
33069 /* confdefs.h.  */
33070 _ACEOF
33071 cat confdefs.h >>conftest.$ac_ext
33072 cat >>conftest.$ac_ext <<_ACEOF
33073 /* end confdefs.h.  */
33074 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33075 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33076 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33077 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33078 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33079 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33080 int
33081 main ()
33082 {
33083  _ascii (); _ebcdic ();
33084   ;
33085   return 0;
33086 }
33087 _ACEOF
33088 rm -f conftest.$ac_objext
33089 if { (ac_try="$ac_compile"
33090 case "(($ac_try" in
33091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33092   *) ac_try_echo=$ac_try;;
33093 esac
33094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33095   (eval "$ac_compile") 2>conftest.er1
33096   ac_status=$?
33097   grep -v '^ *+' conftest.er1 >conftest.err
33098   rm -f conftest.er1
33099   cat conftest.err >&5
33100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33101   (exit $ac_status); } && {
33102          test -z "$ac_c_werror_flag" ||
33103          test ! -s conftest.err
33104        } && test -s conftest.$ac_objext; then
33105   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33106   ac_cv_c_bigendian=yes
33107 fi
33108 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33109   if test "$ac_cv_c_bigendian" = unknown; then
33110     ac_cv_c_bigendian=no
33111   else
33112     # finding both strings is unlikely to happen, but who knows?
33113     ac_cv_c_bigendian=unknown
33114   fi
33115 fi
33116 else
33117   echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33119
33120
33121 fi
33122
33123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33124 else
33125   cat >conftest.$ac_ext <<_ACEOF
33126 /* confdefs.h.  */
33127 _ACEOF
33128 cat confdefs.h >>conftest.$ac_ext
33129 cat >>conftest.$ac_ext <<_ACEOF
33130 /* end confdefs.h.  */
33131 $ac_includes_default
33132 int
33133 main ()
33134 {
33135
33136   /* Are we little or big endian?  From Harbison&Steele.  */
33137   union
33138   {
33139     long int l;
33140     char c[sizeof (long int)];
33141   } u;
33142   u.l = 1;
33143   return u.c[sizeof (long int) - 1] == 1;
33144
33145   ;
33146   return 0;
33147 }
33148 _ACEOF
33149 rm -f conftest$ac_exeext
33150 if { (ac_try="$ac_link"
33151 case "(($ac_try" in
33152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33153   *) ac_try_echo=$ac_try;;
33154 esac
33155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33156   (eval "$ac_link") 2>&5
33157   ac_status=$?
33158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33159   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33160   { (case "(($ac_try" in
33161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33162   *) ac_try_echo=$ac_try;;
33163 esac
33164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33165   (eval "$ac_try") 2>&5
33166   ac_status=$?
33167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168   (exit $ac_status); }; }; then
33169   ac_cv_c_bigendian=no
33170 else
33171   echo "$as_me: program exited with status $ac_status" >&5
33172 echo "$as_me: failed program was:" >&5
33173 sed 's/^/| /' conftest.$ac_ext >&5
33174
33175 ( exit $ac_status )
33176 ac_cv_c_bigendian=yes
33177 fi
33178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33179 fi
33180
33181
33182 fi
33183
33184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33185 fi
33186 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33187 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33188 case $ac_cv_c_bigendian in
33189   yes)
33190
33191 cat >>confdefs.h <<\_ACEOF
33192 #define WORDS_BIGENDIAN 1
33193 _ACEOF
33194  ;;
33195   no)
33196      ;;
33197   *)
33198     { { echo "$as_me:$LINENO: error: unknown endianness
33199 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33200 echo "$as_me: error: unknown endianness
33201 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33202    { (exit 1); exit 1; }; } ;;
33203 esac
33204
33205 fi
33206
33207 { echo "$as_me:$LINENO: checking for short" >&5
33208 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33209 if test "${ac_cv_type_short+set}" = set; then
33210   echo $ECHO_N "(cached) $ECHO_C" >&6
33211 else
33212   cat >conftest.$ac_ext <<_ACEOF
33213 /* confdefs.h.  */
33214 _ACEOF
33215 cat confdefs.h >>conftest.$ac_ext
33216 cat >>conftest.$ac_ext <<_ACEOF
33217 /* end confdefs.h.  */
33218 $ac_includes_default
33219 typedef short ac__type_new_;
33220 int
33221 main ()
33222 {
33223 if ((ac__type_new_ *) 0)
33224   return 0;
33225 if (sizeof (ac__type_new_))
33226   return 0;
33227   ;
33228   return 0;
33229 }
33230 _ACEOF
33231 rm -f conftest.$ac_objext
33232 if { (ac_try="$ac_compile"
33233 case "(($ac_try" in
33234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33235   *) ac_try_echo=$ac_try;;
33236 esac
33237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33238   (eval "$ac_compile") 2>conftest.er1
33239   ac_status=$?
33240   grep -v '^ *+' conftest.er1 >conftest.err
33241   rm -f conftest.er1
33242   cat conftest.err >&5
33243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33244   (exit $ac_status); } && {
33245          test -z "$ac_c_werror_flag" ||
33246          test ! -s conftest.err
33247        } && test -s conftest.$ac_objext; then
33248   ac_cv_type_short=yes
33249 else
33250   echo "$as_me: failed program was:" >&5
33251 sed 's/^/| /' conftest.$ac_ext >&5
33252
33253         ac_cv_type_short=no
33254 fi
33255
33256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33257 fi
33258 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33259 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33260
33261 # The cast to long int works around a bug in the HP C Compiler
33262 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33263 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33264 # This bug is HP SR number 8606223364.
33265 { echo "$as_me:$LINENO: checking size of short" >&5
33266 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33267 if test "${ac_cv_sizeof_short+set}" = set; then
33268   echo $ECHO_N "(cached) $ECHO_C" >&6
33269 else
33270   if test "$cross_compiling" = yes; then
33271   # Depending upon the size, compute the lo and hi bounds.
33272 cat >conftest.$ac_ext <<_ACEOF
33273 /* confdefs.h.  */
33274 _ACEOF
33275 cat confdefs.h >>conftest.$ac_ext
33276 cat >>conftest.$ac_ext <<_ACEOF
33277 /* end confdefs.h.  */
33278 $ac_includes_default
33279    typedef short ac__type_sizeof_;
33280 int
33281 main ()
33282 {
33283 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33284 test_array [0] = 0
33285
33286   ;
33287   return 0;
33288 }
33289 _ACEOF
33290 rm -f conftest.$ac_objext
33291 if { (ac_try="$ac_compile"
33292 case "(($ac_try" in
33293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33294   *) ac_try_echo=$ac_try;;
33295 esac
33296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33297   (eval "$ac_compile") 2>conftest.er1
33298   ac_status=$?
33299   grep -v '^ *+' conftest.er1 >conftest.err
33300   rm -f conftest.er1
33301   cat conftest.err >&5
33302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33303   (exit $ac_status); } && {
33304          test -z "$ac_c_werror_flag" ||
33305          test ! -s conftest.err
33306        } && test -s conftest.$ac_objext; then
33307   ac_lo=0 ac_mid=0
33308   while :; do
33309     cat >conftest.$ac_ext <<_ACEOF
33310 /* confdefs.h.  */
33311 _ACEOF
33312 cat confdefs.h >>conftest.$ac_ext
33313 cat >>conftest.$ac_ext <<_ACEOF
33314 /* end confdefs.h.  */
33315 $ac_includes_default
33316    typedef short ac__type_sizeof_;
33317 int
33318 main ()
33319 {
33320 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33321 test_array [0] = 0
33322
33323   ;
33324   return 0;
33325 }
33326 _ACEOF
33327 rm -f conftest.$ac_objext
33328 if { (ac_try="$ac_compile"
33329 case "(($ac_try" in
33330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33331   *) ac_try_echo=$ac_try;;
33332 esac
33333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33334   (eval "$ac_compile") 2>conftest.er1
33335   ac_status=$?
33336   grep -v '^ *+' conftest.er1 >conftest.err
33337   rm -f conftest.er1
33338   cat conftest.err >&5
33339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33340   (exit $ac_status); } && {
33341          test -z "$ac_c_werror_flag" ||
33342          test ! -s conftest.err
33343        } && test -s conftest.$ac_objext; then
33344   ac_hi=$ac_mid; break
33345 else
33346   echo "$as_me: failed program was:" >&5
33347 sed 's/^/| /' conftest.$ac_ext >&5
33348
33349         ac_lo=`expr $ac_mid + 1`
33350                         if test $ac_lo -le $ac_mid; then
33351                           ac_lo= ac_hi=
33352                           break
33353                         fi
33354                         ac_mid=`expr 2 '*' $ac_mid + 1`
33355 fi
33356
33357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33358   done
33359 else
33360   echo "$as_me: failed program was:" >&5
33361 sed 's/^/| /' conftest.$ac_ext >&5
33362
33363         cat >conftest.$ac_ext <<_ACEOF
33364 /* confdefs.h.  */
33365 _ACEOF
33366 cat confdefs.h >>conftest.$ac_ext
33367 cat >>conftest.$ac_ext <<_ACEOF
33368 /* end confdefs.h.  */
33369 $ac_includes_default
33370    typedef short ac__type_sizeof_;
33371 int
33372 main ()
33373 {
33374 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33375 test_array [0] = 0
33376
33377   ;
33378   return 0;
33379 }
33380 _ACEOF
33381 rm -f conftest.$ac_objext
33382 if { (ac_try="$ac_compile"
33383 case "(($ac_try" in
33384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33385   *) ac_try_echo=$ac_try;;
33386 esac
33387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33388   (eval "$ac_compile") 2>conftest.er1
33389   ac_status=$?
33390   grep -v '^ *+' conftest.er1 >conftest.err
33391   rm -f conftest.er1
33392   cat conftest.err >&5
33393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33394   (exit $ac_status); } && {
33395          test -z "$ac_c_werror_flag" ||
33396          test ! -s conftest.err
33397        } && test -s conftest.$ac_objext; then
33398   ac_hi=-1 ac_mid=-1
33399   while :; do
33400     cat >conftest.$ac_ext <<_ACEOF
33401 /* confdefs.h.  */
33402 _ACEOF
33403 cat confdefs.h >>conftest.$ac_ext
33404 cat >>conftest.$ac_ext <<_ACEOF
33405 /* end confdefs.h.  */
33406 $ac_includes_default
33407    typedef short ac__type_sizeof_;
33408 int
33409 main ()
33410 {
33411 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33412 test_array [0] = 0
33413
33414   ;
33415   return 0;
33416 }
33417 _ACEOF
33418 rm -f conftest.$ac_objext
33419 if { (ac_try="$ac_compile"
33420 case "(($ac_try" in
33421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33422   *) ac_try_echo=$ac_try;;
33423 esac
33424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33425   (eval "$ac_compile") 2>conftest.er1
33426   ac_status=$?
33427   grep -v '^ *+' conftest.er1 >conftest.err
33428   rm -f conftest.er1
33429   cat conftest.err >&5
33430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33431   (exit $ac_status); } && {
33432          test -z "$ac_c_werror_flag" ||
33433          test ! -s conftest.err
33434        } && test -s conftest.$ac_objext; then
33435   ac_lo=$ac_mid; break
33436 else
33437   echo "$as_me: failed program was:" >&5
33438 sed 's/^/| /' conftest.$ac_ext >&5
33439
33440         ac_hi=`expr '(' $ac_mid ')' - 1`
33441                         if test $ac_mid -le $ac_hi; then
33442                           ac_lo= ac_hi=
33443                           break
33444                         fi
33445                         ac_mid=`expr 2 '*' $ac_mid`
33446 fi
33447
33448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33449   done
33450 else
33451   echo "$as_me: failed program was:" >&5
33452 sed 's/^/| /' conftest.$ac_ext >&5
33453
33454         ac_lo= ac_hi=
33455 fi
33456
33457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33458 fi
33459
33460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33461 # Binary search between lo and hi bounds.
33462 while test "x$ac_lo" != "x$ac_hi"; do
33463   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33464   cat >conftest.$ac_ext <<_ACEOF
33465 /* confdefs.h.  */
33466 _ACEOF
33467 cat confdefs.h >>conftest.$ac_ext
33468 cat >>conftest.$ac_ext <<_ACEOF
33469 /* end confdefs.h.  */
33470 $ac_includes_default
33471    typedef short ac__type_sizeof_;
33472 int
33473 main ()
33474 {
33475 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33476 test_array [0] = 0
33477
33478   ;
33479   return 0;
33480 }
33481 _ACEOF
33482 rm -f conftest.$ac_objext
33483 if { (ac_try="$ac_compile"
33484 case "(($ac_try" in
33485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33486   *) ac_try_echo=$ac_try;;
33487 esac
33488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33489   (eval "$ac_compile") 2>conftest.er1
33490   ac_status=$?
33491   grep -v '^ *+' conftest.er1 >conftest.err
33492   rm -f conftest.er1
33493   cat conftest.err >&5
33494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33495   (exit $ac_status); } && {
33496          test -z "$ac_c_werror_flag" ||
33497          test ! -s conftest.err
33498        } && test -s conftest.$ac_objext; then
33499   ac_hi=$ac_mid
33500 else
33501   echo "$as_me: failed program was:" >&5
33502 sed 's/^/| /' conftest.$ac_ext >&5
33503
33504         ac_lo=`expr '(' $ac_mid ')' + 1`
33505 fi
33506
33507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33508 done
33509 case $ac_lo in
33510 ?*) ac_cv_sizeof_short=$ac_lo;;
33511 '') if test "$ac_cv_type_short" = yes; then
33512      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33513 See \`config.log' for more details." >&5
33514 echo "$as_me: error: cannot compute sizeof (short)
33515 See \`config.log' for more details." >&2;}
33516    { (exit 77); exit 77; }; }
33517    else
33518      ac_cv_sizeof_short=0
33519    fi ;;
33520 esac
33521 else
33522   cat >conftest.$ac_ext <<_ACEOF
33523 /* confdefs.h.  */
33524 _ACEOF
33525 cat confdefs.h >>conftest.$ac_ext
33526 cat >>conftest.$ac_ext <<_ACEOF
33527 /* end confdefs.h.  */
33528 $ac_includes_default
33529    typedef short ac__type_sizeof_;
33530 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33531 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33532 #include <stdio.h>
33533 #include <stdlib.h>
33534 int
33535 main ()
33536 {
33537
33538   FILE *f = fopen ("conftest.val", "w");
33539   if (! f)
33540     return 1;
33541   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33542     {
33543       long int i = longval ();
33544       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33545         return 1;
33546       fprintf (f, "%ld\n", i);
33547     }
33548   else
33549     {
33550       unsigned long int i = ulongval ();
33551       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33552         return 1;
33553       fprintf (f, "%lu\n", i);
33554     }
33555   return ferror (f) || fclose (f) != 0;
33556
33557   ;
33558   return 0;
33559 }
33560 _ACEOF
33561 rm -f conftest$ac_exeext
33562 if { (ac_try="$ac_link"
33563 case "(($ac_try" in
33564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33565   *) ac_try_echo=$ac_try;;
33566 esac
33567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33568   (eval "$ac_link") 2>&5
33569   ac_status=$?
33570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33571   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33572   { (case "(($ac_try" in
33573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33574   *) ac_try_echo=$ac_try;;
33575 esac
33576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33577   (eval "$ac_try") 2>&5
33578   ac_status=$?
33579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33580   (exit $ac_status); }; }; then
33581   ac_cv_sizeof_short=`cat conftest.val`
33582 else
33583   echo "$as_me: program exited with status $ac_status" >&5
33584 echo "$as_me: failed program was:" >&5
33585 sed 's/^/| /' conftest.$ac_ext >&5
33586
33587 ( exit $ac_status )
33588 if test "$ac_cv_type_short" = yes; then
33589      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
33590 See \`config.log' for more details." >&5
33591 echo "$as_me: error: cannot compute sizeof (short)
33592 See \`config.log' for more details." >&2;}
33593    { (exit 77); exit 77; }; }
33594    else
33595      ac_cv_sizeof_short=0
33596    fi
33597 fi
33598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33599 fi
33600 rm -f conftest.val
33601 fi
33602 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
33603 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
33604
33605
33606
33607 cat >>confdefs.h <<_ACEOF
33608 #define SIZEOF_SHORT $ac_cv_sizeof_short
33609 _ACEOF
33610
33611
33612 { echo "$as_me:$LINENO: checking for int" >&5
33613 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
33614 if test "${ac_cv_type_int+set}" = set; then
33615   echo $ECHO_N "(cached) $ECHO_C" >&6
33616 else
33617   cat >conftest.$ac_ext <<_ACEOF
33618 /* confdefs.h.  */
33619 _ACEOF
33620 cat confdefs.h >>conftest.$ac_ext
33621 cat >>conftest.$ac_ext <<_ACEOF
33622 /* end confdefs.h.  */
33623 $ac_includes_default
33624 typedef int ac__type_new_;
33625 int
33626 main ()
33627 {
33628 if ((ac__type_new_ *) 0)
33629   return 0;
33630 if (sizeof (ac__type_new_))
33631   return 0;
33632   ;
33633   return 0;
33634 }
33635 _ACEOF
33636 rm -f conftest.$ac_objext
33637 if { (ac_try="$ac_compile"
33638 case "(($ac_try" in
33639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33640   *) ac_try_echo=$ac_try;;
33641 esac
33642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33643   (eval "$ac_compile") 2>conftest.er1
33644   ac_status=$?
33645   grep -v '^ *+' conftest.er1 >conftest.err
33646   rm -f conftest.er1
33647   cat conftest.err >&5
33648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33649   (exit $ac_status); } && {
33650          test -z "$ac_c_werror_flag" ||
33651          test ! -s conftest.err
33652        } && test -s conftest.$ac_objext; then
33653   ac_cv_type_int=yes
33654 else
33655   echo "$as_me: failed program was:" >&5
33656 sed 's/^/| /' conftest.$ac_ext >&5
33657
33658         ac_cv_type_int=no
33659 fi
33660
33661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33662 fi
33663 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
33664 echo "${ECHO_T}$ac_cv_type_int" >&6; }
33665
33666 # The cast to long int works around a bug in the HP C Compiler
33667 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33668 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33669 # This bug is HP SR number 8606223364.
33670 { echo "$as_me:$LINENO: checking size of int" >&5
33671 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
33672 if test "${ac_cv_sizeof_int+set}" = set; then
33673   echo $ECHO_N "(cached) $ECHO_C" >&6
33674 else
33675   if test "$cross_compiling" = yes; then
33676   # Depending upon the size, compute the lo and hi bounds.
33677 cat >conftest.$ac_ext <<_ACEOF
33678 /* confdefs.h.  */
33679 _ACEOF
33680 cat confdefs.h >>conftest.$ac_ext
33681 cat >>conftest.$ac_ext <<_ACEOF
33682 /* end confdefs.h.  */
33683 $ac_includes_default
33684    typedef int ac__type_sizeof_;
33685 int
33686 main ()
33687 {
33688 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33689 test_array [0] = 0
33690
33691   ;
33692   return 0;
33693 }
33694 _ACEOF
33695 rm -f conftest.$ac_objext
33696 if { (ac_try="$ac_compile"
33697 case "(($ac_try" in
33698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33699   *) ac_try_echo=$ac_try;;
33700 esac
33701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33702   (eval "$ac_compile") 2>conftest.er1
33703   ac_status=$?
33704   grep -v '^ *+' conftest.er1 >conftest.err
33705   rm -f conftest.er1
33706   cat conftest.err >&5
33707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33708   (exit $ac_status); } && {
33709          test -z "$ac_c_werror_flag" ||
33710          test ! -s conftest.err
33711        } && test -s conftest.$ac_objext; then
33712   ac_lo=0 ac_mid=0
33713   while :; do
33714     cat >conftest.$ac_ext <<_ACEOF
33715 /* confdefs.h.  */
33716 _ACEOF
33717 cat confdefs.h >>conftest.$ac_ext
33718 cat >>conftest.$ac_ext <<_ACEOF
33719 /* end confdefs.h.  */
33720 $ac_includes_default
33721    typedef int ac__type_sizeof_;
33722 int
33723 main ()
33724 {
33725 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33726 test_array [0] = 0
33727
33728   ;
33729   return 0;
33730 }
33731 _ACEOF
33732 rm -f conftest.$ac_objext
33733 if { (ac_try="$ac_compile"
33734 case "(($ac_try" in
33735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33736   *) ac_try_echo=$ac_try;;
33737 esac
33738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33739   (eval "$ac_compile") 2>conftest.er1
33740   ac_status=$?
33741   grep -v '^ *+' conftest.er1 >conftest.err
33742   rm -f conftest.er1
33743   cat conftest.err >&5
33744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33745   (exit $ac_status); } && {
33746          test -z "$ac_c_werror_flag" ||
33747          test ! -s conftest.err
33748        } && test -s conftest.$ac_objext; then
33749   ac_hi=$ac_mid; break
33750 else
33751   echo "$as_me: failed program was:" >&5
33752 sed 's/^/| /' conftest.$ac_ext >&5
33753
33754         ac_lo=`expr $ac_mid + 1`
33755                         if test $ac_lo -le $ac_mid; then
33756                           ac_lo= ac_hi=
33757                           break
33758                         fi
33759                         ac_mid=`expr 2 '*' $ac_mid + 1`
33760 fi
33761
33762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33763   done
33764 else
33765   echo "$as_me: failed program was:" >&5
33766 sed 's/^/| /' conftest.$ac_ext >&5
33767
33768         cat >conftest.$ac_ext <<_ACEOF
33769 /* confdefs.h.  */
33770 _ACEOF
33771 cat confdefs.h >>conftest.$ac_ext
33772 cat >>conftest.$ac_ext <<_ACEOF
33773 /* end confdefs.h.  */
33774 $ac_includes_default
33775    typedef int ac__type_sizeof_;
33776 int
33777 main ()
33778 {
33779 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
33780 test_array [0] = 0
33781
33782   ;
33783   return 0;
33784 }
33785 _ACEOF
33786 rm -f conftest.$ac_objext
33787 if { (ac_try="$ac_compile"
33788 case "(($ac_try" in
33789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33790   *) ac_try_echo=$ac_try;;
33791 esac
33792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33793   (eval "$ac_compile") 2>conftest.er1
33794   ac_status=$?
33795   grep -v '^ *+' conftest.er1 >conftest.err
33796   rm -f conftest.er1
33797   cat conftest.err >&5
33798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33799   (exit $ac_status); } && {
33800          test -z "$ac_c_werror_flag" ||
33801          test ! -s conftest.err
33802        } && test -s conftest.$ac_objext; then
33803   ac_hi=-1 ac_mid=-1
33804   while :; do
33805     cat >conftest.$ac_ext <<_ACEOF
33806 /* confdefs.h.  */
33807 _ACEOF
33808 cat confdefs.h >>conftest.$ac_ext
33809 cat >>conftest.$ac_ext <<_ACEOF
33810 /* end confdefs.h.  */
33811 $ac_includes_default
33812    typedef int ac__type_sizeof_;
33813 int
33814 main ()
33815 {
33816 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
33817 test_array [0] = 0
33818
33819   ;
33820   return 0;
33821 }
33822 _ACEOF
33823 rm -f conftest.$ac_objext
33824 if { (ac_try="$ac_compile"
33825 case "(($ac_try" in
33826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33827   *) ac_try_echo=$ac_try;;
33828 esac
33829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33830   (eval "$ac_compile") 2>conftest.er1
33831   ac_status=$?
33832   grep -v '^ *+' conftest.er1 >conftest.err
33833   rm -f conftest.er1
33834   cat conftest.err >&5
33835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33836   (exit $ac_status); } && {
33837          test -z "$ac_c_werror_flag" ||
33838          test ! -s conftest.err
33839        } && test -s conftest.$ac_objext; then
33840   ac_lo=$ac_mid; break
33841 else
33842   echo "$as_me: failed program was:" >&5
33843 sed 's/^/| /' conftest.$ac_ext >&5
33844
33845         ac_hi=`expr '(' $ac_mid ')' - 1`
33846                         if test $ac_mid -le $ac_hi; then
33847                           ac_lo= ac_hi=
33848                           break
33849                         fi
33850                         ac_mid=`expr 2 '*' $ac_mid`
33851 fi
33852
33853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33854   done
33855 else
33856   echo "$as_me: failed program was:" >&5
33857 sed 's/^/| /' conftest.$ac_ext >&5
33858
33859         ac_lo= ac_hi=
33860 fi
33861
33862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33863 fi
33864
33865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33866 # Binary search between lo and hi bounds.
33867 while test "x$ac_lo" != "x$ac_hi"; do
33868   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
33869   cat >conftest.$ac_ext <<_ACEOF
33870 /* confdefs.h.  */
33871 _ACEOF
33872 cat confdefs.h >>conftest.$ac_ext
33873 cat >>conftest.$ac_ext <<_ACEOF
33874 /* end confdefs.h.  */
33875 $ac_includes_default
33876    typedef int ac__type_sizeof_;
33877 int
33878 main ()
33879 {
33880 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33881 test_array [0] = 0
33882
33883   ;
33884   return 0;
33885 }
33886 _ACEOF
33887 rm -f conftest.$ac_objext
33888 if { (ac_try="$ac_compile"
33889 case "(($ac_try" in
33890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33891   *) ac_try_echo=$ac_try;;
33892 esac
33893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33894   (eval "$ac_compile") 2>conftest.er1
33895   ac_status=$?
33896   grep -v '^ *+' conftest.er1 >conftest.err
33897   rm -f conftest.er1
33898   cat conftest.err >&5
33899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33900   (exit $ac_status); } && {
33901          test -z "$ac_c_werror_flag" ||
33902          test ! -s conftest.err
33903        } && test -s conftest.$ac_objext; then
33904   ac_hi=$ac_mid
33905 else
33906   echo "$as_me: failed program was:" >&5
33907 sed 's/^/| /' conftest.$ac_ext >&5
33908
33909         ac_lo=`expr '(' $ac_mid ')' + 1`
33910 fi
33911
33912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33913 done
33914 case $ac_lo in
33915 ?*) ac_cv_sizeof_int=$ac_lo;;
33916 '') if test "$ac_cv_type_int" = yes; then
33917      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33918 See \`config.log' for more details." >&5
33919 echo "$as_me: error: cannot compute sizeof (int)
33920 See \`config.log' for more details." >&2;}
33921    { (exit 77); exit 77; }; }
33922    else
33923      ac_cv_sizeof_int=0
33924    fi ;;
33925 esac
33926 else
33927   cat >conftest.$ac_ext <<_ACEOF
33928 /* confdefs.h.  */
33929 _ACEOF
33930 cat confdefs.h >>conftest.$ac_ext
33931 cat >>conftest.$ac_ext <<_ACEOF
33932 /* end confdefs.h.  */
33933 $ac_includes_default
33934    typedef int ac__type_sizeof_;
33935 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
33936 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
33937 #include <stdio.h>
33938 #include <stdlib.h>
33939 int
33940 main ()
33941 {
33942
33943   FILE *f = fopen ("conftest.val", "w");
33944   if (! f)
33945     return 1;
33946   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
33947     {
33948       long int i = longval ();
33949       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33950         return 1;
33951       fprintf (f, "%ld\n", i);
33952     }
33953   else
33954     {
33955       unsigned long int i = ulongval ();
33956       if (i != ((long int) (sizeof (ac__type_sizeof_))))
33957         return 1;
33958       fprintf (f, "%lu\n", i);
33959     }
33960   return ferror (f) || fclose (f) != 0;
33961
33962   ;
33963   return 0;
33964 }
33965 _ACEOF
33966 rm -f conftest$ac_exeext
33967 if { (ac_try="$ac_link"
33968 case "(($ac_try" in
33969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33970   *) ac_try_echo=$ac_try;;
33971 esac
33972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33973   (eval "$ac_link") 2>&5
33974   ac_status=$?
33975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33977   { (case "(($ac_try" in
33978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33979   *) ac_try_echo=$ac_try;;
33980 esac
33981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33982   (eval "$ac_try") 2>&5
33983   ac_status=$?
33984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33985   (exit $ac_status); }; }; then
33986   ac_cv_sizeof_int=`cat conftest.val`
33987 else
33988   echo "$as_me: program exited with status $ac_status" >&5
33989 echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33991
33992 ( exit $ac_status )
33993 if test "$ac_cv_type_int" = yes; then
33994      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
33995 See \`config.log' for more details." >&5
33996 echo "$as_me: error: cannot compute sizeof (int)
33997 See \`config.log' for more details." >&2;}
33998    { (exit 77); exit 77; }; }
33999    else
34000      ac_cv_sizeof_int=0
34001    fi
34002 fi
34003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34004 fi
34005 rm -f conftest.val
34006 fi
34007 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34008 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34009
34010
34011
34012 cat >>confdefs.h <<_ACEOF
34013 #define SIZEOF_INT $ac_cv_sizeof_int
34014 _ACEOF
34015
34016
34017 { echo "$as_me:$LINENO: checking for long" >&5
34018 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34019 if test "${ac_cv_type_long+set}" = set; then
34020   echo $ECHO_N "(cached) $ECHO_C" >&6
34021 else
34022   cat >conftest.$ac_ext <<_ACEOF
34023 /* confdefs.h.  */
34024 _ACEOF
34025 cat confdefs.h >>conftest.$ac_ext
34026 cat >>conftest.$ac_ext <<_ACEOF
34027 /* end confdefs.h.  */
34028 $ac_includes_default
34029 typedef long ac__type_new_;
34030 int
34031 main ()
34032 {
34033 if ((ac__type_new_ *) 0)
34034   return 0;
34035 if (sizeof (ac__type_new_))
34036   return 0;
34037   ;
34038   return 0;
34039 }
34040 _ACEOF
34041 rm -f conftest.$ac_objext
34042 if { (ac_try="$ac_compile"
34043 case "(($ac_try" in
34044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34045   *) ac_try_echo=$ac_try;;
34046 esac
34047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34048   (eval "$ac_compile") 2>conftest.er1
34049   ac_status=$?
34050   grep -v '^ *+' conftest.er1 >conftest.err
34051   rm -f conftest.er1
34052   cat conftest.err >&5
34053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34054   (exit $ac_status); } && {
34055          test -z "$ac_c_werror_flag" ||
34056          test ! -s conftest.err
34057        } && test -s conftest.$ac_objext; then
34058   ac_cv_type_long=yes
34059 else
34060   echo "$as_me: failed program was:" >&5
34061 sed 's/^/| /' conftest.$ac_ext >&5
34062
34063         ac_cv_type_long=no
34064 fi
34065
34066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34067 fi
34068 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34069 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34070
34071 # The cast to long int works around a bug in the HP C Compiler
34072 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34073 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34074 # This bug is HP SR number 8606223364.
34075 { echo "$as_me:$LINENO: checking size of long" >&5
34076 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34077 if test "${ac_cv_sizeof_long+set}" = set; then
34078   echo $ECHO_N "(cached) $ECHO_C" >&6
34079 else
34080   if test "$cross_compiling" = yes; then
34081   # Depending upon the size, compute the lo and hi bounds.
34082 cat >conftest.$ac_ext <<_ACEOF
34083 /* confdefs.h.  */
34084 _ACEOF
34085 cat confdefs.h >>conftest.$ac_ext
34086 cat >>conftest.$ac_ext <<_ACEOF
34087 /* end confdefs.h.  */
34088 $ac_includes_default
34089    typedef long ac__type_sizeof_;
34090 int
34091 main ()
34092 {
34093 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34094 test_array [0] = 0
34095
34096   ;
34097   return 0;
34098 }
34099 _ACEOF
34100 rm -f conftest.$ac_objext
34101 if { (ac_try="$ac_compile"
34102 case "(($ac_try" in
34103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34104   *) ac_try_echo=$ac_try;;
34105 esac
34106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34107   (eval "$ac_compile") 2>conftest.er1
34108   ac_status=$?
34109   grep -v '^ *+' conftest.er1 >conftest.err
34110   rm -f conftest.er1
34111   cat conftest.err >&5
34112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34113   (exit $ac_status); } && {
34114          test -z "$ac_c_werror_flag" ||
34115          test ! -s conftest.err
34116        } && test -s conftest.$ac_objext; then
34117   ac_lo=0 ac_mid=0
34118   while :; do
34119     cat >conftest.$ac_ext <<_ACEOF
34120 /* confdefs.h.  */
34121 _ACEOF
34122 cat confdefs.h >>conftest.$ac_ext
34123 cat >>conftest.$ac_ext <<_ACEOF
34124 /* end confdefs.h.  */
34125 $ac_includes_default
34126    typedef long ac__type_sizeof_;
34127 int
34128 main ()
34129 {
34130 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34131 test_array [0] = 0
34132
34133   ;
34134   return 0;
34135 }
34136 _ACEOF
34137 rm -f conftest.$ac_objext
34138 if { (ac_try="$ac_compile"
34139 case "(($ac_try" in
34140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34141   *) ac_try_echo=$ac_try;;
34142 esac
34143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34144   (eval "$ac_compile") 2>conftest.er1
34145   ac_status=$?
34146   grep -v '^ *+' conftest.er1 >conftest.err
34147   rm -f conftest.er1
34148   cat conftest.err >&5
34149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34150   (exit $ac_status); } && {
34151          test -z "$ac_c_werror_flag" ||
34152          test ! -s conftest.err
34153        } && test -s conftest.$ac_objext; then
34154   ac_hi=$ac_mid; break
34155 else
34156   echo "$as_me: failed program was:" >&5
34157 sed 's/^/| /' conftest.$ac_ext >&5
34158
34159         ac_lo=`expr $ac_mid + 1`
34160                         if test $ac_lo -le $ac_mid; then
34161                           ac_lo= ac_hi=
34162                           break
34163                         fi
34164                         ac_mid=`expr 2 '*' $ac_mid + 1`
34165 fi
34166
34167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34168   done
34169 else
34170   echo "$as_me: failed program was:" >&5
34171 sed 's/^/| /' conftest.$ac_ext >&5
34172
34173         cat >conftest.$ac_ext <<_ACEOF
34174 /* confdefs.h.  */
34175 _ACEOF
34176 cat confdefs.h >>conftest.$ac_ext
34177 cat >>conftest.$ac_ext <<_ACEOF
34178 /* end confdefs.h.  */
34179 $ac_includes_default
34180    typedef long ac__type_sizeof_;
34181 int
34182 main ()
34183 {
34184 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34185 test_array [0] = 0
34186
34187   ;
34188   return 0;
34189 }
34190 _ACEOF
34191 rm -f conftest.$ac_objext
34192 if { (ac_try="$ac_compile"
34193 case "(($ac_try" in
34194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34195   *) ac_try_echo=$ac_try;;
34196 esac
34197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34198   (eval "$ac_compile") 2>conftest.er1
34199   ac_status=$?
34200   grep -v '^ *+' conftest.er1 >conftest.err
34201   rm -f conftest.er1
34202   cat conftest.err >&5
34203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34204   (exit $ac_status); } && {
34205          test -z "$ac_c_werror_flag" ||
34206          test ! -s conftest.err
34207        } && test -s conftest.$ac_objext; then
34208   ac_hi=-1 ac_mid=-1
34209   while :; do
34210     cat >conftest.$ac_ext <<_ACEOF
34211 /* confdefs.h.  */
34212 _ACEOF
34213 cat confdefs.h >>conftest.$ac_ext
34214 cat >>conftest.$ac_ext <<_ACEOF
34215 /* end confdefs.h.  */
34216 $ac_includes_default
34217    typedef long ac__type_sizeof_;
34218 int
34219 main ()
34220 {
34221 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34222 test_array [0] = 0
34223
34224   ;
34225   return 0;
34226 }
34227 _ACEOF
34228 rm -f conftest.$ac_objext
34229 if { (ac_try="$ac_compile"
34230 case "(($ac_try" in
34231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34232   *) ac_try_echo=$ac_try;;
34233 esac
34234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34235   (eval "$ac_compile") 2>conftest.er1
34236   ac_status=$?
34237   grep -v '^ *+' conftest.er1 >conftest.err
34238   rm -f conftest.er1
34239   cat conftest.err >&5
34240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34241   (exit $ac_status); } && {
34242          test -z "$ac_c_werror_flag" ||
34243          test ! -s conftest.err
34244        } && test -s conftest.$ac_objext; then
34245   ac_lo=$ac_mid; break
34246 else
34247   echo "$as_me: failed program was:" >&5
34248 sed 's/^/| /' conftest.$ac_ext >&5
34249
34250         ac_hi=`expr '(' $ac_mid ')' - 1`
34251                         if test $ac_mid -le $ac_hi; then
34252                           ac_lo= ac_hi=
34253                           break
34254                         fi
34255                         ac_mid=`expr 2 '*' $ac_mid`
34256 fi
34257
34258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34259   done
34260 else
34261   echo "$as_me: failed program was:" >&5
34262 sed 's/^/| /' conftest.$ac_ext >&5
34263
34264         ac_lo= ac_hi=
34265 fi
34266
34267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34268 fi
34269
34270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34271 # Binary search between lo and hi bounds.
34272 while test "x$ac_lo" != "x$ac_hi"; do
34273   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34274   cat >conftest.$ac_ext <<_ACEOF
34275 /* confdefs.h.  */
34276 _ACEOF
34277 cat confdefs.h >>conftest.$ac_ext
34278 cat >>conftest.$ac_ext <<_ACEOF
34279 /* end confdefs.h.  */
34280 $ac_includes_default
34281    typedef long ac__type_sizeof_;
34282 int
34283 main ()
34284 {
34285 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34286 test_array [0] = 0
34287
34288   ;
34289   return 0;
34290 }
34291 _ACEOF
34292 rm -f conftest.$ac_objext
34293 if { (ac_try="$ac_compile"
34294 case "(($ac_try" in
34295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34296   *) ac_try_echo=$ac_try;;
34297 esac
34298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34299   (eval "$ac_compile") 2>conftest.er1
34300   ac_status=$?
34301   grep -v '^ *+' conftest.er1 >conftest.err
34302   rm -f conftest.er1
34303   cat conftest.err >&5
34304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34305   (exit $ac_status); } && {
34306          test -z "$ac_c_werror_flag" ||
34307          test ! -s conftest.err
34308        } && test -s conftest.$ac_objext; then
34309   ac_hi=$ac_mid
34310 else
34311   echo "$as_me: failed program was:" >&5
34312 sed 's/^/| /' conftest.$ac_ext >&5
34313
34314         ac_lo=`expr '(' $ac_mid ')' + 1`
34315 fi
34316
34317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34318 done
34319 case $ac_lo in
34320 ?*) ac_cv_sizeof_long=$ac_lo;;
34321 '') if test "$ac_cv_type_long" = yes; then
34322      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34323 See \`config.log' for more details." >&5
34324 echo "$as_me: error: cannot compute sizeof (long)
34325 See \`config.log' for more details." >&2;}
34326    { (exit 77); exit 77; }; }
34327    else
34328      ac_cv_sizeof_long=0
34329    fi ;;
34330 esac
34331 else
34332   cat >conftest.$ac_ext <<_ACEOF
34333 /* confdefs.h.  */
34334 _ACEOF
34335 cat confdefs.h >>conftest.$ac_ext
34336 cat >>conftest.$ac_ext <<_ACEOF
34337 /* end confdefs.h.  */
34338 $ac_includes_default
34339    typedef long ac__type_sizeof_;
34340 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34341 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34342 #include <stdio.h>
34343 #include <stdlib.h>
34344 int
34345 main ()
34346 {
34347
34348   FILE *f = fopen ("conftest.val", "w");
34349   if (! f)
34350     return 1;
34351   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34352     {
34353       long int i = longval ();
34354       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34355         return 1;
34356       fprintf (f, "%ld\n", i);
34357     }
34358   else
34359     {
34360       unsigned long int i = ulongval ();
34361       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34362         return 1;
34363       fprintf (f, "%lu\n", i);
34364     }
34365   return ferror (f) || fclose (f) != 0;
34366
34367   ;
34368   return 0;
34369 }
34370 _ACEOF
34371 rm -f conftest$ac_exeext
34372 if { (ac_try="$ac_link"
34373 case "(($ac_try" in
34374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34375   *) ac_try_echo=$ac_try;;
34376 esac
34377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34378   (eval "$ac_link") 2>&5
34379   ac_status=$?
34380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34381   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34382   { (case "(($ac_try" in
34383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34384   *) ac_try_echo=$ac_try;;
34385 esac
34386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34387   (eval "$ac_try") 2>&5
34388   ac_status=$?
34389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34390   (exit $ac_status); }; }; then
34391   ac_cv_sizeof_long=`cat conftest.val`
34392 else
34393   echo "$as_me: program exited with status $ac_status" >&5
34394 echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397 ( exit $ac_status )
34398 if test "$ac_cv_type_long" = yes; then
34399      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34400 See \`config.log' for more details." >&5
34401 echo "$as_me: error: cannot compute sizeof (long)
34402 See \`config.log' for more details." >&2;}
34403    { (exit 77); exit 77; }; }
34404    else
34405      ac_cv_sizeof_long=0
34406    fi
34407 fi
34408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34409 fi
34410 rm -f conftest.val
34411 fi
34412 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
34413 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
34414
34415
34416
34417 cat >>confdefs.h <<_ACEOF
34418 #define SIZEOF_LONG $ac_cv_sizeof_long
34419 _ACEOF
34420
34421
34422 { echo "$as_me:$LINENO: checking for long long" >&5
34423 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
34424 if test "${ac_cv_type_long_long+set}" = set; then
34425   echo $ECHO_N "(cached) $ECHO_C" >&6
34426 else
34427   cat >conftest.$ac_ext <<_ACEOF
34428 /* confdefs.h.  */
34429 _ACEOF
34430 cat confdefs.h >>conftest.$ac_ext
34431 cat >>conftest.$ac_ext <<_ACEOF
34432 /* end confdefs.h.  */
34433 $ac_includes_default
34434 typedef long long ac__type_new_;
34435 int
34436 main ()
34437 {
34438 if ((ac__type_new_ *) 0)
34439   return 0;
34440 if (sizeof (ac__type_new_))
34441   return 0;
34442   ;
34443   return 0;
34444 }
34445 _ACEOF
34446 rm -f conftest.$ac_objext
34447 if { (ac_try="$ac_compile"
34448 case "(($ac_try" in
34449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34450   *) ac_try_echo=$ac_try;;
34451 esac
34452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34453   (eval "$ac_compile") 2>conftest.er1
34454   ac_status=$?
34455   grep -v '^ *+' conftest.er1 >conftest.err
34456   rm -f conftest.er1
34457   cat conftest.err >&5
34458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34459   (exit $ac_status); } && {
34460          test -z "$ac_c_werror_flag" ||
34461          test ! -s conftest.err
34462        } && test -s conftest.$ac_objext; then
34463   ac_cv_type_long_long=yes
34464 else
34465   echo "$as_me: failed program was:" >&5
34466 sed 's/^/| /' conftest.$ac_ext >&5
34467
34468         ac_cv_type_long_long=no
34469 fi
34470
34471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34472 fi
34473 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
34474 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
34475
34476 # The cast to long int works around a bug in the HP C Compiler
34477 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34478 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34479 # This bug is HP SR number 8606223364.
34480 { echo "$as_me:$LINENO: checking size of long long" >&5
34481 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
34482 if test "${ac_cv_sizeof_long_long+set}" = set; then
34483   echo $ECHO_N "(cached) $ECHO_C" >&6
34484 else
34485   if test "$cross_compiling" = yes; then
34486   # Depending upon the size, compute the lo and hi bounds.
34487 cat >conftest.$ac_ext <<_ACEOF
34488 /* confdefs.h.  */
34489 _ACEOF
34490 cat confdefs.h >>conftest.$ac_ext
34491 cat >>conftest.$ac_ext <<_ACEOF
34492 /* end confdefs.h.  */
34493 $ac_includes_default
34494    typedef long long ac__type_sizeof_;
34495 int
34496 main ()
34497 {
34498 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34499 test_array [0] = 0
34500
34501   ;
34502   return 0;
34503 }
34504 _ACEOF
34505 rm -f conftest.$ac_objext
34506 if { (ac_try="$ac_compile"
34507 case "(($ac_try" in
34508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34509   *) ac_try_echo=$ac_try;;
34510 esac
34511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34512   (eval "$ac_compile") 2>conftest.er1
34513   ac_status=$?
34514   grep -v '^ *+' conftest.er1 >conftest.err
34515   rm -f conftest.er1
34516   cat conftest.err >&5
34517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34518   (exit $ac_status); } && {
34519          test -z "$ac_c_werror_flag" ||
34520          test ! -s conftest.err
34521        } && test -s conftest.$ac_objext; then
34522   ac_lo=0 ac_mid=0
34523   while :; do
34524     cat >conftest.$ac_ext <<_ACEOF
34525 /* confdefs.h.  */
34526 _ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h.  */
34530 $ac_includes_default
34531    typedef long long ac__type_sizeof_;
34532 int
34533 main ()
34534 {
34535 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34536 test_array [0] = 0
34537
34538   ;
34539   return 0;
34540 }
34541 _ACEOF
34542 rm -f conftest.$ac_objext
34543 if { (ac_try="$ac_compile"
34544 case "(($ac_try" in
34545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546   *) ac_try_echo=$ac_try;;
34547 esac
34548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34549   (eval "$ac_compile") 2>conftest.er1
34550   ac_status=$?
34551   grep -v '^ *+' conftest.er1 >conftest.err
34552   rm -f conftest.er1
34553   cat conftest.err >&5
34554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555   (exit $ac_status); } && {
34556          test -z "$ac_c_werror_flag" ||
34557          test ! -s conftest.err
34558        } && test -s conftest.$ac_objext; then
34559   ac_hi=$ac_mid; break
34560 else
34561   echo "$as_me: failed program was:" >&5
34562 sed 's/^/| /' conftest.$ac_ext >&5
34563
34564         ac_lo=`expr $ac_mid + 1`
34565                         if test $ac_lo -le $ac_mid; then
34566                           ac_lo= ac_hi=
34567                           break
34568                         fi
34569                         ac_mid=`expr 2 '*' $ac_mid + 1`
34570 fi
34571
34572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34573   done
34574 else
34575   echo "$as_me: failed program was:" >&5
34576 sed 's/^/| /' conftest.$ac_ext >&5
34577
34578         cat >conftest.$ac_ext <<_ACEOF
34579 /* confdefs.h.  */
34580 _ACEOF
34581 cat confdefs.h >>conftest.$ac_ext
34582 cat >>conftest.$ac_ext <<_ACEOF
34583 /* end confdefs.h.  */
34584 $ac_includes_default
34585    typedef long long ac__type_sizeof_;
34586 int
34587 main ()
34588 {
34589 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34590 test_array [0] = 0
34591
34592   ;
34593   return 0;
34594 }
34595 _ACEOF
34596 rm -f conftest.$ac_objext
34597 if { (ac_try="$ac_compile"
34598 case "(($ac_try" in
34599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34600   *) ac_try_echo=$ac_try;;
34601 esac
34602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34603   (eval "$ac_compile") 2>conftest.er1
34604   ac_status=$?
34605   grep -v '^ *+' conftest.er1 >conftest.err
34606   rm -f conftest.er1
34607   cat conftest.err >&5
34608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34609   (exit $ac_status); } && {
34610          test -z "$ac_c_werror_flag" ||
34611          test ! -s conftest.err
34612        } && test -s conftest.$ac_objext; then
34613   ac_hi=-1 ac_mid=-1
34614   while :; do
34615     cat >conftest.$ac_ext <<_ACEOF
34616 /* confdefs.h.  */
34617 _ACEOF
34618 cat confdefs.h >>conftest.$ac_ext
34619 cat >>conftest.$ac_ext <<_ACEOF
34620 /* end confdefs.h.  */
34621 $ac_includes_default
34622    typedef long long ac__type_sizeof_;
34623 int
34624 main ()
34625 {
34626 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34627 test_array [0] = 0
34628
34629   ;
34630   return 0;
34631 }
34632 _ACEOF
34633 rm -f conftest.$ac_objext
34634 if { (ac_try="$ac_compile"
34635 case "(($ac_try" in
34636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34637   *) ac_try_echo=$ac_try;;
34638 esac
34639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34640   (eval "$ac_compile") 2>conftest.er1
34641   ac_status=$?
34642   grep -v '^ *+' conftest.er1 >conftest.err
34643   rm -f conftest.er1
34644   cat conftest.err >&5
34645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34646   (exit $ac_status); } && {
34647          test -z "$ac_c_werror_flag" ||
34648          test ! -s conftest.err
34649        } && test -s conftest.$ac_objext; then
34650   ac_lo=$ac_mid; break
34651 else
34652   echo "$as_me: failed program was:" >&5
34653 sed 's/^/| /' conftest.$ac_ext >&5
34654
34655         ac_hi=`expr '(' $ac_mid ')' - 1`
34656                         if test $ac_mid -le $ac_hi; then
34657                           ac_lo= ac_hi=
34658                           break
34659                         fi
34660                         ac_mid=`expr 2 '*' $ac_mid`
34661 fi
34662
34663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34664   done
34665 else
34666   echo "$as_me: failed program was:" >&5
34667 sed 's/^/| /' conftest.$ac_ext >&5
34668
34669         ac_lo= ac_hi=
34670 fi
34671
34672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34673 fi
34674
34675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34676 # Binary search between lo and hi bounds.
34677 while test "x$ac_lo" != "x$ac_hi"; do
34678   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34679   cat >conftest.$ac_ext <<_ACEOF
34680 /* confdefs.h.  */
34681 _ACEOF
34682 cat confdefs.h >>conftest.$ac_ext
34683 cat >>conftest.$ac_ext <<_ACEOF
34684 /* end confdefs.h.  */
34685 $ac_includes_default
34686    typedef long long ac__type_sizeof_;
34687 int
34688 main ()
34689 {
34690 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34691 test_array [0] = 0
34692
34693   ;
34694   return 0;
34695 }
34696 _ACEOF
34697 rm -f conftest.$ac_objext
34698 if { (ac_try="$ac_compile"
34699 case "(($ac_try" in
34700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34701   *) ac_try_echo=$ac_try;;
34702 esac
34703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34704   (eval "$ac_compile") 2>conftest.er1
34705   ac_status=$?
34706   grep -v '^ *+' conftest.er1 >conftest.err
34707   rm -f conftest.er1
34708   cat conftest.err >&5
34709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34710   (exit $ac_status); } && {
34711          test -z "$ac_c_werror_flag" ||
34712          test ! -s conftest.err
34713        } && test -s conftest.$ac_objext; then
34714   ac_hi=$ac_mid
34715 else
34716   echo "$as_me: failed program was:" >&5
34717 sed 's/^/| /' conftest.$ac_ext >&5
34718
34719         ac_lo=`expr '(' $ac_mid ')' + 1`
34720 fi
34721
34722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34723 done
34724 case $ac_lo in
34725 ?*) ac_cv_sizeof_long_long=$ac_lo;;
34726 '') if test "$ac_cv_type_long_long" = yes; then
34727      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34728 See \`config.log' for more details." >&5
34729 echo "$as_me: error: cannot compute sizeof (long long)
34730 See \`config.log' for more details." >&2;}
34731    { (exit 77); exit 77; }; }
34732    else
34733      ac_cv_sizeof_long_long=0
34734    fi ;;
34735 esac
34736 else
34737   cat >conftest.$ac_ext <<_ACEOF
34738 /* confdefs.h.  */
34739 _ACEOF
34740 cat confdefs.h >>conftest.$ac_ext
34741 cat >>conftest.$ac_ext <<_ACEOF
34742 /* end confdefs.h.  */
34743 $ac_includes_default
34744    typedef long long ac__type_sizeof_;
34745 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34746 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34747 #include <stdio.h>
34748 #include <stdlib.h>
34749 int
34750 main ()
34751 {
34752
34753   FILE *f = fopen ("conftest.val", "w");
34754   if (! f)
34755     return 1;
34756   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34757     {
34758       long int i = longval ();
34759       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34760         return 1;
34761       fprintf (f, "%ld\n", i);
34762     }
34763   else
34764     {
34765       unsigned long int i = ulongval ();
34766       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34767         return 1;
34768       fprintf (f, "%lu\n", i);
34769     }
34770   return ferror (f) || fclose (f) != 0;
34771
34772   ;
34773   return 0;
34774 }
34775 _ACEOF
34776 rm -f conftest$ac_exeext
34777 if { (ac_try="$ac_link"
34778 case "(($ac_try" in
34779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34780   *) ac_try_echo=$ac_try;;
34781 esac
34782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34783   (eval "$ac_link") 2>&5
34784   ac_status=$?
34785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34787   { (case "(($ac_try" in
34788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34789   *) ac_try_echo=$ac_try;;
34790 esac
34791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34792   (eval "$ac_try") 2>&5
34793   ac_status=$?
34794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34795   (exit $ac_status); }; }; then
34796   ac_cv_sizeof_long_long=`cat conftest.val`
34797 else
34798   echo "$as_me: program exited with status $ac_status" >&5
34799 echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34801
34802 ( exit $ac_status )
34803 if test "$ac_cv_type_long_long" = yes; then
34804      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
34805 See \`config.log' for more details." >&5
34806 echo "$as_me: error: cannot compute sizeof (long long)
34807 See \`config.log' for more details." >&2;}
34808    { (exit 77); exit 77; }; }
34809    else
34810      ac_cv_sizeof_long_long=0
34811    fi
34812 fi
34813 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34814 fi
34815 rm -f conftest.val
34816 fi
34817 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
34818 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
34819
34820
34821
34822 cat >>confdefs.h <<_ACEOF
34823 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
34824 _ACEOF
34825
34826
34827 { echo "$as_me:$LINENO: checking for wchar_t" >&5
34828 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
34829 if test "${ac_cv_type_wchar_t+set}" = set; then
34830   echo $ECHO_N "(cached) $ECHO_C" >&6
34831 else
34832   cat >conftest.$ac_ext <<_ACEOF
34833 /* confdefs.h.  */
34834 _ACEOF
34835 cat confdefs.h >>conftest.$ac_ext
34836 cat >>conftest.$ac_ext <<_ACEOF
34837 /* end confdefs.h.  */
34838 $ac_includes_default
34839 typedef wchar_t ac__type_new_;
34840 int
34841 main ()
34842 {
34843 if ((ac__type_new_ *) 0)
34844   return 0;
34845 if (sizeof (ac__type_new_))
34846   return 0;
34847   ;
34848   return 0;
34849 }
34850 _ACEOF
34851 rm -f conftest.$ac_objext
34852 if { (ac_try="$ac_compile"
34853 case "(($ac_try" in
34854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34855   *) ac_try_echo=$ac_try;;
34856 esac
34857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34858   (eval "$ac_compile") 2>conftest.er1
34859   ac_status=$?
34860   grep -v '^ *+' conftest.er1 >conftest.err
34861   rm -f conftest.er1
34862   cat conftest.err >&5
34863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34864   (exit $ac_status); } && {
34865          test -z "$ac_c_werror_flag" ||
34866          test ! -s conftest.err
34867        } && test -s conftest.$ac_objext; then
34868   ac_cv_type_wchar_t=yes
34869 else
34870   echo "$as_me: failed program was:" >&5
34871 sed 's/^/| /' conftest.$ac_ext >&5
34872
34873         ac_cv_type_wchar_t=no
34874 fi
34875
34876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34877 fi
34878 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
34879 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
34880
34881 # The cast to long int works around a bug in the HP C Compiler
34882 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34883 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34884 # This bug is HP SR number 8606223364.
34885 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
34886 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
34887 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
34888   echo $ECHO_N "(cached) $ECHO_C" >&6
34889 else
34890   if test "$cross_compiling" = yes; then
34891   # Depending upon the size, compute the lo and hi bounds.
34892 cat >conftest.$ac_ext <<_ACEOF
34893 /* confdefs.h.  */
34894 _ACEOF
34895 cat confdefs.h >>conftest.$ac_ext
34896 cat >>conftest.$ac_ext <<_ACEOF
34897 /* end confdefs.h.  */
34898 $ac_includes_default
34899    typedef wchar_t ac__type_sizeof_;
34900 int
34901 main ()
34902 {
34903 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34904 test_array [0] = 0
34905
34906   ;
34907   return 0;
34908 }
34909 _ACEOF
34910 rm -f conftest.$ac_objext
34911 if { (ac_try="$ac_compile"
34912 case "(($ac_try" in
34913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34914   *) ac_try_echo=$ac_try;;
34915 esac
34916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34917   (eval "$ac_compile") 2>conftest.er1
34918   ac_status=$?
34919   grep -v '^ *+' conftest.er1 >conftest.err
34920   rm -f conftest.er1
34921   cat conftest.err >&5
34922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34923   (exit $ac_status); } && {
34924          test -z "$ac_c_werror_flag" ||
34925          test ! -s conftest.err
34926        } && test -s conftest.$ac_objext; then
34927   ac_lo=0 ac_mid=0
34928   while :; do
34929     cat >conftest.$ac_ext <<_ACEOF
34930 /* confdefs.h.  */
34931 _ACEOF
34932 cat confdefs.h >>conftest.$ac_ext
34933 cat >>conftest.$ac_ext <<_ACEOF
34934 /* end confdefs.h.  */
34935 $ac_includes_default
34936    typedef wchar_t ac__type_sizeof_;
34937 int
34938 main ()
34939 {
34940 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34941 test_array [0] = 0
34942
34943   ;
34944   return 0;
34945 }
34946 _ACEOF
34947 rm -f conftest.$ac_objext
34948 if { (ac_try="$ac_compile"
34949 case "(($ac_try" in
34950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34951   *) ac_try_echo=$ac_try;;
34952 esac
34953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34954   (eval "$ac_compile") 2>conftest.er1
34955   ac_status=$?
34956   grep -v '^ *+' conftest.er1 >conftest.err
34957   rm -f conftest.er1
34958   cat conftest.err >&5
34959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34960   (exit $ac_status); } && {
34961          test -z "$ac_c_werror_flag" ||
34962          test ! -s conftest.err
34963        } && test -s conftest.$ac_objext; then
34964   ac_hi=$ac_mid; break
34965 else
34966   echo "$as_me: failed program was:" >&5
34967 sed 's/^/| /' conftest.$ac_ext >&5
34968
34969         ac_lo=`expr $ac_mid + 1`
34970                         if test $ac_lo -le $ac_mid; then
34971                           ac_lo= ac_hi=
34972                           break
34973                         fi
34974                         ac_mid=`expr 2 '*' $ac_mid + 1`
34975 fi
34976
34977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34978   done
34979 else
34980   echo "$as_me: failed program was:" >&5
34981 sed 's/^/| /' conftest.$ac_ext >&5
34982
34983         cat >conftest.$ac_ext <<_ACEOF
34984 /* confdefs.h.  */
34985 _ACEOF
34986 cat confdefs.h >>conftest.$ac_ext
34987 cat >>conftest.$ac_ext <<_ACEOF
34988 /* end confdefs.h.  */
34989 $ac_includes_default
34990    typedef wchar_t ac__type_sizeof_;
34991 int
34992 main ()
34993 {
34994 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34995 test_array [0] = 0
34996
34997   ;
34998   return 0;
34999 }
35000 _ACEOF
35001 rm -f conftest.$ac_objext
35002 if { (ac_try="$ac_compile"
35003 case "(($ac_try" in
35004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35005   *) ac_try_echo=$ac_try;;
35006 esac
35007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35008   (eval "$ac_compile") 2>conftest.er1
35009   ac_status=$?
35010   grep -v '^ *+' conftest.er1 >conftest.err
35011   rm -f conftest.er1
35012   cat conftest.err >&5
35013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35014   (exit $ac_status); } && {
35015          test -z "$ac_c_werror_flag" ||
35016          test ! -s conftest.err
35017        } && test -s conftest.$ac_objext; then
35018   ac_hi=-1 ac_mid=-1
35019   while :; do
35020     cat >conftest.$ac_ext <<_ACEOF
35021 /* confdefs.h.  */
35022 _ACEOF
35023 cat confdefs.h >>conftest.$ac_ext
35024 cat >>conftest.$ac_ext <<_ACEOF
35025 /* end confdefs.h.  */
35026 $ac_includes_default
35027    typedef wchar_t ac__type_sizeof_;
35028 int
35029 main ()
35030 {
35031 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35032 test_array [0] = 0
35033
35034   ;
35035   return 0;
35036 }
35037 _ACEOF
35038 rm -f conftest.$ac_objext
35039 if { (ac_try="$ac_compile"
35040 case "(($ac_try" in
35041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35042   *) ac_try_echo=$ac_try;;
35043 esac
35044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35045   (eval "$ac_compile") 2>conftest.er1
35046   ac_status=$?
35047   grep -v '^ *+' conftest.er1 >conftest.err
35048   rm -f conftest.er1
35049   cat conftest.err >&5
35050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35051   (exit $ac_status); } && {
35052          test -z "$ac_c_werror_flag" ||
35053          test ! -s conftest.err
35054        } && test -s conftest.$ac_objext; then
35055   ac_lo=$ac_mid; break
35056 else
35057   echo "$as_me: failed program was:" >&5
35058 sed 's/^/| /' conftest.$ac_ext >&5
35059
35060         ac_hi=`expr '(' $ac_mid ')' - 1`
35061                         if test $ac_mid -le $ac_hi; then
35062                           ac_lo= ac_hi=
35063                           break
35064                         fi
35065                         ac_mid=`expr 2 '*' $ac_mid`
35066 fi
35067
35068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35069   done
35070 else
35071   echo "$as_me: failed program was:" >&5
35072 sed 's/^/| /' conftest.$ac_ext >&5
35073
35074         ac_lo= ac_hi=
35075 fi
35076
35077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35078 fi
35079
35080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35081 # Binary search between lo and hi bounds.
35082 while test "x$ac_lo" != "x$ac_hi"; do
35083   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35084   cat >conftest.$ac_ext <<_ACEOF
35085 /* confdefs.h.  */
35086 _ACEOF
35087 cat confdefs.h >>conftest.$ac_ext
35088 cat >>conftest.$ac_ext <<_ACEOF
35089 /* end confdefs.h.  */
35090 $ac_includes_default
35091    typedef wchar_t ac__type_sizeof_;
35092 int
35093 main ()
35094 {
35095 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35096 test_array [0] = 0
35097
35098   ;
35099   return 0;
35100 }
35101 _ACEOF
35102 rm -f conftest.$ac_objext
35103 if { (ac_try="$ac_compile"
35104 case "(($ac_try" in
35105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35106   *) ac_try_echo=$ac_try;;
35107 esac
35108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35109   (eval "$ac_compile") 2>conftest.er1
35110   ac_status=$?
35111   grep -v '^ *+' conftest.er1 >conftest.err
35112   rm -f conftest.er1
35113   cat conftest.err >&5
35114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35115   (exit $ac_status); } && {
35116          test -z "$ac_c_werror_flag" ||
35117          test ! -s conftest.err
35118        } && test -s conftest.$ac_objext; then
35119   ac_hi=$ac_mid
35120 else
35121   echo "$as_me: failed program was:" >&5
35122 sed 's/^/| /' conftest.$ac_ext >&5
35123
35124         ac_lo=`expr '(' $ac_mid ')' + 1`
35125 fi
35126
35127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35128 done
35129 case $ac_lo in
35130 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35131 '') if test "$ac_cv_type_wchar_t" = yes; then
35132      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35133 See \`config.log' for more details." >&5
35134 echo "$as_me: error: cannot compute sizeof (wchar_t)
35135 See \`config.log' for more details." >&2;}
35136    { (exit 77); exit 77; }; }
35137    else
35138      ac_cv_sizeof_wchar_t=0
35139    fi ;;
35140 esac
35141 else
35142   cat >conftest.$ac_ext <<_ACEOF
35143 /* confdefs.h.  */
35144 _ACEOF
35145 cat confdefs.h >>conftest.$ac_ext
35146 cat >>conftest.$ac_ext <<_ACEOF
35147 /* end confdefs.h.  */
35148 $ac_includes_default
35149    typedef wchar_t ac__type_sizeof_;
35150 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35151 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35152 #include <stdio.h>
35153 #include <stdlib.h>
35154 int
35155 main ()
35156 {
35157
35158   FILE *f = fopen ("conftest.val", "w");
35159   if (! f)
35160     return 1;
35161   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35162     {
35163       long int i = longval ();
35164       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35165         return 1;
35166       fprintf (f, "%ld\n", i);
35167     }
35168   else
35169     {
35170       unsigned long int i = ulongval ();
35171       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35172         return 1;
35173       fprintf (f, "%lu\n", i);
35174     }
35175   return ferror (f) || fclose (f) != 0;
35176
35177   ;
35178   return 0;
35179 }
35180 _ACEOF
35181 rm -f conftest$ac_exeext
35182 if { (ac_try="$ac_link"
35183 case "(($ac_try" in
35184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35185   *) ac_try_echo=$ac_try;;
35186 esac
35187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35188   (eval "$ac_link") 2>&5
35189   ac_status=$?
35190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35191   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35192   { (case "(($ac_try" in
35193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35194   *) ac_try_echo=$ac_try;;
35195 esac
35196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35197   (eval "$ac_try") 2>&5
35198   ac_status=$?
35199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35200   (exit $ac_status); }; }; then
35201   ac_cv_sizeof_wchar_t=`cat conftest.val`
35202 else
35203   echo "$as_me: program exited with status $ac_status" >&5
35204 echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35206
35207 ( exit $ac_status )
35208 if test "$ac_cv_type_wchar_t" = yes; then
35209      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35210 See \`config.log' for more details." >&5
35211 echo "$as_me: error: cannot compute sizeof (wchar_t)
35212 See \`config.log' for more details." >&2;}
35213    { (exit 77); exit 77; }; }
35214    else
35215      ac_cv_sizeof_wchar_t=0
35216    fi
35217 fi
35218 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35219 fi
35220 rm -f conftest.val
35221 fi
35222 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35223 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35224
35225
35226
35227 cat >>confdefs.h <<_ACEOF
35228 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35229 _ACEOF
35230
35231
35232
35233 if test "$ac_cv_sizeof_int" -lt 4 ; then
35234         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35235 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35236
35237
35238 cat >>confdefs.h <<\_ACEOF
35239 #define LBER_INT_T long
35240 _ACEOF
35241
35242 else
35243
35244 cat >>confdefs.h <<\_ACEOF
35245 #define LBER_INT_T int
35246 _ACEOF
35247
35248 fi
35249
35250
35251 cat >>confdefs.h <<\_ACEOF
35252 #define LBER_LEN_T long
35253 _ACEOF
35254
35255
35256 cat >>confdefs.h <<\_ACEOF
35257 #define LBER_SOCKET_T int
35258 _ACEOF
35259
35260
35261 cat >>confdefs.h <<\_ACEOF
35262 #define LBER_TAG_T long
35263 _ACEOF
35264
35265
35266 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35267         if test $ac_cv_sizeof_long_long -gt 4 ; then
35268                 ol_with_mp=longlong
35269
35270 cat >>confdefs.h <<\_ACEOF
35271 #define USE_MP_LONG_LONG 1
35272 _ACEOF
35273
35274         elif test $ol_with_mp = longlong ; then
35275                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35276 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35277    { (exit 1); exit 1; }; }
35278         fi
35279 fi
35280 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35281         if test $ac_cv_sizeof_long -gt 4 ; then
35282                 ol_with_mp=long
35283
35284 cat >>confdefs.h <<\_ACEOF
35285 #define USE_MP_LONG 1
35286 _ACEOF
35287
35288         elif test $ol_with_mp = long ; then
35289                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35290 echo "$as_me: error: long unusable for multiple precision" >&2;}
35291    { (exit 1); exit 1; }; }
35292         fi
35293 fi
35294 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35295
35296 for ac_header in openssl/bn.h
35297 do
35298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35300   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35303   echo $ECHO_N "(cached) $ECHO_C" >&6
35304 fi
35305 ac_res=`eval echo '${'$as_ac_Header'}'`
35306                { echo "$as_me:$LINENO: result: $ac_res" >&5
35307 echo "${ECHO_T}$ac_res" >&6; }
35308 else
35309   # Is the header compilable?
35310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35312 cat >conftest.$ac_ext <<_ACEOF
35313 /* confdefs.h.  */
35314 _ACEOF
35315 cat confdefs.h >>conftest.$ac_ext
35316 cat >>conftest.$ac_ext <<_ACEOF
35317 /* end confdefs.h.  */
35318 $ac_includes_default
35319 #include <$ac_header>
35320 _ACEOF
35321 rm -f conftest.$ac_objext
35322 if { (ac_try="$ac_compile"
35323 case "(($ac_try" in
35324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35325   *) ac_try_echo=$ac_try;;
35326 esac
35327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35328   (eval "$ac_compile") 2>conftest.er1
35329   ac_status=$?
35330   grep -v '^ *+' conftest.er1 >conftest.err
35331   rm -f conftest.er1
35332   cat conftest.err >&5
35333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35334   (exit $ac_status); } && {
35335          test -z "$ac_c_werror_flag" ||
35336          test ! -s conftest.err
35337        } && test -s conftest.$ac_objext; then
35338   ac_header_compiler=yes
35339 else
35340   echo "$as_me: failed program was:" >&5
35341 sed 's/^/| /' conftest.$ac_ext >&5
35342
35343         ac_header_compiler=no
35344 fi
35345
35346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35348 echo "${ECHO_T}$ac_header_compiler" >&6; }
35349
35350 # Is the header present?
35351 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35352 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35353 cat >conftest.$ac_ext <<_ACEOF
35354 /* confdefs.h.  */
35355 _ACEOF
35356 cat confdefs.h >>conftest.$ac_ext
35357 cat >>conftest.$ac_ext <<_ACEOF
35358 /* end confdefs.h.  */
35359 #include <$ac_header>
35360 _ACEOF
35361 if { (ac_try="$ac_cpp conftest.$ac_ext"
35362 case "(($ac_try" in
35363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35364   *) ac_try_echo=$ac_try;;
35365 esac
35366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35367   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35368   ac_status=$?
35369   grep -v '^ *+' conftest.er1 >conftest.err
35370   rm -f conftest.er1
35371   cat conftest.err >&5
35372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35373   (exit $ac_status); } >/dev/null && {
35374          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35375          test ! -s conftest.err
35376        }; then
35377   ac_header_preproc=yes
35378 else
35379   echo "$as_me: failed program was:" >&5
35380 sed 's/^/| /' conftest.$ac_ext >&5
35381
35382   ac_header_preproc=no
35383 fi
35384
35385 rm -f conftest.err conftest.$ac_ext
35386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35387 echo "${ECHO_T}$ac_header_preproc" >&6; }
35388
35389 # So?  What about this header?
35390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35391   yes:no: )
35392     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35394     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35396     ac_header_preproc=yes
35397     ;;
35398   no:yes:* )
35399     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35401     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35402 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35403     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35405     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35406 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35407     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35409     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35411     ( cat <<\_ASBOX
35412 ## --------------------------------------------- ##
35413 ## Report this to <http://www.openldap.org/its/> ##
35414 ## --------------------------------------------- ##
35415 _ASBOX
35416      ) | sed "s/^/$as_me: WARNING:     /" >&2
35417     ;;
35418 esac
35419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35422   echo $ECHO_N "(cached) $ECHO_C" >&6
35423 else
35424   eval "$as_ac_Header=\$ac_header_preproc"
35425 fi
35426 ac_res=`eval echo '${'$as_ac_Header'}'`
35427                { echo "$as_me:$LINENO: result: $ac_res" >&5
35428 echo "${ECHO_T}$ac_res" >&6; }
35429
35430 fi
35431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35432   cat >>confdefs.h <<_ACEOF
35433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35434 _ACEOF
35435
35436 fi
35437
35438 done
35439
35440
35441 for ac_header in openssl/crypto.h
35442 do
35443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35448   echo $ECHO_N "(cached) $ECHO_C" >&6
35449 fi
35450 ac_res=`eval echo '${'$as_ac_Header'}'`
35451                { echo "$as_me:$LINENO: result: $ac_res" >&5
35452 echo "${ECHO_T}$ac_res" >&6; }
35453 else
35454   # Is the header compilable?
35455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35457 cat >conftest.$ac_ext <<_ACEOF
35458 /* confdefs.h.  */
35459 _ACEOF
35460 cat confdefs.h >>conftest.$ac_ext
35461 cat >>conftest.$ac_ext <<_ACEOF
35462 /* end confdefs.h.  */
35463 $ac_includes_default
35464 #include <$ac_header>
35465 _ACEOF
35466 rm -f conftest.$ac_objext
35467 if { (ac_try="$ac_compile"
35468 case "(($ac_try" in
35469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35470   *) ac_try_echo=$ac_try;;
35471 esac
35472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35473   (eval "$ac_compile") 2>conftest.er1
35474   ac_status=$?
35475   grep -v '^ *+' conftest.er1 >conftest.err
35476   rm -f conftest.er1
35477   cat conftest.err >&5
35478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35479   (exit $ac_status); } && {
35480          test -z "$ac_c_werror_flag" ||
35481          test ! -s conftest.err
35482        } && test -s conftest.$ac_objext; then
35483   ac_header_compiler=yes
35484 else
35485   echo "$as_me: failed program was:" >&5
35486 sed 's/^/| /' conftest.$ac_ext >&5
35487
35488         ac_header_compiler=no
35489 fi
35490
35491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35493 echo "${ECHO_T}$ac_header_compiler" >&6; }
35494
35495 # Is the header present?
35496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35498 cat >conftest.$ac_ext <<_ACEOF
35499 /* confdefs.h.  */
35500 _ACEOF
35501 cat confdefs.h >>conftest.$ac_ext
35502 cat >>conftest.$ac_ext <<_ACEOF
35503 /* end confdefs.h.  */
35504 #include <$ac_header>
35505 _ACEOF
35506 if { (ac_try="$ac_cpp conftest.$ac_ext"
35507 case "(($ac_try" in
35508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35509   *) ac_try_echo=$ac_try;;
35510 esac
35511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35513   ac_status=$?
35514   grep -v '^ *+' conftest.er1 >conftest.err
35515   rm -f conftest.er1
35516   cat conftest.err >&5
35517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35518   (exit $ac_status); } >/dev/null && {
35519          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35520          test ! -s conftest.err
35521        }; then
35522   ac_header_preproc=yes
35523 else
35524   echo "$as_me: failed program was:" >&5
35525 sed 's/^/| /' conftest.$ac_ext >&5
35526
35527   ac_header_preproc=no
35528 fi
35529
35530 rm -f conftest.err conftest.$ac_ext
35531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35532 echo "${ECHO_T}$ac_header_preproc" >&6; }
35533
35534 # So?  What about this header?
35535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35536   yes:no: )
35537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35541     ac_header_preproc=yes
35542     ;;
35543   no:yes:* )
35544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35556     ( cat <<\_ASBOX
35557 ## --------------------------------------------- ##
35558 ## Report this to <http://www.openldap.org/its/> ##
35559 ## --------------------------------------------- ##
35560 _ASBOX
35561      ) | sed "s/^/$as_me: WARNING:     /" >&2
35562     ;;
35563 esac
35564 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35565 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35567   echo $ECHO_N "(cached) $ECHO_C" >&6
35568 else
35569   eval "$as_ac_Header=\$ac_header_preproc"
35570 fi
35571 ac_res=`eval echo '${'$as_ac_Header'}'`
35572                { echo "$as_me:$LINENO: result: $ac_res" >&5
35573 echo "${ECHO_T}$ac_res" >&6; }
35574
35575 fi
35576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35577   cat >>confdefs.h <<_ACEOF
35578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35579 _ACEOF
35580
35581 fi
35582
35583 done
35584
35585         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
35586                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
35587                 test "$ol_with_tls" = "found" ; then
35588                 ol_with_mp=bignum
35589
35590 cat >>confdefs.h <<\_ACEOF
35591 #define USE_MP_BIGNUM 1
35592 _ACEOF
35593
35594         elif test $ol_with_mp = bignum ; then
35595                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
35596 echo "$as_me: error: bignum not available" >&2;}
35597    { (exit 1); exit 1; }; }
35598         fi
35599 fi
35600 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
35601
35602 for ac_header in gmp.h
35603 do
35604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35606   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35609   echo $ECHO_N "(cached) $ECHO_C" >&6
35610 fi
35611 ac_res=`eval echo '${'$as_ac_Header'}'`
35612                { echo "$as_me:$LINENO: result: $ac_res" >&5
35613 echo "${ECHO_T}$ac_res" >&6; }
35614 else
35615   # Is the header compilable?
35616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35618 cat >conftest.$ac_ext <<_ACEOF
35619 /* confdefs.h.  */
35620 _ACEOF
35621 cat confdefs.h >>conftest.$ac_ext
35622 cat >>conftest.$ac_ext <<_ACEOF
35623 /* end confdefs.h.  */
35624 $ac_includes_default
35625 #include <$ac_header>
35626 _ACEOF
35627 rm -f conftest.$ac_objext
35628 if { (ac_try="$ac_compile"
35629 case "(($ac_try" in
35630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35631   *) ac_try_echo=$ac_try;;
35632 esac
35633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35634   (eval "$ac_compile") 2>conftest.er1
35635   ac_status=$?
35636   grep -v '^ *+' conftest.er1 >conftest.err
35637   rm -f conftest.er1
35638   cat conftest.err >&5
35639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35640   (exit $ac_status); } && {
35641          test -z "$ac_c_werror_flag" ||
35642          test ! -s conftest.err
35643        } && test -s conftest.$ac_objext; then
35644   ac_header_compiler=yes
35645 else
35646   echo "$as_me: failed program was:" >&5
35647 sed 's/^/| /' conftest.$ac_ext >&5
35648
35649         ac_header_compiler=no
35650 fi
35651
35652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35654 echo "${ECHO_T}$ac_header_compiler" >&6; }
35655
35656 # Is the header present?
35657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35659 cat >conftest.$ac_ext <<_ACEOF
35660 /* confdefs.h.  */
35661 _ACEOF
35662 cat confdefs.h >>conftest.$ac_ext
35663 cat >>conftest.$ac_ext <<_ACEOF
35664 /* end confdefs.h.  */
35665 #include <$ac_header>
35666 _ACEOF
35667 if { (ac_try="$ac_cpp conftest.$ac_ext"
35668 case "(($ac_try" in
35669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35670   *) ac_try_echo=$ac_try;;
35671 esac
35672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35673   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35674   ac_status=$?
35675   grep -v '^ *+' conftest.er1 >conftest.err
35676   rm -f conftest.er1
35677   cat conftest.err >&5
35678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35679   (exit $ac_status); } >/dev/null && {
35680          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35681          test ! -s conftest.err
35682        }; then
35683   ac_header_preproc=yes
35684 else
35685   echo "$as_me: failed program was:" >&5
35686 sed 's/^/| /' conftest.$ac_ext >&5
35687
35688   ac_header_preproc=no
35689 fi
35690
35691 rm -f conftest.err conftest.$ac_ext
35692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35693 echo "${ECHO_T}$ac_header_preproc" >&6; }
35694
35695 # So?  What about this header?
35696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35697   yes:no: )
35698     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35700     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35702     ac_header_preproc=yes
35703     ;;
35704   no:yes:* )
35705     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35707     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35708 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35709     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35711     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35712 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35713     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35715     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35717     ( cat <<\_ASBOX
35718 ## --------------------------------------------- ##
35719 ## Report this to <http://www.openldap.org/its/> ##
35720 ## --------------------------------------------- ##
35721 _ASBOX
35722      ) | sed "s/^/$as_me: WARNING:     /" >&2
35723     ;;
35724 esac
35725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35728   echo $ECHO_N "(cached) $ECHO_C" >&6
35729 else
35730   eval "$as_ac_Header=\$ac_header_preproc"
35731 fi
35732 ac_res=`eval echo '${'$as_ac_Header'}'`
35733                { echo "$as_me:$LINENO: result: $ac_res" >&5
35734 echo "${ECHO_T}$ac_res" >&6; }
35735
35736 fi
35737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35738   cat >>confdefs.h <<_ACEOF
35739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35740 _ACEOF
35741
35742 fi
35743
35744 done
35745
35746
35747 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
35748 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
35749 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
35750   echo $ECHO_N "(cached) $ECHO_C" >&6
35751 else
35752   ac_check_lib_save_LIBS=$LIBS
35753 LIBS="-lgmp  $LIBS"
35754 cat >conftest.$ac_ext <<_ACEOF
35755 /* confdefs.h.  */
35756 _ACEOF
35757 cat confdefs.h >>conftest.$ac_ext
35758 cat >>conftest.$ac_ext <<_ACEOF
35759 /* end confdefs.h.  */
35760
35761 /* Override any GCC internal prototype to avoid an error.
35762    Use char because int might match the return type of a GCC
35763    builtin and then its argument prototype would still apply.  */
35764 #ifdef __cplusplus
35765 extern "C"
35766 #endif
35767 char __gmpz_add_ui ();
35768 int
35769 main ()
35770 {
35771 return __gmpz_add_ui ();
35772   ;
35773   return 0;
35774 }
35775 _ACEOF
35776 rm -f conftest.$ac_objext conftest$ac_exeext
35777 if { (ac_try="$ac_link"
35778 case "(($ac_try" in
35779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35780   *) ac_try_echo=$ac_try;;
35781 esac
35782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35783   (eval "$ac_link") 2>conftest.er1
35784   ac_status=$?
35785   grep -v '^ *+' conftest.er1 >conftest.err
35786   rm -f conftest.er1
35787   cat conftest.err >&5
35788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35789   (exit $ac_status); } && {
35790          test -z "$ac_c_werror_flag" ||
35791          test ! -s conftest.err
35792        } && test -s conftest$ac_exeext &&
35793        $as_test_x conftest$ac_exeext; then
35794   ac_cv_lib_gmp___gmpz_add_ui=yes
35795 else
35796   echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799         ac_cv_lib_gmp___gmpz_add_ui=no
35800 fi
35801
35802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35803       conftest$ac_exeext conftest.$ac_ext
35804 LIBS=$ac_check_lib_save_LIBS
35805 fi
35806 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
35807 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
35808 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
35809   cat >>confdefs.h <<_ACEOF
35810 #define HAVE_LIBGMP 1
35811 _ACEOF
35812
35813   LIBS="-lgmp $LIBS"
35814
35815 fi
35816
35817         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
35818
35819 cat >>confdefs.h <<\_ACEOF
35820 #define USE_MP_GMP 1
35821 _ACEOF
35822
35823                 ol_with_mp=gmp
35824         elif test $ol_with_mp = gmp ; then
35825                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
35826 echo "$as_me: error: gmp not available" >&2;}
35827    { (exit 1); exit 1; }; }
35828         fi
35829 fi
35830 if test $ol_with_mp = auto ; then
35831         ol_with_mp=no
35832 fi
35833
35834 { echo "$as_me:$LINENO: checking for working memcmp" >&5
35835 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
35836 if test "${ac_cv_func_memcmp_working+set}" = set; then
35837   echo $ECHO_N "(cached) $ECHO_C" >&6
35838 else
35839   if test "$cross_compiling" = yes; then
35840   ac_cv_func_memcmp_working=no
35841 else
35842   cat >conftest.$ac_ext <<_ACEOF
35843 /* confdefs.h.  */
35844 _ACEOF
35845 cat confdefs.h >>conftest.$ac_ext
35846 cat >>conftest.$ac_ext <<_ACEOF
35847 /* end confdefs.h.  */
35848 $ac_includes_default
35849 int
35850 main ()
35851 {
35852
35853   /* Some versions of memcmp are not 8-bit clean.  */
35854   char c0 = '\100', c1 = '\200', c2 = '\201';
35855   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
35856     return 1;
35857
35858   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
35859      or more and with at least one buffer not starting on a 4-byte boundary.
35860      William Lewis provided this test program.   */
35861   {
35862     char foo[21];
35863     char bar[21];
35864     int i;
35865     for (i = 0; i < 4; i++)
35866       {
35867         char *a = foo + i;
35868         char *b = bar + i;
35869         strcpy (a, "--------01111111");
35870         strcpy (b, "--------10000000");
35871         if (memcmp (a, b, 16) >= 0)
35872           return 1;
35873       }
35874     return 0;
35875   }
35876
35877   ;
35878   return 0;
35879 }
35880 _ACEOF
35881 rm -f conftest$ac_exeext
35882 if { (ac_try="$ac_link"
35883 case "(($ac_try" in
35884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35885   *) ac_try_echo=$ac_try;;
35886 esac
35887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35888   (eval "$ac_link") 2>&5
35889   ac_status=$?
35890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35892   { (case "(($ac_try" in
35893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35894   *) ac_try_echo=$ac_try;;
35895 esac
35896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35897   (eval "$ac_try") 2>&5
35898   ac_status=$?
35899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35900   (exit $ac_status); }; }; then
35901   ac_cv_func_memcmp_working=yes
35902 else
35903   echo "$as_me: program exited with status $ac_status" >&5
35904 echo "$as_me: failed program was:" >&5
35905 sed 's/^/| /' conftest.$ac_ext >&5
35906
35907 ( exit $ac_status )
35908 ac_cv_func_memcmp_working=no
35909 fi
35910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35911 fi
35912
35913
35914 fi
35915 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
35916 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
35917 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
35918   *" memcmp.$ac_objext "* ) ;;
35919   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
35920  ;;
35921 esac
35922
35923
35924
35925 if test $ac_cv_func_memcmp_working = no ; then
35926
35927 cat >>confdefs.h <<\_ACEOF
35928 #define NEED_MEMCMP_REPLACEMENT 1
35929 _ACEOF
35930
35931 fi
35932
35933
35934 for ac_func in strftime
35935 do
35936 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
35937 { echo "$as_me:$LINENO: checking for $ac_func" >&5
35938 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
35939 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35940   echo $ECHO_N "(cached) $ECHO_C" >&6
35941 else
35942   cat >conftest.$ac_ext <<_ACEOF
35943 /* confdefs.h.  */
35944 _ACEOF
35945 cat confdefs.h >>conftest.$ac_ext
35946 cat >>conftest.$ac_ext <<_ACEOF
35947 /* end confdefs.h.  */
35948 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35949    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35950 #define $ac_func innocuous_$ac_func
35951
35952 /* System header to define __stub macros and hopefully few prototypes,
35953     which can conflict with char $ac_func (); below.
35954     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35955     <limits.h> exists even on freestanding compilers.  */
35956
35957 #ifdef __STDC__
35958 # include <limits.h>
35959 #else
35960 # include <assert.h>
35961 #endif
35962
35963 #undef $ac_func
35964
35965 /* Override any GCC internal prototype to avoid an error.
35966    Use char because int might match the return type of a GCC
35967    builtin and then its argument prototype would still apply.  */
35968 #ifdef __cplusplus
35969 extern "C"
35970 #endif
35971 char $ac_func ();
35972 /* The GNU C library defines this for functions which it implements
35973     to always fail with ENOSYS.  Some functions are actually named
35974     something starting with __ and the normal name is an alias.  */
35975 #if defined __stub_$ac_func || defined __stub___$ac_func
35976 choke me
35977 #endif
35978
35979 int
35980 main ()
35981 {
35982 return $ac_func ();
35983   ;
35984   return 0;
35985 }
35986 _ACEOF
35987 rm -f conftest.$ac_objext conftest$ac_exeext
35988 if { (ac_try="$ac_link"
35989 case "(($ac_try" in
35990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35991   *) ac_try_echo=$ac_try;;
35992 esac
35993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35994   (eval "$ac_link") 2>conftest.er1
35995   ac_status=$?
35996   grep -v '^ *+' conftest.er1 >conftest.err
35997   rm -f conftest.er1
35998   cat conftest.err >&5
35999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36000   (exit $ac_status); } && {
36001          test -z "$ac_c_werror_flag" ||
36002          test ! -s conftest.err
36003        } && test -s conftest$ac_exeext &&
36004        $as_test_x conftest$ac_exeext; then
36005   eval "$as_ac_var=yes"
36006 else
36007   echo "$as_me: failed program was:" >&5
36008 sed 's/^/| /' conftest.$ac_ext >&5
36009
36010         eval "$as_ac_var=no"
36011 fi
36012
36013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36014       conftest$ac_exeext conftest.$ac_ext
36015 fi
36016 ac_res=`eval echo '${'$as_ac_var'}'`
36017                { echo "$as_me:$LINENO: result: $ac_res" >&5
36018 echo "${ECHO_T}$ac_res" >&6; }
36019 if test `eval echo '${'$as_ac_var'}'` = yes; then
36020   cat >>confdefs.h <<_ACEOF
36021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36022 _ACEOF
36023
36024 else
36025   # strftime is in -lintl on SCO UNIX.
36026 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36027 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36028 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36029   echo $ECHO_N "(cached) $ECHO_C" >&6
36030 else
36031   ac_check_lib_save_LIBS=$LIBS
36032 LIBS="-lintl  $LIBS"
36033 cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h.  */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h.  */
36039
36040 /* Override any GCC internal prototype to avoid an error.
36041    Use char because int might match the return type of a GCC
36042    builtin and then its argument prototype would still apply.  */
36043 #ifdef __cplusplus
36044 extern "C"
36045 #endif
36046 char strftime ();
36047 int
36048 main ()
36049 {
36050 return strftime ();
36051   ;
36052   return 0;
36053 }
36054 _ACEOF
36055 rm -f conftest.$ac_objext conftest$ac_exeext
36056 if { (ac_try="$ac_link"
36057 case "(($ac_try" in
36058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36059   *) ac_try_echo=$ac_try;;
36060 esac
36061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36062   (eval "$ac_link") 2>conftest.er1
36063   ac_status=$?
36064   grep -v '^ *+' conftest.er1 >conftest.err
36065   rm -f conftest.er1
36066   cat conftest.err >&5
36067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36068   (exit $ac_status); } && {
36069          test -z "$ac_c_werror_flag" ||
36070          test ! -s conftest.err
36071        } && test -s conftest$ac_exeext &&
36072        $as_test_x conftest$ac_exeext; then
36073   ac_cv_lib_intl_strftime=yes
36074 else
36075   echo "$as_me: failed program was:" >&5
36076 sed 's/^/| /' conftest.$ac_ext >&5
36077
36078         ac_cv_lib_intl_strftime=no
36079 fi
36080
36081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36082       conftest$ac_exeext conftest.$ac_ext
36083 LIBS=$ac_check_lib_save_LIBS
36084 fi
36085 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36086 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36087 if test $ac_cv_lib_intl_strftime = yes; then
36088   cat >>confdefs.h <<\_ACEOF
36089 #define HAVE_STRFTIME 1
36090 _ACEOF
36091
36092 LIBS="-lintl $LIBS"
36093 fi
36094
36095 fi
36096 done
36097
36098
36099 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36100 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36101 if test "${ol_cv_func_inet_aton+set}" = set; then
36102   echo $ECHO_N "(cached) $ECHO_C" >&6
36103 else
36104   cat >conftest.$ac_ext <<_ACEOF
36105 /* confdefs.h.  */
36106 _ACEOF
36107 cat confdefs.h >>conftest.$ac_ext
36108 cat >>conftest.$ac_ext <<_ACEOF
36109 /* end confdefs.h.  */
36110
36111 #ifdef HAVE_SYS_TYPES_H
36112 #       include <sys/types.h>
36113 #endif
36114 #ifdef HAVE_SYS_SOCKET_H
36115 #       include <sys/socket.h>
36116 #       ifdef HAVE_SYS_SELECT_H
36117 #               include <sys/select.h>
36118 #       endif
36119 #       include <netinet/in.h>
36120 #       ifdef HAVE_ARPA_INET_H
36121 #               include <arpa/inet.h>
36122 #       endif
36123 #endif
36124
36125 int
36126 main ()
36127 {
36128 struct in_addr in;
36129 int rc = inet_aton( "255.255.255.255", &in );
36130   ;
36131   return 0;
36132 }
36133 _ACEOF
36134 rm -f conftest.$ac_objext conftest$ac_exeext
36135 if { (ac_try="$ac_link"
36136 case "(($ac_try" in
36137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36138   *) ac_try_echo=$ac_try;;
36139 esac
36140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36141   (eval "$ac_link") 2>conftest.er1
36142   ac_status=$?
36143   grep -v '^ *+' conftest.er1 >conftest.err
36144   rm -f conftest.er1
36145   cat conftest.err >&5
36146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36147   (exit $ac_status); } && {
36148          test -z "$ac_c_werror_flag" ||
36149          test ! -s conftest.err
36150        } && test -s conftest$ac_exeext &&
36151        $as_test_x conftest$ac_exeext; then
36152   ol_cv_func_inet_aton=yes
36153 else
36154   echo "$as_me: failed program was:" >&5
36155 sed 's/^/| /' conftest.$ac_ext >&5
36156
36157         ol_cv_func_inet_aton=no
36158 fi
36159
36160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36161       conftest$ac_exeext conftest.$ac_ext
36162 fi
36163 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36164 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36165   if test $ol_cv_func_inet_aton != no; then
36166
36167 cat >>confdefs.h <<\_ACEOF
36168 #define HAVE_INET_ATON 1
36169 _ACEOF
36170
36171   fi
36172
36173
36174 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36175 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36176 if test "${ac_cv_func__spawnlp+set}" = set; then
36177   echo $ECHO_N "(cached) $ECHO_C" >&6
36178 else
36179   cat >conftest.$ac_ext <<_ACEOF
36180 /* confdefs.h.  */
36181 _ACEOF
36182 cat confdefs.h >>conftest.$ac_ext
36183 cat >>conftest.$ac_ext <<_ACEOF
36184 /* end confdefs.h.  */
36185 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36186    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36187 #define _spawnlp innocuous__spawnlp
36188
36189 /* System header to define __stub macros and hopefully few prototypes,
36190     which can conflict with char _spawnlp (); below.
36191     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36192     <limits.h> exists even on freestanding compilers.  */
36193
36194 #ifdef __STDC__
36195 # include <limits.h>
36196 #else
36197 # include <assert.h>
36198 #endif
36199
36200 #undef _spawnlp
36201
36202 /* Override any GCC internal prototype to avoid an error.
36203    Use char because int might match the return type of a GCC
36204    builtin and then its argument prototype would still apply.  */
36205 #ifdef __cplusplus
36206 extern "C"
36207 #endif
36208 char _spawnlp ();
36209 /* The GNU C library defines this for functions which it implements
36210     to always fail with ENOSYS.  Some functions are actually named
36211     something starting with __ and the normal name is an alias.  */
36212 #if defined __stub__spawnlp || defined __stub____spawnlp
36213 choke me
36214 #endif
36215
36216 int
36217 main ()
36218 {
36219 return _spawnlp ();
36220   ;
36221   return 0;
36222 }
36223 _ACEOF
36224 rm -f conftest.$ac_objext conftest$ac_exeext
36225 if { (ac_try="$ac_link"
36226 case "(($ac_try" in
36227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36228   *) ac_try_echo=$ac_try;;
36229 esac
36230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36231   (eval "$ac_link") 2>conftest.er1
36232   ac_status=$?
36233   grep -v '^ *+' conftest.er1 >conftest.err
36234   rm -f conftest.er1
36235   cat conftest.err >&5
36236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36237   (exit $ac_status); } && {
36238          test -z "$ac_c_werror_flag" ||
36239          test ! -s conftest.err
36240        } && test -s conftest$ac_exeext &&
36241        $as_test_x conftest$ac_exeext; then
36242   ac_cv_func__spawnlp=yes
36243 else
36244   echo "$as_me: failed program was:" >&5
36245 sed 's/^/| /' conftest.$ac_ext >&5
36246
36247         ac_cv_func__spawnlp=no
36248 fi
36249
36250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36251       conftest$ac_exeext conftest.$ac_ext
36252 fi
36253 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36254 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36255 if test $ac_cv_func__spawnlp = yes; then
36256
36257 cat >>confdefs.h <<\_ACEOF
36258 #define HAVE_SPAWNLP 1
36259 _ACEOF
36260
36261 fi
36262
36263
36264 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36265 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36266 if test "${ac_cv_func__snprintf+set}" = set; then
36267   echo $ECHO_N "(cached) $ECHO_C" >&6
36268 else
36269   cat >conftest.$ac_ext <<_ACEOF
36270 /* confdefs.h.  */
36271 _ACEOF
36272 cat confdefs.h >>conftest.$ac_ext
36273 cat >>conftest.$ac_ext <<_ACEOF
36274 /* end confdefs.h.  */
36275 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36277 #define _snprintf innocuous__snprintf
36278
36279 /* System header to define __stub macros and hopefully few prototypes,
36280     which can conflict with char _snprintf (); below.
36281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36282     <limits.h> exists even on freestanding compilers.  */
36283
36284 #ifdef __STDC__
36285 # include <limits.h>
36286 #else
36287 # include <assert.h>
36288 #endif
36289
36290 #undef _snprintf
36291
36292 /* Override any GCC internal prototype to avoid an error.
36293    Use char because int might match the return type of a GCC
36294    builtin and then its argument prototype would still apply.  */
36295 #ifdef __cplusplus
36296 extern "C"
36297 #endif
36298 char _snprintf ();
36299 /* The GNU C library defines this for functions which it implements
36300     to always fail with ENOSYS.  Some functions are actually named
36301     something starting with __ and the normal name is an alias.  */
36302 #if defined __stub__snprintf || defined __stub____snprintf
36303 choke me
36304 #endif
36305
36306 int
36307 main ()
36308 {
36309 return _snprintf ();
36310   ;
36311   return 0;
36312 }
36313 _ACEOF
36314 rm -f conftest.$ac_objext conftest$ac_exeext
36315 if { (ac_try="$ac_link"
36316 case "(($ac_try" in
36317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36318   *) ac_try_echo=$ac_try;;
36319 esac
36320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36321   (eval "$ac_link") 2>conftest.er1
36322   ac_status=$?
36323   grep -v '^ *+' conftest.er1 >conftest.err
36324   rm -f conftest.er1
36325   cat conftest.err >&5
36326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36327   (exit $ac_status); } && {
36328          test -z "$ac_c_werror_flag" ||
36329          test ! -s conftest.err
36330        } && test -s conftest$ac_exeext &&
36331        $as_test_x conftest$ac_exeext; then
36332   ac_cv_func__snprintf=yes
36333 else
36334   echo "$as_me: failed program was:" >&5
36335 sed 's/^/| /' conftest.$ac_ext >&5
36336
36337         ac_cv_func__snprintf=no
36338 fi
36339
36340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36341       conftest$ac_exeext conftest.$ac_ext
36342 fi
36343 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36344 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36345 if test $ac_cv_func__snprintf = yes; then
36346   ac_cv_func_snprintf=yes
36347
36348 cat >>confdefs.h <<\_ACEOF
36349 #define snprintf _snprintf
36350 _ACEOF
36351
36352
36353 fi
36354
36355
36356
36357
36358 for ac_func in vsnprintf _vsnprintf
36359 do
36360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36364   echo $ECHO_N "(cached) $ECHO_C" >&6
36365 else
36366   cat >conftest.$ac_ext <<_ACEOF
36367 /* confdefs.h.  */
36368 _ACEOF
36369 cat confdefs.h >>conftest.$ac_ext
36370 cat >>conftest.$ac_ext <<_ACEOF
36371 /* end confdefs.h.  */
36372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36374 #define $ac_func innocuous_$ac_func
36375
36376 /* System header to define __stub macros and hopefully few prototypes,
36377     which can conflict with char $ac_func (); below.
36378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36379     <limits.h> exists even on freestanding compilers.  */
36380
36381 #ifdef __STDC__
36382 # include <limits.h>
36383 #else
36384 # include <assert.h>
36385 #endif
36386
36387 #undef $ac_func
36388
36389 /* Override any GCC internal prototype to avoid an error.
36390    Use char because int might match the return type of a GCC
36391    builtin and then its argument prototype would still apply.  */
36392 #ifdef __cplusplus
36393 extern "C"
36394 #endif
36395 char $ac_func ();
36396 /* The GNU C library defines this for functions which it implements
36397     to always fail with ENOSYS.  Some functions are actually named
36398     something starting with __ and the normal name is an alias.  */
36399 #if defined __stub_$ac_func || defined __stub___$ac_func
36400 choke me
36401 #endif
36402
36403 int
36404 main ()
36405 {
36406 return $ac_func ();
36407   ;
36408   return 0;
36409 }
36410 _ACEOF
36411 rm -f conftest.$ac_objext conftest$ac_exeext
36412 if { (ac_try="$ac_link"
36413 case "(($ac_try" in
36414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36415   *) ac_try_echo=$ac_try;;
36416 esac
36417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36418   (eval "$ac_link") 2>conftest.er1
36419   ac_status=$?
36420   grep -v '^ *+' conftest.er1 >conftest.err
36421   rm -f conftest.er1
36422   cat conftest.err >&5
36423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36424   (exit $ac_status); } && {
36425          test -z "$ac_c_werror_flag" ||
36426          test ! -s conftest.err
36427        } && test -s conftest$ac_exeext &&
36428        $as_test_x conftest$ac_exeext; then
36429   eval "$as_ac_var=yes"
36430 else
36431   echo "$as_me: failed program was:" >&5
36432 sed 's/^/| /' conftest.$ac_ext >&5
36433
36434         eval "$as_ac_var=no"
36435 fi
36436
36437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36438       conftest$ac_exeext conftest.$ac_ext
36439 fi
36440 ac_res=`eval echo '${'$as_ac_var'}'`
36441                { echo "$as_me:$LINENO: result: $ac_res" >&5
36442 echo "${ECHO_T}$ac_res" >&6; }
36443 if test `eval echo '${'$as_ac_var'}'` = yes; then
36444   cat >>confdefs.h <<_ACEOF
36445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36446 _ACEOF
36447
36448 fi
36449 done
36450
36451
36452 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
36453         ac_cv_func_vsnprintf=yes
36454
36455 cat >>confdefs.h <<\_ACEOF
36456 #define vsnprintf _vsnprintf
36457 _ACEOF
36458
36459 fi
36460
36461
36462 for ac_func in vprintf
36463 do
36464 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36465 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36466 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36467 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36468   echo $ECHO_N "(cached) $ECHO_C" >&6
36469 else
36470   cat >conftest.$ac_ext <<_ACEOF
36471 /* confdefs.h.  */
36472 _ACEOF
36473 cat confdefs.h >>conftest.$ac_ext
36474 cat >>conftest.$ac_ext <<_ACEOF
36475 /* end confdefs.h.  */
36476 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36477    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36478 #define $ac_func innocuous_$ac_func
36479
36480 /* System header to define __stub macros and hopefully few prototypes,
36481     which can conflict with char $ac_func (); below.
36482     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36483     <limits.h> exists even on freestanding compilers.  */
36484
36485 #ifdef __STDC__
36486 # include <limits.h>
36487 #else
36488 # include <assert.h>
36489 #endif
36490
36491 #undef $ac_func
36492
36493 /* Override any GCC internal prototype to avoid an error.
36494    Use char because int might match the return type of a GCC
36495    builtin and then its argument prototype would still apply.  */
36496 #ifdef __cplusplus
36497 extern "C"
36498 #endif
36499 char $ac_func ();
36500 /* The GNU C library defines this for functions which it implements
36501     to always fail with ENOSYS.  Some functions are actually named
36502     something starting with __ and the normal name is an alias.  */
36503 #if defined __stub_$ac_func || defined __stub___$ac_func
36504 choke me
36505 #endif
36506
36507 int
36508 main ()
36509 {
36510 return $ac_func ();
36511   ;
36512   return 0;
36513 }
36514 _ACEOF
36515 rm -f conftest.$ac_objext conftest$ac_exeext
36516 if { (ac_try="$ac_link"
36517 case "(($ac_try" in
36518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36519   *) ac_try_echo=$ac_try;;
36520 esac
36521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36522   (eval "$ac_link") 2>conftest.er1
36523   ac_status=$?
36524   grep -v '^ *+' conftest.er1 >conftest.err
36525   rm -f conftest.er1
36526   cat conftest.err >&5
36527   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36528   (exit $ac_status); } && {
36529          test -z "$ac_c_werror_flag" ||
36530          test ! -s conftest.err
36531        } && test -s conftest$ac_exeext &&
36532        $as_test_x conftest$ac_exeext; then
36533   eval "$as_ac_var=yes"
36534 else
36535   echo "$as_me: failed program was:" >&5
36536 sed 's/^/| /' conftest.$ac_ext >&5
36537
36538         eval "$as_ac_var=no"
36539 fi
36540
36541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36542       conftest$ac_exeext conftest.$ac_ext
36543 fi
36544 ac_res=`eval echo '${'$as_ac_var'}'`
36545                { echo "$as_me:$LINENO: result: $ac_res" >&5
36546 echo "${ECHO_T}$ac_res" >&6; }
36547 if test `eval echo '${'$as_ac_var'}'` = yes; then
36548   cat >>confdefs.h <<_ACEOF
36549 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36550 _ACEOF
36551
36552 { echo "$as_me:$LINENO: checking for _doprnt" >&5
36553 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
36554 if test "${ac_cv_func__doprnt+set}" = set; then
36555   echo $ECHO_N "(cached) $ECHO_C" >&6
36556 else
36557   cat >conftest.$ac_ext <<_ACEOF
36558 /* confdefs.h.  */
36559 _ACEOF
36560 cat confdefs.h >>conftest.$ac_ext
36561 cat >>conftest.$ac_ext <<_ACEOF
36562 /* end confdefs.h.  */
36563 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
36564    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36565 #define _doprnt innocuous__doprnt
36566
36567 /* System header to define __stub macros and hopefully few prototypes,
36568     which can conflict with char _doprnt (); below.
36569     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36570     <limits.h> exists even on freestanding compilers.  */
36571
36572 #ifdef __STDC__
36573 # include <limits.h>
36574 #else
36575 # include <assert.h>
36576 #endif
36577
36578 #undef _doprnt
36579
36580 /* Override any GCC internal prototype to avoid an error.
36581    Use char because int might match the return type of a GCC
36582    builtin and then its argument prototype would still apply.  */
36583 #ifdef __cplusplus
36584 extern "C"
36585 #endif
36586 char _doprnt ();
36587 /* The GNU C library defines this for functions which it implements
36588     to always fail with ENOSYS.  Some functions are actually named
36589     something starting with __ and the normal name is an alias.  */
36590 #if defined __stub__doprnt || defined __stub____doprnt
36591 choke me
36592 #endif
36593
36594 int
36595 main ()
36596 {
36597 return _doprnt ();
36598   ;
36599   return 0;
36600 }
36601 _ACEOF
36602 rm -f conftest.$ac_objext conftest$ac_exeext
36603 if { (ac_try="$ac_link"
36604 case "(($ac_try" in
36605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36606   *) ac_try_echo=$ac_try;;
36607 esac
36608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36609   (eval "$ac_link") 2>conftest.er1
36610   ac_status=$?
36611   grep -v '^ *+' conftest.er1 >conftest.err
36612   rm -f conftest.er1
36613   cat conftest.err >&5
36614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36615   (exit $ac_status); } && {
36616          test -z "$ac_c_werror_flag" ||
36617          test ! -s conftest.err
36618        } && test -s conftest$ac_exeext &&
36619        $as_test_x conftest$ac_exeext; then
36620   ac_cv_func__doprnt=yes
36621 else
36622   echo "$as_me: failed program was:" >&5
36623 sed 's/^/| /' conftest.$ac_ext >&5
36624
36625         ac_cv_func__doprnt=no
36626 fi
36627
36628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36629       conftest$ac_exeext conftest.$ac_ext
36630 fi
36631 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
36632 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
36633 if test $ac_cv_func__doprnt = yes; then
36634
36635 cat >>confdefs.h <<\_ACEOF
36636 #define HAVE_DOPRNT 1
36637 _ACEOF
36638
36639 fi
36640
36641 fi
36642 done
36643
36644
36645
36646 if test $ac_cv_func_vprintf = yes ; then
36647
36648
36649 for ac_func in snprintf vsnprintf
36650 do
36651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36655   echo $ECHO_N "(cached) $ECHO_C" >&6
36656 else
36657   cat >conftest.$ac_ext <<_ACEOF
36658 /* confdefs.h.  */
36659 _ACEOF
36660 cat confdefs.h >>conftest.$ac_ext
36661 cat >>conftest.$ac_ext <<_ACEOF
36662 /* end confdefs.h.  */
36663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36665 #define $ac_func innocuous_$ac_func
36666
36667 /* System header to define __stub macros and hopefully few prototypes,
36668     which can conflict with char $ac_func (); below.
36669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36670     <limits.h> exists even on freestanding compilers.  */
36671
36672 #ifdef __STDC__
36673 # include <limits.h>
36674 #else
36675 # include <assert.h>
36676 #endif
36677
36678 #undef $ac_func
36679
36680 /* Override any GCC internal prototype to avoid an error.
36681    Use char because int might match the return type of a GCC
36682    builtin and then its argument prototype would still apply.  */
36683 #ifdef __cplusplus
36684 extern "C"
36685 #endif
36686 char $ac_func ();
36687 /* The GNU C library defines this for functions which it implements
36688     to always fail with ENOSYS.  Some functions are actually named
36689     something starting with __ and the normal name is an alias.  */
36690 #if defined __stub_$ac_func || defined __stub___$ac_func
36691 choke me
36692 #endif
36693
36694 int
36695 main ()
36696 {
36697 return $ac_func ();
36698   ;
36699   return 0;
36700 }
36701 _ACEOF
36702 rm -f conftest.$ac_objext conftest$ac_exeext
36703 if { (ac_try="$ac_link"
36704 case "(($ac_try" in
36705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36706   *) ac_try_echo=$ac_try;;
36707 esac
36708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36709   (eval "$ac_link") 2>conftest.er1
36710   ac_status=$?
36711   grep -v '^ *+' conftest.er1 >conftest.err
36712   rm -f conftest.er1
36713   cat conftest.err >&5
36714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36715   (exit $ac_status); } && {
36716          test -z "$ac_c_werror_flag" ||
36717          test ! -s conftest.err
36718        } && test -s conftest$ac_exeext &&
36719        $as_test_x conftest$ac_exeext; then
36720   eval "$as_ac_var=yes"
36721 else
36722   echo "$as_me: failed program was:" >&5
36723 sed 's/^/| /' conftest.$ac_ext >&5
36724
36725         eval "$as_ac_var=no"
36726 fi
36727
36728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36729       conftest$ac_exeext conftest.$ac_ext
36730 fi
36731 ac_res=`eval echo '${'$as_ac_var'}'`
36732                { echo "$as_me:$LINENO: result: $ac_res" >&5
36733 echo "${ECHO_T}$ac_res" >&6; }
36734 if test `eval echo '${'$as_ac_var'}'` = yes; then
36735   cat >>confdefs.h <<_ACEOF
36736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36737 _ACEOF
36738
36739 fi
36740 done
36741
36742 fi
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753
36754
36755
36756
36757
36758
36759
36760
36761
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
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 for ac_func in \
36801         bcopy                   \
36802         closesocket             \
36803         chroot                  \
36804         endgrent                \
36805         endpwent                \
36806         fcntl                   \
36807         flock                   \
36808         fstat                   \
36809         getdtablesize           \
36810         geteuid                 \
36811         getgrgid                \
36812         gethostname             \
36813         getpass                 \
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_DDS=$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 # Check whether --with-xxinstall was given.
38691 if test "${with_xxinstall+set}" = set; then
38692   withval=$with_xxinstall;
38693 fi
38694
38695
38696
38697 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"
38698
38699
38700 ac_config_commands="$ac_config_commands default"
38701
38702
38703
38704 test "x$prefix" = xNONE && prefix=$ac_default_prefix
38705 # Let make expand exec_prefix.
38706 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
38707
38708 DEFS=-DHAVE_CONFIG_H
38709
38710 ac_libobjs=
38711 ac_ltlibobjs=
38712 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
38713   # 1. Remove the extension, and $U if already installed.
38714   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
38715   ac_i=`echo "$ac_i" | sed "$ac_script"`
38716   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
38717   #    will be set to the directory where LIBOBJS objects are built.
38718   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
38719   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
38720 done
38721 LIBOBJS=$ac_libobjs
38722
38723 LTLIBOBJS=$ac_ltlibobjs
38724
38725
38726 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
38727   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
38728 Usually this means the macro was only invoked conditionally." >&5
38729 echo "$as_me: error: conditional \"AMDEP\" was never defined.
38730 Usually this means the macro was only invoked conditionally." >&2;}
38731    { (exit 1); exit 1; }; }
38732 fi
38733 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38734   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38735 Usually this means the macro was only invoked conditionally." >&5
38736 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38737 Usually this means the macro was only invoked conditionally." >&2;}
38738    { (exit 1); exit 1; }; }
38739 fi
38740 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
38741   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
38742 Usually this means the macro was only invoked conditionally." >&5
38743 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
38744 Usually this means the macro was only invoked conditionally." >&2;}
38745    { (exit 1); exit 1; }; }
38746 fi
38747
38748 : ${CONFIG_STATUS=./config.status}
38749 ac_clean_files_save=$ac_clean_files
38750 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
38751 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
38752 echo "$as_me: creating $CONFIG_STATUS" >&6;}
38753 cat >$CONFIG_STATUS <<_ACEOF
38754 #! $SHELL
38755 # Generated by $as_me.
38756 # Run this file to recreate the current configuration.
38757 # Compiler output produced by configure, useful for debugging
38758 # configure, is in config.log if it exists.
38759
38760 debug=false
38761 ac_cs_recheck=false
38762 ac_cs_silent=false
38763 SHELL=\${CONFIG_SHELL-$SHELL}
38764 _ACEOF
38765
38766 cat >>$CONFIG_STATUS <<\_ACEOF
38767 ## --------------------- ##
38768 ## M4sh Initialization.  ##
38769 ## --------------------- ##
38770
38771 # Be more Bourne compatible
38772 DUALCASE=1; export DUALCASE # for MKS sh
38773 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
38774   emulate sh
38775   NULLCMD=:
38776   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
38777   # is contrary to our usage.  Disable this feature.
38778   alias -g '${1+"$@"}'='"$@"'
38779   setopt NO_GLOB_SUBST
38780 else
38781   case `(set -o) 2>/dev/null` in
38782   *posix*) set -o posix ;;
38783 esac
38784
38785 fi
38786
38787
38788
38789
38790 # PATH needs CR
38791 # Avoid depending upon Character Ranges.
38792 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
38793 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38794 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
38795 as_cr_digits='0123456789'
38796 as_cr_alnum=$as_cr_Letters$as_cr_digits
38797
38798 # The user is always right.
38799 if test "${PATH_SEPARATOR+set}" != set; then
38800   echo "#! /bin/sh" >conf$$.sh
38801   echo  "exit 0"   >>conf$$.sh
38802   chmod +x conf$$.sh
38803   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
38804     PATH_SEPARATOR=';'
38805   else
38806     PATH_SEPARATOR=:
38807   fi
38808   rm -f conf$$.sh
38809 fi
38810
38811 # Support unset when possible.
38812 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
38813   as_unset=unset
38814 else
38815   as_unset=false
38816 fi
38817
38818
38819 # IFS
38820 # We need space, tab and new line, in precisely that order.  Quoting is
38821 # there to prevent editors from complaining about space-tab.
38822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
38823 # splitting by setting IFS to empty value.)
38824 as_nl='
38825 '
38826 IFS=" ""        $as_nl"
38827
38828 # Find who we are.  Look in the path if we contain no directory separator.
38829 case $0 in
38830   *[\\/]* ) as_myself=$0 ;;
38831   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38832 for as_dir in $PATH
38833 do
38834   IFS=$as_save_IFS
38835   test -z "$as_dir" && as_dir=.
38836   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
38837 done
38838 IFS=$as_save_IFS
38839
38840      ;;
38841 esac
38842 # We did not find ourselves, most probably we were run as `sh COMMAND'
38843 # in which case we are not to be found in the path.
38844 if test "x$as_myself" = x; then
38845   as_myself=$0
38846 fi
38847 if test ! -f "$as_myself"; then
38848   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
38849   { (exit 1); exit 1; }
38850 fi
38851
38852 # Work around bugs in pre-3.0 UWIN ksh.
38853 for as_var in ENV MAIL MAILPATH
38854 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38855 done
38856 PS1='$ '
38857 PS2='> '
38858 PS4='+ '
38859
38860 # NLS nuisances.
38861 for as_var in \
38862   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
38863   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
38864   LC_TELEPHONE LC_TIME
38865 do
38866   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
38867     eval $as_var=C; export $as_var
38868   else
38869     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
38870   fi
38871 done
38872
38873 # Required to use basename.
38874 if expr a : '\(a\)' >/dev/null 2>&1 &&
38875    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38876   as_expr=expr
38877 else
38878   as_expr=false
38879 fi
38880
38881 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
38882   as_basename=basename
38883 else
38884   as_basename=false
38885 fi
38886
38887
38888 # Name of the executable.
38889 as_me=`$as_basename -- "$0" ||
38890 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
38891          X"$0" : 'X\(//\)$' \| \
38892          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
38893 echo X/"$0" |
38894     sed '/^.*\/\([^/][^/]*\)\/*$/{
38895             s//\1/
38896             q
38897           }
38898           /^X\/\(\/\/\)$/{
38899             s//\1/
38900             q
38901           }
38902           /^X\/\(\/\).*/{
38903             s//\1/
38904             q
38905           }
38906           s/.*/./; q'`
38907
38908 # CDPATH.
38909 $as_unset CDPATH
38910
38911
38912
38913   as_lineno_1=$LINENO
38914   as_lineno_2=$LINENO
38915   test "x$as_lineno_1" != "x$as_lineno_2" &&
38916   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
38917
38918   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
38919   # uniformly replaced by the line number.  The first 'sed' inserts a
38920   # line-number line after each line using $LINENO; the second 'sed'
38921   # does the real work.  The second script uses 'N' to pair each
38922   # line-number line with the line containing $LINENO, and appends
38923   # trailing '-' during substitution so that $LINENO is not a special
38924   # case at line end.
38925   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
38926   # scripts with optimization help from Paolo Bonzini.  Blame Lee
38927   # E. McMahon (1931-1989) for sed's syntax.  :-)
38928   sed -n '
38929     p
38930     /[$]LINENO/=
38931   ' <$as_myself |
38932     sed '
38933       s/[$]LINENO.*/&-/
38934       t lineno
38935       b
38936       :lineno
38937       N
38938       :loop
38939       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
38940       t loop
38941       s/-\n.*//
38942     ' >$as_me.lineno &&
38943   chmod +x "$as_me.lineno" ||
38944     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
38945    { (exit 1); exit 1; }; }
38946
38947   # Don't try to exec as it changes $[0], causing all sort of problems
38948   # (the dirname of $[0] is not the place where we might find the
38949   # original and so on.  Autoconf is especially sensitive to this).
38950   . "./$as_me.lineno"
38951   # Exit status is that of the last command.
38952   exit
38953 }
38954
38955
38956 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
38957   as_dirname=dirname
38958 else
38959   as_dirname=false
38960 fi
38961
38962 ECHO_C= ECHO_N= ECHO_T=
38963 case `echo -n x` in
38964 -n*)
38965   case `echo 'x\c'` in
38966   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
38967   *)   ECHO_C='\c';;
38968   esac;;
38969 *)
38970   ECHO_N='-n';;
38971 esac
38972
38973 if expr a : '\(a\)' >/dev/null 2>&1 &&
38974    test "X`expr 00001 : '.*\(...\)'`" = X001; then
38975   as_expr=expr
38976 else
38977   as_expr=false
38978 fi
38979
38980 rm -f conf$$ conf$$.exe conf$$.file
38981 if test -d conf$$.dir; then
38982   rm -f conf$$.dir/conf$$.file
38983 else
38984   rm -f conf$$.dir
38985   mkdir conf$$.dir
38986 fi
38987 echo >conf$$.file
38988 if ln -s conf$$.file conf$$ 2>/dev/null; then
38989   as_ln_s='ln -s'
38990   # ... but there are two gotchas:
38991   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
38992   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
38993   # In both cases, we have to default to `cp -p'.
38994   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
38995     as_ln_s='cp -p'
38996 elif ln conf$$.file conf$$ 2>/dev/null; then
38997   as_ln_s=ln
38998 else
38999   as_ln_s='cp -p'
39000 fi
39001 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39002 rmdir conf$$.dir 2>/dev/null
39003
39004 if mkdir -p . 2>/dev/null; then
39005   as_mkdir_p=:
39006 else
39007   test -d ./-p && rmdir ./-p
39008   as_mkdir_p=false
39009 fi
39010
39011 if test -x / >/dev/null 2>&1; then
39012   as_test_x='test -x'
39013 else
39014   if ls -dL / >/dev/null 2>&1; then
39015     as_ls_L_option=L
39016   else
39017     as_ls_L_option=
39018   fi
39019   as_test_x='
39020     eval sh -c '\''
39021       if test -d "$1"; then
39022         test -d "$1/.";
39023       else
39024         case $1 in
39025         -*)set "./$1";;
39026         esac;
39027         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39028         ???[sx]*):;;*)false;;esac;fi
39029     '\'' sh
39030   '
39031 fi
39032 as_executable_p=$as_test_x
39033
39034 # Sed expression to map a string onto a valid CPP name.
39035 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39036
39037 # Sed expression to map a string onto a valid variable name.
39038 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39039
39040
39041 exec 6>&1
39042
39043 # Save the log message, to keep $[0] and so on meaningful, and to
39044 # report actual input values of CONFIG_FILES etc. instead of their
39045 # values after options handling.
39046 ac_log="
39047 This file was extended by $as_me, which was
39048 generated by GNU Autoconf 2.61.  Invocation command line was
39049
39050   CONFIG_FILES    = $CONFIG_FILES
39051   CONFIG_HEADERS  = $CONFIG_HEADERS
39052   CONFIG_LINKS    = $CONFIG_LINKS
39053   CONFIG_COMMANDS = $CONFIG_COMMANDS
39054   $ $0 $@
39055
39056 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39057 "
39058
39059 _ACEOF
39060
39061 cat >>$CONFIG_STATUS <<_ACEOF
39062 # Files that config.status was made for.
39063 config_files="$ac_config_files"
39064 config_headers="$ac_config_headers"
39065 config_commands="$ac_config_commands"
39066
39067 _ACEOF
39068
39069 cat >>$CONFIG_STATUS <<\_ACEOF
39070 ac_cs_usage="\
39071 \`$as_me' instantiates files from templates according to the
39072 current configuration.
39073
39074 Usage: $0 [OPTIONS] [FILE]...
39075
39076   -h, --help       print this help, then exit
39077   -V, --version    print version number and configuration settings, then exit
39078   -q, --quiet      do not print progress messages
39079   -d, --debug      don't remove temporary files
39080       --recheck    update $as_me by reconfiguring in the same conditions
39081   --file=FILE[:TEMPLATE]
39082                    instantiate the configuration file FILE
39083   --header=FILE[:TEMPLATE]
39084                    instantiate the configuration header FILE
39085
39086 Configuration files:
39087 $config_files
39088
39089 Configuration headers:
39090 $config_headers
39091
39092 Configuration commands:
39093 $config_commands
39094
39095 Report bugs to <bug-autoconf@gnu.org>."
39096
39097 _ACEOF
39098 cat >>$CONFIG_STATUS <<_ACEOF
39099 ac_cs_version="\\
39100 config.status
39101 configured by $0, generated by GNU Autoconf 2.61,
39102   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39103
39104 Copyright (C) 2006 Free Software Foundation, Inc.
39105 This config.status script is free software; the Free Software Foundation
39106 gives unlimited permission to copy, distribute and modify it."
39107
39108 ac_pwd='$ac_pwd'
39109 srcdir='$srcdir'
39110 INSTALL='$INSTALL'
39111 _ACEOF
39112
39113 cat >>$CONFIG_STATUS <<\_ACEOF
39114 # If no file are specified by the user, then we need to provide default
39115 # value.  By we need to know if files were specified by the user.
39116 ac_need_defaults=:
39117 while test $# != 0
39118 do
39119   case $1 in
39120   --*=*)
39121     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39122     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39123     ac_shift=:
39124     ;;
39125   *)
39126     ac_option=$1
39127     ac_optarg=$2
39128     ac_shift=shift
39129     ;;
39130   esac
39131
39132   case $ac_option in
39133   # Handling of the options.
39134   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39135     ac_cs_recheck=: ;;
39136   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39137     echo "$ac_cs_version"; exit ;;
39138   --debug | --debu | --deb | --de | --d | -d )
39139     debug=: ;;
39140   --file | --fil | --fi | --f )
39141     $ac_shift
39142     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39143     ac_need_defaults=false;;
39144   --header | --heade | --head | --hea )
39145     $ac_shift
39146     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39147     ac_need_defaults=false;;
39148   --he | --h)
39149     # Conflict between --help and --header
39150     { echo "$as_me: error: ambiguous option: $1
39151 Try \`$0 --help' for more information." >&2
39152    { (exit 1); exit 1; }; };;
39153   --help | --hel | -h )
39154     echo "$ac_cs_usage"; exit ;;
39155   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39156   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39157     ac_cs_silent=: ;;
39158
39159   # This is an error.
39160   -*) { echo "$as_me: error: unrecognized option: $1
39161 Try \`$0 --help' for more information." >&2
39162    { (exit 1); exit 1; }; } ;;
39163
39164   *) ac_config_targets="$ac_config_targets $1"
39165      ac_need_defaults=false ;;
39166
39167   esac
39168   shift
39169 done
39170
39171 ac_configure_extra_args=
39172
39173 if $ac_cs_silent; then
39174   exec 6>/dev/null
39175   ac_configure_extra_args="$ac_configure_extra_args --silent"
39176 fi
39177
39178 _ACEOF
39179 cat >>$CONFIG_STATUS <<_ACEOF
39180 if \$ac_cs_recheck; then
39181   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39182   CONFIG_SHELL=$SHELL
39183   export CONFIG_SHELL
39184   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39185 fi
39186
39187 _ACEOF
39188 cat >>$CONFIG_STATUS <<\_ACEOF
39189 exec 5>>config.log
39190 {
39191   echo
39192   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39193 ## Running $as_me. ##
39194 _ASBOX
39195   echo "$ac_log"
39196 } >&5
39197
39198 _ACEOF
39199 cat >>$CONFIG_STATUS <<_ACEOF
39200 #
39201 # INIT-COMMANDS
39202 #
39203 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39204
39205 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39206 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39207
39208
39209 _ACEOF
39210
39211 cat >>$CONFIG_STATUS <<\_ACEOF
39212
39213 # Handling of arguments.
39214 for ac_config_target in $ac_config_targets
39215 do
39216   case $ac_config_target in
39217     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39218     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39219     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39220     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39221     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39222     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39223     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39224     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39225     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39226     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39227     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39228     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39229     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39230     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39231     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39232     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39233     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39234     "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" ;;
39235     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39236     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39237     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39238     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39239     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39240     "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" ;;
39241     "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" ;;
39242     "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" ;;
39243     "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" ;;
39244     "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" ;;
39245     "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" ;;
39246     "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" ;;
39247     "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" ;;
39248     "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" ;;
39249     "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" ;;
39250     "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" ;;
39251     "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" ;;
39252     "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" ;;
39253     "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" ;;
39254     "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" ;;
39255     "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" ;;
39256     "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" ;;
39257     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39258     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39259     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39260     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39261     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39262
39263   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39264 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39265    { (exit 1); exit 1; }; };;
39266   esac
39267 done
39268
39269
39270 # If the user did not use the arguments to specify the items to instantiate,
39271 # then the envvar interface is used.  Set only those that are not.
39272 # We use the long form for the default assignment because of an extremely
39273 # bizarre bug on SunOS 4.1.3.
39274 if $ac_need_defaults; then
39275   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39276   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39277   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39278 fi
39279
39280 # Have a temporary directory for convenience.  Make it in the build tree
39281 # simply because there is no reason against having it here, and in addition,
39282 # creating and moving files from /tmp can sometimes cause problems.
39283 # Hook for its removal unless debugging.
39284 # Note that there is a small window in which the directory will not be cleaned:
39285 # after its creation but before its name has been assigned to `$tmp'.
39286 $debug ||
39287 {
39288   tmp=
39289   trap 'exit_status=$?
39290   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39291 ' 0
39292   trap '{ (exit 1); exit 1; }' 1 2 13 15
39293 }
39294 # Create a (secure) tmp directory for tmp files.
39295
39296 {
39297   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39298   test -n "$tmp" && test -d "$tmp"
39299 }  ||
39300 {
39301   tmp=./conf$$-$RANDOM
39302   (umask 077 && mkdir "$tmp")
39303 } ||
39304 {
39305    echo "$me: cannot create a temporary directory in ." >&2
39306    { (exit 1); exit 1; }
39307 }
39308
39309 #
39310 # Set up the sed scripts for CONFIG_FILES section.
39311 #
39312
39313 # No need to generate the scripts if there are no CONFIG_FILES.
39314 # This happens for instance when ./config.status config.h
39315 if test -n "$CONFIG_FILES"; then
39316
39317 _ACEOF
39318
39319
39320
39321 ac_delim='%!_!# '
39322 for ac_last_try in false false false false false :; do
39323   cat >conf$$subs.sed <<_ACEOF
39324 SHELL!$SHELL$ac_delim
39325 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39326 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39327 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39328 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39329 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39330 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39331 exec_prefix!$exec_prefix$ac_delim
39332 prefix!$prefix$ac_delim
39333 program_transform_name!$program_transform_name$ac_delim
39334 bindir!$bindir$ac_delim
39335 sbindir!$sbindir$ac_delim
39336 libexecdir!$libexecdir$ac_delim
39337 datarootdir!$datarootdir$ac_delim
39338 datadir!$datadir$ac_delim
39339 sysconfdir!$sysconfdir$ac_delim
39340 sharedstatedir!$sharedstatedir$ac_delim
39341 localstatedir!$localstatedir$ac_delim
39342 includedir!$includedir$ac_delim
39343 oldincludedir!$oldincludedir$ac_delim
39344 docdir!$docdir$ac_delim
39345 infodir!$infodir$ac_delim
39346 htmldir!$htmldir$ac_delim
39347 dvidir!$dvidir$ac_delim
39348 pdfdir!$pdfdir$ac_delim
39349 psdir!$psdir$ac_delim
39350 libdir!$libdir$ac_delim
39351 localedir!$localedir$ac_delim
39352 mandir!$mandir$ac_delim
39353 DEFS!$DEFS$ac_delim
39354 ECHO_C!$ECHO_C$ac_delim
39355 ECHO_N!$ECHO_N$ac_delim
39356 ECHO_T!$ECHO_T$ac_delim
39357 LIBS!$LIBS$ac_delim
39358 build_alias!$build_alias$ac_delim
39359 host_alias!$host_alias$ac_delim
39360 target_alias!$target_alias$ac_delim
39361 build!$build$ac_delim
39362 build_cpu!$build_cpu$ac_delim
39363 build_vendor!$build_vendor$ac_delim
39364 build_os!$build_os$ac_delim
39365 host!$host$ac_delim
39366 host_cpu!$host_cpu$ac_delim
39367 host_vendor!$host_vendor$ac_delim
39368 host_os!$host_os$ac_delim
39369 target!$target$ac_delim
39370 target_cpu!$target_cpu$ac_delim
39371 target_vendor!$target_vendor$ac_delim
39372 target_os!$target_os$ac_delim
39373 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39374 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39375 INSTALL_DATA!$INSTALL_DATA$ac_delim
39376 CYGPATH_W!$CYGPATH_W$ac_delim
39377 PACKAGE!$PACKAGE$ac_delim
39378 VERSION!$VERSION$ac_delim
39379 ACLOCAL!$ACLOCAL$ac_delim
39380 AUTOCONF!$AUTOCONF$ac_delim
39381 AUTOMAKE!$AUTOMAKE$ac_delim
39382 AUTOHEADER!$AUTOHEADER$ac_delim
39383 MAKEINFO!$MAKEINFO$ac_delim
39384 install_sh!$install_sh$ac_delim
39385 STRIP!$STRIP$ac_delim
39386 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
39387 mkdir_p!$mkdir_p$ac_delim
39388 AWK!$AWK$ac_delim
39389 SET_MAKE!$SET_MAKE$ac_delim
39390 am__leading_dot!$am__leading_dot$ac_delim
39391 AMTAR!$AMTAR$ac_delim
39392 am__tar!$am__tar$ac_delim
39393 am__untar!$am__untar$ac_delim
39394 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
39395 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
39396 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
39397 top_builddir!$top_builddir$ac_delim
39398 ldap_subdir!$ldap_subdir$ac_delim
39399 CC!$CC$ac_delim
39400 AR!$AR$ac_delim
39401 CFLAGS!$CFLAGS$ac_delim
39402 LDFLAGS!$LDFLAGS$ac_delim
39403 CPPFLAGS!$CPPFLAGS$ac_delim
39404 ac_ct_CC!$ac_ct_CC$ac_delim
39405 EXEEXT!$EXEEXT$ac_delim
39406 OBJEXT!$OBJEXT$ac_delim
39407 DEPDIR!$DEPDIR$ac_delim
39408 am__include!$am__include$ac_delim
39409 am__quote!$am__quote$ac_delim
39410 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
39411 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
39412 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
39413 CCDEPMODE!$CCDEPMODE$ac_delim
39414 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
39415 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
39416 GREP!$GREP$ac_delim
39417 EGREP!$EGREP$ac_delim
39418 LN_S!$LN_S$ac_delim
39419 ECHO!$ECHO$ac_delim
39420 RANLIB!$RANLIB$ac_delim
39421 _ACEOF
39422
39423   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
39424     break
39425   elif $ac_last_try; then
39426     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39427 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39428    { (exit 1); exit 1; }; }
39429   else
39430     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39431   fi
39432 done
39433
39434 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39435 if test -n "$ac_eof"; then
39436   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39437   ac_eof=`expr $ac_eof + 1`
39438 fi
39439
39440 cat >>$CONFIG_STATUS <<_ACEOF
39441 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
39442 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39443 _ACEOF
39444 sed '
39445 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39446 s/^/s,@/; s/!/@,|#_!!_#|/
39447 :n
39448 t n
39449 s/'"$ac_delim"'$/,g/; t
39450 s/$/\\/; p
39451 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39452 ' >>$CONFIG_STATUS <conf$$subs.sed
39453 rm -f conf$$subs.sed
39454 cat >>$CONFIG_STATUS <<_ACEOF
39455 CEOF$ac_eof
39456 _ACEOF
39457
39458
39459 ac_delim='%!_!# '
39460 for ac_last_try in false false false false false :; do
39461   cat >conf$$subs.sed <<_ACEOF
39462 DLLTOOL!$DLLTOOL$ac_delim
39463 AS!$AS$ac_delim
39464 OBJDUMP!$OBJDUMP$ac_delim
39465 CPP!$CPP$ac_delim
39466 LIBTOOL!$LIBTOOL$ac_delim
39467 PERLBIN!$PERLBIN$ac_delim
39468 OL_MKDEP!$OL_MKDEP$ac_delim
39469 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
39470 LTSTATIC!$LTSTATIC$ac_delim
39471 MYSQL!$MYSQL$ac_delim
39472 LIBOBJS!$LIBOBJS$ac_delim
39473 LIBSRCS!$LIBSRCS$ac_delim
39474 PLAT!$PLAT$ac_delim
39475 WITH_SASL!$WITH_SASL$ac_delim
39476 WITH_TLS!$WITH_TLS$ac_delim
39477 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
39478 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
39479 BUILD_THREAD!$BUILD_THREAD$ac_delim
39480 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
39481 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
39482 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
39483 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
39484 BUILD_BDB!$BUILD_BDB$ac_delim
39485 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
39486 BUILD_HDB!$BUILD_HDB$ac_delim
39487 BUILD_LDAP!$BUILD_LDAP$ac_delim
39488 BUILD_META!$BUILD_META$ac_delim
39489 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
39490 BUILD_NDB!$BUILD_NDB$ac_delim
39491 BUILD_NULL!$BUILD_NULL$ac_delim
39492 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
39493 BUILD_RELAY!$BUILD_RELAY$ac_delim
39494 BUILD_PERL!$BUILD_PERL$ac_delim
39495 BUILD_SHELL!$BUILD_SHELL$ac_delim
39496 BUILD_SOCK!$BUILD_SOCK$ac_delim
39497 BUILD_SQL!$BUILD_SQL$ac_delim
39498 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
39499 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
39500 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
39501 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
39502 BUILD_DDS!$BUILD_DDS$ac_delim
39503 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
39504 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
39505 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
39506 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
39507 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
39508 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
39509 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
39510 BUILD_REFINT!$BUILD_REFINT$ac_delim
39511 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
39512 BUILD_RWM!$BUILD_RWM$ac_delim
39513 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
39514 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
39515 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
39516 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
39517 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
39518 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
39519 LDAP_LIBS!$LDAP_LIBS$ac_delim
39520 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
39521 BDB_LIBS!$BDB_LIBS$ac_delim
39522 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
39523 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
39524 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
39525 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
39526 WRAP_LIBS!$WRAP_LIBS$ac_delim
39527 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
39528 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
39529 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
39530 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
39531 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
39532 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
39533 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
39534 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
39535 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
39536 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
39537 KRB4_LIBS!$KRB4_LIBS$ac_delim
39538 KRB5_LIBS!$KRB5_LIBS$ac_delim
39539 SASL_LIBS!$SASL_LIBS$ac_delim
39540 TLS_LIBS!$TLS_LIBS$ac_delim
39541 MODULES_LIBS!$MODULES_LIBS$ac_delim
39542 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
39543 LIBSLAPI!$LIBSLAPI$ac_delim
39544 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
39545 AUTH_LIBS!$AUTH_LIBS$ac_delim
39546 ICU_LIBS!$ICU_LIBS$ac_delim
39547 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
39548 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
39549 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
39550 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
39551 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
39552 LTLIBOBJS!$LTLIBOBJS$ac_delim
39553 _ACEOF
39554
39555   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
39556     break
39557   elif $ac_last_try; then
39558     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
39559 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
39560    { (exit 1); exit 1; }; }
39561   else
39562     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
39563   fi
39564 done
39565
39566 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
39567 if test -n "$ac_eof"; then
39568   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
39569   ac_eof=`expr $ac_eof + 1`
39570 fi
39571
39572 cat >>$CONFIG_STATUS <<_ACEOF
39573 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
39574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
39575 _ACEOF
39576 sed '
39577 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
39578 s/^/s,@/; s/!/@,|#_!!_#|/
39579 :n
39580 t n
39581 s/'"$ac_delim"'$/,g/; t
39582 s/$/\\/; p
39583 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
39584 ' >>$CONFIG_STATUS <conf$$subs.sed
39585 rm -f conf$$subs.sed
39586 cat >>$CONFIG_STATUS <<_ACEOF
39587 :end
39588 s/|#_!!_#|//g
39589 CEOF$ac_eof
39590 _ACEOF
39591
39592
39593 # VPATH may cause trouble with some makes, so we remove $(srcdir),
39594 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
39595 # trailing colons and then remove the whole line if VPATH becomes empty
39596 # (actually we leave an empty line to preserve line numbers).
39597 if test "x$srcdir" = x.; then
39598   ac_vpsub='/^[  ]*VPATH[        ]*=/{
39599 s/:*\$(srcdir):*/:/
39600 s/:*\${srcdir}:*/:/
39601 s/:*@srcdir@:*/:/
39602 s/^\([^=]*=[     ]*\):*/\1/
39603 s/:*$//
39604 s/^[^=]*=[       ]*$//
39605 }'
39606 fi
39607
39608 cat >>$CONFIG_STATUS <<\_ACEOF
39609 fi # test -n "$CONFIG_FILES"
39610
39611
39612 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
39613 do
39614   case $ac_tag in
39615   :[FHLC]) ac_mode=$ac_tag; continue;;
39616   esac
39617   case $ac_mode$ac_tag in
39618   :[FHL]*:*);;
39619   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
39620 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
39621    { (exit 1); exit 1; }; };;
39622   :[FH]-) ac_tag=-:-;;
39623   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
39624   esac
39625   ac_save_IFS=$IFS
39626   IFS=:
39627   set x $ac_tag
39628   IFS=$ac_save_IFS
39629   shift
39630   ac_file=$1
39631   shift
39632
39633   case $ac_mode in
39634   :L) ac_source=$1;;
39635   :[FH])
39636     ac_file_inputs=
39637     for ac_f
39638     do
39639       case $ac_f in
39640       -) ac_f="$tmp/stdin";;
39641       *) # Look for the file first in the build tree, then in the source tree
39642          # (if the path is not absolute).  The absolute path cannot be DOS-style,
39643          # because $ac_f cannot contain `:'.
39644          test -f "$ac_f" ||
39645            case $ac_f in
39646            [\\/$]*) false;;
39647            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
39648            esac ||
39649            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
39650 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
39651    { (exit 1); exit 1; }; };;
39652       esac
39653       ac_file_inputs="$ac_file_inputs $ac_f"
39654     done
39655
39656     # Let's still pretend it is `configure' which instantiates (i.e., don't
39657     # use $as_me), people would be surprised to read:
39658     #    /* config.h.  Generated by config.status.  */
39659     configure_input="Generated from "`IFS=:
39660           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
39661     if test x"$ac_file" != x-; then
39662       configure_input="$ac_file.  $configure_input"
39663       { echo "$as_me:$LINENO: creating $ac_file" >&5
39664 echo "$as_me: creating $ac_file" >&6;}
39665     fi
39666
39667     case $ac_tag in
39668     *:-:* | *:-) cat >"$tmp/stdin";;
39669     esac
39670     ;;
39671   esac
39672
39673   ac_dir=`$as_dirname -- "$ac_file" ||
39674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39675          X"$ac_file" : 'X\(//\)[^/]' \| \
39676          X"$ac_file" : 'X\(//\)$' \| \
39677          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39678 echo X"$ac_file" |
39679     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39680             s//\1/
39681             q
39682           }
39683           /^X\(\/\/\)[^/].*/{
39684             s//\1/
39685             q
39686           }
39687           /^X\(\/\/\)$/{
39688             s//\1/
39689             q
39690           }
39691           /^X\(\/\).*/{
39692             s//\1/
39693             q
39694           }
39695           s/.*/./; q'`
39696   { as_dir="$ac_dir"
39697   case $as_dir in #(
39698   -*) as_dir=./$as_dir;;
39699   esac
39700   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
39701     as_dirs=
39702     while :; do
39703       case $as_dir in #(
39704       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
39705       *) as_qdir=$as_dir;;
39706       esac
39707       as_dirs="'$as_qdir' $as_dirs"
39708       as_dir=`$as_dirname -- "$as_dir" ||
39709 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39710          X"$as_dir" : 'X\(//\)[^/]' \| \
39711          X"$as_dir" : 'X\(//\)$' \| \
39712          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
39713 echo X"$as_dir" |
39714     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39715             s//\1/
39716             q
39717           }
39718           /^X\(\/\/\)[^/].*/{
39719             s//\1/
39720             q
39721           }
39722           /^X\(\/\/\)$/{
39723             s//\1/
39724             q
39725           }
39726           /^X\(\/\).*/{
39727             s//\1/
39728             q
39729           }
39730           s/.*/./; q'`
39731       test -d "$as_dir" && break
39732     done
39733     test -z "$as_dirs" || eval "mkdir $as_dirs"
39734   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
39735 echo "$as_me: error: cannot create directory $as_dir" >&2;}
39736    { (exit 1); exit 1; }; }; }
39737   ac_builddir=.
39738
39739 case "$ac_dir" in
39740 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39741 *)
39742   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
39743   # A ".." for each directory in $ac_dir_suffix.
39744   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
39745   case $ac_top_builddir_sub in
39746   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39747   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39748   esac ;;
39749 esac
39750 ac_abs_top_builddir=$ac_pwd
39751 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39752 # for backward compatibility:
39753 ac_top_builddir=$ac_top_build_prefix
39754
39755 case $srcdir in
39756   .)  # We are building in place.
39757     ac_srcdir=.
39758     ac_top_srcdir=$ac_top_builddir_sub
39759     ac_abs_top_srcdir=$ac_pwd ;;
39760   [\\/]* | ?:[\\/]* )  # Absolute name.
39761     ac_srcdir=$srcdir$ac_dir_suffix;
39762     ac_top_srcdir=$srcdir
39763     ac_abs_top_srcdir=$srcdir ;;
39764   *) # Relative name.
39765     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39766     ac_top_srcdir=$ac_top_build_prefix$srcdir
39767     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39768 esac
39769 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39770
39771
39772   case $ac_mode in
39773   :F)
39774   #
39775   # CONFIG_FILE
39776   #
39777
39778   case $INSTALL in
39779   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
39780   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
39781   esac
39782 _ACEOF
39783
39784 cat >>$CONFIG_STATUS <<\_ACEOF
39785 # If the template does not know about datarootdir, expand it.
39786 # FIXME: This hack should be removed a few years after 2.60.
39787 ac_datarootdir_hack=; ac_datarootdir_seen=
39788
39789 case `sed -n '/datarootdir/ {
39790   p
39791   q
39792 }
39793 /@datadir@/p
39794 /@docdir@/p
39795 /@infodir@/p
39796 /@localedir@/p
39797 /@mandir@/p
39798 ' $ac_file_inputs` in
39799 *datarootdir*) ac_datarootdir_seen=yes;;
39800 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
39801   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39802 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
39803 _ACEOF
39804 cat >>$CONFIG_STATUS <<_ACEOF
39805   ac_datarootdir_hack='
39806   s&@datadir@&$datadir&g
39807   s&@docdir@&$docdir&g
39808   s&@infodir@&$infodir&g
39809   s&@localedir@&$localedir&g
39810   s&@mandir@&$mandir&g
39811     s&\\\${datarootdir}&$datarootdir&g' ;;
39812 esac
39813 _ACEOF
39814
39815 # Neutralize VPATH when `$srcdir' = `.'.
39816 # Shell code in configure.ac might set extrasub.
39817 # FIXME: do we really want to maintain this feature?
39818 cat >>$CONFIG_STATUS <<_ACEOF
39819   sed "$ac_vpsub
39820 $extrasub
39821 _ACEOF
39822 cat >>$CONFIG_STATUS <<\_ACEOF
39823 :t
39824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39825 s&@configure_input@&$configure_input&;t t
39826 s&@top_builddir@&$ac_top_builddir_sub&;t t
39827 s&@srcdir@&$ac_srcdir&;t t
39828 s&@abs_srcdir@&$ac_abs_srcdir&;t t
39829 s&@top_srcdir@&$ac_top_srcdir&;t t
39830 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
39831 s&@builddir@&$ac_builddir&;t t
39832 s&@abs_builddir@&$ac_abs_builddir&;t t
39833 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
39834 s&@INSTALL@&$ac_INSTALL&;t t
39835 $ac_datarootdir_hack
39836 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
39837
39838 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
39839   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
39840   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
39841   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39842 which seems to be undefined.  Please make sure it is defined." >&5
39843 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
39844 which seems to be undefined.  Please make sure it is defined." >&2;}
39845
39846   rm -f "$tmp/stdin"
39847   case $ac_file in
39848   -) cat "$tmp/out"; rm -f "$tmp/out";;
39849   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
39850   esac
39851  ;;
39852   :H)
39853   #
39854   # CONFIG_HEADER
39855   #
39856 _ACEOF
39857
39858 # Transform confdefs.h into a sed script `conftest.defines', that
39859 # substitutes the proper values into config.h.in to produce config.h.
39860 rm -f conftest.defines conftest.tail
39861 # First, append a space to every undef/define line, to ease matching.
39862 echo 's/$/ /' >conftest.defines
39863 # Then, protect against being on the right side of a sed subst, or in
39864 # an unquoted here document, in config.status.  If some macros were
39865 # called several times there might be several #defines for the same
39866 # symbol, which is useless.  But do not sort them, since the last
39867 # AC_DEFINE must be honored.
39868 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
39869 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
39870 # NAME is the cpp macro being defined, VALUE is the value it is being given.
39871 # PARAMS is the parameter list in the macro definition--in most cases, it's
39872 # just an empty string.
39873 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
39874 ac_dB='\\)[      (].*,\\1define\\2'
39875 ac_dC=' '
39876 ac_dD=' ,'
39877
39878 uniq confdefs.h |
39879   sed -n '
39880         t rset
39881         :rset
39882         s/^[     ]*#[    ]*define[       ][      ]*//
39883         t ok
39884         d
39885         :ok
39886         s/[\\&,]/\\&/g
39887         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
39888         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
39889   ' >>conftest.defines
39890
39891 # Remove the space that was appended to ease matching.
39892 # Then replace #undef with comments.  This is necessary, for
39893 # example, in the case of _POSIX_SOURCE, which is predefined and required
39894 # on some systems where configure will not decide to define it.
39895 # (The regexp can be short, since the line contains either #define or #undef.)
39896 echo 's/ $//
39897 s,^[     #]*u.*,/* & */,' >>conftest.defines
39898
39899 # Break up conftest.defines:
39900 ac_max_sed_lines=50
39901
39902 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
39903 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
39904 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
39905 # et cetera.
39906 ac_in='$ac_file_inputs'
39907 ac_out='"$tmp/out1"'
39908 ac_nxt='"$tmp/out2"'
39909
39910 while :
39911 do
39912   # Write a here document:
39913     cat >>$CONFIG_STATUS <<_ACEOF
39914     # First, check the format of the line:
39915     cat >"\$tmp/defines.sed" <<\\CEOF
39916 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
39917 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
39918 b
39919 :def
39920 _ACEOF
39921   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
39922   echo 'CEOF
39923     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
39924   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
39925   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
39926   grep . conftest.tail >/dev/null || break
39927   rm -f conftest.defines
39928   mv conftest.tail conftest.defines
39929 done
39930 rm -f conftest.defines conftest.tail
39931
39932 echo "ac_result=$ac_in" >>$CONFIG_STATUS
39933 cat >>$CONFIG_STATUS <<\_ACEOF
39934   if test x"$ac_file" != x-; then
39935     echo "/* $configure_input  */" >"$tmp/config.h"
39936     cat "$ac_result" >>"$tmp/config.h"
39937     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
39938       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
39939 echo "$as_me: $ac_file is unchanged" >&6;}
39940     else
39941       rm -f $ac_file
39942       mv "$tmp/config.h" $ac_file
39943     fi
39944   else
39945     echo "/* $configure_input  */"
39946     cat "$ac_result"
39947   fi
39948   rm -f "$tmp/out12"
39949 # Compute $ac_file's index in $config_headers.
39950 _am_stamp_count=1
39951 for _am_header in $config_headers :; do
39952   case $_am_header in
39953     $ac_file | $ac_file:* )
39954       break ;;
39955     * )
39956       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
39957   esac
39958 done
39959 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
39960 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39961          X$ac_file : 'X\(//\)[^/]' \| \
39962          X$ac_file : 'X\(//\)$' \| \
39963          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
39964 echo X$ac_file |
39965     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39966             s//\1/
39967             q
39968           }
39969           /^X\(\/\/\)[^/].*/{
39970             s//\1/
39971             q
39972           }
39973           /^X\(\/\/\)$/{
39974             s//\1/
39975             q
39976           }
39977           /^X\(\/\).*/{
39978             s//\1/
39979             q
39980           }
39981           s/.*/./; q'`/stamp-h$_am_stamp_count
39982  ;;
39983
39984   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
39985 echo "$as_me: executing $ac_file commands" >&6;}
39986  ;;
39987   esac
39988
39989
39990   case $ac_file$ac_mode in
39991     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
39992   # Strip MF so we end up with the name of the file.
39993   mf=`echo "$mf" | sed -e 's/:.*$//'`
39994   # Check whether this is an Automake generated Makefile or not.
39995   # We used to match only the files named `Makefile.in', but
39996   # some people rename them; so instead we look at the file content.
39997   # Grep'ing the first line is not enough: some people post-process
39998   # each Makefile.in and add a new line on top of each file to say so.
39999   # So let's grep whole file.
40000   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40001     dirpart=`$as_dirname -- "$mf" ||
40002 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40003          X"$mf" : 'X\(//\)[^/]' \| \
40004          X"$mf" : 'X\(//\)$' \| \
40005          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40006 echo X"$mf" |
40007     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40008             s//\1/
40009             q
40010           }
40011           /^X\(\/\/\)[^/].*/{
40012             s//\1/
40013             q
40014           }
40015           /^X\(\/\/\)$/{
40016             s//\1/
40017             q
40018           }
40019           /^X\(\/\).*/{
40020             s//\1/
40021             q
40022           }
40023           s/.*/./; q'`
40024   else
40025     continue
40026   fi
40027   # Extract the definition of DEPDIR, am__include, and am__quote
40028   # from the Makefile without running `make'.
40029   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40030   test -z "$DEPDIR" && continue
40031   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40032   test -z "am__include" && continue
40033   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40034   # When using ansi2knr, U may be empty or an underscore; expand it
40035   U=`sed -n 's/^U = //p' < "$mf"`
40036   # Find all dependency output files, they are included files with
40037   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40038   # simplest approach to changing $(DEPDIR) to its actual value in the
40039   # expansion.
40040   for file in `sed -n "
40041     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40042        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40043     # Make sure the directory exists.
40044     test -f "$dirpart/$file" && continue
40045     fdir=`$as_dirname -- "$file" ||
40046 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40047          X"$file" : 'X\(//\)[^/]' \| \
40048          X"$file" : 'X\(//\)$' \| \
40049          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40050 echo X"$file" |
40051     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40052             s//\1/
40053             q
40054           }
40055           /^X\(\/\/\)[^/].*/{
40056             s//\1/
40057             q
40058           }
40059           /^X\(\/\/\)$/{
40060             s//\1/
40061             q
40062           }
40063           /^X\(\/\).*/{
40064             s//\1/
40065             q
40066           }
40067           s/.*/./; q'`
40068     { as_dir=$dirpart/$fdir
40069   case $as_dir in #(
40070   -*) as_dir=./$as_dir;;
40071   esac
40072   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40073     as_dirs=
40074     while :; do
40075       case $as_dir in #(
40076       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40077       *) as_qdir=$as_dir;;
40078       esac
40079       as_dirs="'$as_qdir' $as_dirs"
40080       as_dir=`$as_dirname -- "$as_dir" ||
40081 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40082          X"$as_dir" : 'X\(//\)[^/]' \| \
40083          X"$as_dir" : 'X\(//\)$' \| \
40084          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40085 echo X"$as_dir" |
40086     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40087             s//\1/
40088             q
40089           }
40090           /^X\(\/\/\)[^/].*/{
40091             s//\1/
40092             q
40093           }
40094           /^X\(\/\/\)$/{
40095             s//\1/
40096             q
40097           }
40098           /^X\(\/\).*/{
40099             s//\1/
40100             q
40101           }
40102           s/.*/./; q'`
40103       test -d "$as_dir" && break
40104     done
40105     test -z "$as_dirs" || eval "mkdir $as_dirs"
40106   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40107 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40108    { (exit 1); exit 1; }; }; }
40109     # echo "creating $dirpart/$file"
40110     echo '# dummy' > "$dirpart/$file"
40111   done
40112 done
40113  ;;
40114     "default":C)
40115 chmod +x tests/run
40116 date > stamp-h
40117 BACKENDSC="servers/slapd/backends.c"
40118 echo "Making $BACKENDSC"
40119 rm -f $BACKENDSC
40120 cat > $BACKENDSC << ENDX
40121 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40122  *
40123  * Copyright 1998-2009 The OpenLDAP Foundation.
40124  * All rights reserved.
40125  *
40126  * Redistribution and use in source and binary forms, with or without
40127  * modification, are permitted only as authorized by the OpenLDAP
40128  * Public License.
40129  *
40130  * A copy of this license is available in the file LICENSE in the
40131  * top-level directory of the distribution or, alternatively, at
40132  * <http://www.OpenLDAP.org/license.html>.
40133  */
40134 /* This file is automatically generated by configure; please do not edit. */
40135
40136 #include "portable.h"
40137 #include "slap.h"
40138
40139 ENDX
40140 if test "${STATIC_BACKENDS}"; then
40141         for b in config ${STATIC_BACKENDS}; do
40142                 bb=`echo "${b}" | sed -e 's/back-//'`
40143                 cat >> $BACKENDSC << ENDX
40144 extern BI_init ${bb}_back_initialize;
40145 ENDX
40146         done
40147
40148         cat >> $BACKENDSC << ENDX
40149
40150 BackendInfo slap_binfo[] = {
40151 ENDX
40152
40153         for b in config ${STATIC_BACKENDS}; do
40154                 bb=`echo "${b}" | sed -e 's/back-//'`
40155                 echo "    Add ${bb} ..."
40156                 cat >> $BACKENDSC << ENDX
40157         { "${bb}", ${bb}_back_initialize },
40158 ENDX
40159         done
40160
40161         cat >> $BACKENDSC << ENDX
40162         { NULL, NULL },
40163 };
40164
40165 /* end of generated file */
40166 ENDX
40167 fi
40168 OVERLAYSC="servers/slapd/overlays/statover.c"
40169 echo "Making $OVERLAYSC"
40170 rm -f $OVERLAYSC
40171 cat > $OVERLAYSC << ENDX
40172 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40173  *
40174  * Copyright 1998-2009 The OpenLDAP Foundation.
40175  * All rights reserved.
40176  *
40177  * Redistribution and use in source and binary forms, with or without
40178  * modification, are permitted only as authorized by the OpenLDAP
40179  * Public License.
40180  *
40181  * A copy of this license is available in the file LICENSE in the
40182  * top-level directory of the distribution or, alternatively, at
40183  * <http://www.OpenLDAP.org/license.html>.
40184  */
40185 /* This file is automatically generated by configure; please do not edit. */
40186
40187 #include "portable.h"
40188 #include "slap.h"
40189
40190 ENDX
40191 if test "${STATIC_OVERLAYS}"; then
40192         for o in ${STATIC_OVERLAYS}; do
40193                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40194                 cat >> $OVERLAYSC << ENDX
40195 extern OV_init ${oo}_initialize;
40196 ENDX
40197         done
40198 fi
40199
40200 cat >> $OVERLAYSC << ENDX
40201
40202 OverlayInit slap_oinfo[] = {
40203 ENDX
40204
40205 if test "${STATIC_OVERLAYS}"; then
40206         for o in ${STATIC_OVERLAYS}; do
40207                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40208                 echo "    Add ${oo} ..."
40209                 cat >> $OVERLAYSC << ENDX
40210         { "${oo}", ${oo}_initialize },
40211 ENDX
40212         done
40213 fi
40214
40215         cat >> $OVERLAYSC << ENDX
40216         { NULL, NULL },
40217 };
40218
40219 /* end of generated file */
40220 ENDX
40221
40222 if test "${ol_cv_mkdep}" = no; then
40223         echo '(Do not "make depend"; we do not know how to build dependencies)'
40224 else
40225         echo 'Please run "make depend" to build dependencies'
40226 fi
40227  ;;
40228
40229   esac
40230 done # for ac_tag
40231
40232
40233 { (exit 0); exit 0; }
40234 _ACEOF
40235 chmod +x $CONFIG_STATUS
40236 ac_clean_files=$ac_clean_files_save
40237
40238
40239 # configure is writing to config.log, and then calls config.status.
40240 # config.status does its own redirection, appending to config.log.
40241 # Unfortunately, on DOS this fails, as config.log is still kept open
40242 # by configure, so config.status won't be able to write to it; its
40243 # output is simply discarded.  So we exec the FD to /dev/null,
40244 # effectively closing config.log, so it can be properly (re)opened and
40245 # appended to by config.status.  When coming back to configure, we
40246 # need to make the FD available again.
40247 if test "$no_create" != yes; then
40248   ac_cs_success=:
40249   ac_config_status_args=
40250   test "$silent" = yes &&
40251     ac_config_status_args="$ac_config_status_args --quiet"
40252   exec 5>/dev/null
40253   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40254   exec 5>>config.log
40255   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40256   # would make configure fail if this is the last instruction.
40257   $ac_cs_success || { (exit 1); exit 1; }
40258 fi
40259