]> git.sur5r.net Git - openldap/blob - configure
ITS#5909
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.631.2.21 2009/01/26 21:24:56 quanah Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2009 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20   emulate sh
21   NULLCMD=:
22   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in
28   *posix*) set -o posix ;;
29 esac
30
31 fi
32
33
34
35
36 # PATH needs CR
37 # Avoid depending upon Character Ranges.
38 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
40 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
41 as_cr_digits='0123456789'
42 as_cr_alnum=$as_cr_Letters$as_cr_digits
43
44 # The user is always right.
45 if test "${PATH_SEPARATOR+set}" != set; then
46   echo "#! /bin/sh" >conf$$.sh
47   echo  "exit 0"   >>conf$$.sh
48   chmod +x conf$$.sh
49   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
50     PATH_SEPARATOR=';'
51   else
52     PATH_SEPARATOR=:
53   fi
54   rm -f conf$$.sh
55 fi
56
57 # Support unset when possible.
58 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
59   as_unset=unset
60 else
61   as_unset=false
62 fi
63
64
65 # IFS
66 # We need space, tab and new line, in precisely that order.  Quoting is
67 # there to prevent editors from complaining about space-tab.
68 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
69 # splitting by setting IFS to empty value.)
70 as_nl='
71 '
72 IFS=" ""        $as_nl"
73
74 # Find who we are.  Look in the path if we contain no directory separator.
75 case $0 in
76   *[\\/]* ) as_myself=$0 ;;
77   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
78 for as_dir in $PATH
79 do
80   IFS=$as_save_IFS
81   test -z "$as_dir" && as_dir=.
82   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
83 done
84 IFS=$as_save_IFS
85
86      ;;
87 esac
88 # We did not find ourselves, most probably we were run as `sh COMMAND'
89 # in which case we are not to be found in the path.
90 if test "x$as_myself" = x; then
91   as_myself=$0
92 fi
93 if test ! -f "$as_myself"; then
94   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
95   { (exit 1); exit 1; }
96 fi
97
98 # Work around bugs in pre-3.0 UWIN ksh.
99 for as_var in ENV MAIL MAILPATH
100 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
101 done
102 PS1='$ '
103 PS2='> '
104 PS4='+ '
105
106 # NLS nuisances.
107 for as_var in \
108   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
109   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110   LC_TELEPHONE LC_TIME
111 do
112   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
113     eval $as_var=C; export $as_var
114   else
115     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116   fi
117 done
118
119 # Required to use basename.
120 if expr a : '\(a\)' >/dev/null 2>&1 &&
121    test "X`expr 00001 : '.*\(...\)'`" = X001; then
122   as_expr=expr
123 else
124   as_expr=false
125 fi
126
127 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
128   as_basename=basename
129 else
130   as_basename=false
131 fi
132
133
134 # Name of the executable.
135 as_me=`$as_basename -- "$0" ||
136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
137          X"$0" : 'X\(//\)$' \| \
138          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
139 echo X/"$0" |
140     sed '/^.*\/\([^/][^/]*\)\/*$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\/\)$/{
145             s//\1/
146             q
147           }
148           /^X\/\(\/\).*/{
149             s//\1/
150             q
151           }
152           s/.*/./; q'`
153
154 # CDPATH.
155 $as_unset CDPATH
156
157
158 if test "x$CONFIG_SHELL" = x; then
159   if (eval ":") 2>/dev/null; then
160   as_have_required=yes
161 else
162   as_have_required=no
163 fi
164
165   if test $as_have_required = yes &&     (eval ":
166 (as_func_return () {
167   (exit \$1)
168 }
169 as_func_success () {
170   as_func_return 0
171 }
172 as_func_failure () {
173   as_func_return 1
174 }
175 as_func_ret_success () {
176   return 0
177 }
178 as_func_ret_failure () {
179   return 1
180 }
181
182 exitcode=0
183 if as_func_success; then
184   :
185 else
186   exitcode=1
187   echo as_func_success failed.
188 fi
189
190 if as_func_failure; then
191   exitcode=1
192   echo as_func_failure succeeded.
193 fi
194
195 if as_func_ret_success; then
196   :
197 else
198   exitcode=1
199   echo as_func_ret_success failed.
200 fi
201
202 if as_func_ret_failure; then
203   exitcode=1
204   echo as_func_ret_failure succeeded.
205 fi
206
207 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
208   :
209 else
210   exitcode=1
211   echo positional parameters were not saved.
212 fi
213
214 test \$exitcode = 0) || { (exit 1); exit 1; }
215
216 (
217   as_lineno_1=\$LINENO
218   as_lineno_2=\$LINENO
219   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
220   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
221 ") 2> /dev/null; then
222   :
223 else
224   as_candidate_shells=
225     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
226 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227 do
228   IFS=$as_save_IFS
229   test -z "$as_dir" && as_dir=.
230   case $as_dir in
231          /*)
232            for as_base in sh bash ksh sh5; do
233              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
234            done;;
235        esac
236 done
237 IFS=$as_save_IFS
238
239
240       for as_shell in $as_candidate_shells $SHELL; do
241          # Try only shells that exist, to save several forks.
242          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
243                 { ("$as_shell") 2> /dev/null <<\_ASEOF
244 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245   emulate sh
246   NULLCMD=:
247   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
248   # is contrary to our usage.  Disable this feature.
249   alias -g '${1+"$@"}'='"$@"'
250   setopt NO_GLOB_SUBST
251 else
252   case `(set -o) 2>/dev/null` in
253   *posix*) set -o posix ;;
254 esac
255
256 fi
257
258
259 :
260 _ASEOF
261 }; then
262   CONFIG_SHELL=$as_shell
263                as_have_required=yes
264                if { "$as_shell" 2> /dev/null <<\_ASEOF
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266   emulate sh
267   NULLCMD=:
268   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
269   # is contrary to our usage.  Disable this feature.
270   alias -g '${1+"$@"}'='"$@"'
271   setopt NO_GLOB_SUBST
272 else
273   case `(set -o) 2>/dev/null` in
274   *posix*) set -o posix ;;
275 esac
276
277 fi
278
279
280 :
281 (as_func_return () {
282   (exit $1)
283 }
284 as_func_success () {
285   as_func_return 0
286 }
287 as_func_failure () {
288   as_func_return 1
289 }
290 as_func_ret_success () {
291   return 0
292 }
293 as_func_ret_failure () {
294   return 1
295 }
296
297 exitcode=0
298 if as_func_success; then
299   :
300 else
301   exitcode=1
302   echo as_func_success failed.
303 fi
304
305 if as_func_failure; then
306   exitcode=1
307   echo as_func_failure succeeded.
308 fi
309
310 if as_func_ret_success; then
311   :
312 else
313   exitcode=1
314   echo as_func_ret_success failed.
315 fi
316
317 if as_func_ret_failure; then
318   exitcode=1
319   echo as_func_ret_failure succeeded.
320 fi
321
322 if ( set x; as_func_ret_success y && test x = "$1" ); then
323   :
324 else
325   exitcode=1
326   echo positional parameters were not saved.
327 fi
328
329 test $exitcode = 0) || { (exit 1); exit 1; }
330
331 (
332   as_lineno_1=$LINENO
333   as_lineno_2=$LINENO
334   test "x$as_lineno_1" != "x$as_lineno_2" &&
335   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
336
337 _ASEOF
338 }; then
339   break
340 fi
341
342 fi
343
344       done
345
346       if test "x$CONFIG_SHELL" != x; then
347   for as_var in BASH_ENV ENV
348         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349         done
350         export CONFIG_SHELL
351         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
352 fi
353
354
355     if test $as_have_required = no; then
356   echo This script requires a shell more modern than all the
357       echo shells that I found on your system.  Please install a
358       echo modern shell, or manually run the script under such a
359       echo shell if you do have one.
360       { (exit 1); exit 1; }
361 fi
362
363
364 fi
365
366 fi
367
368
369
370 (eval "as_func_return () {
371   (exit \$1)
372 }
373 as_func_success () {
374   as_func_return 0
375 }
376 as_func_failure () {
377   as_func_return 1
378 }
379 as_func_ret_success () {
380   return 0
381 }
382 as_func_ret_failure () {
383   return 1
384 }
385
386 exitcode=0
387 if as_func_success; then
388   :
389 else
390   exitcode=1
391   echo as_func_success failed.
392 fi
393
394 if as_func_failure; then
395   exitcode=1
396   echo as_func_failure succeeded.
397 fi
398
399 if as_func_ret_success; then
400   :
401 else
402   exitcode=1
403   echo as_func_ret_success failed.
404 fi
405
406 if as_func_ret_failure; then
407   exitcode=1
408   echo as_func_ret_failure succeeded.
409 fi
410
411 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
412   :
413 else
414   exitcode=1
415   echo positional parameters were not saved.
416 fi
417
418 test \$exitcode = 0") || {
419   echo No shell found that supports shell functions.
420   echo Please tell autoconf@gnu.org about your system,
421   echo including any error possibly output before this
422   echo message
423 }
424
425
426
427   as_lineno_1=$LINENO
428   as_lineno_2=$LINENO
429   test "x$as_lineno_1" != "x$as_lineno_2" &&
430   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
431
432   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
433   # uniformly replaced by the line number.  The first 'sed' inserts a
434   # line-number line after each line using $LINENO; the second 'sed'
435   # does the real work.  The second script uses 'N' to pair each
436   # line-number line with the line containing $LINENO, and appends
437   # trailing '-' during substitution so that $LINENO is not a special
438   # case at line end.
439   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
440   # scripts with optimization help from Paolo Bonzini.  Blame Lee
441   # E. McMahon (1931-1989) for sed's syntax.  :-)
442   sed -n '
443     p
444     /[$]LINENO/=
445   ' <$as_myself |
446     sed '
447       s/[$]LINENO.*/&-/
448       t lineno
449       b
450       :lineno
451       N
452       :loop
453       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454       t loop
455       s/-\n.*//
456     ' >$as_me.lineno &&
457   chmod +x "$as_me.lineno" ||
458     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
459    { (exit 1); exit 1; }; }
460
461   # Don't try to exec as it changes $[0], causing all sort of problems
462   # (the dirname of $[0] is not the place where we might find the
463   # original and so on.  Autoconf is especially sensitive to this).
464   . "./$as_me.lineno"
465   # Exit status is that of the last command.
466   exit
467 }
468
469
470 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
471   as_dirname=dirname
472 else
473   as_dirname=false
474 fi
475
476 ECHO_C= ECHO_N= ECHO_T=
477 case `echo -n x` in
478 -n*)
479   case `echo 'x\c'` in
480   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
481   *)   ECHO_C='\c';;
482   esac;;
483 *)
484   ECHO_N='-n';;
485 esac
486
487 if expr a : '\(a\)' >/dev/null 2>&1 &&
488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
489   as_expr=expr
490 else
491   as_expr=false
492 fi
493
494 rm -f conf$$ conf$$.exe conf$$.file
495 if test -d conf$$.dir; then
496   rm -f conf$$.dir/conf$$.file
497 else
498   rm -f conf$$.dir
499   mkdir conf$$.dir
500 fi
501 echo >conf$$.file
502 if ln -s conf$$.file conf$$ 2>/dev/null; then
503   as_ln_s='ln -s'
504   # ... but there are two gotchas:
505   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
506   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
507   # In both cases, we have to default to `cp -p'.
508   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
509     as_ln_s='cp -p'
510 elif ln conf$$.file conf$$ 2>/dev/null; then
511   as_ln_s=ln
512 else
513   as_ln_s='cp -p'
514 fi
515 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
516 rmdir conf$$.dir 2>/dev/null
517
518 if mkdir -p . 2>/dev/null; then
519   as_mkdir_p=:
520 else
521   test -d ./-p && rmdir ./-p
522   as_mkdir_p=false
523 fi
524
525 if test -x / >/dev/null 2>&1; then
526   as_test_x='test -x'
527 else
528   if ls -dL / >/dev/null 2>&1; then
529     as_ls_L_option=L
530   else
531     as_ls_L_option=
532   fi
533   as_test_x='
534     eval sh -c '\''
535       if test -d "$1"; then
536         test -d "$1/.";
537       else
538         case $1 in
539         -*)set "./$1";;
540         esac;
541         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
542         ???[sx]*):;;*)false;;esac;fi
543     '\'' sh
544   '
545 fi
546 as_executable_p=$as_test_x
547
548 # Sed expression to map a string onto a valid CPP name.
549 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550
551 # Sed expression to map a string onto a valid variable name.
552 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
553
554
555
556
557 # Check that we are running under the correct shell.
558 SHELL=${CONFIG_SHELL-/bin/sh}
559
560 case X$ECHO in
561 X*--fallback-echo)
562   # Remove one level of quotation (which was required for Make).
563   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
564   ;;
565 esac
566
567 echo=${ECHO-echo}
568 if test "X$1" = X--no-reexec; then
569   # Discard the --no-reexec flag, and continue.
570   shift
571 elif test "X$1" = X--fallback-echo; then
572   # Avoid inline document here, it may be left over
573   :
574 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
575   # Yippee, $echo works!
576   :
577 else
578   # Restart under the correct shell.
579   exec $SHELL "$0" --no-reexec ${1+"$@"}
580 fi
581
582 if test "X$1" = X--fallback-echo; then
583   # used as fallback echo
584   shift
585   cat <<EOF
586 $*
587 EOF
588   exit 0
589 fi
590
591 # The HP-UX ksh and POSIX shell print the target directory to stdout
592 # if CDPATH is set.
593 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
594
595 if test -z "$ECHO"; then
596 if test "X${echo_test_string+set}" != Xset; then
597 # find a string as large as possible, as long as the shell can cope with it
598   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
599     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
600     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
601        echo_test_string=`eval $cmd` &&
602        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
603     then
604       break
605     fi
606   done
607 fi
608
609 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
610    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
611    test "X$echo_testing_string" = "X$echo_test_string"; then
612   :
613 else
614   # The Solaris, AIX, and Digital Unix default echo programs unquote
615   # backslashes.  This makes it impossible to quote backslashes using
616   #   echo "$something" | sed 's/\\/\\\\/g'
617   #
618   # So, first we look for a working echo in the user's PATH.
619
620   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
621   for dir in $PATH /usr/ucb; do
622     IFS="$lt_save_ifs"
623     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
624        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
625        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
626        test "X$echo_testing_string" = "X$echo_test_string"; then
627       echo="$dir/echo"
628       break
629     fi
630   done
631   IFS="$lt_save_ifs"
632
633   if test "X$echo" = Xecho; then
634     # We didn't find a better echo, so look for alternatives.
635     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
636        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
637        test "X$echo_testing_string" = "X$echo_test_string"; then
638       # This shell has a builtin print -r that does the trick.
639       echo='print -r'
640     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
641          test "X$CONFIG_SHELL" != X/bin/ksh; then
642       # If we have ksh, try running configure again with it.
643       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
644       export ORIGINAL_CONFIG_SHELL
645       CONFIG_SHELL=/bin/ksh
646       export CONFIG_SHELL
647       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648     else
649       # Try using printf.
650       echo='printf %s\n'
651       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
652          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
653          test "X$echo_testing_string" = "X$echo_test_string"; then
654         # Cool, printf works
655         :
656       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
657            test "X$echo_testing_string" = 'X\t' &&
658            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
659            test "X$echo_testing_string" = "X$echo_test_string"; then
660         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
661         export CONFIG_SHELL
662         SHELL="$CONFIG_SHELL"
663         export SHELL
664         echo="$CONFIG_SHELL $0 --fallback-echo"
665       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
666            test "X$echo_testing_string" = 'X\t' &&
667            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
668            test "X$echo_testing_string" = "X$echo_test_string"; then
669         echo="$CONFIG_SHELL $0 --fallback-echo"
670       else
671         # maybe with a smaller string...
672         prev=:
673
674         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
675           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
676           then
677             break
678           fi
679           prev="$cmd"
680         done
681
682         if test "$prev" != 'sed 50q "$0"'; then
683           echo_test_string=`eval $prev`
684           export echo_test_string
685           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
686         else
687           # Oops.  We lost completely, so just stick with echo.
688           echo=echo
689         fi
690       fi
691     fi
692   fi
693 fi
694 fi
695
696 # Copy echo and quote the copy suitably for passing to libtool from
697 # the Makefile, instead of quoting the original, which is used later.
698 ECHO=$echo
699 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
700    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
701 fi
702
703
704
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="OpenLDAP"
734 ac_unique_file="build/version.sh"
735 ac_default_prefix=/usr/local
736 # Factoring default headers for most tests.
737 ac_includes_default="\
738 #include <stdio.h>
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
741 #endif
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
744 #endif
745 #ifdef STDC_HEADERS
746 # include <stdlib.h>
747 # include <stddef.h>
748 #else
749 # ifdef HAVE_STDLIB_H
750 #  include <stdlib.h>
751 # endif
752 #endif
753 #ifdef HAVE_STRING_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #  include <memory.h>
756 # endif
757 # include <string.h>
758 #endif
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
761 #endif
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
764 #endif
765 #ifdef HAVE_STDINT_H
766 # include <stdint.h>
767 #endif
768 #ifdef HAVE_UNISTD_H
769 # include <unistd.h>
770 #endif"
771
772 ac_subst_vars='SHELL
773 PATH_SEPARATOR
774 PACKAGE_NAME
775 PACKAGE_TARNAME
776 PACKAGE_VERSION
777 PACKAGE_STRING
778 PACKAGE_BUGREPORT
779 exec_prefix
780 prefix
781 program_transform_name
782 bindir
783 sbindir
784 libexecdir
785 datarootdir
786 datadir
787 sysconfdir
788 sharedstatedir
789 localstatedir
790 includedir
791 oldincludedir
792 docdir
793 infodir
794 htmldir
795 dvidir
796 pdfdir
797 psdir
798 libdir
799 localedir
800 mandir
801 DEFS
802 ECHO_C
803 ECHO_N
804 ECHO_T
805 LIBS
806 build_alias
807 host_alias
808 target_alias
809 build
810 build_cpu
811 build_vendor
812 build_os
813 host
814 host_cpu
815 host_vendor
816 host_os
817 target
818 target_cpu
819 target_vendor
820 target_os
821 INSTALL_PROGRAM
822 INSTALL_SCRIPT
823 INSTALL_DATA
824 CYGPATH_W
825 PACKAGE
826 VERSION
827 ACLOCAL
828 AUTOCONF
829 AUTOMAKE
830 AUTOHEADER
831 MAKEINFO
832 install_sh
833 STRIP
834 INSTALL_STRIP_PROGRAM
835 mkdir_p
836 AWK
837 SET_MAKE
838 am__leading_dot
839 AMTAR
840 am__tar
841 am__untar
842 OPENLDAP_LIBRELEASE
843 OPENLDAP_LIBVERSION
844 OPENLDAP_RELEASE_DATE
845 top_builddir
846 ldap_subdir
847 CC
848 AR
849 CFLAGS
850 LDFLAGS
851 CPPFLAGS
852 ac_ct_CC
853 EXEEXT
854 OBJEXT
855 DEPDIR
856 am__include
857 am__quote
858 AMDEP_TRUE
859 AMDEP_FALSE
860 AMDEPBACKSLASH
861 CCDEPMODE
862 am__fastdepCC_TRUE
863 am__fastdepCC_FALSE
864 GREP
865 EGREP
866 LN_S
867 ECHO
868 RANLIB
869 DLLTOOL
870 AS
871 OBJDUMP
872 CPP
873 LIBTOOL
874 PERLBIN
875 OL_MKDEP
876 OL_MKDEP_FLAGS
877 LTSTATIC
878 MYSQL
879 LIBOBJS
880 LIBSRCS
881 PLAT
882 WITH_SASL
883 WITH_TLS
884 WITH_MODULES_ENABLED
885 WITH_ACI_ENABLED
886 BUILD_THREAD
887 BUILD_LIBS_DYNAMIC
888 BUILD_SLAPD
889 BUILD_SLAPI
890 SLAPD_SLAPI_DEPEND
891 BUILD_BDB
892 BUILD_DNSSRV
893 BUILD_HDB
894 BUILD_LDAP
895 BUILD_META
896 BUILD_MONITOR
897 BUILD_NDB
898 BUILD_NULL
899 BUILD_PASSWD
900 BUILD_RELAY
901 BUILD_PERL
902 BUILD_SHELL
903 BUILD_SOCK
904 BUILD_SQL
905 BUILD_ACCESSLOG
906 BUILD_AUDITLOG
907 BUILD_COLLECT
908 BUILD_CONSTRAINT
909 BUILD_DDS
910 BUILD_DENYOP
911 BUILD_DYNGROUP
912 BUILD_DYNLIST
913 BUILD_LASTMOD
914 BUILD_MEMBEROF
915 BUILD_PPOLICY
916 BUILD_PROXYCACHE
917 BUILD_REFINT
918 BUILD_RETCODE
919 BUILD_RWM
920 BUILD_SEQMOD
921 BUILD_SYNCPROV
922 BUILD_TRANSLUCENT
923 BUILD_UNIQUE
924 BUILD_VALSORT
925 LDAP_LIBS
926 SLAPD_LIBS
927 BDB_LIBS
928 SLAPD_NDB_LIBS
929 SLAPD_NDB_INCS
930 LTHREAD_LIBS
931 LUTIL_LIBS
932 WRAP_LIBS
933 SLAPD_MODULES_CPPFLAGS
934 SLAPD_MODULES_LDFLAGS
935 SLAPD_NO_STATIC
936 SLAPD_STATIC_BACKENDS
937 SLAPD_DYNAMIC_BACKENDS
938 SLAPD_STATIC_OVERLAYS
939 SLAPD_DYNAMIC_OVERLAYS
940 PERL_CPPFLAGS
941 SLAPD_PERL_LDFLAGS
942 MOD_PERL_LDFLAGS
943 KRB4_LIBS
944 KRB5_LIBS
945 SASL_LIBS
946 GSSAPI_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 [yes]
1604     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1605     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1606     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1607     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1608
1609 Library Generation & Linking Options
1610   --enable-static[=PKGS]  build static libraries [default=yes]
1611   --enable-shared[=PKGS]  build shared libraries [default=yes]
1612   --enable-fast-install[=PKGS]
1613                           optimize for fast installation [default=yes]
1614   --disable-dependency-tracking  speeds up one-time build
1615   --enable-dependency-tracking   do not reject slow dependency extractors
1616   --disable-libtool-lock  avoid locking (might break parallel builds)
1617
1618 Optional Packages:
1619   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1620   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1621   --with-subdir=DIR       change default subdirectory used for installs
1622   --with-cyrus-sasl       with Cyrus SASL support [auto]
1623   --with-fetch            with fetch(3) URL support [auto]
1624   --with-gssapi           with GSSAPI 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-gssapi
2957
2958 # Check whether --with-gssapi was given.
2959 if test "${with_gssapi+set}" = set; then
2960   withval=$with_gssapi;
2961         ol_arg=invalid
2962         for ol_val in auto yes no  ; 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-gssapi" >&5
2969 echo "$as_me: error: bad value $withval for --with-gssapi" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_gssapi="$ol_arg"
2973
2974 else
2975         ol_with_gssapi="auto"
2976 fi
2977 # end --with-gssapi
2978
2979 # OpenLDAP --with-threads
2980
2981 # Check whether --with-threads was given.
2982 if test "${with_threads+set}" = set; then
2983   withval=$with_threads;
2984         ol_arg=invalid
2985         for ol_val in auto nt posix mach pth lwp yes no manual  ; 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-threads" >&5
2992 echo "$as_me: error: bad value $withval for --with-threads" >&2;}
2993    { (exit 1); exit 1; }; }
2994         fi
2995         ol_with_threads="$ol_arg"
2996
2997 else
2998         ol_with_threads="auto"
2999 fi
3000 # end --with-threads
3001
3002 # OpenLDAP --with-tls
3003
3004 # Check whether --with-tls was given.
3005 if test "${with_tls+set}" = set; then
3006   withval=$with_tls;
3007         ol_arg=invalid
3008         for ol_val in auto openssl gnutls yes no  ; 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-tls" >&5
3015 echo "$as_me: error: bad value $withval for --with-tls" >&2;}
3016    { (exit 1); exit 1; }; }
3017         fi
3018         ol_with_tls="$ol_arg"
3019
3020 else
3021         ol_with_tls="auto"
3022 fi
3023 # end --with-tls
3024
3025 # OpenLDAP --with-yielding_select
3026
3027 # Check whether --with-yielding_select was given.
3028 if test "${with_yielding_select+set}" = set; then
3029   withval=$with_yielding_select;
3030         ol_arg=invalid
3031         for ol_val in auto yes no manual  ; 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-yielding_select" >&5
3038 echo "$as_me: error: bad value $withval for --with-yielding_select" >&2;}
3039    { (exit 1); exit 1; }; }
3040         fi
3041         ol_with_yielding_select="$ol_arg"
3042
3043 else
3044         ol_with_yielding_select="auto"
3045 fi
3046 # end --with-yielding_select
3047
3048 # OpenLDAP --with-mp
3049
3050 # Check whether --with-mp was given.
3051 if test "${with_mp+set}" = set; then
3052   withval=$with_mp;
3053         ol_arg=invalid
3054         for ol_val in auto longlong long bignum gmp yes no ; 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-mp" >&5
3061 echo "$as_me: error: bad value $withval for --with-mp" >&2;}
3062    { (exit 1); exit 1; }; }
3063         fi
3064         ol_with_mp="$ol_arg"
3065
3066 else
3067         ol_with_mp="auto"
3068 fi
3069 # end --with-mp
3070
3071 # OpenLDAP --with-odbc
3072
3073 # Check whether --with-odbc was given.
3074 if test "${with_odbc+set}" = set; then
3075   withval=$with_odbc;
3076         ol_arg=invalid
3077         for ol_val in auto iodbc unixodbc odbc32  ; do
3078                 if test "$withval" = "$ol_val" ; then
3079                         ol_arg="$ol_val"
3080                 fi
3081         done
3082         if test "$ol_arg" = "invalid" ; then
3083                 { { echo "$as_me:$LINENO: error: bad value $withval for --with-odbc" >&5
3084 echo "$as_me: error: bad value $withval for --with-odbc" >&2;}
3085    { (exit 1); exit 1; }; }
3086         fi
3087         ol_with_odbc="$ol_arg"
3088
3089 else
3090         ol_with_odbc="auto"
3091 fi
3092 # end --with-odbc
3093
3094
3095
3096 # Check whether --enable-xxslapdoptions was given.
3097 if test "${enable_xxslapdoptions+set}" = set; then
3098   enableval=$enable_xxslapdoptions;
3099 fi
3100
3101 # OpenLDAP --enable-slapd
3102
3103         # Check whether --enable-slapd was given.
3104 if test "${enable_slapd+set}" = set; then
3105   enableval=$enable_slapd;
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-slapd" >&5
3114 echo "$as_me: error: bad value $enableval for --enable-slapd" >&2;}
3115    { (exit 1); exit 1; }; }
3116         fi
3117         ol_enable_slapd="$ol_arg"
3118
3119 else
3120         ol_enable_slapd=yes
3121 fi
3122
3123 # end --enable-slapd
3124 # OpenLDAP --enable-dynacl
3125
3126         # Check whether --enable-dynacl was given.
3127 if test "${enable_dynacl+set}" = set; then
3128   enableval=$enable_dynacl;
3129         ol_arg=invalid
3130         for ol_val in auto yes no ; 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-dynacl" >&5
3137 echo "$as_me: error: bad value $enableval for --enable-dynacl" >&2;}
3138    { (exit 1); exit 1; }; }
3139         fi
3140         ol_enable_dynacl="$ol_arg"
3141
3142 else
3143         ol_enable_dynacl=no
3144 fi
3145
3146 # end --enable-dynacl
3147 # OpenLDAP --enable-aci
3148
3149         # Check whether --enable-aci was given.
3150 if test "${enable_aci+set}" = set; then
3151   enableval=$enable_aci;
3152         ol_arg=invalid
3153         for ol_val in no yes mod ; 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-aci" >&5
3160 echo "$as_me: error: bad value $enableval for --enable-aci" >&2;}
3161    { (exit 1); exit 1; }; }
3162         fi
3163         ol_enable_aci="$ol_arg"
3164
3165 else
3166         ol_enable_aci=no
3167 fi
3168
3169 # end --enable-aci
3170 # OpenLDAP --enable-cleartext
3171
3172         # Check whether --enable-cleartext was given.
3173 if test "${enable_cleartext+set}" = set; then
3174   enableval=$enable_cleartext;
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-cleartext" >&5
3183 echo "$as_me: error: bad value $enableval for --enable-cleartext" >&2;}
3184    { (exit 1); exit 1; }; }
3185         fi
3186         ol_enable_cleartext="$ol_arg"
3187
3188 else
3189         ol_enable_cleartext=yes
3190 fi
3191
3192 # end --enable-cleartext
3193 # OpenLDAP --enable-crypt
3194
3195         # Check whether --enable-crypt was given.
3196 if test "${enable_crypt+set}" = set; then
3197   enableval=$enable_crypt;
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-crypt" >&5
3206 echo "$as_me: error: bad value $enableval for --enable-crypt" >&2;}
3207    { (exit 1); exit 1; }; }
3208         fi
3209         ol_enable_crypt="$ol_arg"
3210
3211 else
3212         ol_enable_crypt=no
3213 fi
3214
3215 # end --enable-crypt
3216 # OpenLDAP --enable-lmpasswd
3217
3218         # Check whether --enable-lmpasswd was given.
3219 if test "${enable_lmpasswd+set}" = set; then
3220   enableval=$enable_lmpasswd;
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-lmpasswd" >&5
3229 echo "$as_me: error: bad value $enableval for --enable-lmpasswd" >&2;}
3230    { (exit 1); exit 1; }; }
3231         fi
3232         ol_enable_lmpasswd="$ol_arg"
3233
3234 else
3235         ol_enable_lmpasswd=no
3236 fi
3237
3238 # end --enable-lmpasswd
3239 # OpenLDAP --enable-spasswd
3240
3241         # Check whether --enable-spasswd was given.
3242 if test "${enable_spasswd+set}" = set; then
3243   enableval=$enable_spasswd;
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-spasswd" >&5
3252 echo "$as_me: error: bad value $enableval for --enable-spasswd" >&2;}
3253    { (exit 1); exit 1; }; }
3254         fi
3255         ol_enable_spasswd="$ol_arg"
3256
3257 else
3258         ol_enable_spasswd=no
3259 fi
3260
3261 # end --enable-spasswd
3262 # OpenLDAP --enable-modules
3263
3264         # Check whether --enable-modules was given.
3265 if test "${enable_modules+set}" = set; then
3266   enableval=$enable_modules;
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-modules" >&5
3275 echo "$as_me: error: bad value $enableval for --enable-modules" >&2;}
3276    { (exit 1); exit 1; }; }
3277         fi
3278         ol_enable_modules="$ol_arg"
3279
3280 else
3281         ol_enable_modules=no
3282 fi
3283
3284 # end --enable-modules
3285 # OpenLDAP --enable-rewrite
3286
3287         # Check whether --enable-rewrite was given.
3288 if test "${enable_rewrite+set}" = set; then
3289   enableval=$enable_rewrite;
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-rewrite" >&5
3298 echo "$as_me: error: bad value $enableval for --enable-rewrite" >&2;}
3299    { (exit 1); exit 1; }; }
3300         fi
3301         ol_enable_rewrite="$ol_arg"
3302
3303 else
3304         ol_enable_rewrite=auto
3305 fi
3306
3307 # end --enable-rewrite
3308 # OpenLDAP --enable-rlookups
3309
3310         # Check whether --enable-rlookups was given.
3311 if test "${enable_rlookups+set}" = set; then
3312   enableval=$enable_rlookups;
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-rlookups" >&5
3321 echo "$as_me: error: bad value $enableval for --enable-rlookups" >&2;}
3322    { (exit 1); exit 1; }; }
3323         fi
3324         ol_enable_rlookups="$ol_arg"
3325
3326 else
3327         ol_enable_rlookups=no
3328 fi
3329
3330 # end --enable-rlookups
3331 # OpenLDAP --enable-slapi
3332
3333         # Check whether --enable-slapi was given.
3334 if test "${enable_slapi+set}" = set; then
3335   enableval=$enable_slapi;
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-slapi" >&5
3344 echo "$as_me: error: bad value $enableval for --enable-slapi" >&2;}
3345    { (exit 1); exit 1; }; }
3346         fi
3347         ol_enable_slapi="$ol_arg"
3348
3349 else
3350         ol_enable_slapi=no
3351 fi
3352
3353 # end --enable-slapi
3354 # OpenLDAP --enable-slp
3355
3356         # Check whether --enable-slp was given.
3357 if test "${enable_slp+set}" = set; then
3358   enableval=$enable_slp;
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-slp" >&5
3367 echo "$as_me: error: bad value $enableval for --enable-slp" >&2;}
3368    { (exit 1); exit 1; }; }
3369         fi
3370         ol_enable_slp="$ol_arg"
3371
3372 else
3373         ol_enable_slp=no
3374 fi
3375
3376 # end --enable-slp
3377 # OpenLDAP --enable-wrappers
3378
3379         # Check whether --enable-wrappers was given.
3380 if test "${enable_wrappers+set}" = set; then
3381   enableval=$enable_wrappers;
3382         ol_arg=invalid
3383         for ol_val in auto yes no ; do
3384                 if test "$enableval" = "$ol_val" ; then
3385                         ol_arg="$ol_val"
3386                 fi
3387         done
3388         if test "$ol_arg" = "invalid" ; then
3389                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-wrappers" >&5
3390 echo "$as_me: error: bad value $enableval for --enable-wrappers" >&2;}
3391    { (exit 1); exit 1; }; }
3392         fi
3393         ol_enable_wrappers="$ol_arg"
3394
3395 else
3396         ol_enable_wrappers=no
3397 fi
3398
3399 # end --enable-wrappers
3400
3401 Backends="bdb \
3402         dnssrv \
3403         hdb \
3404         ldap \
3405         meta \
3406         monitor \
3407         ndb \
3408         null \
3409         passwd \
3410         perl \
3411         relay \
3412         shell \
3413         sock \
3414         sql"
3415
3416 # Check whether --enable-xxslapbackends was given.
3417 if test "${enable_xxslapbackends+set}" = set; then
3418   enableval=$enable_xxslapbackends;
3419 fi
3420
3421
3422 # OpenLDAP --enable-backends
3423
3424         # Check whether --enable-backends was given.
3425 if test "${enable_backends+set}" = set; then
3426   enableval=$enable_backends;
3427         ol_arg=invalid
3428         for ol_val in no yes mod ; do
3429                 if test "$enableval" = "$ol_val" ; then
3430                         ol_arg="$ol_val"
3431                 fi
3432         done
3433         if test "$ol_arg" = "invalid" ; then
3434                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-backends" >&5
3435 echo "$as_me: error: bad value $enableval for --enable-backends" >&2;}
3436    { (exit 1); exit 1; }; }
3437         fi
3438         ol_enable_backends="$ol_arg"
3439
3440 fi
3441
3442 # end --enable-backends
3443 # OpenLDAP --enable-bdb
3444
3445         # Check whether --enable-bdb was given.
3446 if test "${enable_bdb+set}" = set; then
3447   enableval=$enable_bdb;
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-bdb" >&5
3456 echo "$as_me: error: bad value $enableval for --enable-bdb" >&2;}
3457    { (exit 1); exit 1; }; }
3458         fi
3459         ol_enable_bdb="$ol_arg"
3460
3461 else
3462         ol_enable_bdb=${ol_enable_backends:-yes}
3463 fi
3464
3465 # end --enable-bdb
3466 # OpenLDAP --enable-dnssrv
3467
3468         # Check whether --enable-dnssrv was given.
3469 if test "${enable_dnssrv+set}" = set; then
3470   enableval=$enable_dnssrv;
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-dnssrv" >&5
3479 echo "$as_me: error: bad value $enableval for --enable-dnssrv" >&2;}
3480    { (exit 1); exit 1; }; }
3481         fi
3482         ol_enable_dnssrv="$ol_arg"
3483
3484 else
3485         ol_enable_dnssrv=${ol_enable_backends:-no}
3486 fi
3487
3488 # end --enable-dnssrv
3489 # OpenLDAP --enable-hdb
3490
3491         # Check whether --enable-hdb was given.
3492 if test "${enable_hdb+set}" = set; then
3493   enableval=$enable_hdb;
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-hdb" >&5
3502 echo "$as_me: error: bad value $enableval for --enable-hdb" >&2;}
3503    { (exit 1); exit 1; }; }
3504         fi
3505         ol_enable_hdb="$ol_arg"
3506
3507 else
3508         ol_enable_hdb=${ol_enable_backends:-yes}
3509 fi
3510
3511 # end --enable-hdb
3512 # OpenLDAP --enable-ldap
3513
3514         # Check whether --enable-ldap was given.
3515 if test "${enable_ldap+set}" = set; then
3516   enableval=$enable_ldap;
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-ldap" >&5
3525 echo "$as_me: error: bad value $enableval for --enable-ldap" >&2;}
3526    { (exit 1); exit 1; }; }
3527         fi
3528         ol_enable_ldap="$ol_arg"
3529
3530 else
3531         ol_enable_ldap=${ol_enable_backends:-no}
3532 fi
3533
3534 # end --enable-ldap
3535 # OpenLDAP --enable-meta
3536
3537         # Check whether --enable-meta was given.
3538 if test "${enable_meta+set}" = set; then
3539   enableval=$enable_meta;
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-meta" >&5
3548 echo "$as_me: error: bad value $enableval for --enable-meta" >&2;}
3549    { (exit 1); exit 1; }; }
3550         fi
3551         ol_enable_meta="$ol_arg"
3552
3553 else
3554         ol_enable_meta=${ol_enable_backends:-no}
3555 fi
3556
3557 # end --enable-meta
3558 # OpenLDAP --enable-monitor
3559
3560         # Check whether --enable-monitor was given.
3561 if test "${enable_monitor+set}" = set; then
3562   enableval=$enable_monitor;
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-monitor" >&5
3571 echo "$as_me: error: bad value $enableval for --enable-monitor" >&2;}
3572    { (exit 1); exit 1; }; }
3573         fi
3574         ol_enable_monitor="$ol_arg"
3575
3576 else
3577         ol_enable_monitor=${ol_enable_backends:-yes}
3578 fi
3579
3580 # end --enable-monitor
3581 # OpenLDAP --enable-ndb
3582
3583         # Check whether --enable-ndb was given.
3584 if test "${enable_ndb+set}" = set; then
3585   enableval=$enable_ndb;
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-ndb" >&5
3594 echo "$as_me: error: bad value $enableval for --enable-ndb" >&2;}
3595    { (exit 1); exit 1; }; }
3596         fi
3597         ol_enable_ndb="$ol_arg"
3598
3599 else
3600         ol_enable_ndb=${ol_enable_backends:-no}
3601 fi
3602
3603 # end --enable-ndb
3604 # OpenLDAP --enable-null
3605
3606         # Check whether --enable-null was given.
3607 if test "${enable_null+set}" = set; then
3608   enableval=$enable_null;
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-null" >&5
3617 echo "$as_me: error: bad value $enableval for --enable-null" >&2;}
3618    { (exit 1); exit 1; }; }
3619         fi
3620         ol_enable_null="$ol_arg"
3621
3622 else
3623         ol_enable_null=${ol_enable_backends:-no}
3624 fi
3625
3626 # end --enable-null
3627 # OpenLDAP --enable-passwd
3628
3629         # Check whether --enable-passwd was given.
3630 if test "${enable_passwd+set}" = set; then
3631   enableval=$enable_passwd;
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-passwd" >&5
3640 echo "$as_me: error: bad value $enableval for --enable-passwd" >&2;}
3641    { (exit 1); exit 1; }; }
3642         fi
3643         ol_enable_passwd="$ol_arg"
3644
3645 else
3646         ol_enable_passwd=${ol_enable_backends:-no}
3647 fi
3648
3649 # end --enable-passwd
3650 # OpenLDAP --enable-perl
3651
3652         # Check whether --enable-perl was given.
3653 if test "${enable_perl+set}" = set; then
3654   enableval=$enable_perl;
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-perl" >&5
3663 echo "$as_me: error: bad value $enableval for --enable-perl" >&2;}
3664    { (exit 1); exit 1; }; }
3665         fi
3666         ol_enable_perl="$ol_arg"
3667
3668 else
3669         ol_enable_perl=${ol_enable_backends:-no}
3670 fi
3671
3672 # end --enable-perl
3673 # OpenLDAP --enable-relay
3674
3675         # Check whether --enable-relay was given.
3676 if test "${enable_relay+set}" = set; then
3677   enableval=$enable_relay;
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-relay" >&5
3686 echo "$as_me: error: bad value $enableval for --enable-relay" >&2;}
3687    { (exit 1); exit 1; }; }
3688         fi
3689         ol_enable_relay="$ol_arg"
3690
3691 else
3692         ol_enable_relay=${ol_enable_backends:-yes}
3693 fi
3694
3695 # end --enable-relay
3696 # OpenLDAP --enable-shell
3697
3698         # Check whether --enable-shell was given.
3699 if test "${enable_shell+set}" = set; then
3700   enableval=$enable_shell;
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-shell" >&5
3709 echo "$as_me: error: bad value $enableval for --enable-shell" >&2;}
3710    { (exit 1); exit 1; }; }
3711         fi
3712         ol_enable_shell="$ol_arg"
3713
3714 else
3715         ol_enable_shell=${ol_enable_backends:-no}
3716 fi
3717
3718 # end --enable-shell
3719 # OpenLDAP --enable-sock
3720
3721         # Check whether --enable-sock was given.
3722 if test "${enable_sock+set}" = set; then
3723   enableval=$enable_sock;
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-sock" >&5
3732 echo "$as_me: error: bad value $enableval for --enable-sock" >&2;}
3733    { (exit 1); exit 1; }; }
3734         fi
3735         ol_enable_sock="$ol_arg"
3736
3737 else
3738         ol_enable_sock=${ol_enable_backends:-no}
3739 fi
3740
3741 # end --enable-sock
3742 # OpenLDAP --enable-sql
3743
3744         # Check whether --enable-sql was given.
3745 if test "${enable_sql+set}" = set; then
3746   enableval=$enable_sql;
3747         ol_arg=invalid
3748         for ol_val in no yes mod ; do
3749                 if test "$enableval" = "$ol_val" ; then
3750                         ol_arg="$ol_val"
3751                 fi
3752         done
3753         if test "$ol_arg" = "invalid" ; then
3754                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sql" >&5
3755 echo "$as_me: error: bad value $enableval for --enable-sql" >&2;}
3756    { (exit 1); exit 1; }; }
3757         fi
3758         ol_enable_sql="$ol_arg"
3759
3760 else
3761         ol_enable_sql=${ol_enable_backends:-no}
3762 fi
3763
3764 # end --enable-sql
3765
3766 Overlays="accesslog \
3767         auditlog \
3768         collect \
3769         constraint \
3770         dds \
3771         deref \
3772         dyngroup \
3773         dynlist \
3774         memberof \
3775         ppolicy \
3776         proxycache \
3777         refint \
3778         retcode \
3779         rwm \
3780         seqmod \
3781         syncprov \
3782         translucent \
3783         unique \
3784         valsort"
3785
3786 # Check whether --enable-xxslapoverlays was given.
3787 if test "${enable_xxslapoverlays+set}" = set; then
3788   enableval=$enable_xxslapoverlays;
3789 fi
3790
3791
3792 # OpenLDAP --enable-overlays
3793
3794         # Check whether --enable-overlays was given.
3795 if test "${enable_overlays+set}" = set; then
3796   enableval=$enable_overlays;
3797         ol_arg=invalid
3798         for ol_val in no yes mod ; do
3799                 if test "$enableval" = "$ol_val" ; then
3800                         ol_arg="$ol_val"
3801                 fi
3802         done
3803         if test "$ol_arg" = "invalid" ; then
3804                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3805 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3806    { (exit 1); exit 1; }; }
3807         fi
3808         ol_enable_overlays="$ol_arg"
3809
3810 fi
3811
3812 # end --enable-overlays
3813 # OpenLDAP --enable-accesslog
3814
3815         # Check whether --enable-accesslog was given.
3816 if test "${enable_accesslog+set}" = set; then
3817   enableval=$enable_accesslog;
3818         ol_arg=invalid
3819         for ol_val in no yes mod ; do
3820                 if test "$enableval" = "$ol_val" ; then
3821                         ol_arg="$ol_val"
3822                 fi
3823         done
3824         if test "$ol_arg" = "invalid" ; then
3825                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3826 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3827    { (exit 1); exit 1; }; }
3828         fi
3829         ol_enable_accesslog="$ol_arg"
3830
3831 else
3832         ol_enable_accesslog=${ol_enable_overlays:-no}
3833 fi
3834
3835 # end --enable-accesslog
3836
3837 # OpenLDAP --enable-auditlog
3838
3839         # Check whether --enable-auditlog was given.
3840 if test "${enable_auditlog+set}" = set; then
3841   enableval=$enable_auditlog;
3842         ol_arg=invalid
3843         for ol_val in no yes mod ; do
3844                 if test "$enableval" = "$ol_val" ; then
3845                         ol_arg="$ol_val"
3846                 fi
3847         done
3848         if test "$ol_arg" = "invalid" ; then
3849                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3850 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3851    { (exit 1); exit 1; }; }
3852         fi
3853         ol_enable_auditlog="$ol_arg"
3854
3855 else
3856         ol_enable_auditlog=${ol_enable_overlays:-no}
3857 fi
3858
3859 # end --enable-auditlog
3860
3861 # OpenLDAP --enable-collect
3862
3863         # Check whether --enable-collect was given.
3864 if test "${enable_collect+set}" = set; then
3865   enableval=$enable_collect;
3866         ol_arg=invalid
3867         for ol_val in no yes mod ; do
3868                 if test "$enableval" = "$ol_val" ; then
3869                         ol_arg="$ol_val"
3870                 fi
3871         done
3872         if test "$ol_arg" = "invalid" ; then
3873                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3874 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3875    { (exit 1); exit 1; }; }
3876         fi
3877         ol_enable_collect="$ol_arg"
3878
3879 else
3880         ol_enable_collect=${ol_enable_overlays:-no}
3881 fi
3882
3883 # end --enable-collect
3884
3885 # OpenLDAP --enable-constraint
3886
3887         # Check whether --enable-constraint was given.
3888 if test "${enable_constraint+set}" = set; then
3889   enableval=$enable_constraint;
3890         ol_arg=invalid
3891         for ol_val in no yes mod ; do
3892                 if test "$enableval" = "$ol_val" ; then
3893                         ol_arg="$ol_val"
3894                 fi
3895         done
3896         if test "$ol_arg" = "invalid" ; then
3897                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3898 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3899    { (exit 1); exit 1; }; }
3900         fi
3901         ol_enable_constraint="$ol_arg"
3902
3903 else
3904         ol_enable_constraint=${ol_enable_overlays:-no}
3905 fi
3906
3907 # end --enable-constraint
3908
3909 # OpenLDAP --enable-dds
3910
3911         # Check whether --enable-dds was given.
3912 if test "${enable_dds+set}" = set; then
3913   enableval=$enable_dds;
3914         ol_arg=invalid
3915         for ol_val in no yes mod ; do
3916                 if test "$enableval" = "$ol_val" ; then
3917                         ol_arg="$ol_val"
3918                 fi
3919         done
3920         if test "$ol_arg" = "invalid" ; then
3921                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3922 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3923    { (exit 1); exit 1; }; }
3924         fi
3925         ol_enable_dds="$ol_arg"
3926
3927 else
3928         ol_enable_dds=${ol_enable_overlays:-no}
3929 fi
3930
3931 # end --enable-dds
3932
3933 # OpenLDAP --enable-deref
3934
3935         # Check whether --enable-deref was given.
3936 if test "${enable_deref+set}" = set; then
3937   enableval=$enable_deref;
3938         ol_arg=invalid
3939         for ol_val in no yes mod ; do
3940                 if test "$enableval" = "$ol_val" ; then
3941                         ol_arg="$ol_val"
3942                 fi
3943         done
3944         if test "$ol_arg" = "invalid" ; then
3945                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3946 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3947    { (exit 1); exit 1; }; }
3948         fi
3949         ol_enable_deref="$ol_arg"
3950
3951 else
3952         ol_enable_deref=${ol_enable_overlays:-no}
3953 fi
3954
3955 # end --enable-deref
3956
3957 # OpenLDAP --enable-dyngroup
3958
3959         # Check whether --enable-dyngroup was given.
3960 if test "${enable_dyngroup+set}" = set; then
3961   enableval=$enable_dyngroup;
3962         ol_arg=invalid
3963         for ol_val in no yes mod ; do
3964                 if test "$enableval" = "$ol_val" ; then
3965                         ol_arg="$ol_val"
3966                 fi
3967         done
3968         if test "$ol_arg" = "invalid" ; then
3969                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3970 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3971    { (exit 1); exit 1; }; }
3972         fi
3973         ol_enable_dyngroup="$ol_arg"
3974
3975 else
3976         ol_enable_dyngroup=${ol_enable_overlays:-no}
3977 fi
3978
3979 # end --enable-dyngroup
3980
3981 # OpenLDAP --enable-dynlist
3982
3983         # Check whether --enable-dynlist was given.
3984 if test "${enable_dynlist+set}" = set; then
3985   enableval=$enable_dynlist;
3986         ol_arg=invalid
3987         for ol_val in no yes mod ; do
3988                 if test "$enableval" = "$ol_val" ; then
3989                         ol_arg="$ol_val"
3990                 fi
3991         done
3992         if test "$ol_arg" = "invalid" ; then
3993                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3994 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3995    { (exit 1); exit 1; }; }
3996         fi
3997         ol_enable_dynlist="$ol_arg"
3998
3999 else
4000         ol_enable_dynlist=${ol_enable_overlays:-no}
4001 fi
4002
4003 # end --enable-dynlist
4004
4005 # OpenLDAP --enable-memberof
4006
4007         # Check whether --enable-memberof was given.
4008 if test "${enable_memberof+set}" = set; then
4009   enableval=$enable_memberof;
4010         ol_arg=invalid
4011         for ol_val in no yes mod ; do
4012                 if test "$enableval" = "$ol_val" ; then
4013                         ol_arg="$ol_val"
4014                 fi
4015         done
4016         if test "$ol_arg" = "invalid" ; then
4017                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4018 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4019    { (exit 1); exit 1; }; }
4020         fi
4021         ol_enable_memberof="$ol_arg"
4022
4023 else
4024         ol_enable_memberof=${ol_enable_overlays:-no}
4025 fi
4026
4027 # end --enable-memberof
4028
4029 # OpenLDAP --enable-ppolicy
4030
4031         # Check whether --enable-ppolicy was given.
4032 if test "${enable_ppolicy+set}" = set; then
4033   enableval=$enable_ppolicy;
4034         ol_arg=invalid
4035         for ol_val in no yes mod ; do
4036                 if test "$enableval" = "$ol_val" ; then
4037                         ol_arg="$ol_val"
4038                 fi
4039         done
4040         if test "$ol_arg" = "invalid" ; then
4041                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4042 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4043    { (exit 1); exit 1; }; }
4044         fi
4045         ol_enable_ppolicy="$ol_arg"
4046
4047 else
4048         ol_enable_ppolicy=${ol_enable_overlays:-no}
4049 fi
4050
4051 # end --enable-ppolicy
4052
4053 # OpenLDAP --enable-proxycache
4054
4055         # Check whether --enable-proxycache was given.
4056 if test "${enable_proxycache+set}" = set; then
4057   enableval=$enable_proxycache;
4058         ol_arg=invalid
4059         for ol_val in no yes mod ; do
4060                 if test "$enableval" = "$ol_val" ; then
4061                         ol_arg="$ol_val"
4062                 fi
4063         done
4064         if test "$ol_arg" = "invalid" ; then
4065                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4066 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4067    { (exit 1); exit 1; }; }
4068         fi
4069         ol_enable_proxycache="$ol_arg"
4070
4071 else
4072         ol_enable_proxycache=${ol_enable_overlays:-no}
4073 fi
4074
4075 # end --enable-proxycache
4076
4077 # OpenLDAP --enable-refint
4078
4079         # Check whether --enable-refint was given.
4080 if test "${enable_refint+set}" = set; then
4081   enableval=$enable_refint;
4082         ol_arg=invalid
4083         for ol_val in no yes mod ; do
4084                 if test "$enableval" = "$ol_val" ; then
4085                         ol_arg="$ol_val"
4086                 fi
4087         done
4088         if test "$ol_arg" = "invalid" ; then
4089                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4090 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4091    { (exit 1); exit 1; }; }
4092         fi
4093         ol_enable_refint="$ol_arg"
4094
4095 else
4096         ol_enable_refint=${ol_enable_overlays:-no}
4097 fi
4098
4099 # end --enable-refint
4100
4101 # OpenLDAP --enable-retcode
4102
4103         # Check whether --enable-retcode was given.
4104 if test "${enable_retcode+set}" = set; then
4105   enableval=$enable_retcode;
4106         ol_arg=invalid
4107         for ol_val in no yes mod ; do
4108                 if test "$enableval" = "$ol_val" ; then
4109                         ol_arg="$ol_val"
4110                 fi
4111         done
4112         if test "$ol_arg" = "invalid" ; then
4113                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4114 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4115    { (exit 1); exit 1; }; }
4116         fi
4117         ol_enable_retcode="$ol_arg"
4118
4119 else
4120         ol_enable_retcode=${ol_enable_overlays:-no}
4121 fi
4122
4123 # end --enable-retcode
4124
4125 # OpenLDAP --enable-rwm
4126
4127         # Check whether --enable-rwm was given.
4128 if test "${enable_rwm+set}" = set; then
4129   enableval=$enable_rwm;
4130         ol_arg=invalid
4131         for ol_val in no yes mod ; do
4132                 if test "$enableval" = "$ol_val" ; then
4133                         ol_arg="$ol_val"
4134                 fi
4135         done
4136         if test "$ol_arg" = "invalid" ; then
4137                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4138 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4139    { (exit 1); exit 1; }; }
4140         fi
4141         ol_enable_rwm="$ol_arg"
4142
4143 else
4144         ol_enable_rwm=${ol_enable_overlays:-no}
4145 fi
4146
4147 # end --enable-rwm
4148
4149 # OpenLDAP --enable-seqmod
4150
4151         # Check whether --enable-seqmod was given.
4152 if test "${enable_seqmod+set}" = set; then
4153   enableval=$enable_seqmod;
4154         ol_arg=invalid
4155         for ol_val in no yes mod ; do
4156                 if test "$enableval" = "$ol_val" ; then
4157                         ol_arg="$ol_val"
4158                 fi
4159         done
4160         if test "$ol_arg" = "invalid" ; then
4161                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4162 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4163    { (exit 1); exit 1; }; }
4164         fi
4165         ol_enable_seqmod="$ol_arg"
4166
4167 else
4168         ol_enable_seqmod=${ol_enable_overlays:-yes}
4169 fi
4170
4171 # end --enable-seqmod
4172
4173 # OpenLDAP --enable-syncprov
4174
4175         # Check whether --enable-syncprov was given.
4176 if test "${enable_syncprov+set}" = set; then
4177   enableval=$enable_syncprov;
4178         ol_arg=invalid
4179         for ol_val in no yes mod ; do
4180                 if test "$enableval" = "$ol_val" ; then
4181                         ol_arg="$ol_val"
4182                 fi
4183         done
4184         if test "$ol_arg" = "invalid" ; then
4185                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4186 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4187    { (exit 1); exit 1; }; }
4188         fi
4189         ol_enable_syncprov="$ol_arg"
4190
4191 else
4192         ol_enable_syncprov=${ol_enable_overlays:-yes}
4193 fi
4194
4195 # end --enable-syncprov
4196
4197 # OpenLDAP --enable-translucent
4198
4199         # Check whether --enable-translucent was given.
4200 if test "${enable_translucent+set}" = set; then
4201   enableval=$enable_translucent;
4202         ol_arg=invalid
4203         for ol_val in no yes mod ; do
4204                 if test "$enableval" = "$ol_val" ; then
4205                         ol_arg="$ol_val"
4206                 fi
4207         done
4208         if test "$ol_arg" = "invalid" ; then
4209                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4210 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4211    { (exit 1); exit 1; }; }
4212         fi
4213         ol_enable_translucent="$ol_arg"
4214
4215 else
4216         ol_enable_translucent=${ol_enable_overlays:-no}
4217 fi
4218
4219 # end --enable-translucent
4220
4221 # OpenLDAP --enable-unique
4222
4223         # Check whether --enable-unique was given.
4224 if test "${enable_unique+set}" = set; then
4225   enableval=$enable_unique;
4226         ol_arg=invalid
4227         for ol_val in no yes mod ; do
4228                 if test "$enableval" = "$ol_val" ; then
4229                         ol_arg="$ol_val"
4230                 fi
4231         done
4232         if test "$ol_arg" = "invalid" ; then
4233                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4234 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4235    { (exit 1); exit 1; }; }
4236         fi
4237         ol_enable_unique="$ol_arg"
4238
4239 else
4240         ol_enable_unique=${ol_enable_overlays:-no}
4241 fi
4242
4243 # end --enable-unique
4244
4245 # OpenLDAP --enable-valsort
4246
4247         # Check whether --enable-valsort was given.
4248 if test "${enable_valsort+set}" = set; then
4249   enableval=$enable_valsort;
4250         ol_arg=invalid
4251         for ol_val in no yes mod ; do
4252                 if test "$enableval" = "$ol_val" ; then
4253                         ol_arg="$ol_val"
4254                 fi
4255         done
4256         if test "$ol_arg" = "invalid" ; then
4257                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4258 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4259    { (exit 1); exit 1; }; }
4260         fi
4261         ol_enable_valsort="$ol_arg"
4262
4263 else
4264         ol_enable_valsort=${ol_enable_overlays:-no}
4265 fi
4266
4267 # end --enable-valsort
4268
4269
4270 # Check whether --enable-xxliboptions was given.
4271 if test "${enable_xxliboptions+set}" = set; then
4272   enableval=$enable_xxliboptions;
4273 fi
4274
4275 # Check whether --enable-static was given.
4276 if test "${enable_static+set}" = set; then
4277   enableval=$enable_static; p=${PACKAGE-default}
4278     case $enableval in
4279     yes) enable_static=yes ;;
4280     no) enable_static=no ;;
4281     *)
4282      enable_static=no
4283       # Look at the argument we got.  We use all the common list separators.
4284       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4285       for pkg in $enableval; do
4286         IFS="$lt_save_ifs"
4287         if test "X$pkg" = "X$p"; then
4288           enable_static=yes
4289         fi
4290       done
4291       IFS="$lt_save_ifs"
4292       ;;
4293     esac
4294 else
4295   enable_static=yes
4296 fi
4297
4298
4299 # Check whether --enable-shared was given.
4300 if test "${enable_shared+set}" = set; then
4301   enableval=$enable_shared; p=${PACKAGE-default}
4302     case $enableval in
4303     yes) enable_shared=yes ;;
4304     no) enable_shared=no ;;
4305     *)
4306       enable_shared=no
4307       # Look at the argument we got.  We use all the common list separators.
4308       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4309       for pkg in $enableval; do
4310         IFS="$lt_save_ifs"
4311         if test "X$pkg" = "X$p"; then
4312           enable_shared=yes
4313         fi
4314       done
4315       IFS="$lt_save_ifs"
4316       ;;
4317     esac
4318 else
4319   enable_shared=yes
4320 fi
4321
4322
4323
4324
4325 # validate options
4326 if test $ol_enable_slapd = no ; then
4327                 if test $ol_enable_slapi = yes ; then
4328                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4329 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4330         fi
4331         case "$ol_enable_backends" in yes | mod)
4332                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4333 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4334         esac
4335         for i in $Backends; do
4336                 eval "ol_tmp=\$ol_enable_$i"
4337                 if test $ol_tmp != no ; then
4338                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4339 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4340                         eval "ol_enable_$i=no"
4341                 fi
4342         done
4343         if test $ol_enable_modules = yes ; then
4344                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4345 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4346         fi
4347         if test $ol_enable_wrappers = yes ; then
4348                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4349 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4350         fi
4351         if test $ol_enable_rlookups = yes ; then
4352                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4353 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4354         fi
4355         if test $ol_enable_dynacl = yes ; then
4356                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4357 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4358         fi
4359         if test $ol_enable_aci != no ; then
4360                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4361 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4362         fi
4363         if test $ol_enable_rewrite = yes ; then
4364                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4365 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4366         fi
4367                 case "$ol_enable_overlays" in yes | mod)
4368                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4369 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4370         esac
4371         for i in $Overlays; do
4372                 eval "ol_tmp=\$ol_enable_$i"
4373                 if test $ol_tmp != no ; then
4374                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4375 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4376                         eval "ol_enable_$i=no"
4377                 fi
4378         done
4379
4380         # force settings to no
4381         ol_enable_slapi=no
4382
4383         ol_enable_backends=
4384         ol_enable_overlays=
4385         ol_enable_modules=no
4386         ol_enable_rlookups=no
4387         ol_enable_dynacl=no
4388         ol_enable_aci=no
4389         ol_enable_wrappers=no
4390
4391         ol_enable_rewrite=no
4392
4393 elif test $ol_enable_modules != yes &&
4394         test $ol_enable_bdb = no &&
4395         test $ol_enable_dnssrv = no &&
4396         test $ol_enable_hdb = no &&
4397         test $ol_enable_ldap = no &&
4398         test $ol_enable_meta = no &&
4399         test $ol_enable_monitor = no &&
4400         test $ol_enable_ndb = no &&
4401         test $ol_enable_null = no &&
4402         test $ol_enable_passwd = no &&
4403         test $ol_enable_perl = no &&
4404         test $ol_enable_relay = no &&
4405         test $ol_enable_shell = no &&
4406         test $ol_enable_sock = no &&
4407         test $ol_enable_sql = no ; then
4408
4409         if test $ol_enable_slapd = yes ; then
4410                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4411 echo "$as_me: error: slapd requires a backend" >&2;}
4412    { (exit 1); exit 1; }; }
4413         else
4414                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4415 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4416                 ol_enable_slapd=no
4417         fi
4418 fi
4419
4420 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4421         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4422 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4423    { (exit 1); exit 1; }; }
4424 fi
4425
4426 if test $ol_enable_lmpasswd = yes ; then
4427         if test $ol_with_tls = no ; then
4428                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4429 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4430    { (exit 1); exit 1; }; }
4431         fi
4432 fi
4433
4434 if test $ol_enable_spasswd = yes ; then
4435         if test $ol_with_cyrus_sasl = no ; then
4436                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4437 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4438    { (exit 1); exit 1; }; }
4439         fi
4440         ol_with_cyrus_sasl=yes
4441 fi
4442
4443 { echo "$as_me:$LINENO: result: done" >&5
4444 echo "${ECHO_T}done" >&6; }
4445
4446 LDAP_LIBS=
4447 BDB_LIBS=
4448 SLAPD_NDB_LIBS=
4449 SLAPD_NDB_INCS=
4450 LTHREAD_LIBS=
4451 LUTIL_LIBS=
4452
4453 SLAPD_LIBS=
4454
4455 BUILD_SLAPD=no
4456
4457 BUILD_THREAD=no
4458
4459 BUILD_SLAPI=no
4460 SLAPD_SLAPI_DEPEND=
4461
4462 BUILD_BDB=no
4463 BUILD_DNSSRV=no
4464 BUILD_HDB=no
4465 BUILD_LDAP=no
4466 BUILD_META=no
4467 BUILD_MONITOR=no
4468 BUILD_NDB=no
4469 BUILD_NULL=no
4470 BUILD_PASSWD=no
4471 BUILD_PERL=no
4472 BUILD_RELAY=no
4473 BUILD_SHELL=no
4474 BUILD_SOCK=no
4475 BUILD_SQL=no
4476
4477 BUILD_ACCESSLOG=no
4478 BUILD_AUDITLOG=no
4479 BUILD_CONSTRAINT=no
4480 BUILD_DDS=no
4481 BUILD_DENYOP=no
4482 BUILD_DYNGROUP=no
4483 BUILD_DYNLIST=no
4484 BUILD_LASTMOD=no
4485 BUILD_MEMBEROF=no
4486 BUILD_PPOLICY=no
4487 BUILD_PROXYCACHE=no
4488 BUILD_REFINT=no
4489 BUILD_RETCODE=no
4490 BUILD_RWM=no
4491 BUILD_SEQMOD=no
4492 BUILD_SYNCPROV=no
4493 BUILD_TRANSLUCENT=no
4494 BUILD_UNIQUE=no
4495 BUILD_VALSORT=no
4496
4497 SLAPD_STATIC_OVERLAYS=
4498 SLAPD_DYNAMIC_OVERLAYS=
4499
4500 SLAPD_MODULES_LDFLAGS=
4501 SLAPD_MODULES_CPPFLAGS=
4502
4503 SLAPD_STATIC_BACKENDS=back-ldif
4504 SLAPD_DYNAMIC_BACKENDS=
4505
4506 SLAPD_PERL_LDFLAGS=
4507 MOD_PERL_LDFLAGS=
4508 PERL_CPPFLAGS=
4509
4510 SLAPD_SQL_LDFLAGS=
4511 SLAPD_SQL_LIBS=
4512 SLAPD_SQL_INCLUDES=
4513
4514 KRB4_LIBS=
4515 KRB5_LIBS=
4516 SASL_LIBS=
4517 GSSAPI_LIBS=
4518 TLS_LIBS=
4519 MODULES_LIBS=
4520 SLAPI_LIBS=
4521 LIBSLAPI=
4522 LIBSLAPITOOLS=
4523 AUTH_LIBS=
4524 ICU_LIBS=
4525
4526 SLAPD_SLP_LIBS=
4527 SLAPD_GMP_LIBS=
4528
4529
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define HAVE_MKVERSION 1
4533 _ACEOF
4534
4535
4536
4537
4538 ol_aix_threads=no
4539 case "$target" in
4540 *-*-aix*)       if test -z "$CC" ; then
4541                 case "$ol_with_threads" in
4542                 auto | yes |  posix) ol_aix_threads=yes ;;
4543                 esac
4544         fi
4545 ;;
4546 esac
4547
4548 if test $ol_aix_threads = yes ; then
4549         if test -z "${CC}" ; then
4550                 for ac_prog in cc_r xlc_r cc
4551 do
4552   # Extract the first word of "$ac_prog", so it can be a program name with args.
4553 set dummy $ac_prog; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_CC+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   if test -n "$CC"; then
4560   ac_cv_prog_CC="$CC" # Let the user override the test.
4561 else
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563 for as_dir in $PATH
4564 do
4565   IFS=$as_save_IFS
4566   test -z "$as_dir" && as_dir=.
4567   for ac_exec_ext in '' $ac_executable_extensions; do
4568   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569     ac_cv_prog_CC="$ac_prog"
4570     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4571     break 2
4572   fi
4573 done
4574 done
4575 IFS=$as_save_IFS
4576
4577 fi
4578 fi
4579 CC=$ac_cv_prog_CC
4580 if test -n "$CC"; then
4581   { echo "$as_me:$LINENO: result: $CC" >&5
4582 echo "${ECHO_T}$CC" >&6; }
4583 else
4584   { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4586 fi
4587
4588
4589   test -n "$CC" && break
4590 done
4591
4592
4593                 if test "$CC" = cc ; then
4594                                                 if test $ol_with_threads != auto ; then
4595                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4596 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4597    { (exit 1); exit 1; }; }
4598                         else
4599                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4600 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4601                         fi
4602                         ol_with_threads=no
4603                 fi
4604         fi
4605
4606         case ${CC} in cc_r | xlc_r)
4607                 ol_with_threads=posix
4608                 ol_cv_pthread_create=yes
4609                 ;;
4610         esac
4611 fi
4612
4613 if test -z "${CC}"; then
4614         for ac_prog in cc gcc
4615 do
4616   # Extract the first word of "$ac_prog", so it can be a program name with args.
4617 set dummy $ac_prog; ac_word=$2
4618 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4619 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4620 if test "${ac_cv_prog_CC+set}" = set; then
4621   echo $ECHO_N "(cached) $ECHO_C" >&6
4622 else
4623   if test -n "$CC"; then
4624   ac_cv_prog_CC="$CC" # Let the user override the test.
4625 else
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4627 for as_dir in $PATH
4628 do
4629   IFS=$as_save_IFS
4630   test -z "$as_dir" && as_dir=.
4631   for ac_exec_ext in '' $ac_executable_extensions; do
4632   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4633     ac_cv_prog_CC="$ac_prog"
4634     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4635     break 2
4636   fi
4637 done
4638 done
4639 IFS=$as_save_IFS
4640
4641 fi
4642 fi
4643 CC=$ac_cv_prog_CC
4644 if test -n "$CC"; then
4645   { echo "$as_me:$LINENO: result: $CC" >&5
4646 echo "${ECHO_T}$CC" >&6; }
4647 else
4648   { echo "$as_me:$LINENO: result: no" >&5
4649 echo "${ECHO_T}no" >&6; }
4650 fi
4651
4652
4653   test -n "$CC" && break
4654 done
4655 test -n "$CC" || CC="missing"
4656
4657
4658         if test "${CC}" = "missing" ; then
4659                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4660 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4661    { (exit 1); exit 1; }; }
4662         fi
4663 fi
4664
4665 if test -z "${AR}"; then
4666         for ac_prog in ar gar
4667 do
4668   # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4672 if test "${ac_cv_prog_AR+set}" = set; then
4673   echo $ECHO_N "(cached) $ECHO_C" >&6
4674 else
4675   if test -n "$AR"; then
4676   ac_cv_prog_AR="$AR" # Let the user override the test.
4677 else
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 for as_dir in $PATH
4680 do
4681   IFS=$as_save_IFS
4682   test -z "$as_dir" && as_dir=.
4683   for ac_exec_ext in '' $ac_executable_extensions; do
4684   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4685     ac_cv_prog_AR="$ac_prog"
4686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690 done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 AR=$ac_cv_prog_AR
4696 if test -n "$AR"; then
4697   { echo "$as_me:$LINENO: result: $AR" >&5
4698 echo "${ECHO_T}$AR" >&6; }
4699 else
4700   { echo "$as_me:$LINENO: result: no" >&5
4701 echo "${ECHO_T}no" >&6; }
4702 fi
4703
4704
4705   test -n "$AR" && break
4706 done
4707 test -n "$AR" || AR="missing"
4708
4709
4710         if test "${AR}" = "missing" ; then
4711                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4712 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4713    { (exit 1); exit 1; }; }
4714         fi
4715 fi
4716
4717
4718
4719
4720
4721 # Check whether --enable-fast-install was given.
4722 if test "${enable_fast_install+set}" = set; then
4723   enableval=$enable_fast_install; p=${PACKAGE-default}
4724     case $enableval in
4725     yes) enable_fast_install=yes ;;
4726     no) enable_fast_install=no ;;
4727     *)
4728       enable_fast_install=no
4729       # Look at the argument we got.  We use all the common list separators.
4730       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4731       for pkg in $enableval; do
4732         IFS="$lt_save_ifs"
4733         if test "X$pkg" = "X$p"; then
4734           enable_fast_install=yes
4735         fi
4736       done
4737       IFS="$lt_save_ifs"
4738       ;;
4739     esac
4740 else
4741   enable_fast_install=yes
4742 fi
4743
4744
4745 DEPDIR="${am__leading_dot}deps"
4746
4747 ac_config_commands="$ac_config_commands depfiles"
4748
4749
4750 am_make=${MAKE-make}
4751 cat > confinc << 'END'
4752 am__doit:
4753         @echo done
4754 .PHONY: am__doit
4755 END
4756 # If we don't find an include directive, just comment out the code.
4757 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4758 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4759 am__include="#"
4760 am__quote=
4761 _am_result=none
4762 # First try GNU make style include.
4763 echo "include confinc" > confmf
4764 # We grep out `Entering directory' and `Leaving directory'
4765 # messages which can occur if `w' ends up in MAKEFLAGS.
4766 # In particular we don't look at `^make:' because GNU make might
4767 # be invoked under some other name (usually "gmake"), in which
4768 # case it prints its new name instead of `make'.
4769 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4770    am__include=include
4771    am__quote=
4772    _am_result=GNU
4773 fi
4774 # Now try BSD make style include.
4775 if test "$am__include" = "#"; then
4776    echo '.include "confinc"' > confmf
4777    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4778       am__include=.include
4779       am__quote="\""
4780       _am_result=BSD
4781    fi
4782 fi
4783
4784
4785 { echo "$as_me:$LINENO: result: $_am_result" >&5
4786 echo "${ECHO_T}$_am_result" >&6; }
4787 rm -f confinc confmf
4788
4789 # Check whether --enable-dependency-tracking was given.
4790 if test "${enable_dependency_tracking+set}" = set; then
4791   enableval=$enable_dependency_tracking;
4792 fi
4793
4794 if test "x$enable_dependency_tracking" != xno; then
4795   am_depcomp="$ac_aux_dir/depcomp"
4796   AMDEPBACKSLASH='\'
4797 fi
4798
4799
4800 if test "x$enable_dependency_tracking" != xno; then
4801   AMDEP_TRUE=
4802   AMDEP_FALSE='#'
4803 else
4804   AMDEP_TRUE='#'
4805   AMDEP_FALSE=
4806 fi
4807
4808
4809
4810 ac_ext=c
4811 ac_cpp='$CPP $CPPFLAGS'
4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4815 if test -n "$ac_tool_prefix"; then
4816   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4817 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4818 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4819 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4820 if test "${ac_cv_prog_CC+set}" = set; then
4821   echo $ECHO_N "(cached) $ECHO_C" >&6
4822 else
4823   if test -n "$CC"; then
4824   ac_cv_prog_CC="$CC" # Let the user override the test.
4825 else
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4828 do
4829   IFS=$as_save_IFS
4830   test -z "$as_dir" && as_dir=.
4831   for ac_exec_ext in '' $ac_executable_extensions; do
4832   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4833     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4834     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4835     break 2
4836   fi
4837 done
4838 done
4839 IFS=$as_save_IFS
4840
4841 fi
4842 fi
4843 CC=$ac_cv_prog_CC
4844 if test -n "$CC"; then
4845   { echo "$as_me:$LINENO: result: $CC" >&5
4846 echo "${ECHO_T}$CC" >&6; }
4847 else
4848   { echo "$as_me:$LINENO: result: no" >&5
4849 echo "${ECHO_T}no" >&6; }
4850 fi
4851
4852
4853 fi
4854 if test -z "$ac_cv_prog_CC"; then
4855   ac_ct_CC=$CC
4856   # Extract the first word of "gcc", so it can be a program name with args.
4857 set dummy gcc; ac_word=$2
4858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4860 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4861   echo $ECHO_N "(cached) $ECHO_C" >&6
4862 else
4863   if test -n "$ac_ct_CC"; then
4864   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4865 else
4866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 for as_dir in $PATH
4868 do
4869   IFS=$as_save_IFS
4870   test -z "$as_dir" && as_dir=.
4871   for ac_exec_ext in '' $ac_executable_extensions; do
4872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4873     ac_cv_prog_ac_ct_CC="gcc"
4874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4875     break 2
4876   fi
4877 done
4878 done
4879 IFS=$as_save_IFS
4880
4881 fi
4882 fi
4883 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4884 if test -n "$ac_ct_CC"; then
4885   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4886 echo "${ECHO_T}$ac_ct_CC" >&6; }
4887 else
4888   { echo "$as_me:$LINENO: result: no" >&5
4889 echo "${ECHO_T}no" >&6; }
4890 fi
4891
4892   if test "x$ac_ct_CC" = x; then
4893     CC=""
4894   else
4895     case $cross_compiling:$ac_tool_warned in
4896 yes:)
4897 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4898 whose name does not start with the host triplet.  If you think this
4899 configuration is useful to you, please write to autoconf@gnu.org." >&5
4900 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4901 whose name does not start with the host triplet.  If you think this
4902 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4903 ac_tool_warned=yes ;;
4904 esac
4905     CC=$ac_ct_CC
4906   fi
4907 else
4908   CC="$ac_cv_prog_CC"
4909 fi
4910
4911 if test -z "$CC"; then
4912           if test -n "$ac_tool_prefix"; then
4913     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4914 set dummy ${ac_tool_prefix}cc; ac_word=$2
4915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4917 if test "${ac_cv_prog_CC+set}" = set; then
4918   echo $ECHO_N "(cached) $ECHO_C" >&6
4919 else
4920   if test -n "$CC"; then
4921   ac_cv_prog_CC="$CC" # Let the user override the test.
4922 else
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH
4925 do
4926   IFS=$as_save_IFS
4927   test -z "$as_dir" && as_dir=.
4928   for ac_exec_ext in '' $ac_executable_extensions; do
4929   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4930     ac_cv_prog_CC="${ac_tool_prefix}cc"
4931     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4932     break 2
4933   fi
4934 done
4935 done
4936 IFS=$as_save_IFS
4937
4938 fi
4939 fi
4940 CC=$ac_cv_prog_CC
4941 if test -n "$CC"; then
4942   { echo "$as_me:$LINENO: result: $CC" >&5
4943 echo "${ECHO_T}$CC" >&6; }
4944 else
4945   { echo "$as_me:$LINENO: result: no" >&5
4946 echo "${ECHO_T}no" >&6; }
4947 fi
4948
4949
4950   fi
4951 fi
4952 if test -z "$CC"; then
4953   # Extract the first word of "cc", so it can be a program name with args.
4954 set dummy cc; ac_word=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_CC+set}" = set; then
4958   echo $ECHO_N "(cached) $ECHO_C" >&6
4959 else
4960   if test -n "$CC"; then
4961   ac_cv_prog_CC="$CC" # Let the user override the test.
4962 else
4963   ac_prog_rejected=no
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967   IFS=$as_save_IFS
4968   test -z "$as_dir" && as_dir=.
4969   for ac_exec_ext in '' $ac_executable_extensions; do
4970   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4972        ac_prog_rejected=yes
4973        continue
4974      fi
4975     ac_cv_prog_CC="cc"
4976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4977     break 2
4978   fi
4979 done
4980 done
4981 IFS=$as_save_IFS
4982
4983 if test $ac_prog_rejected = yes; then
4984   # We found a bogon in the path, so make sure we never use it.
4985   set dummy $ac_cv_prog_CC
4986   shift
4987   if test $# != 0; then
4988     # We chose a different compiler from the bogus one.
4989     # However, it has the same basename, so the bogon will be chosen
4990     # first if we set CC to just the basename; use the full file name.
4991     shift
4992     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4993   fi
4994 fi
4995 fi
4996 fi
4997 CC=$ac_cv_prog_CC
4998 if test -n "$CC"; then
4999   { echo "$as_me:$LINENO: result: $CC" >&5
5000 echo "${ECHO_T}$CC" >&6; }
5001 else
5002   { echo "$as_me:$LINENO: result: no" >&5
5003 echo "${ECHO_T}no" >&6; }
5004 fi
5005
5006
5007 fi
5008 if test -z "$CC"; then
5009   if test -n "$ac_tool_prefix"; then
5010   for ac_prog in cl.exe
5011   do
5012     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5013 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_CC+set}" = set; then
5017   echo $ECHO_N "(cached) $ECHO_C" >&6
5018 else
5019   if test -n "$CC"; then
5020   ac_cv_prog_CC="$CC" # Let the user override the test.
5021 else
5022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5023 for as_dir in $PATH
5024 do
5025   IFS=$as_save_IFS
5026   test -z "$as_dir" && as_dir=.
5027   for ac_exec_ext in '' $ac_executable_extensions; do
5028   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5030     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5031     break 2
5032   fi
5033 done
5034 done
5035 IFS=$as_save_IFS
5036
5037 fi
5038 fi
5039 CC=$ac_cv_prog_CC
5040 if test -n "$CC"; then
5041   { echo "$as_me:$LINENO: result: $CC" >&5
5042 echo "${ECHO_T}$CC" >&6; }
5043 else
5044   { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5046 fi
5047
5048
5049     test -n "$CC" && break
5050   done
5051 fi
5052 if test -z "$CC"; then
5053   ac_ct_CC=$CC
5054   for ac_prog in cl.exe
5055 do
5056   # Extract the first word of "$ac_prog", so it can be a program name with args.
5057 set dummy $ac_prog; ac_word=$2
5058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5060 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5061   echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063   if test -n "$ac_ct_CC"; then
5064   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069   IFS=$as_save_IFS
5070   test -z "$as_dir" && as_dir=.
5071   for ac_exec_ext in '' $ac_executable_extensions; do
5072   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5073     ac_cv_prog_ac_ct_CC="$ac_prog"
5074     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075     break 2
5076   fi
5077 done
5078 done
5079 IFS=$as_save_IFS
5080
5081 fi
5082 fi
5083 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5084 if test -n "$ac_ct_CC"; then
5085   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5086 echo "${ECHO_T}$ac_ct_CC" >&6; }
5087 else
5088   { echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6; }
5090 fi
5091
5092
5093   test -n "$ac_ct_CC" && break
5094 done
5095
5096   if test "x$ac_ct_CC" = x; then
5097     CC=""
5098   else
5099     case $cross_compiling:$ac_tool_warned in
5100 yes:)
5101 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5102 whose name does not start with the host triplet.  If you think this
5103 configuration is useful to you, please write to autoconf@gnu.org." >&5
5104 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5105 whose name does not start with the host triplet.  If you think this
5106 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5107 ac_tool_warned=yes ;;
5108 esac
5109     CC=$ac_ct_CC
5110   fi
5111 fi
5112
5113 fi
5114
5115
5116 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: no acceptable C compiler found in \$PATH
5119 See \`config.log' for more details." >&2;}
5120    { (exit 1); exit 1; }; }
5121
5122 # Provide some information about the compiler.
5123 echo "$as_me:$LINENO: checking for C compiler version" >&5
5124 ac_compiler=`set X $ac_compile; echo $2`
5125 { (ac_try="$ac_compiler --version >&5"
5126 case "(($ac_try" in
5127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5128   *) ac_try_echo=$ac_try;;
5129 esac
5130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5131   (eval "$ac_compiler --version >&5") 2>&5
5132   ac_status=$?
5133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5134   (exit $ac_status); }
5135 { (ac_try="$ac_compiler -v >&5"
5136 case "(($ac_try" in
5137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138   *) ac_try_echo=$ac_try;;
5139 esac
5140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5141   (eval "$ac_compiler -v >&5") 2>&5
5142   ac_status=$?
5143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5144   (exit $ac_status); }
5145 { (ac_try="$ac_compiler -V >&5"
5146 case "(($ac_try" in
5147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5148   *) ac_try_echo=$ac_try;;
5149 esac
5150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5151   (eval "$ac_compiler -V >&5") 2>&5
5152   ac_status=$?
5153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5154   (exit $ac_status); }
5155
5156 cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162
5163 int
5164 main ()
5165 {
5166
5167   ;
5168   return 0;
5169 }
5170 _ACEOF
5171 ac_clean_files_save=$ac_clean_files
5172 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5173 # Try to create an executable without -o first, disregard a.out.
5174 # It will help us diagnose broken compilers, and finding out an intuition
5175 # of exeext.
5176 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5177 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5178 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5179 #
5180 # List of possible output files, starting from the most likely.
5181 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5182 # only as a last resort.  b.out is created by i960 compilers.
5183 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5184 #
5185 # The IRIX 6 linker writes into existing files which may not be
5186 # executable, retaining their permissions.  Remove them first so a
5187 # subsequent execution test works.
5188 ac_rmfiles=
5189 for ac_file in $ac_files
5190 do
5191   case $ac_file in
5192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5193     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5194   esac
5195 done
5196 rm -f $ac_rmfiles
5197
5198 if { (ac_try="$ac_link_default"
5199 case "(($ac_try" in
5200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5201   *) ac_try_echo=$ac_try;;
5202 esac
5203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5204   (eval "$ac_link_default") 2>&5
5205   ac_status=$?
5206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5207   (exit $ac_status); }; then
5208   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5209 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5210 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5211 # so that the user can short-circuit this test for compilers unknown to
5212 # Autoconf.
5213 for ac_file in $ac_files ''
5214 do
5215   test -f "$ac_file" || continue
5216   case $ac_file in
5217     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5218         ;;
5219     [ab].out )
5220         # We found the default executable, but exeext='' is most
5221         # certainly right.
5222         break;;
5223     *.* )
5224         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5225         then :; else
5226            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5227         fi
5228         # We set ac_cv_exeext here because the later test for it is not
5229         # safe: cross compilers may not add the suffix if given an `-o'
5230         # argument, so we may need to know it at that point already.
5231         # Even if this section looks crufty: it has the advantage of
5232         # actually working.
5233         break;;
5234     * )
5235         break;;
5236   esac
5237 done
5238 test "$ac_cv_exeext" = no && ac_cv_exeext=
5239
5240 else
5241   ac_file=''
5242 fi
5243
5244 { echo "$as_me:$LINENO: result: $ac_file" >&5
5245 echo "${ECHO_T}$ac_file" >&6; }
5246 if test -z "$ac_file"; then
5247   echo "$as_me: failed program was:" >&5
5248 sed 's/^/| /' conftest.$ac_ext >&5
5249
5250 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5251 See \`config.log' for more details." >&5
5252 echo "$as_me: error: C compiler cannot create executables
5253 See \`config.log' for more details." >&2;}
5254    { (exit 77); exit 77; }; }
5255 fi
5256
5257 ac_exeext=$ac_cv_exeext
5258
5259 # Check that the compiler produces executables we can run.  If not, either
5260 # the compiler is broken, or we cross compile.
5261 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5262 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5263 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5264 # If not cross compiling, check that we can run a simple program.
5265 if test "$cross_compiling" != yes; then
5266   if { ac_try='./$ac_file'
5267   { (case "(($ac_try" in
5268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5269   *) ac_try_echo=$ac_try;;
5270 esac
5271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5272   (eval "$ac_try") 2>&5
5273   ac_status=$?
5274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5275   (exit $ac_status); }; }; then
5276     cross_compiling=no
5277   else
5278     if test "$cross_compiling" = maybe; then
5279         cross_compiling=yes
5280     else
5281         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5282 If you meant to cross compile, use \`--host'.
5283 See \`config.log' for more details." >&5
5284 echo "$as_me: error: cannot run C compiled programs.
5285 If you meant to cross compile, use \`--host'.
5286 See \`config.log' for more details." >&2;}
5287    { (exit 1); exit 1; }; }
5288     fi
5289   fi
5290 fi
5291 { echo "$as_me:$LINENO: result: yes" >&5
5292 echo "${ECHO_T}yes" >&6; }
5293
5294 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5295 ac_clean_files=$ac_clean_files_save
5296 # Check that the compiler produces executables we can run.  If not, either
5297 # the compiler is broken, or we cross compile.
5298 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5299 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5300 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5301 echo "${ECHO_T}$cross_compiling" >&6; }
5302
5303 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5304 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5305 if { (ac_try="$ac_link"
5306 case "(($ac_try" in
5307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5308   *) ac_try_echo=$ac_try;;
5309 esac
5310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5311   (eval "$ac_link") 2>&5
5312   ac_status=$?
5313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314   (exit $ac_status); }; then
5315   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5316 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5317 # work properly (i.e., refer to `conftest.exe'), while it won't with
5318 # `rm'.
5319 for ac_file in conftest.exe conftest conftest.*; do
5320   test -f "$ac_file" || continue
5321   case $ac_file in
5322     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5323     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5324           break;;
5325     * ) break;;
5326   esac
5327 done
5328 else
5329   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5330 See \`config.log' for more details." >&5
5331 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5332 See \`config.log' for more details." >&2;}
5333    { (exit 1); exit 1; }; }
5334 fi
5335
5336 rm -f conftest$ac_cv_exeext
5337 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5338 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5339
5340 rm -f conftest.$ac_ext
5341 EXEEXT=$ac_cv_exeext
5342 ac_exeext=$EXEEXT
5343 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5344 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5345 if test "${ac_cv_objext+set}" = set; then
5346   echo $ECHO_N "(cached) $ECHO_C" >&6
5347 else
5348   cat >conftest.$ac_ext <<_ACEOF
5349 /* confdefs.h.  */
5350 _ACEOF
5351 cat confdefs.h >>conftest.$ac_ext
5352 cat >>conftest.$ac_ext <<_ACEOF
5353 /* end confdefs.h.  */
5354
5355 int
5356 main ()
5357 {
5358
5359   ;
5360   return 0;
5361 }
5362 _ACEOF
5363 rm -f conftest.o conftest.obj
5364 if { (ac_try="$ac_compile"
5365 case "(($ac_try" in
5366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5367   *) ac_try_echo=$ac_try;;
5368 esac
5369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5370   (eval "$ac_compile") 2>&5
5371   ac_status=$?
5372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373   (exit $ac_status); }; then
5374   for ac_file in conftest.o conftest.obj conftest.*; do
5375   test -f "$ac_file" || continue;
5376   case $ac_file in
5377     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5378     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5379        break;;
5380   esac
5381 done
5382 else
5383   echo "$as_me: failed program was:" >&5
5384 sed 's/^/| /' conftest.$ac_ext >&5
5385
5386 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5387 See \`config.log' for more details." >&5
5388 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5389 See \`config.log' for more details." >&2;}
5390    { (exit 1); exit 1; }; }
5391 fi
5392
5393 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5394 fi
5395 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5396 echo "${ECHO_T}$ac_cv_objext" >&6; }
5397 OBJEXT=$ac_cv_objext
5398 ac_objext=$OBJEXT
5399 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5400 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5401 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5402   echo $ECHO_N "(cached) $ECHO_C" >&6
5403 else
5404   cat >conftest.$ac_ext <<_ACEOF
5405 /* confdefs.h.  */
5406 _ACEOF
5407 cat confdefs.h >>conftest.$ac_ext
5408 cat >>conftest.$ac_ext <<_ACEOF
5409 /* end confdefs.h.  */
5410
5411 int
5412 main ()
5413 {
5414 #ifndef __GNUC__
5415        choke me
5416 #endif
5417
5418   ;
5419   return 0;
5420 }
5421 _ACEOF
5422 rm -f conftest.$ac_objext
5423 if { (ac_try="$ac_compile"
5424 case "(($ac_try" in
5425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426   *) ac_try_echo=$ac_try;;
5427 esac
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429   (eval "$ac_compile") 2>conftest.er1
5430   ac_status=$?
5431   grep -v '^ *+' conftest.er1 >conftest.err
5432   rm -f conftest.er1
5433   cat conftest.err >&5
5434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435   (exit $ac_status); } && {
5436          test -z "$ac_c_werror_flag" ||
5437          test ! -s conftest.err
5438        } && test -s conftest.$ac_objext; then
5439   ac_compiler_gnu=yes
5440 else
5441   echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5443
5444         ac_compiler_gnu=no
5445 fi
5446
5447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5448 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5449
5450 fi
5451 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5452 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5453 GCC=`test $ac_compiler_gnu = yes && echo yes`
5454 ac_test_CFLAGS=${CFLAGS+set}
5455 ac_save_CFLAGS=$CFLAGS
5456 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5457 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5458 if test "${ac_cv_prog_cc_g+set}" = set; then
5459   echo $ECHO_N "(cached) $ECHO_C" >&6
5460 else
5461   ac_save_c_werror_flag=$ac_c_werror_flag
5462    ac_c_werror_flag=yes
5463    ac_cv_prog_cc_g=no
5464    CFLAGS="-g"
5465    cat >conftest.$ac_ext <<_ACEOF
5466 /* confdefs.h.  */
5467 _ACEOF
5468 cat confdefs.h >>conftest.$ac_ext
5469 cat >>conftest.$ac_ext <<_ACEOF
5470 /* end confdefs.h.  */
5471
5472 int
5473 main ()
5474 {
5475
5476   ;
5477   return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484   *) ac_try_echo=$ac_try;;
5485 esac
5486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5487   (eval "$ac_compile") 2>conftest.er1
5488   ac_status=$?
5489   grep -v '^ *+' conftest.er1 >conftest.err
5490   rm -f conftest.er1
5491   cat conftest.err >&5
5492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5493   (exit $ac_status); } && {
5494          test -z "$ac_c_werror_flag" ||
5495          test ! -s conftest.err
5496        } && test -s conftest.$ac_objext; then
5497   ac_cv_prog_cc_g=yes
5498 else
5499   echo "$as_me: failed program was:" >&5
5500 sed 's/^/| /' conftest.$ac_ext >&5
5501
5502         CFLAGS=""
5503       cat >conftest.$ac_ext <<_ACEOF
5504 /* confdefs.h.  */
5505 _ACEOF
5506 cat confdefs.h >>conftest.$ac_ext
5507 cat >>conftest.$ac_ext <<_ACEOF
5508 /* end confdefs.h.  */
5509
5510 int
5511 main ()
5512 {
5513
5514   ;
5515   return 0;
5516 }
5517 _ACEOF
5518 rm -f conftest.$ac_objext
5519 if { (ac_try="$ac_compile"
5520 case "(($ac_try" in
5521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5522   *) ac_try_echo=$ac_try;;
5523 esac
5524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5525   (eval "$ac_compile") 2>conftest.er1
5526   ac_status=$?
5527   grep -v '^ *+' conftest.er1 >conftest.err
5528   rm -f conftest.er1
5529   cat conftest.err >&5
5530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531   (exit $ac_status); } && {
5532          test -z "$ac_c_werror_flag" ||
5533          test ! -s conftest.err
5534        } && test -s conftest.$ac_objext; then
5535   :
5536 else
5537   echo "$as_me: failed program was:" >&5
5538 sed 's/^/| /' conftest.$ac_ext >&5
5539
5540         ac_c_werror_flag=$ac_save_c_werror_flag
5541          CFLAGS="-g"
5542          cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h.  */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h.  */
5548
5549 int
5550 main ()
5551 {
5552
5553   ;
5554   return 0;
5555 }
5556 _ACEOF
5557 rm -f conftest.$ac_objext
5558 if { (ac_try="$ac_compile"
5559 case "(($ac_try" in
5560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5561   *) ac_try_echo=$ac_try;;
5562 esac
5563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5564   (eval "$ac_compile") 2>conftest.er1
5565   ac_status=$?
5566   grep -v '^ *+' conftest.er1 >conftest.err
5567   rm -f conftest.er1
5568   cat conftest.err >&5
5569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5570   (exit $ac_status); } && {
5571          test -z "$ac_c_werror_flag" ||
5572          test ! -s conftest.err
5573        } && test -s conftest.$ac_objext; then
5574   ac_cv_prog_cc_g=yes
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579
5580 fi
5581
5582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5586 fi
5587
5588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5589    ac_c_werror_flag=$ac_save_c_werror_flag
5590 fi
5591 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5592 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5593 if test "$ac_test_CFLAGS" = set; then
5594   CFLAGS=$ac_save_CFLAGS
5595 elif test $ac_cv_prog_cc_g = yes; then
5596   if test "$GCC" = yes; then
5597     CFLAGS="-g -O2"
5598   else
5599     CFLAGS="-g"
5600   fi
5601 else
5602   if test "$GCC" = yes; then
5603     CFLAGS="-O2"
5604   else
5605     CFLAGS=
5606   fi
5607 fi
5608 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5609 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5610 if test "${ac_cv_prog_cc_c89+set}" = set; then
5611   echo $ECHO_N "(cached) $ECHO_C" >&6
5612 else
5613   ac_cv_prog_cc_c89=no
5614 ac_save_CC=$CC
5615 cat >conftest.$ac_ext <<_ACEOF
5616 /* confdefs.h.  */
5617 _ACEOF
5618 cat confdefs.h >>conftest.$ac_ext
5619 cat >>conftest.$ac_ext <<_ACEOF
5620 /* end confdefs.h.  */
5621 #include <stdarg.h>
5622 #include <stdio.h>
5623 #include <sys/types.h>
5624 #include <sys/stat.h>
5625 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5626 struct buf { int x; };
5627 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5628 static char *e (p, i)
5629      char **p;
5630      int i;
5631 {
5632   return p[i];
5633 }
5634 static char *f (char * (*g) (char **, int), char **p, ...)
5635 {
5636   char *s;
5637   va_list v;
5638   va_start (v,p);
5639   s = g (p, va_arg (v,int));
5640   va_end (v);
5641   return s;
5642 }
5643
5644 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5645    function prototypes and stuff, but not '\xHH' hex character constants.
5646    These don't provoke an error unfortunately, instead are silently treated
5647    as 'x'.  The following induces an error, until -std is added to get
5648    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5649    array size at least.  It's necessary to write '\x00'==0 to get something
5650    that's true only with -std.  */
5651 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5652
5653 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5654    inside strings and character constants.  */
5655 #define FOO(x) 'x'
5656 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5657
5658 int test (int i, double x);
5659 struct s1 {int (*f) (int a);};
5660 struct s2 {int (*f) (double a);};
5661 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5662 int argc;
5663 char **argv;
5664 int
5665 main ()
5666 {
5667 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5668   ;
5669   return 0;
5670 }
5671 _ACEOF
5672 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5673         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5674 do
5675   CC="$ac_save_CC $ac_arg"
5676   rm -f conftest.$ac_objext
5677 if { (ac_try="$ac_compile"
5678 case "(($ac_try" in
5679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680   *) ac_try_echo=$ac_try;;
5681 esac
5682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5683   (eval "$ac_compile") 2>conftest.er1
5684   ac_status=$?
5685   grep -v '^ *+' conftest.er1 >conftest.err
5686   rm -f conftest.er1
5687   cat conftest.err >&5
5688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689   (exit $ac_status); } && {
5690          test -z "$ac_c_werror_flag" ||
5691          test ! -s conftest.err
5692        } && test -s conftest.$ac_objext; then
5693   ac_cv_prog_cc_c89=$ac_arg
5694 else
5695   echo "$as_me: failed program was:" >&5
5696 sed 's/^/| /' conftest.$ac_ext >&5
5697
5698
5699 fi
5700
5701 rm -f core conftest.err conftest.$ac_objext
5702   test "x$ac_cv_prog_cc_c89" != "xno" && break
5703 done
5704 rm -f conftest.$ac_ext
5705 CC=$ac_save_CC
5706
5707 fi
5708 # AC_CACHE_VAL
5709 case "x$ac_cv_prog_cc_c89" in
5710   x)
5711     { echo "$as_me:$LINENO: result: none needed" >&5
5712 echo "${ECHO_T}none needed" >&6; } ;;
5713   xno)
5714     { echo "$as_me:$LINENO: result: unsupported" >&5
5715 echo "${ECHO_T}unsupported" >&6; } ;;
5716   *)
5717     CC="$CC $ac_cv_prog_cc_c89"
5718     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5719 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5720 esac
5721
5722
5723 ac_ext=c
5724 ac_cpp='$CPP $CPPFLAGS'
5725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5728
5729 depcc="$CC"   am_compiler_list=
5730
5731 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5732 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5733 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5734   echo $ECHO_N "(cached) $ECHO_C" >&6
5735 else
5736   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5737   # We make a subdir and do the tests there.  Otherwise we can end up
5738   # making bogus files that we don't know about and never remove.  For
5739   # instance it was reported that on HP-UX the gcc test will end up
5740   # making a dummy file named `D' -- because `-MD' means `put the output
5741   # in D'.
5742   mkdir conftest.dir
5743   # Copy depcomp to subdir because otherwise we won't find it if we're
5744   # using a relative directory.
5745   cp "$am_depcomp" conftest.dir
5746   cd conftest.dir
5747   # We will build objects and dependencies in a subdirectory because
5748   # it helps to detect inapplicable dependency modes.  For instance
5749   # both Tru64's cc and ICC support -MD to output dependencies as a
5750   # side effect of compilation, but ICC will put the dependencies in
5751   # the current directory while Tru64 will put them in the object
5752   # directory.
5753   mkdir sub
5754
5755   am_cv_CC_dependencies_compiler_type=none
5756   if test "$am_compiler_list" = ""; then
5757      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5758   fi
5759   for depmode in $am_compiler_list; do
5760     # Setup a source with many dependencies, because some compilers
5761     # like to wrap large dependency lists on column 80 (with \), and
5762     # we should not choose a depcomp mode which is confused by this.
5763     #
5764     # We need to recreate these files for each test, as the compiler may
5765     # overwrite some of them when testing with obscure command lines.
5766     # This happens at least with the AIX C compiler.
5767     : > sub/conftest.c
5768     for i in 1 2 3 4 5 6; do
5769       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5770       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5771       # Solaris 8's {/usr,}/bin/sh.
5772       touch sub/conftst$i.h
5773     done
5774     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5775
5776     case $depmode in
5777     nosideeffect)
5778       # after this tag, mechanisms are not by side-effect, so they'll
5779       # only be used when explicitly requested
5780       if test "x$enable_dependency_tracking" = xyes; then
5781         continue
5782       else
5783         break
5784       fi
5785       ;;
5786     none) break ;;
5787     esac
5788     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5789     # mode.  It turns out that the SunPro C++ compiler does not properly
5790     # handle `-M -o', and we need to detect this.
5791     if depmode=$depmode \
5792        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5793        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5794        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5795          >/dev/null 2>conftest.err &&
5796        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5797        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5798        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5799       # icc doesn't choke on unknown options, it will just issue warnings
5800       # or remarks (even with -Werror).  So we grep stderr for any message
5801       # that says an option was ignored or not supported.
5802       # When given -MP, icc 7.0 and 7.1 complain thusly:
5803       #   icc: Command line warning: ignoring option '-M'; no argument required
5804       # The diagnosis changed in icc 8.0:
5805       #   icc: Command line remark: option '-MP' not supported
5806       if (grep 'ignoring option' conftest.err ||
5807           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5808         am_cv_CC_dependencies_compiler_type=$depmode
5809         break
5810       fi
5811     fi
5812   done
5813
5814   cd ..
5815   rm -rf conftest.dir
5816 else
5817   am_cv_CC_dependencies_compiler_type=none
5818 fi
5819
5820 fi
5821 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5822 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5823 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5824
5825
5826
5827 if
5828   test "x$enable_dependency_tracking" != xno \
5829   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5830   am__fastdepCC_TRUE=
5831   am__fastdepCC_FALSE='#'
5832 else
5833   am__fastdepCC_TRUE='#'
5834   am__fastdepCC_FALSE=
5835 fi
5836
5837
5838 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5839 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5840 if test "${lt_cv_path_SED+set}" = set; then
5841   echo $ECHO_N "(cached) $ECHO_C" >&6
5842 else
5843   # Loop through the user's path and test for sed and gsed.
5844 # Then use that list of sed's as ones to test for truncation.
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5847 do
5848   IFS=$as_save_IFS
5849   test -z "$as_dir" && as_dir=.
5850   for lt_ac_prog in sed gsed; do
5851     for ac_exec_ext in '' $ac_executable_extensions; do
5852       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5853         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5854       fi
5855     done
5856   done
5857 done
5858 lt_ac_max=0
5859 lt_ac_count=0
5860 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5861 # along with /bin/sed that truncates output.
5862 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5863   test ! -f $lt_ac_sed && continue
5864   cat /dev/null > conftest.in
5865   lt_ac_count=0
5866   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5867   # Check for GNU sed and select it if it is found.
5868   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5869     lt_cv_path_SED=$lt_ac_sed
5870     break
5871   fi
5872   while true; do
5873     cat conftest.in conftest.in >conftest.tmp
5874     mv conftest.tmp conftest.in
5875     cp conftest.in conftest.nl
5876     echo >>conftest.nl
5877     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5878     cmp -s conftest.out conftest.nl || break
5879     # 10000 chars as input seems more than enough
5880     test $lt_ac_count -gt 10 && break
5881     lt_ac_count=`expr $lt_ac_count + 1`
5882     if test $lt_ac_count -gt $lt_ac_max; then
5883       lt_ac_max=$lt_ac_count
5884       lt_cv_path_SED=$lt_ac_sed
5885     fi
5886   done
5887 done
5888
5889 fi
5890
5891 SED=$lt_cv_path_SED
5892 { echo "$as_me:$LINENO: result: $SED" >&5
5893 echo "${ECHO_T}$SED" >&6; }
5894
5895 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5896 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5897 if test "${ac_cv_path_GREP+set}" = set; then
5898   echo $ECHO_N "(cached) $ECHO_C" >&6
5899 else
5900   # Extract the first word of "grep ggrep" to use in msg output
5901 if test -z "$GREP"; then
5902 set dummy grep ggrep; ac_prog_name=$2
5903 if test "${ac_cv_path_GREP+set}" = set; then
5904   echo $ECHO_N "(cached) $ECHO_C" >&6
5905 else
5906   ac_path_GREP_found=false
5907 # Loop through the user's path and test for each of PROGNAME-LIST
5908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5909 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5910 do
5911   IFS=$as_save_IFS
5912   test -z "$as_dir" && as_dir=.
5913   for ac_prog in grep ggrep; do
5914   for ac_exec_ext in '' $ac_executable_extensions; do
5915     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5916     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5917     # Check for GNU ac_path_GREP and select it if it is found.
5918   # Check for GNU $ac_path_GREP
5919 case `"$ac_path_GREP" --version 2>&1` in
5920 *GNU*)
5921   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5922 *)
5923   ac_count=0
5924   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5925   while :
5926   do
5927     cat "conftest.in" "conftest.in" >"conftest.tmp"
5928     mv "conftest.tmp" "conftest.in"
5929     cp "conftest.in" "conftest.nl"
5930     echo 'GREP' >> "conftest.nl"
5931     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5932     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5933     ac_count=`expr $ac_count + 1`
5934     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5935       # Best one so far, save it but keep looking for a better one
5936       ac_cv_path_GREP="$ac_path_GREP"
5937       ac_path_GREP_max=$ac_count
5938     fi
5939     # 10*(2^10) chars as input seems more than enough
5940     test $ac_count -gt 10 && break
5941   done
5942   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5943 esac
5944
5945
5946     $ac_path_GREP_found && break 3
5947   done
5948 done
5949
5950 done
5951 IFS=$as_save_IFS
5952
5953
5954 fi
5955
5956 GREP="$ac_cv_path_GREP"
5957 if test -z "$GREP"; then
5958   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5959 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5960    { (exit 1); exit 1; }; }
5961 fi
5962
5963 else
5964   ac_cv_path_GREP=$GREP
5965 fi
5966
5967
5968 fi
5969 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5970 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5971  GREP="$ac_cv_path_GREP"
5972
5973
5974 { echo "$as_me:$LINENO: checking for egrep" >&5
5975 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5976 if test "${ac_cv_path_EGREP+set}" = set; then
5977   echo $ECHO_N "(cached) $ECHO_C" >&6
5978 else
5979   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5980    then ac_cv_path_EGREP="$GREP -E"
5981    else
5982      # Extract the first word of "egrep" to use in msg output
5983 if test -z "$EGREP"; then
5984 set dummy egrep; ac_prog_name=$2
5985 if test "${ac_cv_path_EGREP+set}" = set; then
5986   echo $ECHO_N "(cached) $ECHO_C" >&6
5987 else
5988   ac_path_EGREP_found=false
5989 # Loop through the user's path and test for each of PROGNAME-LIST
5990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5992 do
5993   IFS=$as_save_IFS
5994   test -z "$as_dir" && as_dir=.
5995   for ac_prog in egrep; do
5996   for ac_exec_ext in '' $ac_executable_extensions; do
5997     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5998     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5999     # Check for GNU ac_path_EGREP and select it if it is found.
6000   # Check for GNU $ac_path_EGREP
6001 case `"$ac_path_EGREP" --version 2>&1` in
6002 *GNU*)
6003   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6004 *)
6005   ac_count=0
6006   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6007   while :
6008   do
6009     cat "conftest.in" "conftest.in" >"conftest.tmp"
6010     mv "conftest.tmp" "conftest.in"
6011     cp "conftest.in" "conftest.nl"
6012     echo 'EGREP' >> "conftest.nl"
6013     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6014     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6015     ac_count=`expr $ac_count + 1`
6016     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6017       # Best one so far, save it but keep looking for a better one
6018       ac_cv_path_EGREP="$ac_path_EGREP"
6019       ac_path_EGREP_max=$ac_count
6020     fi
6021     # 10*(2^10) chars as input seems more than enough
6022     test $ac_count -gt 10 && break
6023   done
6024   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6025 esac
6026
6027
6028     $ac_path_EGREP_found && break 3
6029   done
6030 done
6031
6032 done
6033 IFS=$as_save_IFS
6034
6035
6036 fi
6037
6038 EGREP="$ac_cv_path_EGREP"
6039 if test -z "$EGREP"; then
6040   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6041 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6042    { (exit 1); exit 1; }; }
6043 fi
6044
6045 else
6046   ac_cv_path_EGREP=$EGREP
6047 fi
6048
6049
6050    fi
6051 fi
6052 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6053 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6054  EGREP="$ac_cv_path_EGREP"
6055
6056
6057
6058 # Check whether --with-gnu-ld was given.
6059 if test "${with_gnu_ld+set}" = set; then
6060   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6061 else
6062   with_gnu_ld=no
6063 fi
6064
6065 ac_prog=ld
6066 if test "$GCC" = yes; then
6067   # Check if gcc -print-prog-name=ld gives a path.
6068   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6069 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6070   case $host in
6071   *-*-mingw*)
6072     # gcc leaves a trailing carriage return which upsets mingw
6073     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6074   *)
6075     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6076   esac
6077   case $ac_prog in
6078     # Accept absolute paths.
6079     [\\/]* | ?:[\\/]*)
6080       re_direlt='/[^/][^/]*/\.\./'
6081       # Canonicalize the pathname of ld
6082       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6083       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6084         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6085       done
6086       test -z "$LD" && LD="$ac_prog"
6087       ;;
6088   "")
6089     # If it fails, then pretend we aren't using GCC.
6090     ac_prog=ld
6091     ;;
6092   *)
6093     # If it is relative, then search for the first ld in PATH.
6094     with_gnu_ld=unknown
6095     ;;
6096   esac
6097 elif test "$with_gnu_ld" = yes; then
6098   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6099 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6100 else
6101   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6102 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6103 fi
6104 if test "${lt_cv_path_LD+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   if test -z "$LD"; then
6108   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109   for ac_dir in $PATH; do
6110     IFS="$lt_save_ifs"
6111     test -z "$ac_dir" && ac_dir=.
6112     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6113       lt_cv_path_LD="$ac_dir/$ac_prog"
6114       # Check to see if the program is GNU ld.  I'd rather use --version,
6115       # but apparently some variants of GNU ld only accept -v.
6116       # Break only if it was the GNU/non-GNU ld that we prefer.
6117       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6118       *GNU* | *'with BFD'*)
6119         test "$with_gnu_ld" != no && break
6120         ;;
6121       *)
6122         test "$with_gnu_ld" != yes && break
6123         ;;
6124       esac
6125     fi
6126   done
6127   IFS="$lt_save_ifs"
6128 else
6129   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6130 fi
6131 fi
6132
6133 LD="$lt_cv_path_LD"
6134 if test -n "$LD"; then
6135   { echo "$as_me:$LINENO: result: $LD" >&5
6136 echo "${ECHO_T}$LD" >&6; }
6137 else
6138   { echo "$as_me:$LINENO: result: no" >&5
6139 echo "${ECHO_T}no" >&6; }
6140 fi
6141 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6142 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6143    { (exit 1); exit 1; }; }
6144 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6145 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6146 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6147   echo $ECHO_N "(cached) $ECHO_C" >&6
6148 else
6149   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6150 case `$LD -v 2>&1 </dev/null` in
6151 *GNU* | *'with BFD'*)
6152   lt_cv_prog_gnu_ld=yes
6153   ;;
6154 *)
6155   lt_cv_prog_gnu_ld=no
6156   ;;
6157 esac
6158 fi
6159 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6160 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6161 with_gnu_ld=$lt_cv_prog_gnu_ld
6162
6163
6164 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6165 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6166 if test "${lt_cv_ld_reload_flag+set}" = set; then
6167   echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169   lt_cv_ld_reload_flag='-r'
6170 fi
6171 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6172 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6173 reload_flag=$lt_cv_ld_reload_flag
6174 case $reload_flag in
6175 "" | " "*) ;;
6176 *) reload_flag=" $reload_flag" ;;
6177 esac
6178 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6179 case $host_os in
6180   darwin*)
6181     if test "$GCC" = yes; then
6182       reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
6183     else
6184       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6185     fi
6186     ;;
6187 esac
6188
6189 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6190 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6191 if test "${lt_cv_path_NM+set}" = set; then
6192   echo $ECHO_N "(cached) $ECHO_C" >&6
6193 else
6194   if test -n "$NM"; then
6195   # Let the user override the test.
6196   lt_cv_path_NM="$NM"
6197 else
6198   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6199   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
6200     IFS="$lt_save_ifs"
6201     test -z "$ac_dir" && ac_dir=.
6202     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
6203     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6204       # Check to see if the nm accepts a BSD-compat flag.
6205       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6206       #   nm: unknown option "B" ignored
6207       # Tru64's nm complains that /dev/null is an invalid object file
6208       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6209       */dev/null* | *'Invalid file or object type'*)
6210         lt_cv_path_NM="$tmp_nm -B"
6211         break
6212         ;;
6213       *)
6214         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6215         */dev/null*)
6216           lt_cv_path_NM="$tmp_nm -p"
6217           break
6218           ;;
6219         *)
6220           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6221           continue # so that we can try to find one that supports BSD flags
6222           ;;
6223         esac
6224       esac
6225     fi
6226   done
6227   IFS="$lt_save_ifs"
6228   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6229 fi
6230 fi
6231 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6232 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6233 NM="$lt_cv_path_NM"
6234
6235 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6236 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6237 LN_S=$as_ln_s
6238 if test "$LN_S" = "ln -s"; then
6239   { echo "$as_me:$LINENO: result: yes" >&5
6240 echo "${ECHO_T}yes" >&6; }
6241 else
6242   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6243 echo "${ECHO_T}no, using $LN_S" >&6; }
6244 fi
6245
6246 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6247 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6248 if test "${lt_cv_deplibs_check_method+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   lt_cv_file_magic_cmd='$MAGIC_CMD'
6252 lt_cv_file_magic_test_file=
6253 lt_cv_deplibs_check_method='unknown'
6254 # Need to set the preceding variable on all platforms that support
6255 # interlibrary dependencies.
6256 # 'none' -- dependencies not supported.
6257 # `unknown' -- same as none, but documents that we really don't know.
6258 # 'pass_all' -- all dependencies passed with no checks.
6259 # 'test_compile' -- check by making test program.
6260 # 'file_magic [[regex]]' -- check by looking for files in library path
6261 # which responds to the $file_magic_cmd with a given extended regex.
6262 # If you have `file' or equivalent on your system and you're not sure
6263 # whether `pass_all' will *always* work, you probably want this one.
6264
6265 case $host_os in
6266 aix4* | aix5*)
6267   lt_cv_deplibs_check_method=pass_all
6268   ;;
6269
6270 beos*)
6271   lt_cv_deplibs_check_method=pass_all
6272   ;;
6273
6274 bsdi[45]*)
6275   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6276   lt_cv_file_magic_cmd='/usr/bin/file -L'
6277   lt_cv_file_magic_test_file=/shlib/libc.so
6278   ;;
6279
6280 cygwin*)
6281   # func_win32_libid is a shell function defined in ltmain.sh
6282   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6283   lt_cv_file_magic_cmd='func_win32_libid'
6284   ;;
6285
6286 mingw* | pw32*)
6287   # Base MSYS/MinGW do not provide the 'file' command needed by
6288   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6289   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6290   lt_cv_file_magic_cmd='$OBJDUMP -f'
6291   ;;
6292
6293 darwin* | rhapsody*)
6294   lt_cv_deplibs_check_method=pass_all
6295   ;;
6296
6297 freebsd* | kfreebsd*-gnu | dragonfly*)
6298   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6299     case $host_cpu in
6300     i*86 )
6301       # Not sure whether the presence of OpenBSD here was a mistake.
6302       # Let's accept both of them until this is cleared up.
6303       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6304       lt_cv_file_magic_cmd=/usr/bin/file
6305       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6306       ;;
6307     esac
6308   else
6309     lt_cv_deplibs_check_method=pass_all
6310   fi
6311   ;;
6312
6313 gnu*)
6314   lt_cv_deplibs_check_method=pass_all
6315   ;;
6316
6317 hpux10.20* | hpux11*)
6318   lt_cv_file_magic_cmd=/usr/bin/file
6319   case $host_cpu in
6320   ia64*)
6321     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6322     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6323     ;;
6324   hppa*64*)
6325     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]'
6326     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6327     ;;
6328   *)
6329     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6330     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6331     ;;
6332   esac
6333   ;;
6334
6335 irix5* | irix6* | nonstopux*)
6336   case $LD in
6337   *-32|*"-32 ") libmagic=32-bit;;
6338   *-n32|*"-n32 ") libmagic=N32;;
6339   *-64|*"-64 ") libmagic=64-bit;;
6340   *) libmagic=never-match;;
6341   esac
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 # This must be Linux ELF.
6346 linux*)
6347   lt_cv_deplibs_check_method=pass_all
6348   ;;
6349
6350 netbsd*)
6351   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6353   else
6354     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6355   fi
6356   ;;
6357
6358 newos6*)
6359   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6360   lt_cv_file_magic_cmd=/usr/bin/file
6361   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6362   ;;
6363
6364 nto-qnx*)
6365   lt_cv_deplibs_check_method=unknown
6366   ;;
6367
6368 openbsd*)
6369   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6370     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6371   else
6372     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6373   fi
6374   ;;
6375
6376 osf3* | osf4* | osf5*)
6377   lt_cv_deplibs_check_method=pass_all
6378   ;;
6379
6380 sco3.2v5*)
6381   lt_cv_deplibs_check_method=pass_all
6382   ;;
6383
6384 solaris*)
6385   lt_cv_deplibs_check_method=pass_all
6386   ;;
6387
6388 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6389   case $host_vendor in
6390   motorola)
6391     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]'
6392     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6393     ;;
6394   ncr)
6395     lt_cv_deplibs_check_method=pass_all
6396     ;;
6397   sequent)
6398     lt_cv_file_magic_cmd='/bin/file'
6399     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6400     ;;
6401   sni)
6402     lt_cv_file_magic_cmd='/bin/file'
6403     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6404     lt_cv_file_magic_test_file=/lib/libc.so
6405     ;;
6406   siemens)
6407     lt_cv_deplibs_check_method=pass_all
6408     ;;
6409   esac
6410   ;;
6411
6412 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6413   lt_cv_deplibs_check_method=pass_all
6414   ;;
6415 esac
6416
6417 fi
6418 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6419 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6420 file_magic_cmd=$lt_cv_file_magic_cmd
6421 deplibs_check_method=$lt_cv_deplibs_check_method
6422 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6423
6424
6425
6426
6427 # If no C compiler was specified, use CC.
6428 LTCC=${LTCC-"$CC"}
6429
6430 # Allow CC to be a program name with arguments.
6431 compiler=$CC
6432
6433
6434 # Check whether --enable-libtool-lock was given.
6435 if test "${enable_libtool_lock+set}" = set; then
6436   enableval=$enable_libtool_lock;
6437 fi
6438
6439 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6440
6441 # Some flags need to be propagated to the compiler or linker for good
6442 # libtool support.
6443 case $host in
6444 ia64-*-hpux*)
6445   # Find out which ABI we are using.
6446   echo 'int i;' > conftest.$ac_ext
6447   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6448   (eval $ac_compile) 2>&5
6449   ac_status=$?
6450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451   (exit $ac_status); }; then
6452     case `/usr/bin/file conftest.$ac_objext` in
6453     *ELF-32*)
6454       HPUX_IA64_MODE="32"
6455       ;;
6456     *ELF-64*)
6457       HPUX_IA64_MODE="64"
6458       ;;
6459     esac
6460   fi
6461   rm -rf conftest*
6462   ;;
6463 *-*-irix6*)
6464   # Find out which ABI we are using.
6465   echo '#line 6465 "configure"' > conftest.$ac_ext
6466   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6467   (eval $ac_compile) 2>&5
6468   ac_status=$?
6469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470   (exit $ac_status); }; then
6471    if test "$lt_cv_prog_gnu_ld" = yes; then
6472     case `/usr/bin/file conftest.$ac_objext` in
6473     *32-bit*)
6474       LD="${LD-ld} -melf32bsmip"
6475       ;;
6476     *N32*)
6477       LD="${LD-ld} -melf32bmipn32"
6478       ;;
6479     *64-bit*)
6480       LD="${LD-ld} -melf64bmip"
6481       ;;
6482     esac
6483    else
6484     case `/usr/bin/file conftest.$ac_objext` in
6485     *32-bit*)
6486       LD="${LD-ld} -32"
6487       ;;
6488     *N32*)
6489       LD="${LD-ld} -n32"
6490       ;;
6491     *64-bit*)
6492       LD="${LD-ld} -64"
6493       ;;
6494     esac
6495    fi
6496   fi
6497   rm -rf conftest*
6498   ;;
6499
6500 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6501   # Find out which ABI we are using.
6502   echo 'int i;' > conftest.$ac_ext
6503   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6504   (eval $ac_compile) 2>&5
6505   ac_status=$?
6506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6507   (exit $ac_status); }; then
6508     case `/usr/bin/file conftest.o` in
6509     *32-bit*)
6510       case $host in
6511         x86_64-*linux*)
6512           LD="${LD-ld} -m elf_i386"
6513           ;;
6514         ppc64-*linux*|powerpc64-*linux*)
6515           LD="${LD-ld} -m elf32ppclinux"
6516           ;;
6517         s390x-*linux*)
6518           LD="${LD-ld} -m elf_s390"
6519           ;;
6520         sparc64-*linux*)
6521           LD="${LD-ld} -m elf32_sparc"
6522           ;;
6523       esac
6524       ;;
6525     *64-bit*)
6526       case $host in
6527         x86_64-*linux*)
6528           LD="${LD-ld} -m elf_x86_64"
6529           ;;
6530         ppc*-*linux*|powerpc*-*linux*)
6531           LD="${LD-ld} -m elf64ppc"
6532           ;;
6533         s390*-*linux*)
6534           LD="${LD-ld} -m elf64_s390"
6535           ;;
6536         sparc*-*linux*)
6537           LD="${LD-ld} -m elf64_sparc"
6538           ;;
6539       esac
6540       ;;
6541     esac
6542   fi
6543   rm -rf conftest*
6544   ;;
6545
6546 *-*-sco3.2v5*)
6547   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6548   SAVE_CFLAGS="$CFLAGS"
6549   CFLAGS="$CFLAGS -belf"
6550   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6551 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6552 if test "${lt_cv_cc_needs_belf+set}" = set; then
6553   echo $ECHO_N "(cached) $ECHO_C" >&6
6554 else
6555   ac_ext=c
6556 ac_cpp='$CPP $CPPFLAGS'
6557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6560
6561      cat >conftest.$ac_ext <<_ACEOF
6562 /* confdefs.h.  */
6563 _ACEOF
6564 cat confdefs.h >>conftest.$ac_ext
6565 cat >>conftest.$ac_ext <<_ACEOF
6566 /* end confdefs.h.  */
6567
6568 int
6569 main ()
6570 {
6571
6572   ;
6573   return 0;
6574 }
6575 _ACEOF
6576 rm -f conftest.$ac_objext conftest$ac_exeext
6577 if { (ac_try="$ac_link"
6578 case "(($ac_try" in
6579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6580   *) ac_try_echo=$ac_try;;
6581 esac
6582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6583   (eval "$ac_link") 2>conftest.er1
6584   ac_status=$?
6585   grep -v '^ *+' conftest.er1 >conftest.err
6586   rm -f conftest.er1
6587   cat conftest.err >&5
6588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6589   (exit $ac_status); } && {
6590          test -z "$ac_c_werror_flag" ||
6591          test ! -s conftest.err
6592        } && test -s conftest$ac_exeext &&
6593        $as_test_x conftest$ac_exeext; then
6594   lt_cv_cc_needs_belf=yes
6595 else
6596   echo "$as_me: failed program was:" >&5
6597 sed 's/^/| /' conftest.$ac_ext >&5
6598
6599         lt_cv_cc_needs_belf=no
6600 fi
6601
6602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6603       conftest$ac_exeext conftest.$ac_ext
6604      ac_ext=c
6605 ac_cpp='$CPP $CPPFLAGS'
6606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6609
6610 fi
6611 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6612 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6613   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6614     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6615     CFLAGS="$SAVE_CFLAGS"
6616   fi
6617   ;;
6618 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6619   if test -n "$ac_tool_prefix"; then
6620   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6621 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6624 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6625   echo $ECHO_N "(cached) $ECHO_C" >&6
6626 else
6627   if test -n "$DLLTOOL"; then
6628   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6629 else
6630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6631 for as_dir in $PATH
6632 do
6633   IFS=$as_save_IFS
6634   test -z "$as_dir" && as_dir=.
6635   for ac_exec_ext in '' $ac_executable_extensions; do
6636   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6637     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6638     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6639     break 2
6640   fi
6641 done
6642 done
6643 IFS=$as_save_IFS
6644
6645 fi
6646 fi
6647 DLLTOOL=$ac_cv_prog_DLLTOOL
6648 if test -n "$DLLTOOL"; then
6649   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6650 echo "${ECHO_T}$DLLTOOL" >&6; }
6651 else
6652   { echo "$as_me:$LINENO: result: no" >&5
6653 echo "${ECHO_T}no" >&6; }
6654 fi
6655
6656
6657 fi
6658 if test -z "$ac_cv_prog_DLLTOOL"; then
6659   ac_ct_DLLTOOL=$DLLTOOL
6660   # Extract the first word of "dlltool", so it can be a program name with args.
6661 set dummy dlltool; ac_word=$2
6662 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6663 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6664 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6665   echo $ECHO_N "(cached) $ECHO_C" >&6
6666 else
6667   if test -n "$ac_ct_DLLTOOL"; then
6668   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6669 else
6670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6671 for as_dir in $PATH
6672 do
6673   IFS=$as_save_IFS
6674   test -z "$as_dir" && as_dir=.
6675   for ac_exec_ext in '' $ac_executable_extensions; do
6676   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6677     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6678     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6679     break 2
6680   fi
6681 done
6682 done
6683 IFS=$as_save_IFS
6684
6685 fi
6686 fi
6687 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6688 if test -n "$ac_ct_DLLTOOL"; then
6689   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6690 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6691 else
6692   { echo "$as_me:$LINENO: result: no" >&5
6693 echo "${ECHO_T}no" >&6; }
6694 fi
6695
6696   if test "x$ac_ct_DLLTOOL" = x; then
6697     DLLTOOL="false"
6698   else
6699     case $cross_compiling:$ac_tool_warned in
6700 yes:)
6701 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6702 whose name does not start with the host triplet.  If you think this
6703 configuration is useful to you, please write to autoconf@gnu.org." >&5
6704 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6705 whose name does not start with the host triplet.  If you think this
6706 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6707 ac_tool_warned=yes ;;
6708 esac
6709     DLLTOOL=$ac_ct_DLLTOOL
6710   fi
6711 else
6712   DLLTOOL="$ac_cv_prog_DLLTOOL"
6713 fi
6714
6715   if test -n "$ac_tool_prefix"; then
6716   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6717 set dummy ${ac_tool_prefix}as; ac_word=$2
6718 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6720 if test "${ac_cv_prog_AS+set}" = set; then
6721   echo $ECHO_N "(cached) $ECHO_C" >&6
6722 else
6723   if test -n "$AS"; then
6724   ac_cv_prog_AS="$AS" # Let the user override the test.
6725 else
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6727 for as_dir in $PATH
6728 do
6729   IFS=$as_save_IFS
6730   test -z "$as_dir" && as_dir=.
6731   for ac_exec_ext in '' $ac_executable_extensions; do
6732   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6733     ac_cv_prog_AS="${ac_tool_prefix}as"
6734     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6735     break 2
6736   fi
6737 done
6738 done
6739 IFS=$as_save_IFS
6740
6741 fi
6742 fi
6743 AS=$ac_cv_prog_AS
6744 if test -n "$AS"; then
6745   { echo "$as_me:$LINENO: result: $AS" >&5
6746 echo "${ECHO_T}$AS" >&6; }
6747 else
6748   { echo "$as_me:$LINENO: result: no" >&5
6749 echo "${ECHO_T}no" >&6; }
6750 fi
6751
6752
6753 fi
6754 if test -z "$ac_cv_prog_AS"; then
6755   ac_ct_AS=$AS
6756   # Extract the first word of "as", so it can be a program name with args.
6757 set dummy as; ac_word=$2
6758 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6760 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6761   echo $ECHO_N "(cached) $ECHO_C" >&6
6762 else
6763   if test -n "$ac_ct_AS"; then
6764   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769   IFS=$as_save_IFS
6770   test -z "$as_dir" && as_dir=.
6771   for ac_exec_ext in '' $ac_executable_extensions; do
6772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6773     ac_cv_prog_ac_ct_AS="as"
6774     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6775     break 2
6776   fi
6777 done
6778 done
6779 IFS=$as_save_IFS
6780
6781 fi
6782 fi
6783 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6784 if test -n "$ac_ct_AS"; then
6785   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6786 echo "${ECHO_T}$ac_ct_AS" >&6; }
6787 else
6788   { echo "$as_me:$LINENO: result: no" >&5
6789 echo "${ECHO_T}no" >&6; }
6790 fi
6791
6792   if test "x$ac_ct_AS" = x; then
6793     AS="false"
6794   else
6795     case $cross_compiling:$ac_tool_warned in
6796 yes:)
6797 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6798 whose name does not start with the host triplet.  If you think this
6799 configuration is useful to you, please write to autoconf@gnu.org." >&5
6800 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6801 whose name does not start with the host triplet.  If you think this
6802 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6803 ac_tool_warned=yes ;;
6804 esac
6805     AS=$ac_ct_AS
6806   fi
6807 else
6808   AS="$ac_cv_prog_AS"
6809 fi
6810
6811   if test -n "$ac_tool_prefix"; then
6812   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6813 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6814 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6816 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6817   echo $ECHO_N "(cached) $ECHO_C" >&6
6818 else
6819   if test -n "$OBJDUMP"; then
6820   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6821 else
6822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6823 for as_dir in $PATH
6824 do
6825   IFS=$as_save_IFS
6826   test -z "$as_dir" && as_dir=.
6827   for ac_exec_ext in '' $ac_executable_extensions; do
6828   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6829     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6830     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6831     break 2
6832   fi
6833 done
6834 done
6835 IFS=$as_save_IFS
6836
6837 fi
6838 fi
6839 OBJDUMP=$ac_cv_prog_OBJDUMP
6840 if test -n "$OBJDUMP"; then
6841   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6842 echo "${ECHO_T}$OBJDUMP" >&6; }
6843 else
6844   { echo "$as_me:$LINENO: result: no" >&5
6845 echo "${ECHO_T}no" >&6; }
6846 fi
6847
6848
6849 fi
6850 if test -z "$ac_cv_prog_OBJDUMP"; then
6851   ac_ct_OBJDUMP=$OBJDUMP
6852   # Extract the first word of "objdump", so it can be a program name with args.
6853 set dummy objdump; ac_word=$2
6854 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6856 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6857   echo $ECHO_N "(cached) $ECHO_C" >&6
6858 else
6859   if test -n "$ac_ct_OBJDUMP"; then
6860   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6861 else
6862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 for as_dir in $PATH
6864 do
6865   IFS=$as_save_IFS
6866   test -z "$as_dir" && as_dir=.
6867   for ac_exec_ext in '' $ac_executable_extensions; do
6868   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6869     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6870     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6871     break 2
6872   fi
6873 done
6874 done
6875 IFS=$as_save_IFS
6876
6877 fi
6878 fi
6879 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6880 if test -n "$ac_ct_OBJDUMP"; then
6881   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6882 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6883 else
6884   { echo "$as_me:$LINENO: result: no" >&5
6885 echo "${ECHO_T}no" >&6; }
6886 fi
6887
6888   if test "x$ac_ct_OBJDUMP" = x; then
6889     OBJDUMP="false"
6890   else
6891     case $cross_compiling:$ac_tool_warned in
6892 yes:)
6893 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6894 whose name does not start with the host triplet.  If you think this
6895 configuration is useful to you, please write to autoconf@gnu.org." >&5
6896 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6897 whose name does not start with the host triplet.  If you think this
6898 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901     OBJDUMP=$ac_ct_OBJDUMP
6902   fi
6903 else
6904   OBJDUMP="$ac_cv_prog_OBJDUMP"
6905 fi
6906
6907   ;;
6908
6909 esac
6910
6911 need_locks="$enable_libtool_lock"
6912
6913
6914 ac_ext=c
6915 ac_cpp='$CPP $CPPFLAGS'
6916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6919 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6920 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6921 # On Suns, sometimes $CPP names a directory.
6922 if test -n "$CPP" && test -d "$CPP"; then
6923   CPP=
6924 fi
6925 if test -z "$CPP"; then
6926   if test "${ac_cv_prog_CPP+set}" = set; then
6927   echo $ECHO_N "(cached) $ECHO_C" >&6
6928 else
6929       # Double quotes because CPP needs to be expanded
6930     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6931     do
6932       ac_preproc_ok=false
6933 for ac_c_preproc_warn_flag in '' yes
6934 do
6935   # Use a header file that comes with gcc, so configuring glibc
6936   # with a fresh cross-compiler works.
6937   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6938   # <limits.h> exists even on freestanding compilers.
6939   # On the NeXT, cc -E runs the code through the compiler's parser,
6940   # not just through cpp. "Syntax error" is here to catch this case.
6941   cat >conftest.$ac_ext <<_ACEOF
6942 /* confdefs.h.  */
6943 _ACEOF
6944 cat confdefs.h >>conftest.$ac_ext
6945 cat >>conftest.$ac_ext <<_ACEOF
6946 /* end confdefs.h.  */
6947 #ifdef __STDC__
6948 # include <limits.h>
6949 #else
6950 # include <assert.h>
6951 #endif
6952                      Syntax error
6953 _ACEOF
6954 if { (ac_try="$ac_cpp conftest.$ac_ext"
6955 case "(($ac_try" in
6956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6957   *) ac_try_echo=$ac_try;;
6958 esac
6959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961   ac_status=$?
6962   grep -v '^ *+' conftest.er1 >conftest.err
6963   rm -f conftest.er1
6964   cat conftest.err >&5
6965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966   (exit $ac_status); } >/dev/null && {
6967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968          test ! -s conftest.err
6969        }; then
6970   :
6971 else
6972   echo "$as_me: failed program was:" >&5
6973 sed 's/^/| /' conftest.$ac_ext >&5
6974
6975   # Broken: fails on valid input.
6976 continue
6977 fi
6978
6979 rm -f conftest.err conftest.$ac_ext
6980
6981   # OK, works on sane cases.  Now check whether nonexistent headers
6982   # can be detected and how.
6983   cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h.  */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h.  */
6989 #include <ac_nonexistent.h>
6990 _ACEOF
6991 if { (ac_try="$ac_cpp conftest.$ac_ext"
6992 case "(($ac_try" in
6993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994   *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6998   ac_status=$?
6999   grep -v '^ *+' conftest.er1 >conftest.err
7000   rm -f conftest.er1
7001   cat conftest.err >&5
7002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003   (exit $ac_status); } >/dev/null && {
7004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7005          test ! -s conftest.err
7006        }; then
7007   # Broken: success on invalid input.
7008 continue
7009 else
7010   echo "$as_me: failed program was:" >&5
7011 sed 's/^/| /' conftest.$ac_ext >&5
7012
7013   # Passes both tests.
7014 ac_preproc_ok=:
7015 break
7016 fi
7017
7018 rm -f conftest.err conftest.$ac_ext
7019
7020 done
7021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7022 rm -f conftest.err conftest.$ac_ext
7023 if $ac_preproc_ok; then
7024   break
7025 fi
7026
7027     done
7028     ac_cv_prog_CPP=$CPP
7029
7030 fi
7031   CPP=$ac_cv_prog_CPP
7032 else
7033   ac_cv_prog_CPP=$CPP
7034 fi
7035 { echo "$as_me:$LINENO: result: $CPP" >&5
7036 echo "${ECHO_T}$CPP" >&6; }
7037 ac_preproc_ok=false
7038 for ac_c_preproc_warn_flag in '' yes
7039 do
7040   # Use a header file that comes with gcc, so configuring glibc
7041   # with a fresh cross-compiler works.
7042   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7043   # <limits.h> exists even on freestanding compilers.
7044   # On the NeXT, cc -E runs the code through the compiler's parser,
7045   # not just through cpp. "Syntax error" is here to catch this case.
7046   cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h.  */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h.  */
7052 #ifdef __STDC__
7053 # include <limits.h>
7054 #else
7055 # include <assert.h>
7056 #endif
7057                      Syntax error
7058 _ACEOF
7059 if { (ac_try="$ac_cpp conftest.$ac_ext"
7060 case "(($ac_try" in
7061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7062   *) ac_try_echo=$ac_try;;
7063 esac
7064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7065   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7066   ac_status=$?
7067   grep -v '^ *+' conftest.er1 >conftest.err
7068   rm -f conftest.er1
7069   cat conftest.err >&5
7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7071   (exit $ac_status); } >/dev/null && {
7072          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7073          test ! -s conftest.err
7074        }; then
7075   :
7076 else
7077   echo "$as_me: failed program was:" >&5
7078 sed 's/^/| /' conftest.$ac_ext >&5
7079
7080   # Broken: fails on valid input.
7081 continue
7082 fi
7083
7084 rm -f conftest.err conftest.$ac_ext
7085
7086   # OK, works on sane cases.  Now check whether nonexistent headers
7087   # can be detected and how.
7088   cat >conftest.$ac_ext <<_ACEOF
7089 /* confdefs.h.  */
7090 _ACEOF
7091 cat confdefs.h >>conftest.$ac_ext
7092 cat >>conftest.$ac_ext <<_ACEOF
7093 /* end confdefs.h.  */
7094 #include <ac_nonexistent.h>
7095 _ACEOF
7096 if { (ac_try="$ac_cpp conftest.$ac_ext"
7097 case "(($ac_try" in
7098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7099   *) ac_try_echo=$ac_try;;
7100 esac
7101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7103   ac_status=$?
7104   grep -v '^ *+' conftest.er1 >conftest.err
7105   rm -f conftest.er1
7106   cat conftest.err >&5
7107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7108   (exit $ac_status); } >/dev/null && {
7109          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7110          test ! -s conftest.err
7111        }; then
7112   # Broken: success on invalid input.
7113 continue
7114 else
7115   echo "$as_me: failed program was:" >&5
7116 sed 's/^/| /' conftest.$ac_ext >&5
7117
7118   # Passes both tests.
7119 ac_preproc_ok=:
7120 break
7121 fi
7122
7123 rm -f conftest.err conftest.$ac_ext
7124
7125 done
7126 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7127 rm -f conftest.err conftest.$ac_ext
7128 if $ac_preproc_ok; then
7129   :
7130 else
7131   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7132 See \`config.log' for more details." >&5
7133 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7134 See \`config.log' for more details." >&2;}
7135    { (exit 1); exit 1; }; }
7136 fi
7137
7138 ac_ext=c
7139 ac_cpp='$CPP $CPPFLAGS'
7140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7143
7144
7145 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7146 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7147 if test "${ac_cv_header_stdc+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   cat >conftest.$ac_ext <<_ACEOF
7151 /* confdefs.h.  */
7152 _ACEOF
7153 cat confdefs.h >>conftest.$ac_ext
7154 cat >>conftest.$ac_ext <<_ACEOF
7155 /* end confdefs.h.  */
7156 #include <stdlib.h>
7157 #include <stdarg.h>
7158 #include <string.h>
7159 #include <float.h>
7160
7161 int
7162 main ()
7163 {
7164
7165   ;
7166   return 0;
7167 }
7168 _ACEOF
7169 rm -f conftest.$ac_objext
7170 if { (ac_try="$ac_compile"
7171 case "(($ac_try" in
7172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7173   *) ac_try_echo=$ac_try;;
7174 esac
7175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7176   (eval "$ac_compile") 2>conftest.er1
7177   ac_status=$?
7178   grep -v '^ *+' conftest.er1 >conftest.err
7179   rm -f conftest.er1
7180   cat conftest.err >&5
7181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7182   (exit $ac_status); } && {
7183          test -z "$ac_c_werror_flag" ||
7184          test ! -s conftest.err
7185        } && test -s conftest.$ac_objext; then
7186   ac_cv_header_stdc=yes
7187 else
7188   echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191         ac_cv_header_stdc=no
7192 fi
7193
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195
7196 if test $ac_cv_header_stdc = yes; then
7197   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7198   cat >conftest.$ac_ext <<_ACEOF
7199 /* confdefs.h.  */
7200 _ACEOF
7201 cat confdefs.h >>conftest.$ac_ext
7202 cat >>conftest.$ac_ext <<_ACEOF
7203 /* end confdefs.h.  */
7204 #include <string.h>
7205
7206 _ACEOF
7207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7208   $EGREP "memchr" >/dev/null 2>&1; then
7209   :
7210 else
7211   ac_cv_header_stdc=no
7212 fi
7213 rm -f conftest*
7214
7215 fi
7216
7217 if test $ac_cv_header_stdc = yes; then
7218   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7219   cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225 #include <stdlib.h>
7226
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229   $EGREP "free" >/dev/null 2>&1; then
7230   :
7231 else
7232   ac_cv_header_stdc=no
7233 fi
7234 rm -f conftest*
7235
7236 fi
7237
7238 if test $ac_cv_header_stdc = yes; then
7239   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7240   if test "$cross_compiling" = yes; then
7241   :
7242 else
7243   cat >conftest.$ac_ext <<_ACEOF
7244 /* confdefs.h.  */
7245 _ACEOF
7246 cat confdefs.h >>conftest.$ac_ext
7247 cat >>conftest.$ac_ext <<_ACEOF
7248 /* end confdefs.h.  */
7249 #include <ctype.h>
7250 #include <stdlib.h>
7251 #if ((' ' & 0x0FF) == 0x020)
7252 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7253 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7254 #else
7255 # define ISLOWER(c) \
7256                    (('a' <= (c) && (c) <= 'i') \
7257                      || ('j' <= (c) && (c) <= 'r') \
7258                      || ('s' <= (c) && (c) <= 'z'))
7259 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7260 #endif
7261
7262 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7263 int
7264 main ()
7265 {
7266   int i;
7267   for (i = 0; i < 256; i++)
7268     if (XOR (islower (i), ISLOWER (i))
7269         || toupper (i) != TOUPPER (i))
7270       return 2;
7271   return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest$ac_exeext
7275 if { (ac_try="$ac_link"
7276 case "(($ac_try" in
7277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278   *) ac_try_echo=$ac_try;;
7279 esac
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281   (eval "$ac_link") 2>&5
7282   ac_status=$?
7283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7285   { (case "(($ac_try" in
7286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7287   *) ac_try_echo=$ac_try;;
7288 esac
7289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7290   (eval "$ac_try") 2>&5
7291   ac_status=$?
7292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7293   (exit $ac_status); }; }; then
7294   :
7295 else
7296   echo "$as_me: program exited with status $ac_status" >&5
7297 echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ( exit $ac_status )
7301 ac_cv_header_stdc=no
7302 fi
7303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7304 fi
7305
7306
7307 fi
7308 fi
7309 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7310 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7311 if test $ac_cv_header_stdc = yes; then
7312
7313 cat >>confdefs.h <<\_ACEOF
7314 #define STDC_HEADERS 1
7315 _ACEOF
7316
7317 fi
7318
7319 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7320
7321
7322
7323
7324
7325
7326
7327
7328
7329 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7330                   inttypes.h stdint.h unistd.h
7331 do
7332 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7336   echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338   cat >conftest.$ac_ext <<_ACEOF
7339 /* confdefs.h.  */
7340 _ACEOF
7341 cat confdefs.h >>conftest.$ac_ext
7342 cat >>conftest.$ac_ext <<_ACEOF
7343 /* end confdefs.h.  */
7344 $ac_includes_default
7345
7346 #include <$ac_header>
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352   *) ac_try_echo=$ac_try;;
7353 esac
7354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355   (eval "$ac_compile") 2>conftest.er1
7356   ac_status=$?
7357   grep -v '^ *+' conftest.er1 >conftest.err
7358   rm -f conftest.er1
7359   cat conftest.err >&5
7360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7361   (exit $ac_status); } && {
7362          test -z "$ac_c_werror_flag" ||
7363          test ! -s conftest.err
7364        } && test -s conftest.$ac_objext; then
7365   eval "$as_ac_Header=yes"
7366 else
7367   echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370         eval "$as_ac_Header=no"
7371 fi
7372
7373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 fi
7375 ac_res=`eval echo '${'$as_ac_Header'}'`
7376                { echo "$as_me:$LINENO: result: $ac_res" >&5
7377 echo "${ECHO_T}$ac_res" >&6; }
7378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7379   cat >>confdefs.h <<_ACEOF
7380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7381 _ACEOF
7382
7383 fi
7384
7385 done
7386
7387
7388
7389 for ac_header in dlfcn.h
7390 do
7391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7396   echo $ECHO_N "(cached) $ECHO_C" >&6
7397 fi
7398 ac_res=`eval echo '${'$as_ac_Header'}'`
7399                { echo "$as_me:$LINENO: result: $ac_res" >&5
7400 echo "${ECHO_T}$ac_res" >&6; }
7401 else
7402   # Is the header compilable?
7403 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7405 cat >conftest.$ac_ext <<_ACEOF
7406 /* confdefs.h.  */
7407 _ACEOF
7408 cat confdefs.h >>conftest.$ac_ext
7409 cat >>conftest.$ac_ext <<_ACEOF
7410 /* end confdefs.h.  */
7411 $ac_includes_default
7412 #include <$ac_header>
7413 _ACEOF
7414 rm -f conftest.$ac_objext
7415 if { (ac_try="$ac_compile"
7416 case "(($ac_try" in
7417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7418   *) ac_try_echo=$ac_try;;
7419 esac
7420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7421   (eval "$ac_compile") 2>conftest.er1
7422   ac_status=$?
7423   grep -v '^ *+' conftest.er1 >conftest.err
7424   rm -f conftest.er1
7425   cat conftest.err >&5
7426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427   (exit $ac_status); } && {
7428          test -z "$ac_c_werror_flag" ||
7429          test ! -s conftest.err
7430        } && test -s conftest.$ac_objext; then
7431   ac_header_compiler=yes
7432 else
7433   echo "$as_me: failed program was:" >&5
7434 sed 's/^/| /' conftest.$ac_ext >&5
7435
7436         ac_header_compiler=no
7437 fi
7438
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7441 echo "${ECHO_T}$ac_header_compiler" >&6; }
7442
7443 # Is the header present?
7444 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7445 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7446 cat >conftest.$ac_ext <<_ACEOF
7447 /* confdefs.h.  */
7448 _ACEOF
7449 cat confdefs.h >>conftest.$ac_ext
7450 cat >>conftest.$ac_ext <<_ACEOF
7451 /* end confdefs.h.  */
7452 #include <$ac_header>
7453 _ACEOF
7454 if { (ac_try="$ac_cpp conftest.$ac_ext"
7455 case "(($ac_try" in
7456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7457   *) ac_try_echo=$ac_try;;
7458 esac
7459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7460   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7461   ac_status=$?
7462   grep -v '^ *+' conftest.er1 >conftest.err
7463   rm -f conftest.er1
7464   cat conftest.err >&5
7465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7466   (exit $ac_status); } >/dev/null && {
7467          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7468          test ! -s conftest.err
7469        }; then
7470   ac_header_preproc=yes
7471 else
7472   echo "$as_me: failed program was:" >&5
7473 sed 's/^/| /' conftest.$ac_ext >&5
7474
7475   ac_header_preproc=no
7476 fi
7477
7478 rm -f conftest.err conftest.$ac_ext
7479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7480 echo "${ECHO_T}$ac_header_preproc" >&6; }
7481
7482 # So?  What about this header?
7483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7484   yes:no: )
7485     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7486 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7487     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7488 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7489     ac_header_preproc=yes
7490     ;;
7491   no:yes:* )
7492     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7493 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7494     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7495 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7496     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7497 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7498     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7499 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7500     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7501 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7502     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7503 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7504     ( cat <<\_ASBOX
7505 ## --------------------------------------------- ##
7506 ## Report this to <http://www.openldap.org/its/> ##
7507 ## --------------------------------------------- ##
7508 _ASBOX
7509      ) | sed "s/^/$as_me: WARNING:     /" >&2
7510     ;;
7511 esac
7512 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7513 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7515   echo $ECHO_N "(cached) $ECHO_C" >&6
7516 else
7517   eval "$as_ac_Header=\$ac_header_preproc"
7518 fi
7519 ac_res=`eval echo '${'$as_ac_Header'}'`
7520                { echo "$as_me:$LINENO: result: $ac_res" >&5
7521 echo "${ECHO_T}$ac_res" >&6; }
7522
7523 fi
7524 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7525   cat >>confdefs.h <<_ACEOF
7526 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7527 _ACEOF
7528
7529 fi
7530
7531 done
7532
7533
7534 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7535
7536 # find the maximum length of command line arguments
7537 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7538 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7539 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542     i=0
7543   teststring="ABCD"
7544
7545   case $build_os in
7546   msdosdjgpp*)
7547     # On DJGPP, this test can blow up pretty badly due to problems in libc
7548     # (any single argument exceeding 2000 bytes causes a buffer overrun
7549     # during glob expansion).  Even if it were fixed, the result of this
7550     # check would be larger than it should be.
7551     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7552     ;;
7553
7554   gnu*)
7555     # Under GNU Hurd, this test is not required because there is
7556     # no limit to the length of command line arguments.
7557     # Libtool will interpret -1 as no limit whatsoever
7558     lt_cv_sys_max_cmd_len=-1;
7559     ;;
7560
7561   cygwin* | mingw*)
7562     # On Win9x/ME, this test blows up -- it succeeds, but takes
7563     # about 5 minutes as the teststring grows exponentially.
7564     # Worse, since 9x/ME are not pre-emptively multitasking,
7565     # you end up with a "frozen" computer, even though with patience
7566     # the test eventually succeeds (with a max line length of 256k).
7567     # Instead, let's just punt: use the minimum linelength reported by
7568     # all of the supported platforms: 8192 (on NT/2K/XP).
7569     lt_cv_sys_max_cmd_len=8192;
7570     ;;
7571
7572   amigaos*)
7573     # On AmigaOS with pdksh, this test takes hours, literally.
7574     # So we just punt and use a minimum line length of 8192.
7575     lt_cv_sys_max_cmd_len=8192;
7576     ;;
7577
7578   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7579     # This has been around since 386BSD, at least.  Likely further.
7580     if test -x /sbin/sysctl; then
7581       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7582     elif test -x /usr/sbin/sysctl; then
7583       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7584     else
7585       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7586     fi
7587     # And add a safety zone
7588     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7589     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7590     ;;
7591   osf*)
7592     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7593     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7594     # nice to cause kernel panics so lets avoid the loop below.
7595     # First set a reasonable default.
7596     lt_cv_sys_max_cmd_len=16384
7597     #
7598     if test -x /sbin/sysconfig; then
7599       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7600         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7601       esac
7602     fi
7603     ;;
7604   *)
7605     # If test is not a shell built-in, we'll probably end up computing a
7606     # maximum length that is only half of the actual maximum length, but
7607     # we can't tell.
7608     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7609     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7610                = "XX$teststring") >/dev/null 2>&1 &&
7611             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7612             lt_cv_sys_max_cmd_len=$new_result &&
7613             test $i != 17 # 1/2 MB should be enough
7614     do
7615       i=`expr $i + 1`
7616       teststring=$teststring$teststring
7617     done
7618     teststring=
7619     # Add a significant safety factor because C++ compilers can tack on massive
7620     # amounts of additional arguments before passing them to the linker.
7621     # It appears as though 1/2 is a usable value.
7622     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7623     ;;
7624   esac
7625
7626 fi
7627
7628 if test -n $lt_cv_sys_max_cmd_len ; then
7629   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7630 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7631 else
7632   { echo "$as_me:$LINENO: result: none" >&5
7633 echo "${ECHO_T}none" >&6; }
7634 fi
7635
7636
7637
7638
7639 # Check for command to grab the raw symbol name followed by C symbol from nm.
7640 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7641 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7642 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7643   echo $ECHO_N "(cached) $ECHO_C" >&6
7644 else
7645
7646 # These are sane defaults that work on at least a few old systems.
7647 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7648
7649 # Character class describing NM global symbol codes.
7650 symcode='[BCDEGRST]'
7651
7652 # Regexp to match symbols that can be accessed directly from C.
7653 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7654
7655 # Transform an extracted symbol line into a proper C declaration
7656 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7657
7658 # Transform an extracted symbol line into symbol name and symbol address
7659 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'"
7660
7661 # Define system-specific variables.
7662 case $host_os in
7663 aix*)
7664   symcode='[BCDT]'
7665   ;;
7666 cygwin* | mingw* | pw32*)
7667   symcode='[ABCDGISTW]'
7668   ;;
7669 hpux*) # Its linker distinguishes data from code symbols
7670   if test "$host_cpu" = ia64; then
7671     symcode='[ABCDEGRST]'
7672   fi
7673   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7674   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'"
7675   ;;
7676 linux*)
7677   if test "$host_cpu" = ia64; then
7678     symcode='[ABCDGIRSTW]'
7679     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7680     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'"
7681   fi
7682   ;;
7683 irix* | nonstopux*)
7684   symcode='[BCDEGRST]'
7685   ;;
7686 osf*)
7687   symcode='[BCDEGQRST]'
7688   ;;
7689 solaris* | sysv5*)
7690   symcode='[BDRT]'
7691   ;;
7692 sysv4)
7693   symcode='[DFNSTU]'
7694   ;;
7695 esac
7696
7697 # Handle CRLF in mingw tool chain
7698 opt_cr=
7699 case $build_os in
7700 mingw*)
7701   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7702   ;;
7703 esac
7704
7705 # If we're using GNU nm, then use its standard symbol codes.
7706 case `$NM -V 2>&1` in
7707 *GNU* | *'with BFD'*)
7708   symcode='[ABCDGIRSTW]' ;;
7709 esac
7710
7711 # Try without a prefix undercore, then with it.
7712 for ac_symprfx in "" "_"; do
7713
7714   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7715   symxfrm="\\1 $ac_symprfx\\2 \\2"
7716
7717   # Write the raw and C identifiers.
7718   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7719
7720   # Check to see that the pipe works correctly.
7721   pipe_works=no
7722
7723   rm -f conftest*
7724   cat > conftest.$ac_ext <<EOF
7725 #ifdef __cplusplus
7726 extern "C" {
7727 #endif
7728 char nm_test_var;
7729 void nm_test_func(){}
7730 #ifdef __cplusplus
7731 }
7732 #endif
7733 int main(){nm_test_var='a';nm_test_func();return(0);}
7734 EOF
7735
7736   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7737   (eval $ac_compile) 2>&5
7738   ac_status=$?
7739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740   (exit $ac_status); }; then
7741     # Now try to grab the symbols.
7742     nlist=conftest.nm
7743     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7744   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7745   ac_status=$?
7746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747   (exit $ac_status); } && test -s "$nlist"; then
7748       # Try sorting and uniquifying the output.
7749       if sort "$nlist" | uniq > "$nlist"T; then
7750         mv -f "$nlist"T "$nlist"
7751       else
7752         rm -f "$nlist"T
7753       fi
7754
7755       # Make sure that we snagged all the symbols we need.
7756       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7757         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7758           cat <<EOF > conftest.$ac_ext
7759 #ifdef __cplusplus
7760 extern "C" {
7761 #endif
7762
7763 EOF
7764           # Now generate the symbol file.
7765           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7766
7767           cat <<EOF >> conftest.$ac_ext
7768 #if defined (__STDC__) && __STDC__
7769 # define lt_ptr_t void *
7770 #else
7771 # define lt_ptr_t char *
7772 # define const
7773 #endif
7774
7775 /* The mapping between symbol names and symbols. */
7776 const struct {
7777   const char *name;
7778   lt_ptr_t address;
7779 }
7780 lt_preloaded_symbols[] =
7781 {
7782 EOF
7783           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7784           cat <<\EOF >> conftest.$ac_ext
7785   {0, (lt_ptr_t) 0}
7786 };
7787
7788 #ifdef __cplusplus
7789 }
7790 #endif
7791 EOF
7792           # Now try linking the two files.
7793           mv conftest.$ac_objext conftstm.$ac_objext
7794           lt_save_LIBS="$LIBS"
7795           lt_save_CFLAGS="$CFLAGS"
7796           LIBS="conftstm.$ac_objext"
7797           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7798           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7799   (eval $ac_link) 2>&5
7800   ac_status=$?
7801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7803             pipe_works=yes
7804           fi
7805           LIBS="$lt_save_LIBS"
7806           CFLAGS="$lt_save_CFLAGS"
7807         else
7808           echo "cannot find nm_test_func in $nlist" >&5
7809         fi
7810       else
7811         echo "cannot find nm_test_var in $nlist" >&5
7812       fi
7813     else
7814       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7815     fi
7816   else
7817     echo "$progname: failed program was:" >&5
7818     cat conftest.$ac_ext >&5
7819   fi
7820   rm -f conftest* conftst*
7821
7822   # Do not use the global_symbol_pipe unless it works.
7823   if test "$pipe_works" = yes; then
7824     break
7825   else
7826     lt_cv_sys_global_symbol_pipe=
7827   fi
7828 done
7829
7830 fi
7831
7832 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7833   lt_cv_sys_global_symbol_to_cdecl=
7834 fi
7835 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7836   { echo "$as_me:$LINENO: result: failed" >&5
7837 echo "${ECHO_T}failed" >&6; }
7838 else
7839   { echo "$as_me:$LINENO: result: ok" >&5
7840 echo "${ECHO_T}ok" >&6; }
7841 fi
7842
7843 { echo "$as_me:$LINENO: checking for objdir" >&5
7844 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7845 if test "${lt_cv_objdir+set}" = set; then
7846   echo $ECHO_N "(cached) $ECHO_C" >&6
7847 else
7848   rm -f .libs 2>/dev/null
7849 mkdir .libs 2>/dev/null
7850 if test -d .libs; then
7851   lt_cv_objdir=.libs
7852 else
7853   # MS-DOS does not allow filenames that begin with a dot.
7854   lt_cv_objdir=_libs
7855 fi
7856 rmdir .libs 2>/dev/null
7857 fi
7858 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7859 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7860 objdir=$lt_cv_objdir
7861
7862
7863
7864
7865
7866 case $host_os in
7867 aix3*)
7868   # AIX sometimes has problems with the GCC collect2 program.  For some
7869   # reason, if we set the COLLECT_NAMES environment variable, the problems
7870   # vanish in a puff of smoke.
7871   if test "X${COLLECT_NAMES+set}" != Xset; then
7872     COLLECT_NAMES=
7873     export COLLECT_NAMES
7874   fi
7875   ;;
7876 esac
7877
7878 # Sed substitution that helps us do robust quoting.  It backslashifies
7879 # metacharacters that are still active within double-quoted strings.
7880 Xsed='sed -e 1s/^X//'
7881 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7882
7883 # Same as above, but do not quote variable references.
7884 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7885
7886 # Sed substitution to delay expansion of an escaped shell variable in a
7887 # double_quote_subst'ed string.
7888 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7889
7890 # Sed substitution to avoid accidental globbing in evaled expressions
7891 no_glob_subst='s/\*/\\\*/g'
7892
7893 # Constants:
7894 rm="rm -f"
7895
7896 # Global variables:
7897 default_ofile=libtool
7898 can_build_shared=yes
7899
7900 # All known linkers require a `.a' archive for static linking (except MSVC,
7901 # which needs '.lib').
7902 libext=a
7903 ltmain="$ac_aux_dir/ltmain.sh"
7904 ofile="$default_ofile"
7905 with_gnu_ld="$lt_cv_prog_gnu_ld"
7906
7907 if test -n "$ac_tool_prefix"; then
7908   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7909 set dummy ${ac_tool_prefix}ar; ac_word=$2
7910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7912 if test "${ac_cv_prog_AR+set}" = set; then
7913   echo $ECHO_N "(cached) $ECHO_C" >&6
7914 else
7915   if test -n "$AR"; then
7916   ac_cv_prog_AR="$AR" # Let the user override the test.
7917 else
7918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 for as_dir in $PATH
7920 do
7921   IFS=$as_save_IFS
7922   test -z "$as_dir" && as_dir=.
7923   for ac_exec_ext in '' $ac_executable_extensions; do
7924   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7925     ac_cv_prog_AR="${ac_tool_prefix}ar"
7926     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7927     break 2
7928   fi
7929 done
7930 done
7931 IFS=$as_save_IFS
7932
7933 fi
7934 fi
7935 AR=$ac_cv_prog_AR
7936 if test -n "$AR"; then
7937   { echo "$as_me:$LINENO: result: $AR" >&5
7938 echo "${ECHO_T}$AR" >&6; }
7939 else
7940   { echo "$as_me:$LINENO: result: no" >&5
7941 echo "${ECHO_T}no" >&6; }
7942 fi
7943
7944
7945 fi
7946 if test -z "$ac_cv_prog_AR"; then
7947   ac_ct_AR=$AR
7948   # Extract the first word of "ar", so it can be a program name with args.
7949 set dummy ar; ac_word=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7953   echo $ECHO_N "(cached) $ECHO_C" >&6
7954 else
7955   if test -n "$ac_ct_AR"; then
7956   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7957 else
7958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7959 for as_dir in $PATH
7960 do
7961   IFS=$as_save_IFS
7962   test -z "$as_dir" && as_dir=.
7963   for ac_exec_ext in '' $ac_executable_extensions; do
7964   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7965     ac_cv_prog_ac_ct_AR="ar"
7966     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7967     break 2
7968   fi
7969 done
7970 done
7971 IFS=$as_save_IFS
7972
7973 fi
7974 fi
7975 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7976 if test -n "$ac_ct_AR"; then
7977   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7978 echo "${ECHO_T}$ac_ct_AR" >&6; }
7979 else
7980   { echo "$as_me:$LINENO: result: no" >&5
7981 echo "${ECHO_T}no" >&6; }
7982 fi
7983
7984   if test "x$ac_ct_AR" = x; then
7985     AR="false"
7986   else
7987     case $cross_compiling:$ac_tool_warned in
7988 yes:)
7989 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7990 whose name does not start with the host triplet.  If you think this
7991 configuration is useful to you, please write to autoconf@gnu.org." >&5
7992 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7993 whose name does not start with the host triplet.  If you think this
7994 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7995 ac_tool_warned=yes ;;
7996 esac
7997     AR=$ac_ct_AR
7998   fi
7999 else
8000   AR="$ac_cv_prog_AR"
8001 fi
8002
8003 if test -n "$ac_tool_prefix"; then
8004   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8005 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8006 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8007 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8008 if test "${ac_cv_prog_RANLIB+set}" = set; then
8009   echo $ECHO_N "(cached) $ECHO_C" >&6
8010 else
8011   if test -n "$RANLIB"; then
8012   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8013 else
8014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 for as_dir in $PATH
8016 do
8017   IFS=$as_save_IFS
8018   test -z "$as_dir" && as_dir=.
8019   for ac_exec_ext in '' $ac_executable_extensions; do
8020   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8021     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8022     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8023     break 2
8024   fi
8025 done
8026 done
8027 IFS=$as_save_IFS
8028
8029 fi
8030 fi
8031 RANLIB=$ac_cv_prog_RANLIB
8032 if test -n "$RANLIB"; then
8033   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8034 echo "${ECHO_T}$RANLIB" >&6; }
8035 else
8036   { echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6; }
8038 fi
8039
8040
8041 fi
8042 if test -z "$ac_cv_prog_RANLIB"; then
8043   ac_ct_RANLIB=$RANLIB
8044   # Extract the first word of "ranlib", so it can be a program name with args.
8045 set dummy ranlib; ac_word=$2
8046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8048 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8049   echo $ECHO_N "(cached) $ECHO_C" >&6
8050 else
8051   if test -n "$ac_ct_RANLIB"; then
8052   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8053 else
8054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 for as_dir in $PATH
8056 do
8057   IFS=$as_save_IFS
8058   test -z "$as_dir" && as_dir=.
8059   for ac_exec_ext in '' $ac_executable_extensions; do
8060   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8061     ac_cv_prog_ac_ct_RANLIB="ranlib"
8062     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8063     break 2
8064   fi
8065 done
8066 done
8067 IFS=$as_save_IFS
8068
8069 fi
8070 fi
8071 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8072 if test -n "$ac_ct_RANLIB"; then
8073   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8074 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8075 else
8076   { echo "$as_me:$LINENO: result: no" >&5
8077 echo "${ECHO_T}no" >&6; }
8078 fi
8079
8080   if test "x$ac_ct_RANLIB" = x; then
8081     RANLIB=":"
8082   else
8083     case $cross_compiling:$ac_tool_warned in
8084 yes:)
8085 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8086 whose name does not start with the host triplet.  If you think this
8087 configuration is useful to you, please write to autoconf@gnu.org." >&5
8088 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8089 whose name does not start with the host triplet.  If you think this
8090 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8091 ac_tool_warned=yes ;;
8092 esac
8093     RANLIB=$ac_ct_RANLIB
8094   fi
8095 else
8096   RANLIB="$ac_cv_prog_RANLIB"
8097 fi
8098
8099 if test -n "$ac_tool_prefix"; then
8100   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8101 set dummy ${ac_tool_prefix}strip; ac_word=$2
8102 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8103 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8104 if test "${ac_cv_prog_STRIP+set}" = set; then
8105   echo $ECHO_N "(cached) $ECHO_C" >&6
8106 else
8107   if test -n "$STRIP"; then
8108   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8109 else
8110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8111 for as_dir in $PATH
8112 do
8113   IFS=$as_save_IFS
8114   test -z "$as_dir" && as_dir=.
8115   for ac_exec_ext in '' $ac_executable_extensions; do
8116   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8117     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8118     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8119     break 2
8120   fi
8121 done
8122 done
8123 IFS=$as_save_IFS
8124
8125 fi
8126 fi
8127 STRIP=$ac_cv_prog_STRIP
8128 if test -n "$STRIP"; then
8129   { echo "$as_me:$LINENO: result: $STRIP" >&5
8130 echo "${ECHO_T}$STRIP" >&6; }
8131 else
8132   { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_STRIP"; then
8139   ac_ct_STRIP=$STRIP
8140   # Extract the first word of "strip", so it can be a program name with args.
8141 set dummy strip; ac_word=$2
8142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8144 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8145   echo $ECHO_N "(cached) $ECHO_C" >&6
8146 else
8147   if test -n "$ac_ct_STRIP"; then
8148   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8149 else
8150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8151 for as_dir in $PATH
8152 do
8153   IFS=$as_save_IFS
8154   test -z "$as_dir" && as_dir=.
8155   for ac_exec_ext in '' $ac_executable_extensions; do
8156   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8157     ac_cv_prog_ac_ct_STRIP="strip"
8158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8159     break 2
8160   fi
8161 done
8162 done
8163 IFS=$as_save_IFS
8164
8165 fi
8166 fi
8167 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8168 if test -n "$ac_ct_STRIP"; then
8169   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8170 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8171 else
8172   { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8174 fi
8175
8176   if test "x$ac_ct_STRIP" = x; then
8177     STRIP=":"
8178   else
8179     case $cross_compiling:$ac_tool_warned in
8180 yes:)
8181 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8182 whose name does not start with the host triplet.  If you think this
8183 configuration is useful to you, please write to autoconf@gnu.org." >&5
8184 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8185 whose name does not start with the host triplet.  If you think this
8186 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8187 ac_tool_warned=yes ;;
8188 esac
8189     STRIP=$ac_ct_STRIP
8190   fi
8191 else
8192   STRIP="$ac_cv_prog_STRIP"
8193 fi
8194
8195
8196 old_CC="$CC"
8197 old_CFLAGS="$CFLAGS"
8198
8199 # Set sane defaults for various variables
8200 test -z "$AR" && AR=ar
8201 test -z "$AR_FLAGS" && AR_FLAGS=cru
8202 test -z "$AS" && AS=as
8203 test -z "$CC" && CC=cc
8204 test -z "$LTCC" && LTCC=$CC
8205 test -z "$DLLTOOL" && DLLTOOL=dlltool
8206 test -z "$LD" && LD=ld
8207 test -z "$LN_S" && LN_S="ln -s"
8208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8209 test -z "$NM" && NM=nm
8210 test -z "$SED" && SED=sed
8211 test -z "$OBJDUMP" && OBJDUMP=objdump
8212 test -z "$RANLIB" && RANLIB=:
8213 test -z "$STRIP" && STRIP=:
8214 test -z "$ac_objext" && ac_objext=o
8215
8216 # Determine commands to create old-style static archives.
8217 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8218 old_postinstall_cmds='chmod 644 $oldlib'
8219 old_postuninstall_cmds=
8220
8221 if test -n "$RANLIB"; then
8222   case $host_os in
8223   openbsd*)
8224     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8225     ;;
8226   *)
8227     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8228     ;;
8229   esac
8230   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8231 fi
8232
8233 for cc_temp in $compiler""; do
8234   case $cc_temp in
8235     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8236     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8237     \-*) ;;
8238     *) break;;
8239   esac
8240 done
8241 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8242
8243
8244 # Only perform the check for file, if the check method requires it
8245 case $deplibs_check_method in
8246 file_magic*)
8247   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8248     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8249 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8250 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   case $MAGIC_CMD in
8254 [\\/*] |  ?:[\\/]*)
8255   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8256   ;;
8257 *)
8258   lt_save_MAGIC_CMD="$MAGIC_CMD"
8259   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8260   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8261   for ac_dir in $ac_dummy; do
8262     IFS="$lt_save_ifs"
8263     test -z "$ac_dir" && ac_dir=.
8264     if test -f $ac_dir/${ac_tool_prefix}file; then
8265       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8266       if test -n "$file_magic_test_file"; then
8267         case $deplibs_check_method in
8268         "file_magic "*)
8269           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8270           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8271           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8272             $EGREP "$file_magic_regex" > /dev/null; then
8273             :
8274           else
8275             cat <<EOF 1>&2
8276
8277 *** Warning: the command libtool uses to detect shared libraries,
8278 *** $file_magic_cmd, produces output that libtool cannot recognize.
8279 *** The result is that libtool may fail to recognize shared libraries
8280 *** as such.  This will affect the creation of libtool libraries that
8281 *** depend on shared libraries, but programs linked with such libtool
8282 *** libraries will work regardless of this problem.  Nevertheless, you
8283 *** may want to report the problem to your system manager and/or to
8284 *** bug-libtool@gnu.org
8285
8286 EOF
8287           fi ;;
8288         esac
8289       fi
8290       break
8291     fi
8292   done
8293   IFS="$lt_save_ifs"
8294   MAGIC_CMD="$lt_save_MAGIC_CMD"
8295   ;;
8296 esac
8297 fi
8298
8299 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8300 if test -n "$MAGIC_CMD"; then
8301   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8302 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8303 else
8304   { echo "$as_me:$LINENO: result: no" >&5
8305 echo "${ECHO_T}no" >&6; }
8306 fi
8307
8308 if test -z "$lt_cv_path_MAGIC_CMD"; then
8309   if test -n "$ac_tool_prefix"; then
8310     { echo "$as_me:$LINENO: checking for file" >&5
8311 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8312 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8313   echo $ECHO_N "(cached) $ECHO_C" >&6
8314 else
8315   case $MAGIC_CMD in
8316 [\\/*] |  ?:[\\/]*)
8317   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8318   ;;
8319 *)
8320   lt_save_MAGIC_CMD="$MAGIC_CMD"
8321   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8322   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8323   for ac_dir in $ac_dummy; do
8324     IFS="$lt_save_ifs"
8325     test -z "$ac_dir" && ac_dir=.
8326     if test -f $ac_dir/file; then
8327       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8328       if test -n "$file_magic_test_file"; then
8329         case $deplibs_check_method in
8330         "file_magic "*)
8331           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8332           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8334             $EGREP "$file_magic_regex" > /dev/null; then
8335             :
8336           else
8337             cat <<EOF 1>&2
8338
8339 *** Warning: the command libtool uses to detect shared libraries,
8340 *** $file_magic_cmd, produces output that libtool cannot recognize.
8341 *** The result is that libtool may fail to recognize shared libraries
8342 *** as such.  This will affect the creation of libtool libraries that
8343 *** depend on shared libraries, but programs linked with such libtool
8344 *** libraries will work regardless of this problem.  Nevertheless, you
8345 *** may want to report the problem to your system manager and/or to
8346 *** bug-libtool@gnu.org
8347
8348 EOF
8349           fi ;;
8350         esac
8351       fi
8352       break
8353     fi
8354   done
8355   IFS="$lt_save_ifs"
8356   MAGIC_CMD="$lt_save_MAGIC_CMD"
8357   ;;
8358 esac
8359 fi
8360
8361 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8362 if test -n "$MAGIC_CMD"; then
8363   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8364 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8365 else
8366   { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8368 fi
8369
8370   else
8371     MAGIC_CMD=:
8372   fi
8373 fi
8374
8375   fi
8376   ;;
8377 esac
8378
8379 enable_dlopen=yes
8380 enable_win32_dll=yes
8381
8382 # Check whether --enable-libtool-lock was given.
8383 if test "${enable_libtool_lock+set}" = set; then
8384   enableval=$enable_libtool_lock;
8385 fi
8386
8387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8388
8389
8390 # Check whether --with-pic was given.
8391 if test "${with_pic+set}" = set; then
8392   withval=$with_pic; pic_mode="$withval"
8393 else
8394   pic_mode=default
8395 fi
8396
8397 test -z "$pic_mode" && pic_mode=default
8398
8399 # Use C for the default configuration in the libtool script
8400 tagname=
8401 lt_save_CC="$CC"
8402 ac_ext=c
8403 ac_cpp='$CPP $CPPFLAGS'
8404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8407
8408
8409 # Source file extension for C test sources.
8410 ac_ext=c
8411
8412 # Object file extension for compiled C test sources.
8413 objext=o
8414 objext=$objext
8415
8416 # Code to be used in simple compile tests
8417 lt_simple_compile_test_code="int some_variable = 0;\n"
8418
8419 # Code to be used in simple link tests
8420 lt_simple_link_test_code='int main(){return(0);}\n'
8421
8422
8423 # If no C compiler was specified, use CC.
8424 LTCC=${LTCC-"$CC"}
8425
8426 # Allow CC to be a program name with arguments.
8427 compiler=$CC
8428
8429
8430 # save warnings/boilerplate of simple test code
8431 ac_outfile=conftest.$ac_objext
8432 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8433 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8434 _lt_compiler_boilerplate=`cat conftest.err`
8435 $rm conftest*
8436
8437 ac_outfile=conftest.$ac_objext
8438 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8439 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
8440 _lt_linker_boilerplate=`cat conftest.err`
8441 $rm conftest*
8442
8443
8444 #
8445 # Check for any special shared library compilation flags.
8446 #
8447 lt_prog_cc_shlib=
8448 if test "$GCC" = no; then
8449   case $host_os in
8450   sco3.2v5*)
8451     lt_prog_cc_shlib='-belf'
8452     ;;
8453   esac
8454 fi
8455 if test -n "$lt_prog_cc_shlib"; then
8456   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8457 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8458   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
8459   else
8460     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8461 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8462     lt_cv_prog_cc_can_build_shared=no
8463   fi
8464 fi
8465
8466
8467 #
8468 # Check to make sure the static flag actually works.
8469 #
8470 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8471 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; }
8472 if test "${lt_prog_compiler_static_works+set}" = set; then
8473   echo $ECHO_N "(cached) $ECHO_C" >&6
8474 else
8475   lt_prog_compiler_static_works=no
8476    save_LDFLAGS="$LDFLAGS"
8477    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8478    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8479    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8480      # The linker can only warn and ignore the option if not recognized
8481      # So say no if there are warnings
8482      if test -s conftest.err; then
8483        # Append any errors to the config.log.
8484        cat conftest.err 1>&5
8485        $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
8486        $SED '/^$/d' conftest.err >conftest.er2
8487        if diff conftest.exp conftest.er2 >/dev/null; then
8488          lt_prog_compiler_static_works=yes
8489        fi
8490      else
8491        lt_prog_compiler_static_works=yes
8492      fi
8493    fi
8494    $rm conftest*
8495    LDFLAGS="$save_LDFLAGS"
8496
8497 fi
8498 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8499 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8500
8501 if test x"$lt_prog_compiler_static_works" = xyes; then
8502     :
8503 else
8504     lt_prog_compiler_static=
8505 fi
8506
8507
8508
8509
8510 lt_prog_compiler_no_builtin_flag=
8511
8512 if test "$GCC" = yes; then
8513   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8514
8515
8516 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8517 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8518 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8519   echo $ECHO_N "(cached) $ECHO_C" >&6
8520 else
8521   lt_cv_prog_compiler_rtti_exceptions=no
8522   ac_outfile=conftest.$ac_objext
8523    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8524    lt_compiler_flag="-fno-rtti -fno-exceptions"
8525    # Insert the option either (1) after the last *FLAGS variable, or
8526    # (2) before a word containing "conftest.", or (3) at the end.
8527    # Note that $ac_compile itself does not contain backslashes and begins
8528    # with a dollar sign (not a hyphen), so the echo should work correctly.
8529    # The option is referenced via a variable to avoid confusing sed.
8530    lt_compile=`echo "$ac_compile" | $SED \
8531    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8532    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8533    -e 's:$: $lt_compiler_flag:'`
8534    (eval echo "\"\$as_me:8534: $lt_compile\"" >&5)
8535    (eval "$lt_compile" 2>conftest.err)
8536    ac_status=$?
8537    cat conftest.err >&5
8538    echo "$as_me:8538: \$? = $ac_status" >&5
8539    if (exit $ac_status) && test -s "$ac_outfile"; then
8540      # The compiler can only warn and ignore the option if not recognized
8541      # So say no if there are warnings other than the usual output.
8542      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8543      $SED '/^$/d' conftest.err >conftest.er2
8544      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8545        lt_cv_prog_compiler_rtti_exceptions=yes
8546      fi
8547    fi
8548    $rm conftest*
8549
8550 fi
8551 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8552 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8553
8554 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8555     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8556 else
8557     :
8558 fi
8559
8560 fi
8561
8562 lt_prog_compiler_wl=
8563 lt_prog_compiler_pic=
8564 lt_prog_compiler_static=
8565
8566 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8567 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8568
8569   if test "$GCC" = yes; then
8570     lt_prog_compiler_wl='-Wl,'
8571     lt_prog_compiler_static='-static'
8572
8573     case $host_os in
8574       aix*)
8575       # All AIX code is PIC.
8576       if test "$host_cpu" = ia64; then
8577         # AIX 5 now supports IA64 processor
8578         lt_prog_compiler_static='-Bstatic'
8579       fi
8580       ;;
8581
8582     amigaos*)
8583       # FIXME: we need at least 68020 code to build shared libraries, but
8584       # adding the `-m68020' flag to GCC prevents building anything better,
8585       # like `-m68040'.
8586       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8587       ;;
8588
8589     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8590       # PIC is the default for these OSes.
8591       ;;
8592
8593     mingw* | pw32* | os2*)
8594       # This hack is so that the source file can tell whether it is being
8595       # built for inclusion in a dll (and should export symbols for example).
8596       lt_prog_compiler_pic='-DDLL_EXPORT'
8597       ;;
8598
8599     darwin* | rhapsody*)
8600       # PIC is the default on this platform
8601       # Common symbols not allowed in MH_DYLIB files
8602       lt_prog_compiler_pic='-fno-common'
8603       ;;
8604
8605     msdosdjgpp*)
8606       # Just because we use GCC doesn't mean we suddenly get shared libraries
8607       # on systems that don't support them.
8608       lt_prog_compiler_can_build_shared=no
8609       enable_shared=no
8610       ;;
8611
8612     sysv4*MP*)
8613       if test -d /usr/nec; then
8614         lt_prog_compiler_pic=-Kconform_pic
8615       fi
8616       ;;
8617
8618     hpux*)
8619       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8620       # not for PA HP-UX.
8621       case $host_cpu in
8622       hppa*64*|ia64*)
8623         # +Z the default
8624         ;;
8625       *)
8626         lt_prog_compiler_pic='-fPIC'
8627         ;;
8628       esac
8629       ;;
8630
8631     *)
8632       lt_prog_compiler_pic='-fPIC'
8633       ;;
8634     esac
8635   else
8636     # PORTME Check for flag to pass linker flags through the system compiler.
8637     case $host_os in
8638     aix*)
8639       lt_prog_compiler_wl='-Wl,'
8640       if test "$host_cpu" = ia64; then
8641         # AIX 5 now supports IA64 processor
8642         lt_prog_compiler_static='-Bstatic'
8643       else
8644         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8645       fi
8646       ;;
8647       darwin*)
8648         # PIC is the default on this platform
8649         # Common symbols not allowed in MH_DYLIB files
8650        case $cc_basename in
8651          xlc*)
8652          lt_prog_compiler_pic='-qnocommon'
8653          lt_prog_compiler_wl='-Wl,'
8654          ;;
8655        esac
8656        ;;
8657
8658     mingw* | pw32* | os2*)
8659       # This hack is so that the source file can tell whether it is being
8660       # built for inclusion in a dll (and should export symbols for example).
8661       lt_prog_compiler_pic='-DDLL_EXPORT'
8662       ;;
8663
8664     hpux9* | hpux10* | hpux11*)
8665       lt_prog_compiler_wl='-Wl,'
8666       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8667       # not for PA HP-UX.
8668       case $host_cpu in
8669       hppa*64*|ia64*)
8670         # +Z the default
8671         ;;
8672       *)
8673         lt_prog_compiler_pic='+Z'
8674         ;;
8675       esac
8676       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8677       lt_prog_compiler_static='${wl}-a ${wl}archive'
8678       ;;
8679
8680     irix5* | irix6* | nonstopux*)
8681       lt_prog_compiler_wl='-Wl,'
8682       # PIC (with -KPIC) is the default.
8683       lt_prog_compiler_static='-non_shared'
8684       ;;
8685
8686     newsos6)
8687       lt_prog_compiler_pic='-KPIC'
8688       lt_prog_compiler_static='-Bstatic'
8689       ;;
8690
8691     linux*)
8692       case $cc_basename in
8693       icc* | ecc*)
8694         lt_prog_compiler_wl='-Wl,'
8695         lt_prog_compiler_pic='-KPIC'
8696         lt_prog_compiler_static='-static'
8697         ;;
8698       pgcc* | pgf77* | pgf90* | pgf95*)
8699         # Portland Group compilers (*not* the Pentium gcc compiler,
8700         # which looks to be a dead project)
8701         lt_prog_compiler_wl='-Wl,'
8702         lt_prog_compiler_pic='-fpic'
8703         lt_prog_compiler_static='-Bstatic'
8704         ;;
8705       ccc*)
8706         lt_prog_compiler_wl='-Wl,'
8707         # All Alpha code is PIC.
8708         lt_prog_compiler_static='-non_shared'
8709         ;;
8710       esac
8711       ;;
8712
8713     osf3* | osf4* | osf5*)
8714       lt_prog_compiler_wl='-Wl,'
8715       # All OSF/1 code is PIC.
8716       lt_prog_compiler_static='-non_shared'
8717       ;;
8718
8719     sco3.2v5*)
8720       lt_prog_compiler_pic='-Kpic'
8721       lt_prog_compiler_static='-dn'
8722       ;;
8723
8724     solaris*)
8725       lt_prog_compiler_pic='-KPIC'
8726       lt_prog_compiler_static='-Bstatic'
8727       case $cc_basename in
8728       f77* | f90* | f95*)
8729         lt_prog_compiler_wl='-Qoption ld ';;
8730       *)
8731         lt_prog_compiler_wl='-Wl,';;
8732       esac
8733       ;;
8734
8735     sunos4*)
8736       lt_prog_compiler_wl='-Qoption ld '
8737       lt_prog_compiler_pic='-PIC'
8738       lt_prog_compiler_static='-Bstatic'
8739       ;;
8740
8741     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8742       lt_prog_compiler_wl='-Wl,'
8743       lt_prog_compiler_pic='-KPIC'
8744       lt_prog_compiler_static='-Bstatic'
8745       ;;
8746
8747     sysv4*MP*)
8748       if test -d /usr/nec ;then
8749         lt_prog_compiler_pic='-Kconform_pic'
8750         lt_prog_compiler_static='-Bstatic'
8751       fi
8752       ;;
8753
8754     unicos*)
8755       lt_prog_compiler_wl='-Wl,'
8756       lt_prog_compiler_can_build_shared=no
8757       ;;
8758
8759     uts4*)
8760       lt_prog_compiler_pic='-pic'
8761       lt_prog_compiler_static='-Bstatic'
8762       ;;
8763
8764     *)
8765       lt_prog_compiler_can_build_shared=no
8766       ;;
8767     esac
8768   fi
8769
8770 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8771 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8772
8773 #
8774 # Check to make sure the PIC flag actually works.
8775 #
8776 if test -n "$lt_prog_compiler_pic"; then
8777
8778 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8779 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8780 if test "${lt_prog_compiler_pic_works+set}" = set; then
8781   echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783   lt_prog_compiler_pic_works=no
8784   ac_outfile=conftest.$ac_objext
8785    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8786    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8787    # Insert the option either (1) after the last *FLAGS variable, or
8788    # (2) before a word containing "conftest.", or (3) at the end.
8789    # Note that $ac_compile itself does not contain backslashes and begins
8790    # with a dollar sign (not a hyphen), so the echo should work correctly.
8791    # The option is referenced via a variable to avoid confusing sed.
8792    lt_compile=`echo "$ac_compile" | $SED \
8793    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8794    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8795    -e 's:$: $lt_compiler_flag:'`
8796    (eval echo "\"\$as_me:8796: $lt_compile\"" >&5)
8797    (eval "$lt_compile" 2>conftest.err)
8798    ac_status=$?
8799    cat conftest.err >&5
8800    echo "$as_me:8800: \$? = $ac_status" >&5
8801    if (exit $ac_status) && test -s "$ac_outfile"; then
8802      # The compiler can only warn and ignore the option if not recognized
8803      # So say no if there are warnings other than the usual output.
8804      $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
8805      $SED '/^$/d' conftest.err >conftest.er2
8806      if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
8807        lt_prog_compiler_pic_works=yes
8808      fi
8809    fi
8810    $rm conftest*
8811
8812 fi
8813 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8814 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8815
8816 if test x"$lt_prog_compiler_pic_works" = xyes; then
8817     case $lt_prog_compiler_pic in
8818      "" | " "*) ;;
8819      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8820      esac
8821 else
8822     lt_prog_compiler_pic=
8823      lt_prog_compiler_can_build_shared=no
8824 fi
8825
8826 fi
8827 case $host_os in
8828   # For platforms which do not support PIC, -DPIC is meaningless:
8829   *djgpp*)
8830     lt_prog_compiler_pic=
8831     ;;
8832   *)
8833     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8834     ;;
8835 esac
8836
8837 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8838 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8839 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8840   echo $ECHO_N "(cached) $ECHO_C" >&6
8841 else
8842   lt_cv_prog_compiler_c_o=no
8843    $rm -r conftest 2>/dev/null
8844    mkdir conftest
8845    cd conftest
8846    mkdir out
8847    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8848
8849    lt_compiler_flag="-o out/conftest2.$ac_objext"
8850    # Insert the option either (1) after the last *FLAGS variable, or
8851    # (2) before a word containing "conftest.", or (3) at the end.
8852    # Note that $ac_compile itself does not contain backslashes and begins
8853    # with a dollar sign (not a hyphen), so the echo should work correctly.
8854    lt_compile=`echo "$ac_compile" | $SED \
8855    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8856    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8857    -e 's:$: $lt_compiler_flag:'`
8858    (eval echo "\"\$as_me:8858: $lt_compile\"" >&5)
8859    (eval "$lt_compile" 2>out/conftest.err)
8860    ac_status=$?
8861    cat out/conftest.err >&5
8862    echo "$as_me:8862: \$? = $ac_status" >&5
8863    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8864    then
8865      # The compiler can only warn and ignore the option if not recognized
8866      # So say no if there are warnings
8867      $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
8868      $SED '/^$/d' out/conftest.err >out/conftest.er2
8869      if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8870        lt_cv_prog_compiler_c_o=yes
8871      fi
8872    fi
8873    chmod u+w . 2>&5
8874    $rm conftest*
8875    # SGI C++ compiler will create directory out/ii_files/ for
8876    # template instantiation
8877    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8878    $rm out/* && rmdir out
8879    cd ..
8880    rmdir conftest
8881    $rm conftest*
8882
8883 fi
8884 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8885 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8886
8887
8888 hard_links="nottested"
8889 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8890   # do not overwrite the value of need_locks provided by the user
8891   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8892 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8893   hard_links=yes
8894   $rm conftest*
8895   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8896   touch conftest.a
8897   ln conftest.a conftest.b 2>&5 || hard_links=no
8898   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8899   { echo "$as_me:$LINENO: result: $hard_links" >&5
8900 echo "${ECHO_T}$hard_links" >&6; }
8901   if test "$hard_links" = no; then
8902     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8903 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8904     need_locks=warn
8905   fi
8906 else
8907   need_locks=no
8908 fi
8909
8910 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8911 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8912
8913   runpath_var=
8914   allow_undefined_flag=
8915   enable_shared_with_static_runtimes=no
8916   archive_cmds=
8917   archive_expsym_cmds=
8918   old_archive_From_new_cmds=
8919   old_archive_from_expsyms_cmds=
8920   export_dynamic_flag_spec=
8921   whole_archive_flag_spec=
8922   thread_safe_flag_spec=
8923   hardcode_libdir_flag_spec=
8924   hardcode_libdir_flag_spec_ld=
8925   hardcode_libdir_separator=
8926   hardcode_direct=no
8927   hardcode_minus_L=no
8928   hardcode_shlibpath_var=unsupported
8929   link_all_deplibs=unknown
8930   hardcode_automatic=no
8931   module_cmds=
8932   module_expsym_cmds=
8933   always_export_symbols=no
8934   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8935   # include_expsyms should be a list of space-separated symbols to be *always*
8936   # included in the symbol list
8937   include_expsyms=
8938   # exclude_expsyms can be an extended regexp of symbols to exclude
8939   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8940   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8941   # as well as any symbol that contains `d'.
8942   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8943   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8944   # platforms (ab)use it in PIC code, but their linkers get confused if
8945   # the symbol is explicitly referenced.  Since portable code cannot
8946   # rely on this symbol name, it's probably fine to never include it in
8947   # preloaded symbol tables.
8948   extract_expsyms_cmds=
8949   # Just being paranoid about ensuring that cc_basename is set.
8950   for cc_temp in $compiler""; do
8951   case $cc_temp in
8952     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8953     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8954     \-*) ;;
8955     *) break;;
8956   esac
8957 done
8958 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8959
8960   case $host_os in
8961   cygwin* | mingw* | pw32*)
8962     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8963     # When not using gcc, we currently assume that we are using
8964     # Microsoft Visual C++.
8965     if test "$GCC" != yes; then
8966       with_gnu_ld=no
8967     fi
8968     ;;
8969   openbsd*)
8970     with_gnu_ld=no
8971     ;;
8972   esac
8973
8974   ld_shlibs=yes
8975   if test "$with_gnu_ld" = yes; then
8976     # If archive_cmds runs LD, not CC, wlarc should be empty
8977     wlarc='${wl}'
8978
8979     # Set some defaults for GNU ld with shared library support. These
8980     # are reset later if shared libraries are not supported. Putting them
8981     # here allows them to be overridden if necessary.
8982     runpath_var=LD_RUN_PATH
8983     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8984     export_dynamic_flag_spec='${wl}--export-dynamic'
8985     # ancient GNU ld didn't support --whole-archive et. al.
8986     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8987         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8988       else
8989         whole_archive_flag_spec=
8990     fi
8991     supports_anon_versioning=no
8992     case `$LD -v 2>/dev/null` in
8993       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8994       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8995       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8996       *\ 2.11.*) ;; # other 2.11 versions
8997       *) supports_anon_versioning=yes ;;
8998     esac
8999
9000     # See if GNU ld supports shared libraries.
9001     case $host_os in
9002     aix3* | aix4* | aix5*)
9003       # On AIX/PPC, the GNU linker is very broken
9004       if test "$host_cpu" != ia64; then
9005         ld_shlibs=no
9006         cat <<EOF 1>&2
9007
9008 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9009 *** to be unable to reliably create shared libraries on AIX.
9010 *** Therefore, libtool is disabling shared libraries support.  If you
9011 *** really care for shared libraries, you may want to modify your PATH
9012 *** so that a non-GNU linker is found, and then restart.
9013
9014 EOF
9015       fi
9016       ;;
9017
9018     amigaos*)
9019       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)'
9020       hardcode_libdir_flag_spec='-L$libdir'
9021       hardcode_minus_L=yes
9022
9023       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9024       # that the semantics of dynamic libraries on AmigaOS, at least up
9025       # to version 4, is to share data among multiple programs linked
9026       # with the same dynamic library.  Since this doesn't match the
9027       # behavior of shared libraries on other platforms, we can't use
9028       # them.
9029       ld_shlibs=no
9030       ;;
9031
9032     beos*)
9033       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9034         allow_undefined_flag=unsupported
9035         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9036         # support --undefined.  This deserves some investigation.  FIXME
9037         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9038       else
9039         ld_shlibs=no
9040       fi
9041       ;;
9042
9043     cygwin* | mingw* | pw32*)
9044       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9045       # as there is no search path for DLLs.
9046       hardcode_libdir_flag_spec='-L$libdir'
9047       allow_undefined_flag=unsupported
9048       always_export_symbols=no
9049       enable_shared_with_static_runtimes=yes
9050       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9051
9052       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9053         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9054         # If the export-symbols file already is a .def file (1st line
9055         # is EXPORTS), use it as is; otherwise, prepend...
9056         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9057           cp $export_symbols $output_objdir/$soname.def;
9058         else
9059           echo EXPORTS > $output_objdir/$soname.def;
9060           cat $export_symbols >> $output_objdir/$soname.def;
9061         fi~
9062         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
9063       else
9064         ld_shlibs=no
9065       fi
9066       ;;
9067
9068     linux*)
9069       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9070         tmp_addflag=
9071         case $cc_basename,$host_cpu in
9072         pgcc*)                          # Portland Group C compiler
9073           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'
9074           tmp_addflag=' $pic_flag'
9075           ;;
9076         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9077           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
9078           tmp_addflag=' $pic_flag -Mnomain' ;;
9079         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9080           tmp_addflag=' -i_dynamic' ;;
9081         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9082           tmp_addflag=' -i_dynamic -nofor_main' ;;
9083         ifc* | ifort*)                  # Intel Fortran compiler
9084           tmp_addflag=' -nofor_main' ;;
9085         esac
9086         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9087
9088         if test $supports_anon_versioning = yes; then
9089           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9090   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9091   $echo "local: *; };" >> $output_objdir/$libname.ver~
9092           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9093         fi
9094       else
9095         ld_shlibs=no
9096       fi
9097       ;;
9098
9099     netbsd*)
9100       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9101         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9102         wlarc=
9103       else
9104         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9105         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9106       fi
9107       ;;
9108
9109     solaris* | sysv5*)
9110       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9111         ld_shlibs=no
9112         cat <<EOF 1>&2
9113
9114 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9115 *** create shared libraries on Solaris systems.  Therefore, libtool
9116 *** is disabling shared libraries support.  We urge you to upgrade GNU
9117 *** binutils to release 2.9.1 or newer.  Another option is to modify
9118 *** your PATH or compiler configuration so that the native linker is
9119 *** used, and then restart.
9120
9121 EOF
9122       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9123         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9125       else
9126         ld_shlibs=no
9127       fi
9128       ;;
9129
9130     sunos4*)
9131       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9132       wlarc=
9133       hardcode_direct=yes
9134       hardcode_shlibpath_var=no
9135       ;;
9136
9137     *)
9138       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9139         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9140         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9141       else
9142         ld_shlibs=no
9143       fi
9144       ;;
9145     esac
9146
9147     if test "$ld_shlibs" = no; then
9148       runpath_var=
9149       hardcode_libdir_flag_spec=
9150       export_dynamic_flag_spec=
9151       whole_archive_flag_spec=
9152     fi
9153   else
9154     # PORTME fill in a description of your system's linker (not GNU ld)
9155     case $host_os in
9156     aix3*)
9157       allow_undefined_flag=unsupported
9158       always_export_symbols=yes
9159       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'
9160       # Note: this linker hardcodes the directories in LIBPATH if there
9161       # are no directories specified by -L.
9162       hardcode_minus_L=yes
9163       if test "$GCC" = yes && test -z "$link_static_flag"; then
9164         # Neither direct hardcoding nor static linking is supported with a
9165         # broken collect2.
9166         hardcode_direct=unsupported
9167       fi
9168       ;;
9169
9170     aix4* | aix5*)
9171       if test "$host_cpu" = ia64; then
9172         # On IA64, the linker does run time linking by default, so we don't
9173         # have to do anything special.
9174         aix_use_runtimelinking=no
9175         exp_sym_flag='-Bexport'
9176         no_entry_flag=""
9177       else
9178         # If we're using GNU nm, then we don't want the "-C" option.
9179         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9180         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9181           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'
9182         else
9183           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'
9184         fi
9185         aix_use_runtimelinking=no
9186
9187         # Test if we are trying to use run time linking or normal
9188         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9189         # need to do runtime linking.
9190         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9191           for ld_flag in $LDFLAGS; do
9192           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9193             aix_use_runtimelinking=yes
9194             break
9195           fi
9196           done
9197         esac
9198
9199         exp_sym_flag='-bexport'
9200         no_entry_flag='-bnoentry'
9201       fi
9202
9203       # When large executables or shared objects are built, AIX ld can
9204       # have problems creating the table of contents.  If linking a library
9205       # or program results in "error TOC overflow" add -mminimal-toc to
9206       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9207       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9208
9209       archive_cmds=''
9210       hardcode_direct=yes
9211       hardcode_libdir_separator=':'
9212       link_all_deplibs=yes
9213
9214       if test "$GCC" = yes; then
9215         case $host_os in aix4.[012]|aix4.[012].*)
9216         # We only want to do this on AIX 4.2 and lower, the check
9217         # below for broken collect2 doesn't work under 4.3+
9218           collect2name=`${CC} -print-prog-name=collect2`
9219           if test -f "$collect2name" && \
9220            strings "$collect2name" | grep resolve_lib_name >/dev/null
9221           then
9222           # We have reworked collect2
9223           hardcode_direct=yes
9224           else
9225           # We have old collect2
9226           hardcode_direct=unsupported
9227           # It fails to find uninstalled libraries when the uninstalled
9228           # path is not listed in the libpath.  Setting hardcode_minus_L
9229           # to unsupported forces relinking
9230           hardcode_minus_L=yes
9231           hardcode_libdir_flag_spec='-L$libdir'
9232           hardcode_libdir_separator=
9233           fi
9234         esac
9235         shared_flag='-shared'
9236         if test "$aix_use_runtimelinking" = yes; then
9237           shared_flag="$shared_flag "'${wl}-G'
9238         fi
9239       else
9240         # not using gcc
9241         if test "$host_cpu" = ia64; then
9242         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9243         # chokes on -Wl,-G. The following line is correct:
9244           shared_flag='-G'
9245         else
9246         if test "$aix_use_runtimelinking" = yes; then
9247             shared_flag='${wl}-G'
9248           else
9249             shared_flag='${wl}-bM:SRE'
9250         fi
9251         fi
9252       fi
9253
9254       # It seems that -bexpall does not export symbols beginning with
9255       # underscore (_), so it is better to generate a list of symbols to export.
9256       always_export_symbols=yes
9257       if test "$aix_use_runtimelinking" = yes; then
9258         # Warning - without using the other runtime loading flags (-brtl),
9259         # -berok will link without error, but may produce a broken library.
9260         allow_undefined_flag='-berok'
9261        # Determine the default libpath from the value encoded in an empty executable.
9262        cat >conftest.$ac_ext <<_ACEOF
9263 /* confdefs.h.  */
9264 _ACEOF
9265 cat confdefs.h >>conftest.$ac_ext
9266 cat >>conftest.$ac_ext <<_ACEOF
9267 /* end confdefs.h.  */
9268
9269 int
9270 main ()
9271 {
9272
9273   ;
9274   return 0;
9275 }
9276 _ACEOF
9277 rm -f conftest.$ac_objext conftest$ac_exeext
9278 if { (ac_try="$ac_link"
9279 case "(($ac_try" in
9280   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9281   *) ac_try_echo=$ac_try;;
9282 esac
9283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9284   (eval "$ac_link") 2>conftest.er1
9285   ac_status=$?
9286   grep -v '^ *+' conftest.er1 >conftest.err
9287   rm -f conftest.er1
9288   cat conftest.err >&5
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && {
9291          test -z "$ac_c_werror_flag" ||
9292          test ! -s conftest.err
9293        } && test -s conftest$ac_exeext &&
9294        $as_test_x conftest$ac_exeext; then
9295
9296 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9297 }'`
9298 # Check for a 64-bit object if we didn't find anything.
9299 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; }
9300 }'`; fi
9301 else
9302   echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.$ac_ext >&5
9304
9305
9306 fi
9307
9308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9309       conftest$ac_exeext conftest.$ac_ext
9310 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9311
9312        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9313         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"
9314        else
9315         if test "$host_cpu" = ia64; then
9316           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9317           allow_undefined_flag="-z nodefs"
9318           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"
9319         else
9320          # Determine the default libpath from the value encoded in an empty executable.
9321          cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 int
9329 main ()
9330 {
9331
9332   ;
9333   return 0;
9334 }
9335 _ACEOF
9336 rm -f conftest.$ac_objext conftest$ac_exeext
9337 if { (ac_try="$ac_link"
9338 case "(($ac_try" in
9339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340   *) ac_try_echo=$ac_try;;
9341 esac
9342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343   (eval "$ac_link") 2>conftest.er1
9344   ac_status=$?
9345   grep -v '^ *+' conftest.er1 >conftest.err
9346   rm -f conftest.er1
9347   cat conftest.err >&5
9348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349   (exit $ac_status); } && {
9350          test -z "$ac_c_werror_flag" ||
9351          test ! -s conftest.err
9352        } && test -s conftest$ac_exeext &&
9353        $as_test_x conftest$ac_exeext; then
9354
9355 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9356 }'`
9357 # Check for a 64-bit object if we didn't find anything.
9358 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; }
9359 }'`; fi
9360 else
9361   echo "$as_me: failed program was:" >&5
9362 sed 's/^/| /' conftest.$ac_ext >&5
9363
9364
9365 fi
9366
9367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9368       conftest$ac_exeext conftest.$ac_ext
9369 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9370
9371          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9372           # Warning - without using the other run time loading flags,
9373           # -berok will link without error, but may produce a broken library.
9374           no_undefined_flag=' ${wl}-bernotok'
9375           allow_undefined_flag=' ${wl}-berok'
9376           # -bexpall does not export symbols beginning with underscore (_)
9377           always_export_symbols=yes
9378           # Exported symbols can be pulled into shared objects from archives
9379           whole_archive_flag_spec=' '
9380           archive_cmds_need_lc=yes
9381           # This is similar to how AIX traditionally builds its shared libraries.
9382           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'
9383         fi
9384       fi
9385       ;;
9386
9387     amigaos*)
9388       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)'
9389       hardcode_libdir_flag_spec='-L$libdir'
9390       hardcode_minus_L=yes
9391       # see comment about different semantics on the GNU ld section
9392       ld_shlibs=no
9393       ;;
9394
9395     bsdi[45]*)
9396       export_dynamic_flag_spec=-rdynamic
9397       ;;
9398
9399     cygwin* | mingw* | pw32*)
9400       # When not using gcc, we currently assume that we are using
9401       # Microsoft Visual C++.
9402       # hardcode_libdir_flag_spec is actually meaningless, as there is
9403       # no search path for DLLs.
9404       hardcode_libdir_flag_spec=' '
9405       allow_undefined_flag=unsupported
9406       # Tell ltmain to make .lib files, not .a files.
9407       libext=lib
9408       # Tell ltmain to make .dll files, not .so files.
9409       shrext_cmds=".dll"
9410       # FIXME: Setting linknames here is a bad hack.
9411       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9412       # The linker will automatically build a .lib file if we build a DLL.
9413       old_archive_From_new_cmds='true'
9414       # FIXME: Should let the user specify the lib program.
9415       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9416       fix_srcfile_path='`cygpath -w "$srcfile"`'
9417       enable_shared_with_static_runtimes=yes
9418       ;;
9419
9420     darwin* | rhapsody*)
9421       case $host_os in
9422         rhapsody* | darwin1.[012])
9423          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9424          ;;
9425        *) # Darwin 1.3 on
9426          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9427            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9428          else
9429            case ${MACOSX_DEPLOYMENT_TARGET} in
9430              10.[012])
9431                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9432                ;;
9433              10.*)
9434                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9435                ;;
9436            esac
9437          fi
9438          ;;
9439       esac
9440       archive_cmds_need_lc=no
9441       hardcode_direct=no
9442       hardcode_automatic=yes
9443       hardcode_shlibpath_var=unsupported
9444       whole_archive_flag_spec=''
9445       link_all_deplibs=yes
9446     if test "$GCC" = yes ; then
9447         output_verbose_link_cmd='echo'
9448         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9449       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9450       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9451       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}'
9452       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}'
9453     else
9454       case $cc_basename in
9455         xlc*)
9456          output_verbose_link_cmd='echo'
9457          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9458          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9459           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9460          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}'
9461           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}'
9462           ;;
9463        *)
9464          ld_shlibs=no
9465           ;;
9466       esac
9467     fi
9468       ;;
9469
9470     dgux*)
9471       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9472       hardcode_libdir_flag_spec='-L$libdir'
9473       hardcode_shlibpath_var=no
9474       ;;
9475
9476     freebsd1*)
9477       ld_shlibs=no
9478       ;;
9479
9480     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9481     # support.  Future versions do this automatically, but an explicit c++rt0.o
9482     # does not break anything, and helps significantly (at the cost of a little
9483     # extra space).
9484     freebsd2.2*)
9485       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9486       hardcode_libdir_flag_spec='-R$libdir'
9487       hardcode_direct=yes
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9492     freebsd2*)
9493       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9494       hardcode_direct=yes
9495       hardcode_minus_L=yes
9496       hardcode_shlibpath_var=no
9497       ;;
9498
9499     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9500     freebsd* | kfreebsd*-gnu | dragonfly*)
9501       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9502       hardcode_libdir_flag_spec='-R$libdir'
9503       hardcode_direct=yes
9504       hardcode_shlibpath_var=no
9505       ;;
9506
9507     hpux9*)
9508       if test "$GCC" = yes; then
9509         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'
9510       else
9511         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'
9512       fi
9513       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9514       hardcode_libdir_separator=:
9515       hardcode_direct=yes
9516
9517       # hardcode_minus_L: Not really in the search PATH,
9518       # but as the default location of the library.
9519       hardcode_minus_L=yes
9520       export_dynamic_flag_spec='${wl}-E'
9521       ;;
9522
9523     hpux10* | hpux11*)
9524       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9525         case $host_cpu in
9526         hppa*64*|ia64*)
9527           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9528           ;;
9529         *)
9530           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9531           ;;
9532         esac
9533       else
9534         case $host_cpu in
9535         hppa*64*|ia64*)
9536           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9537           ;;
9538         *)
9539           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9540           ;;
9541         esac
9542       fi
9543       if test "$with_gnu_ld" = no; then
9544         case $host_cpu in
9545         hppa*64*)
9546           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9547           hardcode_libdir_flag_spec_ld='+b $libdir'
9548           hardcode_libdir_separator=:
9549           hardcode_direct=no
9550           hardcode_shlibpath_var=no
9551           ;;
9552         ia64*)
9553           hardcode_libdir_flag_spec='-L$libdir'
9554           hardcode_direct=no
9555           hardcode_shlibpath_var=no
9556
9557           # hardcode_minus_L: Not really in the search PATH,
9558           # but as the default location of the library.
9559           hardcode_minus_L=yes
9560           ;;
9561         *)
9562           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9563           hardcode_libdir_separator=:
9564           hardcode_direct=yes
9565           export_dynamic_flag_spec='${wl}-E'
9566
9567           # hardcode_minus_L: Not really in the search PATH,
9568           # but as the default location of the library.
9569           hardcode_minus_L=yes
9570           ;;
9571         esac
9572       fi
9573       ;;
9574
9575     irix5* | irix6* | nonstopux*)
9576       if test "$GCC" = yes; then
9577         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'
9578       else
9579         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'
9580         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9581       fi
9582       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9583       hardcode_libdir_separator=:
9584       link_all_deplibs=yes
9585       ;;
9586
9587     netbsd*)
9588       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9589         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9590       else
9591         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9592       fi
9593       hardcode_libdir_flag_spec='-R$libdir'
9594       hardcode_direct=yes
9595       hardcode_shlibpath_var=no
9596       ;;
9597
9598     newsos6)
9599       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9600       hardcode_direct=yes
9601       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9602       hardcode_libdir_separator=:
9603       hardcode_shlibpath_var=no
9604       ;;
9605
9606     openbsd*)
9607       hardcode_direct=yes
9608       hardcode_shlibpath_var=no
9609       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9610         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9611         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9612         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9613         export_dynamic_flag_spec='${wl}-E'
9614       else
9615        case $host_os in
9616          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9617            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9618            hardcode_libdir_flag_spec='-R$libdir'
9619            ;;
9620          *)
9621            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9622            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9623            ;;
9624        esac
9625       fi
9626       ;;
9627
9628     os2*)
9629       hardcode_libdir_flag_spec='-L$libdir'
9630       hardcode_minus_L=yes
9631       allow_undefined_flag=unsupported
9632       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'
9633       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9634       ;;
9635
9636     osf3*)
9637       if test "$GCC" = yes; then
9638         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9639         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'
9640       else
9641         allow_undefined_flag=' -expect_unresolved \*'
9642         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'
9643       fi
9644       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9645       hardcode_libdir_separator=:
9646       ;;
9647
9648     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9649       if test "$GCC" = yes; then
9650         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9651         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'
9652         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653       else
9654         allow_undefined_flag=' -expect_unresolved \*'
9655         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'
9656         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9657         $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'
9658
9659         # Both c and cxx compiler support -rpath directly
9660         hardcode_libdir_flag_spec='-rpath $libdir'
9661       fi
9662       hardcode_libdir_separator=:
9663       ;;
9664
9665     sco3.2v5*)
9666       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9667       hardcode_shlibpath_var=no
9668       export_dynamic_flag_spec='${wl}-Bexport'
9669       runpath_var=LD_RUN_PATH
9670       hardcode_runpath_var=yes
9671       ;;
9672
9673     solaris*)
9674       no_undefined_flag=' -z text'
9675       if test "$GCC" = yes; then
9676         wlarc='${wl}'
9677         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9678         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9679           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9680       else
9681         wlarc=''
9682         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9683         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9684         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9685       fi
9686       hardcode_libdir_flag_spec='-R$libdir'
9687       hardcode_shlibpath_var=no
9688       case $host_os in
9689       solaris2.[0-5] | solaris2.[0-5].*) ;;
9690       *)
9691         # The compiler driver will combine linker options so we
9692         # cannot just pass the convience library names through
9693         # without $wl, iff we do not link with $LD.
9694         # Luckily, gcc supports the same syntax we need for Sun Studio.
9695         # Supported since Solaris 2.6 (maybe 2.5.1?)
9696         case $wlarc in
9697         '')
9698           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9699         *)
9700           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' ;;
9701         esac ;;
9702       esac
9703       link_all_deplibs=yes
9704       ;;
9705
9706     sunos4*)
9707       if test "x$host_vendor" = xsequent; then
9708         # Use $CC to link under sequent, because it throws in some extra .o
9709         # files that make .init and .fini sections work.
9710         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9711       else
9712         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9713       fi
9714       hardcode_libdir_flag_spec='-L$libdir'
9715       hardcode_direct=yes
9716       hardcode_minus_L=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     sysv4)
9721       case $host_vendor in
9722         sni)
9723           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9724           hardcode_direct=yes # is this really true???
9725         ;;
9726         siemens)
9727           ## LD is ld it makes a PLAMLIB
9728           ## CC just makes a GrossModule.
9729           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9730           reload_cmds='$CC -r -o $output$reload_objs'
9731           hardcode_direct=no
9732         ;;
9733         motorola)
9734           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9735           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9736         ;;
9737       esac
9738       runpath_var='LD_RUN_PATH'
9739       hardcode_shlibpath_var=no
9740       ;;
9741
9742     sysv4.3*)
9743       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744       hardcode_shlibpath_var=no
9745       export_dynamic_flag_spec='-Bexport'
9746       ;;
9747
9748     sysv4*MP*)
9749       if test -d /usr/nec; then
9750         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9751         hardcode_shlibpath_var=no
9752         runpath_var=LD_RUN_PATH
9753         hardcode_runpath_var=yes
9754         ld_shlibs=yes
9755       fi
9756       ;;
9757
9758     sysv4.2uw2*)
9759       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9760       hardcode_direct=yes
9761       hardcode_minus_L=no
9762       hardcode_shlibpath_var=no
9763       hardcode_runpath_var=yes
9764       runpath_var=LD_RUN_PATH
9765       ;;
9766
9767    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
9768       no_undefined_flag='${wl}-z ${wl}text'
9769       if test "$GCC" = yes; then
9770         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9771       else
9772         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9773       fi
9774       runpath_var='LD_RUN_PATH'
9775       hardcode_shlibpath_var=no
9776       ;;
9777
9778     sysv5*)
9779       no_undefined_flag=' -z text'
9780       # $CC -shared without GNU ld will not create a library from C++
9781       # object files and a static libstdc++, better avoid it by now
9782       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9783       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9784                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9785       hardcode_libdir_flag_spec=
9786       hardcode_shlibpath_var=no
9787       runpath_var='LD_RUN_PATH'
9788       ;;
9789
9790     uts4*)
9791       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9792       hardcode_libdir_flag_spec='-L$libdir'
9793       hardcode_shlibpath_var=no
9794       ;;
9795
9796     *)
9797       ld_shlibs=no
9798       ;;
9799     esac
9800   fi
9801
9802 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9803 echo "${ECHO_T}$ld_shlibs" >&6; }
9804 test "$ld_shlibs" = no && can_build_shared=no
9805
9806 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9807 if test "$GCC" = yes; then
9808   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9809 fi
9810
9811 #
9812 # Do we need to explicitly link libc?
9813 #
9814 case "x$archive_cmds_need_lc" in
9815 x|xyes)
9816   # Assume -lc should be added
9817   archive_cmds_need_lc=yes
9818
9819   if test "$enable_shared" = yes && test "$GCC" = yes; then
9820     case $archive_cmds in
9821     *'~'*)
9822       # FIXME: we may have to deal with multi-command sequences.
9823       ;;
9824     '$CC '*)
9825       # Test whether the compiler implicitly links with -lc since on some
9826       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9827       # to ld, don't add -lc before -lgcc.
9828       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9829 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9830       $rm conftest*
9831       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9832
9833       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9834   (eval $ac_compile) 2>&5
9835   ac_status=$?
9836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837   (exit $ac_status); } 2>conftest.err; then
9838         soname=conftest
9839         lib=conftest
9840         libobjs=conftest.$ac_objext
9841         deplibs=
9842         wl=$lt_prog_compiler_wl
9843         compiler_flags=-v
9844         linker_flags=-v
9845         verstring=
9846         output_objdir=.
9847         libname=conftest
9848         lt_save_allow_undefined_flag=$allow_undefined_flag
9849         allow_undefined_flag=
9850         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9851   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9852   ac_status=$?
9853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9854   (exit $ac_status); }
9855         then
9856           archive_cmds_need_lc=no
9857         else
9858           archive_cmds_need_lc=yes
9859         fi
9860         allow_undefined_flag=$lt_save_allow_undefined_flag
9861       else
9862         cat conftest.err 1>&5
9863       fi
9864       $rm conftest*
9865       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9866 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9867       ;;
9868     esac
9869   fi
9870   ;;
9871 esac
9872
9873 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9874 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9875 library_names_spec=
9876 libname_spec='lib$name'
9877 soname_spec=
9878 shrext_cmds=".so"
9879 postinstall_cmds=
9880 postuninstall_cmds=
9881 finish_cmds=
9882 finish_eval=
9883 shlibpath_var=
9884 shlibpath_overrides_runpath=unknown
9885 version_type=none
9886 dynamic_linker="$host_os ld.so"
9887 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9888 if test "$GCC" = yes; then
9889   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9890   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9891     # if the path contains ";" then we assume it to be the separator
9892     # otherwise default to the standard path separator (i.e. ":") - it is
9893     # assumed that no part of a normal pathname contains ";" but that should
9894     # okay in the real world where ";" in dirpaths is itself problematic.
9895     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9896   else
9897     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9898   fi
9899 else
9900   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9901 fi
9902 need_lib_prefix=unknown
9903 hardcode_into_libs=no
9904
9905 # when you set need_version to no, make sure it does not cause -set_version
9906 # flags to be left without arguments
9907 need_version=unknown
9908
9909 case $host_os in
9910 aix3*)
9911   version_type=linux
9912   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9913   shlibpath_var=LIBPATH
9914
9915   # AIX 3 has no versioning support, so we append a major version to the name.
9916   soname_spec='${libname}${release}${shared_ext}$major'
9917   ;;
9918
9919 aix4* | aix5*)
9920   version_type=linux
9921   need_lib_prefix=no
9922   need_version=no
9923   hardcode_into_libs=yes
9924   if test "$host_cpu" = ia64; then
9925     # AIX 5 supports IA64
9926     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9927     shlibpath_var=LD_LIBRARY_PATH
9928   else
9929     # With GCC up to 2.95.x, collect2 would create an import file
9930     # for dependence libraries.  The import file would start with
9931     # the line `#! .'.  This would cause the generated library to
9932     # depend on `.', always an invalid library.  This was fixed in
9933     # development snapshots of GCC prior to 3.0.
9934     case $host_os in
9935       aix4 | aix4.[01] | aix4.[01].*)
9936       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9937            echo ' yes '
9938            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9939         :
9940       else
9941         can_build_shared=no
9942       fi
9943       ;;
9944     esac
9945     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9946     # soname into executable. Probably we can add versioning support to
9947     # collect2, so additional links can be useful in future.
9948     if test "$aix_use_runtimelinking" = yes; then
9949       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9950       # instead of lib<name>.a to let people know that these are not
9951       # typical AIX shared libraries.
9952       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9953     else
9954       # We preserve .a as extension for shared libraries through AIX4.2
9955       # and later when we are not doing run time linking.
9956       library_names_spec='${libname}${release}.a $libname.a'
9957       soname_spec='${libname}${release}${shared_ext}$major'
9958     fi
9959     shlibpath_var=LIBPATH
9960   fi
9961   ;;
9962
9963 amigaos*)
9964   library_names_spec='$libname.ixlibrary $libname.a'
9965   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9966   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'
9967   ;;
9968
9969 beos*)
9970   library_names_spec='${libname}${shared_ext}'
9971   dynamic_linker="$host_os ld.so"
9972   shlibpath_var=LIBRARY_PATH
9973   ;;
9974
9975 bsdi[45]*)
9976   version_type=linux
9977   need_version=no
9978   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979   soname_spec='${libname}${release}${shared_ext}$major'
9980   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9983   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9984   # the default ld.so.conf also contains /usr/contrib/lib and
9985   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9986   # libtool to hard-code these into programs
9987   ;;
9988
9989 cygwin* | mingw* | pw32*)
9990   version_type=windows
9991   shrext_cmds=".dll"
9992   need_version=no
9993   need_lib_prefix=no
9994
9995   case $GCC,$host_os in
9996   yes,cygwin* | yes,mingw* | yes,pw32*)
9997     library_names_spec='$libname.dll.a'
9998     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9999     postinstall_cmds='base_file=`basename \${file}`~
10000       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10001       dldir=$destdir/`dirname \$dlpath`~
10002       test -d \$dldir || mkdir -p \$dldir~
10003       $install_prog $dir/$dlname \$dldir/$dlname~
10004       chmod a+x \$dldir/$dlname'
10005     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10006       dlpath=$dir/\$dldll~
10007        $rm \$dlpath'
10008     shlibpath_overrides_runpath=yes
10009
10010     case $host_os in
10011     cygwin*)
10012       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10013       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10014       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10015       ;;
10016     mingw*)
10017       # MinGW DLLs use traditional 'lib' prefix
10018       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10019       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10020       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10021         # It is most probably a Windows format PATH printed by
10022         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10023         # path with ; separators, and with drive letters. We can handle the
10024         # drive letters (cygwin fileutils understands them), so leave them,
10025         # especially as we might pass files found there to a mingw objdump,
10026         # which wouldn't understand a cygwinified path. Ahh.
10027         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10028       else
10029         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10030       fi
10031       ;;
10032     pw32*)
10033       # pw32 DLLs use 'pw' prefix rather than 'lib'
10034       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10035       ;;
10036     esac
10037     ;;
10038
10039   *)
10040     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10041     ;;
10042   esac
10043   dynamic_linker='Win32 ld.exe'
10044   # FIXME: first we should search . and the directory the executable is in
10045   shlibpath_var=PATH
10046   ;;
10047
10048 darwin* | rhapsody*)
10049   dynamic_linker="$host_os dyld"
10050   version_type=darwin
10051   need_lib_prefix=no
10052   need_version=no
10053   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10054   soname_spec='${libname}${release}${major}$shared_ext'
10055   shlibpath_overrides_runpath=yes
10056   shlibpath_var=DYLD_LIBRARY_PATH
10057   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10058   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10059   if test "$GCC" = yes; then
10060     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"`
10061   else
10062     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10063   fi
10064   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10065   ;;
10066
10067 dgux*)
10068   version_type=linux
10069   need_lib_prefix=no
10070   need_version=no
10071   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10072   soname_spec='${libname}${release}${shared_ext}$major'
10073   shlibpath_var=LD_LIBRARY_PATH
10074   ;;
10075
10076 freebsd1*)
10077   dynamic_linker=no
10078   ;;
10079
10080 kfreebsd*-gnu)
10081   version_type=linux
10082   need_lib_prefix=no
10083   need_version=no
10084   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10085   soname_spec='${libname}${release}${shared_ext}$major'
10086   shlibpath_var=LD_LIBRARY_PATH
10087   shlibpath_overrides_runpath=no
10088   hardcode_into_libs=yes
10089   dynamic_linker='GNU ld.so'
10090   ;;
10091
10092 freebsd* | dragonfly*)
10093   # DragonFly does not have aout.  When/if they implement a new
10094   # versioning mechanism, adjust this.
10095   if test -x /usr/bin/objformat; then
10096     objformat=`/usr/bin/objformat`
10097   else
10098     case $host_os in
10099     freebsd[123]*) objformat=aout ;;
10100     *) objformat=elf ;;
10101     esac
10102   fi
10103   version_type=freebsd-$objformat
10104   case $version_type in
10105     freebsd-elf*)
10106       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10107       need_version=no
10108       need_lib_prefix=no
10109       ;;
10110     freebsd-*)
10111       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10112       need_version=yes
10113       ;;
10114   esac
10115   shlibpath_var=LD_LIBRARY_PATH
10116   case $host_os in
10117   freebsd2*)
10118     shlibpath_overrides_runpath=yes
10119     ;;
10120   freebsd3.[01]* | freebsdelf3.[01]*)
10121     shlibpath_overrides_runpath=yes
10122     hardcode_into_libs=yes
10123     ;;
10124   *) # from 3.2 on
10125     shlibpath_overrides_runpath=no
10126     hardcode_into_libs=yes
10127     ;;
10128   esac
10129   ;;
10130
10131 gnu*)
10132   version_type=linux
10133   need_lib_prefix=no
10134   need_version=no
10135   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10136   soname_spec='${libname}${release}${shared_ext}$major'
10137   shlibpath_var=LD_LIBRARY_PATH
10138   hardcode_into_libs=yes
10139   ;;
10140
10141 hpux9* | hpux10* | hpux11*)
10142   # Give a soname corresponding to the major version so that dld.sl refuses to
10143   # link against other versions.
10144   version_type=sunos
10145   need_lib_prefix=no
10146   need_version=no
10147   case $host_cpu in
10148   ia64*)
10149     shrext_cmds='.so'
10150     hardcode_into_libs=yes
10151     dynamic_linker="$host_os dld.so"
10152     shlibpath_var=LD_LIBRARY_PATH
10153     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10154     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10155     soname_spec='${libname}${release}${shared_ext}$major'
10156     if test "X$HPUX_IA64_MODE" = X32; then
10157       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10158     else
10159       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10160     fi
10161     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10162     ;;
10163    hppa*64*)
10164      shrext_cmds='.sl'
10165      hardcode_into_libs=yes
10166      dynamic_linker="$host_os dld.sl"
10167      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10168      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10169      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10170      soname_spec='${libname}${release}${shared_ext}$major'
10171      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10172      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10173      ;;
10174    *)
10175     shrext_cmds='.sl'
10176     dynamic_linker="$host_os dld.sl"
10177     shlibpath_var=SHLIB_PATH
10178     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10179     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10180     soname_spec='${libname}${release}${shared_ext}$major'
10181     ;;
10182   esac
10183   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10184   postinstall_cmds='chmod 555 $lib'
10185   ;;
10186
10187 irix5* | irix6* | nonstopux*)
10188   case $host_os in
10189     nonstopux*) version_type=nonstopux ;;
10190     *)
10191         if test "$lt_cv_prog_gnu_ld" = yes; then
10192                 version_type=linux
10193         else
10194                 version_type=irix
10195         fi ;;
10196   esac
10197   need_lib_prefix=no
10198   need_version=no
10199   soname_spec='${libname}${release}${shared_ext}$major'
10200   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10201   case $host_os in
10202   irix5* | nonstopux*)
10203     libsuff= shlibsuff=
10204     ;;
10205   *)
10206     case $LD in # libtool.m4 will add one of these switches to LD
10207     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10208       libsuff= shlibsuff= libmagic=32-bit;;
10209     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10210       libsuff=32 shlibsuff=N32 libmagic=N32;;
10211     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10212       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10213     *) libsuff= shlibsuff= libmagic=never-match;;
10214     esac
10215     ;;
10216   esac
10217   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10218   shlibpath_overrides_runpath=no
10219   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10220   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10221   hardcode_into_libs=yes
10222   ;;
10223
10224 # No shared lib support for Linux oldld, aout, or coff.
10225 linux*oldld* | linux*aout* | linux*coff*)
10226   dynamic_linker=no
10227   ;;
10228
10229 # This must be Linux ELF.
10230 linux*)
10231   version_type=linux
10232   need_lib_prefix=no
10233   need_version=no
10234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235   soname_spec='${libname}${release}${shared_ext}$major'
10236   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   shlibpath_overrides_runpath=no
10239   # This implies no fast_install, which is unacceptable.
10240   # Some rework will be needed to allow for fast_install
10241   # before this can be enabled.
10242   hardcode_into_libs=yes
10243
10244   # Append ld.so.conf contents to the search path
10245   if test -f /etc/ld.so.conf; then
10246     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' ' '`
10247     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10248   fi
10249
10250   # We used to test for /lib/ld.so.1 and disable shared libraries on
10251   # powerpc, because MkLinux only supported shared libraries with the
10252   # GNU dynamic linker.  Since this was broken with cross compilers,
10253   # most powerpc-linux boxes support dynamic linking these days and
10254   # people can always --disable-shared, the test was removed, and we
10255   # assume the GNU/Linux dynamic linker is in use.
10256   dynamic_linker='GNU/Linux ld.so'
10257   ;;
10258
10259 knetbsd*-gnu)
10260   version_type=linux
10261   need_lib_prefix=no
10262   need_version=no
10263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10264   soname_spec='${libname}${release}${shared_ext}$major'
10265   shlibpath_var=LD_LIBRARY_PATH
10266   shlibpath_overrides_runpath=no
10267   hardcode_into_libs=yes
10268   dynamic_linker='GNU ld.so'
10269   ;;
10270
10271 netbsd*)
10272   version_type=sunos
10273   need_lib_prefix=no
10274   need_version=no
10275   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10276     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10277     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10278     dynamic_linker='NetBSD (a.out) ld.so'
10279   else
10280     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10281     soname_spec='${libname}${release}${shared_ext}$major'
10282     dynamic_linker='NetBSD ld.elf_so'
10283   fi
10284   shlibpath_var=LD_LIBRARY_PATH
10285   shlibpath_overrides_runpath=yes
10286   hardcode_into_libs=yes
10287   ;;
10288
10289 newsos6)
10290   version_type=linux
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   shlibpath_var=LD_LIBRARY_PATH
10293   shlibpath_overrides_runpath=yes
10294   ;;
10295
10296 nto-qnx*)
10297   version_type=linux
10298   need_lib_prefix=no
10299   need_version=no
10300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10301   soname_spec='${libname}${release}${shared_ext}$major'
10302   shlibpath_var=LD_LIBRARY_PATH
10303   shlibpath_overrides_runpath=yes
10304   ;;
10305
10306 openbsd*)
10307   version_type=sunos
10308   need_lib_prefix=no
10309   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10310   case $host_os in
10311     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10312     *)                         need_version=no  ;;
10313   esac
10314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10316   shlibpath_var=LD_LIBRARY_PATH
10317   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10318     case $host_os in
10319       openbsd2.[89] | openbsd2.[89].*)
10320         shlibpath_overrides_runpath=no
10321         ;;
10322       *)
10323         shlibpath_overrides_runpath=yes
10324         ;;
10325       esac
10326   else
10327     shlibpath_overrides_runpath=yes
10328   fi
10329   ;;
10330
10331 os2*)
10332   libname_spec='$name'
10333   shrext_cmds=".dll"
10334   need_lib_prefix=no
10335   library_names_spec='$libname${shared_ext} $libname.a'
10336   dynamic_linker='OS/2 ld.exe'
10337   shlibpath_var=LIBPATH
10338   ;;
10339
10340 osf3* | osf4* | osf5*)
10341   version_type=osf
10342   need_lib_prefix=no
10343   need_version=no
10344   soname_spec='${libname}${release}${shared_ext}$major'
10345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10346   shlibpath_var=LD_LIBRARY_PATH
10347   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10348   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10349   ;;
10350
10351 sco3.2v5*)
10352   version_type=osf
10353   soname_spec='${libname}${release}${shared_ext}$major'
10354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10355   shlibpath_var=LD_LIBRARY_PATH
10356   ;;
10357
10358 solaris*)
10359   version_type=linux
10360   need_lib_prefix=no
10361   need_version=no
10362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10363   soname_spec='${libname}${release}${shared_ext}$major'
10364   shlibpath_var=LD_LIBRARY_PATH
10365   shlibpath_overrides_runpath=yes
10366   hardcode_into_libs=yes
10367   # ldd complains unless libraries are executable
10368   postinstall_cmds='chmod +x $lib'
10369   ;;
10370
10371 sunos4*)
10372   version_type=sunos
10373   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10374   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10375   shlibpath_var=LD_LIBRARY_PATH
10376   shlibpath_overrides_runpath=yes
10377   if test "$with_gnu_ld" = yes; then
10378     need_lib_prefix=no
10379   fi
10380   need_version=yes
10381   ;;
10382
10383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10384   version_type=linux
10385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386   soname_spec='${libname}${release}${shared_ext}$major'
10387   shlibpath_var=LD_LIBRARY_PATH
10388   case $host_vendor in
10389     sni)
10390       shlibpath_overrides_runpath=no
10391       need_lib_prefix=no
10392       export_dynamic_flag_spec='${wl}-Blargedynsym'
10393       runpath_var=LD_RUN_PATH
10394       ;;
10395     siemens)
10396       need_lib_prefix=no
10397       ;;
10398     motorola)
10399       need_lib_prefix=no
10400       need_version=no
10401       shlibpath_overrides_runpath=no
10402       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10403       ;;
10404   esac
10405   ;;
10406
10407 sysv4*MP*)
10408   if test -d /usr/nec ;then
10409     version_type=linux
10410     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10411     soname_spec='$libname${shared_ext}.$major'
10412     shlibpath_var=LD_LIBRARY_PATH
10413   fi
10414   ;;
10415
10416 uts4*)
10417   version_type=linux
10418   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419   soname_spec='${libname}${release}${shared_ext}$major'
10420   shlibpath_var=LD_LIBRARY_PATH
10421   ;;
10422
10423 *)
10424   dynamic_linker=no
10425   ;;
10426 esac
10427 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10428 echo "${ECHO_T}$dynamic_linker" >&6; }
10429 test "$dynamic_linker" = no && can_build_shared=no
10430
10431 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10432 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10433 hardcode_action=
10434 if test -n "$hardcode_libdir_flag_spec" || \
10435    test -n "$runpath_var" || \
10436    test "X$hardcode_automatic" = "Xyes" ; then
10437
10438   # We can hardcode non-existant directories.
10439   if test "$hardcode_direct" != no &&
10440      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10441      # have to relink, otherwise we might link with an installed library
10442      # when we should be linking with a yet-to-be-installed one
10443      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10444      test "$hardcode_minus_L" != no; then
10445     # Linking always hardcodes the temporary library directory.
10446     hardcode_action=relink
10447   else
10448     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10449     hardcode_action=immediate
10450   fi
10451 else
10452   # We cannot hardcode anything, or else we can only hardcode existing
10453   # directories.
10454   hardcode_action=unsupported
10455 fi
10456 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10457 echo "${ECHO_T}$hardcode_action" >&6; }
10458
10459 if test "$hardcode_action" = relink; then
10460   # Fast installation is not supported
10461   enable_fast_install=no
10462 elif test "$shlibpath_overrides_runpath" = yes ||
10463      test "$enable_shared" = no; then
10464   # Fast installation is not necessary
10465   enable_fast_install=needless
10466 fi
10467
10468 striplib=
10469 old_striplib=
10470 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10471 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10472 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10473   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10474   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10475   { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10477 else
10478 # FIXME - insert some real tests, host_os isn't really good enough
10479   case $host_os in
10480    darwin*)
10481        if test -n "$STRIP" ; then
10482          striplib="$STRIP -x"
10483          { echo "$as_me:$LINENO: result: yes" >&5
10484 echo "${ECHO_T}yes" >&6; }
10485        else
10486   { echo "$as_me:$LINENO: result: no" >&5
10487 echo "${ECHO_T}no" >&6; }
10488 fi
10489        ;;
10490    *)
10491   { echo "$as_me:$LINENO: result: no" >&5
10492 echo "${ECHO_T}no" >&6; }
10493     ;;
10494   esac
10495 fi
10496
10497 if test "x$enable_dlopen" != xyes; then
10498   enable_dlopen=unknown
10499   enable_dlopen_self=unknown
10500   enable_dlopen_self_static=unknown
10501 else
10502   lt_cv_dlopen=no
10503   lt_cv_dlopen_libs=
10504
10505   case $host_os in
10506   beos*)
10507     lt_cv_dlopen="load_add_on"
10508     lt_cv_dlopen_libs=
10509     lt_cv_dlopen_self=yes
10510     ;;
10511
10512   mingw* | pw32*)
10513     lt_cv_dlopen="LoadLibrary"
10514     lt_cv_dlopen_libs=
10515    ;;
10516
10517   cygwin*)
10518     lt_cv_dlopen="dlopen"
10519     lt_cv_dlopen_libs=
10520    ;;
10521
10522   darwin*)
10523   # if libdl is installed we need to link against it
10524     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10525 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10526 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10527   echo $ECHO_N "(cached) $ECHO_C" >&6
10528 else
10529   ac_check_lib_save_LIBS=$LIBS
10530 LIBS="-ldl  $LIBS"
10531 cat >conftest.$ac_ext <<_ACEOF
10532 /* confdefs.h.  */
10533 _ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h.  */
10537
10538 /* Override any GCC internal prototype to avoid an error.
10539    Use char because int might match the return type of a GCC
10540    builtin and then its argument prototype would still apply.  */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 char dlopen ();
10545 int
10546 main ()
10547 {
10548 return dlopen ();
10549   ;
10550   return 0;
10551 }
10552 _ACEOF
10553 rm -f conftest.$ac_objext conftest$ac_exeext
10554 if { (ac_try="$ac_link"
10555 case "(($ac_try" in
10556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10557   *) ac_try_echo=$ac_try;;
10558 esac
10559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10560   (eval "$ac_link") 2>conftest.er1
10561   ac_status=$?
10562   grep -v '^ *+' conftest.er1 >conftest.err
10563   rm -f conftest.er1
10564   cat conftest.err >&5
10565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566   (exit $ac_status); } && {
10567          test -z "$ac_c_werror_flag" ||
10568          test ! -s conftest.err
10569        } && test -s conftest$ac_exeext &&
10570        $as_test_x conftest$ac_exeext; then
10571   ac_cv_lib_dl_dlopen=yes
10572 else
10573   echo "$as_me: failed program was:" >&5
10574 sed 's/^/| /' conftest.$ac_ext >&5
10575
10576         ac_cv_lib_dl_dlopen=no
10577 fi
10578
10579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10580       conftest$ac_exeext conftest.$ac_ext
10581 LIBS=$ac_check_lib_save_LIBS
10582 fi
10583 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10584 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10585 if test $ac_cv_lib_dl_dlopen = yes; then
10586   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10587 else
10588
10589     lt_cv_dlopen="dyld"
10590     lt_cv_dlopen_libs=
10591     lt_cv_dlopen_self=yes
10592
10593 fi
10594
10595    ;;
10596
10597   *)
10598     { echo "$as_me:$LINENO: checking for shl_load" >&5
10599 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10600 if test "${ac_cv_func_shl_load+set}" = set; then
10601   echo $ECHO_N "(cached) $ECHO_C" >&6
10602 else
10603   cat >conftest.$ac_ext <<_ACEOF
10604 /* confdefs.h.  */
10605 _ACEOF
10606 cat confdefs.h >>conftest.$ac_ext
10607 cat >>conftest.$ac_ext <<_ACEOF
10608 /* end confdefs.h.  */
10609 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10610    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10611 #define shl_load innocuous_shl_load
10612
10613 /* System header to define __stub macros and hopefully few prototypes,
10614     which can conflict with char shl_load (); below.
10615     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10616     <limits.h> exists even on freestanding compilers.  */
10617
10618 #ifdef __STDC__
10619 # include <limits.h>
10620 #else
10621 # include <assert.h>
10622 #endif
10623
10624 #undef shl_load
10625
10626 /* Override any GCC internal prototype to avoid an error.
10627    Use char because int might match the return type of a GCC
10628    builtin and then its argument prototype would still apply.  */
10629 #ifdef __cplusplus
10630 extern "C"
10631 #endif
10632 char shl_load ();
10633 /* The GNU C library defines this for functions which it implements
10634     to always fail with ENOSYS.  Some functions are actually named
10635     something starting with __ and the normal name is an alias.  */
10636 #if defined __stub_shl_load || defined __stub___shl_load
10637 choke me
10638 #endif
10639
10640 int
10641 main ()
10642 {
10643 return shl_load ();
10644   ;
10645   return 0;
10646 }
10647 _ACEOF
10648 rm -f conftest.$ac_objext conftest$ac_exeext
10649 if { (ac_try="$ac_link"
10650 case "(($ac_try" in
10651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10652   *) ac_try_echo=$ac_try;;
10653 esac
10654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10655   (eval "$ac_link") 2>conftest.er1
10656   ac_status=$?
10657   grep -v '^ *+' conftest.er1 >conftest.err
10658   rm -f conftest.er1
10659   cat conftest.err >&5
10660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661   (exit $ac_status); } && {
10662          test -z "$ac_c_werror_flag" ||
10663          test ! -s conftest.err
10664        } && test -s conftest$ac_exeext &&
10665        $as_test_x conftest$ac_exeext; then
10666   ac_cv_func_shl_load=yes
10667 else
10668   echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10670
10671         ac_cv_func_shl_load=no
10672 fi
10673
10674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10675       conftest$ac_exeext conftest.$ac_ext
10676 fi
10677 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10678 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10679 if test $ac_cv_func_shl_load = yes; then
10680   lt_cv_dlopen="shl_load"
10681 else
10682   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10683 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10684 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10685   echo $ECHO_N "(cached) $ECHO_C" >&6
10686 else
10687   ac_check_lib_save_LIBS=$LIBS
10688 LIBS="-ldld  $LIBS"
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h.  */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h.  */
10695
10696 /* Override any GCC internal prototype to avoid an error.
10697    Use char because int might match the return type of a GCC
10698    builtin and then its argument prototype would still apply.  */
10699 #ifdef __cplusplus
10700 extern "C"
10701 #endif
10702 char shl_load ();
10703 int
10704 main ()
10705 {
10706 return shl_load ();
10707   ;
10708   return 0;
10709 }
10710 _ACEOF
10711 rm -f conftest.$ac_objext conftest$ac_exeext
10712 if { (ac_try="$ac_link"
10713 case "(($ac_try" in
10714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10715   *) ac_try_echo=$ac_try;;
10716 esac
10717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10718   (eval "$ac_link") 2>conftest.er1
10719   ac_status=$?
10720   grep -v '^ *+' conftest.er1 >conftest.err
10721   rm -f conftest.er1
10722   cat conftest.err >&5
10723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724   (exit $ac_status); } && {
10725          test -z "$ac_c_werror_flag" ||
10726          test ! -s conftest.err
10727        } && test -s conftest$ac_exeext &&
10728        $as_test_x conftest$ac_exeext; then
10729   ac_cv_lib_dld_shl_load=yes
10730 else
10731   echo "$as_me: failed program was:" >&5
10732 sed 's/^/| /' conftest.$ac_ext >&5
10733
10734         ac_cv_lib_dld_shl_load=no
10735 fi
10736
10737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10738       conftest$ac_exeext conftest.$ac_ext
10739 LIBS=$ac_check_lib_save_LIBS
10740 fi
10741 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10742 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10743 if test $ac_cv_lib_dld_shl_load = yes; then
10744   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10745 else
10746   { echo "$as_me:$LINENO: checking for dlopen" >&5
10747 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_dlopen+set}" = set; then
10749   echo $ECHO_N "(cached) $ECHO_C" >&6
10750 else
10751   cat >conftest.$ac_ext <<_ACEOF
10752 /* confdefs.h.  */
10753 _ACEOF
10754 cat confdefs.h >>conftest.$ac_ext
10755 cat >>conftest.$ac_ext <<_ACEOF
10756 /* end confdefs.h.  */
10757 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10758    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10759 #define dlopen innocuous_dlopen
10760
10761 /* System header to define __stub macros and hopefully few prototypes,
10762     which can conflict with char dlopen (); below.
10763     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764     <limits.h> exists even on freestanding compilers.  */
10765
10766 #ifdef __STDC__
10767 # include <limits.h>
10768 #else
10769 # include <assert.h>
10770 #endif
10771
10772 #undef dlopen
10773
10774 /* Override any GCC internal prototype to avoid an error.
10775    Use char because int might match the return type of a GCC
10776    builtin and then its argument prototype would still apply.  */
10777 #ifdef __cplusplus
10778 extern "C"
10779 #endif
10780 char dlopen ();
10781 /* The GNU C library defines this for functions which it implements
10782     to always fail with ENOSYS.  Some functions are actually named
10783     something starting with __ and the normal name is an alias.  */
10784 #if defined __stub_dlopen || defined __stub___dlopen
10785 choke me
10786 #endif
10787
10788 int
10789 main ()
10790 {
10791 return dlopen ();
10792   ;
10793   return 0;
10794 }
10795 _ACEOF
10796 rm -f conftest.$ac_objext conftest$ac_exeext
10797 if { (ac_try="$ac_link"
10798 case "(($ac_try" in
10799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10800   *) ac_try_echo=$ac_try;;
10801 esac
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803   (eval "$ac_link") 2>conftest.er1
10804   ac_status=$?
10805   grep -v '^ *+' conftest.er1 >conftest.err
10806   rm -f conftest.er1
10807   cat conftest.err >&5
10808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809   (exit $ac_status); } && {
10810          test -z "$ac_c_werror_flag" ||
10811          test ! -s conftest.err
10812        } && test -s conftest$ac_exeext &&
10813        $as_test_x conftest$ac_exeext; then
10814   ac_cv_func_dlopen=yes
10815 else
10816   echo "$as_me: failed program was:" >&5
10817 sed 's/^/| /' conftest.$ac_ext >&5
10818
10819         ac_cv_func_dlopen=no
10820 fi
10821
10822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10823       conftest$ac_exeext conftest.$ac_ext
10824 fi
10825 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10826 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10827 if test $ac_cv_func_dlopen = yes; then
10828   lt_cv_dlopen="dlopen"
10829 else
10830   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833   echo $ECHO_N "(cached) $ECHO_C" >&6
10834 else
10835   ac_check_lib_save_LIBS=$LIBS
10836 LIBS="-ldl  $LIBS"
10837 cat >conftest.$ac_ext <<_ACEOF
10838 /* confdefs.h.  */
10839 _ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h.  */
10843
10844 /* Override any GCC internal prototype to avoid an error.
10845    Use char because int might match the return type of a GCC
10846    builtin and then its argument prototype would still apply.  */
10847 #ifdef __cplusplus
10848 extern "C"
10849 #endif
10850 char dlopen ();
10851 int
10852 main ()
10853 {
10854 return dlopen ();
10855   ;
10856   return 0;
10857 }
10858 _ACEOF
10859 rm -f conftest.$ac_objext conftest$ac_exeext
10860 if { (ac_try="$ac_link"
10861 case "(($ac_try" in
10862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10863   *) ac_try_echo=$ac_try;;
10864 esac
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866   (eval "$ac_link") 2>conftest.er1
10867   ac_status=$?
10868   grep -v '^ *+' conftest.er1 >conftest.err
10869   rm -f conftest.er1
10870   cat conftest.err >&5
10871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872   (exit $ac_status); } && {
10873          test -z "$ac_c_werror_flag" ||
10874          test ! -s conftest.err
10875        } && test -s conftest$ac_exeext &&
10876        $as_test_x conftest$ac_exeext; then
10877   ac_cv_lib_dl_dlopen=yes
10878 else
10879   echo "$as_me: failed program was:" >&5
10880 sed 's/^/| /' conftest.$ac_ext >&5
10881
10882         ac_cv_lib_dl_dlopen=no
10883 fi
10884
10885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10886       conftest$ac_exeext conftest.$ac_ext
10887 LIBS=$ac_check_lib_save_LIBS
10888 fi
10889 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10890 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10891 if test $ac_cv_lib_dl_dlopen = yes; then
10892   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10893 else
10894   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10895 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10896 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10897   echo $ECHO_N "(cached) $ECHO_C" >&6
10898 else
10899   ac_check_lib_save_LIBS=$LIBS
10900 LIBS="-lsvld  $LIBS"
10901 cat >conftest.$ac_ext <<_ACEOF
10902 /* confdefs.h.  */
10903 _ACEOF
10904 cat confdefs.h >>conftest.$ac_ext
10905 cat >>conftest.$ac_ext <<_ACEOF
10906 /* end confdefs.h.  */
10907
10908 /* Override any GCC internal prototype to avoid an error.
10909    Use char because int might match the return type of a GCC
10910    builtin and then its argument prototype would still apply.  */
10911 #ifdef __cplusplus
10912 extern "C"
10913 #endif
10914 char dlopen ();
10915 int
10916 main ()
10917 {
10918 return dlopen ();
10919   ;
10920   return 0;
10921 }
10922 _ACEOF
10923 rm -f conftest.$ac_objext conftest$ac_exeext
10924 if { (ac_try="$ac_link"
10925 case "(($ac_try" in
10926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10927   *) ac_try_echo=$ac_try;;
10928 esac
10929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10930   (eval "$ac_link") 2>conftest.er1
10931   ac_status=$?
10932   grep -v '^ *+' conftest.er1 >conftest.err
10933   rm -f conftest.er1
10934   cat conftest.err >&5
10935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936   (exit $ac_status); } && {
10937          test -z "$ac_c_werror_flag" ||
10938          test ! -s conftest.err
10939        } && test -s conftest$ac_exeext &&
10940        $as_test_x conftest$ac_exeext; then
10941   ac_cv_lib_svld_dlopen=yes
10942 else
10943   echo "$as_me: failed program was:" >&5
10944 sed 's/^/| /' conftest.$ac_ext >&5
10945
10946         ac_cv_lib_svld_dlopen=no
10947 fi
10948
10949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10950       conftest$ac_exeext conftest.$ac_ext
10951 LIBS=$ac_check_lib_save_LIBS
10952 fi
10953 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10954 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10955 if test $ac_cv_lib_svld_dlopen = yes; then
10956   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10957 else
10958   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10959 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10960 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10961   echo $ECHO_N "(cached) $ECHO_C" >&6
10962 else
10963   ac_check_lib_save_LIBS=$LIBS
10964 LIBS="-ldld  $LIBS"
10965 cat >conftest.$ac_ext <<_ACEOF
10966 /* confdefs.h.  */
10967 _ACEOF
10968 cat confdefs.h >>conftest.$ac_ext
10969 cat >>conftest.$ac_ext <<_ACEOF
10970 /* end confdefs.h.  */
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973    Use char because int might match the return type of a GCC
10974    builtin and then its argument prototype would still apply.  */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char dld_link ();
10979 int
10980 main ()
10981 {
10982 return dld_link ();
10983   ;
10984   return 0;
10985 }
10986 _ACEOF
10987 rm -f conftest.$ac_objext conftest$ac_exeext
10988 if { (ac_try="$ac_link"
10989 case "(($ac_try" in
10990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10991   *) ac_try_echo=$ac_try;;
10992 esac
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994   (eval "$ac_link") 2>conftest.er1
10995   ac_status=$?
10996   grep -v '^ *+' conftest.er1 >conftest.err
10997   rm -f conftest.er1
10998   cat conftest.err >&5
10999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11000   (exit $ac_status); } && {
11001          test -z "$ac_c_werror_flag" ||
11002          test ! -s conftest.err
11003        } && test -s conftest$ac_exeext &&
11004        $as_test_x conftest$ac_exeext; then
11005   ac_cv_lib_dld_dld_link=yes
11006 else
11007   echo "$as_me: failed program was:" >&5
11008 sed 's/^/| /' conftest.$ac_ext >&5
11009
11010         ac_cv_lib_dld_dld_link=no
11011 fi
11012
11013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11014       conftest$ac_exeext conftest.$ac_ext
11015 LIBS=$ac_check_lib_save_LIBS
11016 fi
11017 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11018 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11019 if test $ac_cv_lib_dld_dld_link = yes; then
11020   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11021 fi
11022
11023
11024 fi
11025
11026
11027 fi
11028
11029
11030 fi
11031
11032
11033 fi
11034
11035
11036 fi
11037
11038     ;;
11039   esac
11040
11041   if test "x$lt_cv_dlopen" != xno; then
11042     enable_dlopen=yes
11043   else
11044     enable_dlopen=no
11045   fi
11046
11047   case $lt_cv_dlopen in
11048   dlopen)
11049     save_CPPFLAGS="$CPPFLAGS"
11050     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11051
11052     save_LDFLAGS="$LDFLAGS"
11053     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11054
11055     save_LIBS="$LIBS"
11056     LIBS="$lt_cv_dlopen_libs $LIBS"
11057
11058     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11059 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11060 if test "${lt_cv_dlopen_self+set}" = set; then
11061   echo $ECHO_N "(cached) $ECHO_C" >&6
11062 else
11063           if test "$cross_compiling" = yes; then :
11064   lt_cv_dlopen_self=cross
11065 else
11066   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11067   lt_status=$lt_dlunknown
11068   cat > conftest.$ac_ext <<EOF
11069 #line 11069 "configure"
11070 #include "confdefs.h"
11071
11072 #if HAVE_DLFCN_H
11073 #include <dlfcn.h>
11074 #endif
11075
11076 #include <stdio.h>
11077
11078 #ifdef RTLD_GLOBAL
11079 #  define LT_DLGLOBAL           RTLD_GLOBAL
11080 #else
11081 #  ifdef DL_GLOBAL
11082 #    define LT_DLGLOBAL         DL_GLOBAL
11083 #  else
11084 #    define LT_DLGLOBAL         0
11085 #  endif
11086 #endif
11087
11088 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11089    find out it does not work in some platform. */
11090 #ifndef LT_DLLAZY_OR_NOW
11091 #  ifdef RTLD_LAZY
11092 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11093 #  else
11094 #    ifdef DL_LAZY
11095 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11096 #    else
11097 #      ifdef RTLD_NOW
11098 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11099 #      else
11100 #        ifdef DL_NOW
11101 #          define LT_DLLAZY_OR_NOW      DL_NOW
11102 #        else
11103 #          define LT_DLLAZY_OR_NOW      0
11104 #        endif
11105 #      endif
11106 #    endif
11107 #  endif
11108 #endif
11109
11110 #ifdef __cplusplus
11111 extern "C" void exit (int);
11112 #endif
11113
11114 void fnord() { int i=42;}
11115 int main ()
11116 {
11117   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11118   int status = $lt_dlunknown;
11119
11120   if (self)
11121     {
11122       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11123       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11124       /* dlclose (self); */
11125     }
11126
11127     exit (status);
11128 }
11129 EOF
11130   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11131   (eval $ac_link) 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11135     (./conftest; exit; ) >&5 2>/dev/null
11136     lt_status=$?
11137     case x$lt_status in
11138       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11139       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11140       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11141     esac
11142   else :
11143     # compilation failed
11144     lt_cv_dlopen_self=no
11145   fi
11146 fi
11147 rm -fr conftest*
11148
11149
11150 fi
11151 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11152 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11153
11154     if test "x$lt_cv_dlopen_self" = xyes; then
11155       LDFLAGS="$LDFLAGS $link_static_flag"
11156       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11157 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11158 if test "${lt_cv_dlopen_self_static+set}" = set; then
11159   echo $ECHO_N "(cached) $ECHO_C" >&6
11160 else
11161           if test "$cross_compiling" = yes; then :
11162   lt_cv_dlopen_self_static=cross
11163 else
11164   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11165   lt_status=$lt_dlunknown
11166   cat > conftest.$ac_ext <<EOF
11167 #line 11167 "configure"
11168 #include "confdefs.h"
11169
11170 #if HAVE_DLFCN_H
11171 #include <dlfcn.h>
11172 #endif
11173
11174 #include <stdio.h>
11175
11176 #ifdef RTLD_GLOBAL
11177 #  define LT_DLGLOBAL           RTLD_GLOBAL
11178 #else
11179 #  ifdef DL_GLOBAL
11180 #    define LT_DLGLOBAL         DL_GLOBAL
11181 #  else
11182 #    define LT_DLGLOBAL         0
11183 #  endif
11184 #endif
11185
11186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11187    find out it does not work in some platform. */
11188 #ifndef LT_DLLAZY_OR_NOW
11189 #  ifdef RTLD_LAZY
11190 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11191 #  else
11192 #    ifdef DL_LAZY
11193 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11194 #    else
11195 #      ifdef RTLD_NOW
11196 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11197 #      else
11198 #        ifdef DL_NOW
11199 #          define LT_DLLAZY_OR_NOW      DL_NOW
11200 #        else
11201 #          define LT_DLLAZY_OR_NOW      0
11202 #        endif
11203 #      endif
11204 #    endif
11205 #  endif
11206 #endif
11207
11208 #ifdef __cplusplus
11209 extern "C" void exit (int);
11210 #endif
11211
11212 void fnord() { int i=42;}
11213 int main ()
11214 {
11215   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11216   int status = $lt_dlunknown;
11217
11218   if (self)
11219     {
11220       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11221       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11222       /* dlclose (self); */
11223     }
11224
11225     exit (status);
11226 }
11227 EOF
11228   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11229   (eval $ac_link) 2>&5
11230   ac_status=$?
11231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11232   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11233     (./conftest; exit; ) >&5 2>/dev/null
11234     lt_status=$?
11235     case x$lt_status in
11236       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11237       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11238       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11239     esac
11240   else :
11241     # compilation failed
11242     lt_cv_dlopen_self_static=no
11243   fi
11244 fi
11245 rm -fr conftest*
11246
11247
11248 fi
11249 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11250 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11251     fi
11252
11253     CPPFLAGS="$save_CPPFLAGS"
11254     LDFLAGS="$save_LDFLAGS"
11255     LIBS="$save_LIBS"
11256     ;;
11257   esac
11258
11259   case $lt_cv_dlopen_self in
11260   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11261   *) enable_dlopen_self=unknown ;;
11262   esac
11263
11264   case $lt_cv_dlopen_self_static in
11265   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11266   *) enable_dlopen_self_static=unknown ;;
11267   esac
11268 fi
11269
11270
11271 # Report which librarie types wil actually be built
11272 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11273 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11274 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11275 echo "${ECHO_T}$can_build_shared" >&6; }
11276
11277 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11278 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11279 test "$can_build_shared" = "no" && enable_shared=no
11280
11281 # On AIX, shared libraries and static libraries use the same namespace, and
11282 # are all built from PIC.
11283 case $host_os in
11284 aix3*)
11285   test "$enable_shared" = yes && enable_static=no
11286   if test -n "$RANLIB"; then
11287     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11288     postinstall_cmds='$RANLIB $lib'
11289   fi
11290   ;;
11291
11292 aix4* | aix5*)
11293   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11294     test "$enable_shared" = yes && enable_static=no
11295   fi
11296     ;;
11297 esac
11298 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11299 echo "${ECHO_T}$enable_shared" >&6; }
11300
11301 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11302 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11303 # Make sure either enable_shared or enable_static is yes.
11304 test "$enable_shared" = yes || enable_static=yes
11305 { echo "$as_me:$LINENO: result: $enable_static" >&5
11306 echo "${ECHO_T}$enable_static" >&6; }
11307
11308 # The else clause should only fire when bootstrapping the
11309 # libtool distribution, otherwise you forgot to ship ltmain.sh
11310 # with your package, and you will get complaints that there are
11311 # no rules to generate ltmain.sh.
11312 if test -f "$ltmain"; then
11313   # See if we are running on zsh, and set the options which allow our commands through
11314   # without removal of \ escapes.
11315   if test -n "${ZSH_VERSION+set}" ; then
11316     setopt NO_GLOB_SUBST
11317   fi
11318   # Now quote all the things that may contain metacharacters while being
11319   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11320   # variables and quote the copies for generation of the libtool script.
11321   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11322     SED SHELL STRIP \
11323     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11324     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11325     deplibs_check_method reload_flag reload_cmds need_locks \
11326     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11327     lt_cv_sys_global_symbol_to_c_name_address \
11328     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11329     old_postinstall_cmds old_postuninstall_cmds \
11330     compiler \
11331     CC \
11332     LD \
11333     lt_prog_compiler_wl \
11334     lt_prog_compiler_pic \
11335     lt_prog_compiler_static \
11336     lt_prog_compiler_no_builtin_flag \
11337     export_dynamic_flag_spec \
11338     thread_safe_flag_spec \
11339     whole_archive_flag_spec \
11340     enable_shared_with_static_runtimes \
11341     old_archive_cmds \
11342     old_archive_from_new_cmds \
11343     predep_objects \
11344     postdep_objects \
11345     predeps \
11346     postdeps \
11347     compiler_lib_search_path \
11348     archive_cmds \
11349     archive_expsym_cmds \
11350     postinstall_cmds \
11351     postuninstall_cmds \
11352     old_archive_from_expsyms_cmds \
11353     allow_undefined_flag \
11354     no_undefined_flag \
11355     export_symbols_cmds \
11356     hardcode_libdir_flag_spec \
11357     hardcode_libdir_flag_spec_ld \
11358     hardcode_libdir_separator \
11359     hardcode_automatic \
11360     module_cmds \
11361     module_expsym_cmds \
11362     lt_cv_prog_compiler_c_o \
11363     exclude_expsyms \
11364     include_expsyms; do
11365
11366     case $var in
11367     old_archive_cmds | \
11368     old_archive_from_new_cmds | \
11369     archive_cmds | \
11370     archive_expsym_cmds | \
11371     module_cmds | \
11372     module_expsym_cmds | \
11373     old_archive_from_expsyms_cmds | \
11374     export_symbols_cmds | \
11375     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11376     postinstall_cmds | postuninstall_cmds | \
11377     old_postinstall_cmds | old_postuninstall_cmds | \
11378     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11379       # Double-quote double-evaled strings.
11380       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11381       ;;
11382     *)
11383       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11384       ;;
11385     esac
11386   done
11387
11388   case $lt_echo in
11389   *'\$0 --fallback-echo"')
11390     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11391     ;;
11392   esac
11393
11394 cfgfile="${ofile}T"
11395   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11396   $rm -f "$cfgfile"
11397   { echo "$as_me:$LINENO: creating $ofile" >&5
11398 echo "$as_me: creating $ofile" >&6;}
11399
11400   cat <<__EOF__ >> "$cfgfile"
11401 #! $SHELL
11402
11403 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11404 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11405 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11406 #
11407 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11408 # Free Software Foundation, Inc.
11409 #
11410 # This file is part of GNU Libtool:
11411 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11412 #
11413 # This program is free software; you can redistribute it and/or modify
11414 # it under the terms of the GNU General Public License as published by
11415 # the Free Software Foundation; either version 2 of the License, or
11416 # (at your option) any later version.
11417 #
11418 # This program is distributed in the hope that it will be useful, but
11419 # WITHOUT ANY WARRANTY; without even the implied warranty of
11420 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11421 # General Public License for more details.
11422 #
11423 # You should have received a copy of the GNU General Public License
11424 # along with this program; if not, write to the Free Software
11425 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11426 #
11427 # As a special exception to the GNU General Public License, if you
11428 # distribute this file as part of a program that contains a
11429 # configuration script generated by Autoconf, you may include it under
11430 # the same distribution terms that you use for the rest of that program.
11431
11432 # A sed program that does not truncate output.
11433 SED=$lt_SED
11434
11435 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11436 Xsed="$SED -e 1s/^X//"
11437
11438 # The HP-UX ksh and POSIX shell print the target directory to stdout
11439 # if CDPATH is set.
11440 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11441
11442 # The names of the tagged configurations supported by this script.
11443 available_tags=
11444
11445 # ### BEGIN LIBTOOL CONFIG
11446
11447 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11448
11449 # Shell to use when invoking shell scripts.
11450 SHELL=$lt_SHELL
11451
11452 # Whether or not to build shared libraries.
11453 build_libtool_libs=$enable_shared
11454
11455 # Whether or not to build static libraries.
11456 build_old_libs=$enable_static
11457
11458 # Whether or not to add -lc for building shared libraries.
11459 build_libtool_need_lc=$archive_cmds_need_lc
11460
11461 # Whether or not to disallow shared libs when runtime libs are static
11462 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11463
11464 # Whether or not to optimize for fast installation.
11465 fast_install=$enable_fast_install
11466
11467 # The host system.
11468 host_alias=$host_alias
11469 host=$host
11470 host_os=$host_os
11471
11472 # The build system.
11473 build_alias=$build_alias
11474 build=$build
11475 build_os=$build_os
11476
11477 # An echo program that does not interpret backslashes.
11478 echo=$lt_echo
11479
11480 # The archiver.
11481 AR=$lt_AR
11482 AR_FLAGS=$lt_AR_FLAGS
11483
11484 # A C compiler.
11485 LTCC=$lt_LTCC
11486
11487 # A language-specific compiler.
11488 CC=$lt_compiler
11489
11490 # Is the compiler the GNU C compiler?
11491 with_gcc=$GCC
11492
11493 # An ERE matcher.
11494 EGREP=$lt_EGREP
11495
11496 # The linker used to build libraries.
11497 LD=$lt_LD
11498
11499 # Whether we need hard or soft links.
11500 LN_S=$lt_LN_S
11501
11502 # A BSD-compatible nm program.
11503 NM=$lt_NM
11504
11505 # A symbol stripping program
11506 STRIP=$lt_STRIP
11507
11508 # Used to examine libraries when file_magic_cmd begins "file"
11509 MAGIC_CMD=$MAGIC_CMD
11510
11511 # Used on cygwin: DLL creation program.
11512 DLLTOOL="$DLLTOOL"
11513
11514 # Used on cygwin: object dumper.
11515 OBJDUMP="$OBJDUMP"
11516
11517 # Used on cygwin: assembler.
11518 AS="$AS"
11519
11520 # The name of the directory that contains temporary libtool files.
11521 objdir=$objdir
11522
11523 # How to create reloadable object files.
11524 reload_flag=$lt_reload_flag
11525 reload_cmds=$lt_reload_cmds
11526
11527 # How to pass a linker flag through the compiler.
11528 wl=$lt_lt_prog_compiler_wl
11529
11530 # Object file suffix (normally "o").
11531 objext="$ac_objext"
11532
11533 # Old archive suffix (normally "a").
11534 libext="$libext"
11535
11536 # Shared library suffix (normally ".so").
11537 shrext_cmds='$shrext_cmds'
11538
11539 # Executable file suffix (normally "").
11540 exeext="$exeext"
11541
11542 # Additional compiler flags for building library objects.
11543 pic_flag=$lt_lt_prog_compiler_pic
11544 pic_mode=$pic_mode
11545
11546 # What is the maximum length of a command?
11547 max_cmd_len=$lt_cv_sys_max_cmd_len
11548
11549 # Does compiler simultaneously support -c and -o options?
11550 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11551
11552 # Must we lock files when doing compilation?
11553 need_locks=$lt_need_locks
11554
11555 # Do we need the lib prefix for modules?
11556 need_lib_prefix=$need_lib_prefix
11557
11558 # Do we need a version for libraries?
11559 need_version=$need_version
11560
11561 # Whether dlopen is supported.
11562 dlopen_support=$enable_dlopen
11563
11564 # Whether dlopen of programs is supported.
11565 dlopen_self=$enable_dlopen_self
11566
11567 # Whether dlopen of statically linked programs is supported.
11568 dlopen_self_static=$enable_dlopen_self_static
11569
11570 # Compiler flag to prevent dynamic linking.
11571 link_static_flag=$lt_lt_prog_compiler_static
11572
11573 # Compiler flag to turn off builtin functions.
11574 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11575
11576 # Compiler flag to allow reflexive dlopens.
11577 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11578
11579 # Compiler flag to generate shared objects directly from archives.
11580 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11581
11582 # Compiler flag to generate thread-safe objects.
11583 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11584
11585 # Library versioning type.
11586 version_type=$version_type
11587
11588 # Format of library name prefix.
11589 libname_spec=$lt_libname_spec
11590
11591 # List of archive names.  First name is the real one, the rest are links.
11592 # The last name is the one that the linker finds with -lNAME.
11593 library_names_spec=$lt_library_names_spec
11594
11595 # The coded name of the library, if different from the real name.
11596 soname_spec=$lt_soname_spec
11597
11598 # Commands used to build and install an old-style archive.
11599 RANLIB=$lt_RANLIB
11600 old_archive_cmds=$lt_old_archive_cmds
11601 old_postinstall_cmds=$lt_old_postinstall_cmds
11602 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11603
11604 # Create an old-style archive from a shared archive.
11605 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11606
11607 # Create a temporary old-style archive to link instead of a shared archive.
11608 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11609
11610 # Commands used to build and install a shared archive.
11611 archive_cmds=$lt_archive_cmds
11612 archive_expsym_cmds=$lt_archive_expsym_cmds
11613 postinstall_cmds=$lt_postinstall_cmds
11614 postuninstall_cmds=$lt_postuninstall_cmds
11615
11616 # Commands used to build a loadable module (assumed same as above if empty)
11617 module_cmds=$lt_module_cmds
11618 module_expsym_cmds=$lt_module_expsym_cmds
11619
11620 # Commands to strip libraries.
11621 old_striplib=$lt_old_striplib
11622 striplib=$lt_striplib
11623
11624 # Dependencies to place before the objects being linked to create a
11625 # shared library.
11626 predep_objects=$lt_predep_objects
11627
11628 # Dependencies to place after the objects being linked to create a
11629 # shared library.
11630 postdep_objects=$lt_postdep_objects
11631
11632 # Dependencies to place before the objects being linked to create a
11633 # shared library.
11634 predeps=$lt_predeps
11635
11636 # Dependencies to place after the objects being linked to create a
11637 # shared library.
11638 postdeps=$lt_postdeps
11639
11640 # The library search path used internally by the compiler when linking
11641 # a shared library.
11642 compiler_lib_search_path=$lt_compiler_lib_search_path
11643
11644 # Method to check whether dependent libraries are shared objects.
11645 deplibs_check_method=$lt_deplibs_check_method
11646
11647 # Command to use when deplibs_check_method == file_magic.
11648 file_magic_cmd=$lt_file_magic_cmd
11649
11650 # Flag that allows shared libraries with undefined symbols to be built.
11651 allow_undefined_flag=$lt_allow_undefined_flag
11652
11653 # Flag that forces no undefined symbols.
11654 no_undefined_flag=$lt_no_undefined_flag
11655
11656 # Commands used to finish a libtool library installation in a directory.
11657 finish_cmds=$lt_finish_cmds
11658
11659 # Same as above, but a single script fragment to be evaled but not shown.
11660 finish_eval=$lt_finish_eval
11661
11662 # Take the output of nm and produce a listing of raw symbols and C names.
11663 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11664
11665 # Transform the output of nm in a proper C declaration
11666 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11667
11668 # Transform the output of nm in a C name address pair
11669 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11670
11671 # This is the shared library runtime path variable.
11672 runpath_var=$runpath_var
11673
11674 # This is the shared library path variable.
11675 shlibpath_var=$shlibpath_var
11676
11677 # Is shlibpath searched before the hard-coded library search path?
11678 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11679
11680 # How to hardcode a shared library path into an executable.
11681 hardcode_action=$hardcode_action
11682
11683 # Whether we should hardcode library paths into libraries.
11684 hardcode_into_libs=$hardcode_into_libs
11685
11686 # Flag to hardcode \$libdir into a binary during linking.
11687 # This must work even if \$libdir does not exist.
11688 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11689
11690 # If ld is used when linking, flag to hardcode \$libdir into
11691 # a binary during linking. This must work even if \$libdir does
11692 # not exist.
11693 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11694
11695 # Whether we need a single -rpath flag with a separated argument.
11696 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11697
11698 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11699 # resulting binary.
11700 hardcode_direct=$hardcode_direct
11701
11702 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11703 # resulting binary.
11704 hardcode_minus_L=$hardcode_minus_L
11705
11706 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11707 # the resulting binary.
11708 hardcode_shlibpath_var=$hardcode_shlibpath_var
11709
11710 # Set to yes if building a shared library automatically hardcodes DIR into the library
11711 # and all subsequent libraries and executables linked against it.
11712 hardcode_automatic=$hardcode_automatic
11713
11714 # Variables whose values should be saved in libtool wrapper scripts and
11715 # restored at relink time.
11716 variables_saved_for_relink="$variables_saved_for_relink"
11717
11718 # Whether libtool must link a program against all its dependency libraries.
11719 link_all_deplibs=$link_all_deplibs
11720
11721 # Compile-time system search path for libraries
11722 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11723
11724 # Run-time system search path for libraries
11725 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11726
11727 # Fix the shell variable \$srcfile for the compiler.
11728 fix_srcfile_path="$fix_srcfile_path"
11729
11730 # Set to yes if exported symbols are required.
11731 always_export_symbols=$always_export_symbols
11732
11733 # The commands to list exported symbols.
11734 export_symbols_cmds=$lt_export_symbols_cmds
11735
11736 # The commands to extract the exported symbol list from a shared archive.
11737 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11738
11739 # Symbols that should not be listed in the preloaded symbols.
11740 exclude_expsyms=$lt_exclude_expsyms
11741
11742 # Symbols that must always be exported.
11743 include_expsyms=$lt_include_expsyms
11744
11745 # ### END LIBTOOL CONFIG
11746
11747 __EOF__
11748
11749
11750   case $host_os in
11751   aix3*)
11752     cat <<\EOF >> "$cfgfile"
11753
11754 # AIX sometimes has problems with the GCC collect2 program.  For some
11755 # reason, if we set the COLLECT_NAMES environment variable, the problems
11756 # vanish in a puff of smoke.
11757 if test "X${COLLECT_NAMES+set}" != Xset; then
11758   COLLECT_NAMES=
11759   export COLLECT_NAMES
11760 fi
11761 EOF
11762     ;;
11763   esac
11764
11765   # We use sed instead of cat because bash on DJGPP gets confused if
11766   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11767   # text mode, it properly converts lines to CR/LF.  This bash problem
11768   # is reportedly fixed, but why not run on old versions too?
11769   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11770
11771   mv -f "$cfgfile" "$ofile" || \
11772     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11773   chmod +x "$ofile"
11774
11775 else
11776   # If there is no Makefile yet, we rely on a make rule to execute
11777   # `config.status --recheck' to rerun these tests and create the
11778   # libtool script then.
11779   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11780   if test -f "$ltmain_in"; then
11781     test -f Makefile && make "$ltmain"
11782   fi
11783 fi
11784
11785
11786 ac_ext=c
11787 ac_cpp='$CPP $CPPFLAGS'
11788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791
11792 CC="$lt_save_CC"
11793
11794
11795 # Check whether --with-tags was given.
11796 if test "${with_tags+set}" = set; then
11797   withval=$with_tags; tagnames="$withval"
11798 fi
11799
11800
11801 if test -f "$ltmain" && test -n "$tagnames"; then
11802   if test ! -f "${ofile}"; then
11803     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11804 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11805   fi
11806
11807   if test -z "$LTCC"; then
11808     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11809     if test -z "$LTCC"; then
11810       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11811 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11812     else
11813       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11814 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11815     fi
11816   fi
11817
11818   # Extract list of available tagged configurations in $ofile.
11819   # Note that this assumes the entire list is on one line.
11820   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11821
11822   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11823   for tagname in $tagnames; do
11824     IFS="$lt_save_ifs"
11825     # Check whether tagname contains only valid characters
11826     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11827     "") ;;
11828     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11829 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11830    { (exit 1); exit 1; }; }
11831         ;;
11832     esac
11833
11834     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11835     then
11836       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11837 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11838    { (exit 1); exit 1; }; }
11839     fi
11840
11841     # Update the list of available tags.
11842     if test -n "$tagname"; then
11843       echo appending configuration tag \"$tagname\" to $ofile
11844
11845       case $tagname in
11846       CXX)
11847         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11848             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11849             (test "X$CXX" != "Xg++"))) ; then
11850           :
11851         else
11852           tagname=""
11853         fi
11854         ;;
11855
11856       F77)
11857         if test -n "$F77" && test "X$F77" != "Xno"; then
11858           :
11859         else
11860           tagname=""
11861         fi
11862         ;;
11863
11864       GCJ)
11865         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
11866           :
11867         else
11868           tagname=""
11869         fi
11870         ;;
11871
11872       RC)
11873
11874
11875 # Source file extension for RC test sources.
11876 ac_ext=rc
11877
11878 # Object file extension for compiled RC test sources.
11879 objext=o
11880 objext_RC=$objext
11881
11882 # Code to be used in simple compile tests
11883 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
11884
11885 # Code to be used in simple link tests
11886 lt_simple_link_test_code="$lt_simple_compile_test_code"
11887
11888 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11889
11890 # If no C compiler was specified, use CC.
11891 LTCC=${LTCC-"$CC"}
11892
11893 # Allow CC to be a program name with arguments.
11894 compiler=$CC
11895
11896
11897 # save warnings/boilerplate of simple test code
11898 ac_outfile=conftest.$ac_objext
11899 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11900 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11901 _lt_compiler_boilerplate=`cat conftest.err`
11902 $rm conftest*
11903
11904 ac_outfile=conftest.$ac_objext
11905 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11906 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
11907 _lt_linker_boilerplate=`cat conftest.err`
11908 $rm conftest*
11909
11910
11911 # Allow CC to be a program name with arguments.
11912 lt_save_CC="$CC"
11913 CC=${RC-"windres"}
11914 compiler=$CC
11915 compiler_RC=$CC
11916 for cc_temp in $compiler""; do
11917   case $cc_temp in
11918     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11919     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11920     \-*) ;;
11921     *) break;;
11922   esac
11923 done
11924 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11925
11926 lt_cv_prog_compiler_c_o_RC=yes
11927
11928 # The else clause should only fire when bootstrapping the
11929 # libtool distribution, otherwise you forgot to ship ltmain.sh
11930 # with your package, and you will get complaints that there are
11931 # no rules to generate ltmain.sh.
11932 if test -f "$ltmain"; then
11933   # See if we are running on zsh, and set the options which allow our commands through
11934   # without removal of \ escapes.
11935   if test -n "${ZSH_VERSION+set}" ; then
11936     setopt NO_GLOB_SUBST
11937   fi
11938   # Now quote all the things that may contain metacharacters while being
11939   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11940   # variables and quote the copies for generation of the libtool script.
11941   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11942     SED SHELL STRIP \
11943     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11944     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11945     deplibs_check_method reload_flag reload_cmds need_locks \
11946     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11947     lt_cv_sys_global_symbol_to_c_name_address \
11948     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11949     old_postinstall_cmds old_postuninstall_cmds \
11950     compiler_RC \
11951     CC_RC \
11952     LD_RC \
11953     lt_prog_compiler_wl_RC \
11954     lt_prog_compiler_pic_RC \
11955     lt_prog_compiler_static_RC \
11956     lt_prog_compiler_no_builtin_flag_RC \
11957     export_dynamic_flag_spec_RC \
11958     thread_safe_flag_spec_RC \
11959     whole_archive_flag_spec_RC \
11960     enable_shared_with_static_runtimes_RC \
11961     old_archive_cmds_RC \
11962     old_archive_from_new_cmds_RC \
11963     predep_objects_RC \
11964     postdep_objects_RC \
11965     predeps_RC \
11966     postdeps_RC \
11967     compiler_lib_search_path_RC \
11968     archive_cmds_RC \
11969     archive_expsym_cmds_RC \
11970     postinstall_cmds_RC \
11971     postuninstall_cmds_RC \
11972     old_archive_from_expsyms_cmds_RC \
11973     allow_undefined_flag_RC \
11974     no_undefined_flag_RC \
11975     export_symbols_cmds_RC \
11976     hardcode_libdir_flag_spec_RC \
11977     hardcode_libdir_flag_spec_ld_RC \
11978     hardcode_libdir_separator_RC \
11979     hardcode_automatic_RC \
11980     module_cmds_RC \
11981     module_expsym_cmds_RC \
11982     lt_cv_prog_compiler_c_o_RC \
11983     exclude_expsyms_RC \
11984     include_expsyms_RC; do
11985
11986     case $var in
11987     old_archive_cmds_RC | \
11988     old_archive_from_new_cmds_RC | \
11989     archive_cmds_RC | \
11990     archive_expsym_cmds_RC | \
11991     module_cmds_RC | \
11992     module_expsym_cmds_RC | \
11993     old_archive_from_expsyms_cmds_RC | \
11994     export_symbols_cmds_RC | \
11995     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11996     postinstall_cmds | postuninstall_cmds | \
11997     old_postinstall_cmds | old_postuninstall_cmds | \
11998     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11999       # Double-quote double-evaled strings.
12000       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12001       ;;
12002     *)
12003       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12004       ;;
12005     esac
12006   done
12007
12008   case $lt_echo in
12009   *'\$0 --fallback-echo"')
12010     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12011     ;;
12012   esac
12013
12014 cfgfile="$ofile"
12015
12016   cat <<__EOF__ >> "$cfgfile"
12017 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12018
12019 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12020
12021 # Shell to use when invoking shell scripts.
12022 SHELL=$lt_SHELL
12023
12024 # Whether or not to build shared libraries.
12025 build_libtool_libs=$enable_shared
12026
12027 # Whether or not to build static libraries.
12028 build_old_libs=$enable_static
12029
12030 # Whether or not to add -lc for building shared libraries.
12031 build_libtool_need_lc=$archive_cmds_need_lc_RC
12032
12033 # Whether or not to disallow shared libs when runtime libs are static
12034 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12035
12036 # Whether or not to optimize for fast installation.
12037 fast_install=$enable_fast_install
12038
12039 # The host system.
12040 host_alias=$host_alias
12041 host=$host
12042 host_os=$host_os
12043
12044 # The build system.
12045 build_alias=$build_alias
12046 build=$build
12047 build_os=$build_os
12048
12049 # An echo program that does not interpret backslashes.
12050 echo=$lt_echo
12051
12052 # The archiver.
12053 AR=$lt_AR
12054 AR_FLAGS=$lt_AR_FLAGS
12055
12056 # A C compiler.
12057 LTCC=$lt_LTCC
12058
12059 # A language-specific compiler.
12060 CC=$lt_compiler_RC
12061
12062 # Is the compiler the GNU C compiler?
12063 with_gcc=$GCC_RC
12064
12065 # An ERE matcher.
12066 EGREP=$lt_EGREP
12067
12068 # The linker used to build libraries.
12069 LD=$lt_LD_RC
12070
12071 # Whether we need hard or soft links.
12072 LN_S=$lt_LN_S
12073
12074 # A BSD-compatible nm program.
12075 NM=$lt_NM
12076
12077 # A symbol stripping program
12078 STRIP=$lt_STRIP
12079
12080 # Used to examine libraries when file_magic_cmd begins "file"
12081 MAGIC_CMD=$MAGIC_CMD
12082
12083 # Used on cygwin: DLL creation program.
12084 DLLTOOL="$DLLTOOL"
12085
12086 # Used on cygwin: object dumper.
12087 OBJDUMP="$OBJDUMP"
12088
12089 # Used on cygwin: assembler.
12090 AS="$AS"
12091
12092 # The name of the directory that contains temporary libtool files.
12093 objdir=$objdir
12094
12095 # How to create reloadable object files.
12096 reload_flag=$lt_reload_flag
12097 reload_cmds=$lt_reload_cmds
12098
12099 # How to pass a linker flag through the compiler.
12100 wl=$lt_lt_prog_compiler_wl_RC
12101
12102 # Object file suffix (normally "o").
12103 objext="$ac_objext"
12104
12105 # Old archive suffix (normally "a").
12106 libext="$libext"
12107
12108 # Shared library suffix (normally ".so").
12109 shrext_cmds='$shrext_cmds'
12110
12111 # Executable file suffix (normally "").
12112 exeext="$exeext"
12113
12114 # Additional compiler flags for building library objects.
12115 pic_flag=$lt_lt_prog_compiler_pic_RC
12116 pic_mode=$pic_mode
12117
12118 # What is the maximum length of a command?
12119 max_cmd_len=$lt_cv_sys_max_cmd_len
12120
12121 # Does compiler simultaneously support -c and -o options?
12122 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12123
12124 # Must we lock files when doing compilation?
12125 need_locks=$lt_need_locks
12126
12127 # Do we need the lib prefix for modules?
12128 need_lib_prefix=$need_lib_prefix
12129
12130 # Do we need a version for libraries?
12131 need_version=$need_version
12132
12133 # Whether dlopen is supported.
12134 dlopen_support=$enable_dlopen
12135
12136 # Whether dlopen of programs is supported.
12137 dlopen_self=$enable_dlopen_self
12138
12139 # Whether dlopen of statically linked programs is supported.
12140 dlopen_self_static=$enable_dlopen_self_static
12141
12142 # Compiler flag to prevent dynamic linking.
12143 link_static_flag=$lt_lt_prog_compiler_static_RC
12144
12145 # Compiler flag to turn off builtin functions.
12146 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12147
12148 # Compiler flag to allow reflexive dlopens.
12149 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12150
12151 # Compiler flag to generate shared objects directly from archives.
12152 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12153
12154 # Compiler flag to generate thread-safe objects.
12155 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12156
12157 # Library versioning type.
12158 version_type=$version_type
12159
12160 # Format of library name prefix.
12161 libname_spec=$lt_libname_spec
12162
12163 # List of archive names.  First name is the real one, the rest are links.
12164 # The last name is the one that the linker finds with -lNAME.
12165 library_names_spec=$lt_library_names_spec
12166
12167 # The coded name of the library, if different from the real name.
12168 soname_spec=$lt_soname_spec
12169
12170 # Commands used to build and install an old-style archive.
12171 RANLIB=$lt_RANLIB
12172 old_archive_cmds=$lt_old_archive_cmds_RC
12173 old_postinstall_cmds=$lt_old_postinstall_cmds
12174 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12175
12176 # Create an old-style archive from a shared archive.
12177 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12178
12179 # Create a temporary old-style archive to link instead of a shared archive.
12180 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12181
12182 # Commands used to build and install a shared archive.
12183 archive_cmds=$lt_archive_cmds_RC
12184 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12185 postinstall_cmds=$lt_postinstall_cmds
12186 postuninstall_cmds=$lt_postuninstall_cmds
12187
12188 # Commands used to build a loadable module (assumed same as above if empty)
12189 module_cmds=$lt_module_cmds_RC
12190 module_expsym_cmds=$lt_module_expsym_cmds_RC
12191
12192 # Commands to strip libraries.
12193 old_striplib=$lt_old_striplib
12194 striplib=$lt_striplib
12195
12196 # Dependencies to place before the objects being linked to create a
12197 # shared library.
12198 predep_objects=$lt_predep_objects_RC
12199
12200 # Dependencies to place after the objects being linked to create a
12201 # shared library.
12202 postdep_objects=$lt_postdep_objects_RC
12203
12204 # Dependencies to place before the objects being linked to create a
12205 # shared library.
12206 predeps=$lt_predeps_RC
12207
12208 # Dependencies to place after the objects being linked to create a
12209 # shared library.
12210 postdeps=$lt_postdeps_RC
12211
12212 # The library search path used internally by the compiler when linking
12213 # a shared library.
12214 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12215
12216 # Method to check whether dependent libraries are shared objects.
12217 deplibs_check_method=$lt_deplibs_check_method
12218
12219 # Command to use when deplibs_check_method == file_magic.
12220 file_magic_cmd=$lt_file_magic_cmd
12221
12222 # Flag that allows shared libraries with undefined symbols to be built.
12223 allow_undefined_flag=$lt_allow_undefined_flag_RC
12224
12225 # Flag that forces no undefined symbols.
12226 no_undefined_flag=$lt_no_undefined_flag_RC
12227
12228 # Commands used to finish a libtool library installation in a directory.
12229 finish_cmds=$lt_finish_cmds
12230
12231 # Same as above, but a single script fragment to be evaled but not shown.
12232 finish_eval=$lt_finish_eval
12233
12234 # Take the output of nm and produce a listing of raw symbols and C names.
12235 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12236
12237 # Transform the output of nm in a proper C declaration
12238 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12239
12240 # Transform the output of nm in a C name address pair
12241 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12242
12243 # This is the shared library runtime path variable.
12244 runpath_var=$runpath_var
12245
12246 # This is the shared library path variable.
12247 shlibpath_var=$shlibpath_var
12248
12249 # Is shlibpath searched before the hard-coded library search path?
12250 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12251
12252 # How to hardcode a shared library path into an executable.
12253 hardcode_action=$hardcode_action_RC
12254
12255 # Whether we should hardcode library paths into libraries.
12256 hardcode_into_libs=$hardcode_into_libs
12257
12258 # Flag to hardcode \$libdir into a binary during linking.
12259 # This must work even if \$libdir does not exist.
12260 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12261
12262 # If ld is used when linking, flag to hardcode \$libdir into
12263 # a binary during linking. This must work even if \$libdir does
12264 # not exist.
12265 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12266
12267 # Whether we need a single -rpath flag with a separated argument.
12268 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12269
12270 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12271 # resulting binary.
12272 hardcode_direct=$hardcode_direct_RC
12273
12274 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12275 # resulting binary.
12276 hardcode_minus_L=$hardcode_minus_L_RC
12277
12278 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12279 # the resulting binary.
12280 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12281
12282 # Set to yes if building a shared library automatically hardcodes DIR into the library
12283 # and all subsequent libraries and executables linked against it.
12284 hardcode_automatic=$hardcode_automatic_RC
12285
12286 # Variables whose values should be saved in libtool wrapper scripts and
12287 # restored at relink time.
12288 variables_saved_for_relink="$variables_saved_for_relink"
12289
12290 # Whether libtool must link a program against all its dependency libraries.
12291 link_all_deplibs=$link_all_deplibs_RC
12292
12293 # Compile-time system search path for libraries
12294 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12295
12296 # Run-time system search path for libraries
12297 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12298
12299 # Fix the shell variable \$srcfile for the compiler.
12300 fix_srcfile_path="$fix_srcfile_path_RC"
12301
12302 # Set to yes if exported symbols are required.
12303 always_export_symbols=$always_export_symbols_RC
12304
12305 # The commands to list exported symbols.
12306 export_symbols_cmds=$lt_export_symbols_cmds_RC
12307
12308 # The commands to extract the exported symbol list from a shared archive.
12309 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12310
12311 # Symbols that should not be listed in the preloaded symbols.
12312 exclude_expsyms=$lt_exclude_expsyms_RC
12313
12314 # Symbols that must always be exported.
12315 include_expsyms=$lt_include_expsyms_RC
12316
12317 # ### END LIBTOOL TAG CONFIG: $tagname
12318
12319 __EOF__
12320
12321
12322 else
12323   # If there is no Makefile yet, we rely on a make rule to execute
12324   # `config.status --recheck' to rerun these tests and create the
12325   # libtool script then.
12326   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12327   if test -f "$ltmain_in"; then
12328     test -f Makefile && make "$ltmain"
12329   fi
12330 fi
12331
12332
12333 ac_ext=c
12334 ac_cpp='$CPP $CPPFLAGS'
12335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338
12339 CC="$lt_save_CC"
12340
12341         ;;
12342
12343       *)
12344         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12345 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12346    { (exit 1); exit 1; }; }
12347         ;;
12348       esac
12349
12350       # Append the new tag name to the list of available tags.
12351       if test -n "$tagname" ; then
12352       available_tags="$available_tags $tagname"
12353     fi
12354     fi
12355   done
12356   IFS="$lt_save_ifs"
12357
12358   # Now substitute the updated list of available tags.
12359   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12360     mv "${ofile}T" "$ofile"
12361     chmod +x "$ofile"
12362   else
12363     rm -f "${ofile}T"
12364     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12365 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12366    { (exit 1); exit 1; }; }
12367   fi
12368 fi
12369
12370
12371
12372 # This can be used to rebuild libtool when needed
12373 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12374
12375 # Always use our own libtool.
12376 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12377
12378 # Prevent multiple expansion
12379
12380
12381
12382
12383
12384
12385
12386
12387
12388
12389 ol_link_perl=no
12390 if test $ol_enable_perl != no ; then
12391         # Extract the first word of "perl", so it can be a program name with args.
12392 set dummy perl; ac_word=$2
12393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12395 if test "${ac_cv_path_PERLBIN+set}" = set; then
12396   echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398   case $PERLBIN in
12399   [\\/]* | ?:[\\/]*)
12400   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12401   ;;
12402   *)
12403   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12405 do
12406   IFS=$as_save_IFS
12407   test -z "$as_dir" && as_dir=.
12408   for ac_exec_ext in '' $ac_executable_extensions; do
12409   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12410     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12411     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12412     break 2
12413   fi
12414 done
12415 done
12416 IFS=$as_save_IFS
12417
12418   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12419   ;;
12420 esac
12421 fi
12422 PERLBIN=$ac_cv_path_PERLBIN
12423 if test -n "$PERLBIN"; then
12424   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12425 echo "${ECHO_T}$PERLBIN" >&6; }
12426 else
12427   { echo "$as_me:$LINENO: result: no" >&5
12428 echo "${ECHO_T}no" >&6; }
12429 fi
12430
12431
12432
12433         if test "no$PERLBIN" = "no" ; then
12434                 if test $ol_enable_perl = yes ; then
12435                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12436 echo "$as_me: error: could not locate perl" >&2;}
12437    { (exit 1); exit 1; }; }
12438                 fi
12439
12440         else
12441                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12442                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12443
12444                 if test x"$ol_enable_perl" = "xyes" ; then
12445                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12446                 else
12447                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12448                 fi
12449                                 ol_link_perl=yes
12450         fi
12451 fi
12452
12453 ac_ext=c
12454 ac_cpp='$CPP $CPPFLAGS'
12455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12458 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12459 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12460 # On Suns, sometimes $CPP names a directory.
12461 if test -n "$CPP" && test -d "$CPP"; then
12462   CPP=
12463 fi
12464 if test -z "$CPP"; then
12465   if test "${ac_cv_prog_CPP+set}" = set; then
12466   echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468       # Double quotes because CPP needs to be expanded
12469     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12470     do
12471       ac_preproc_ok=false
12472 for ac_c_preproc_warn_flag in '' yes
12473 do
12474   # Use a header file that comes with gcc, so configuring glibc
12475   # with a fresh cross-compiler works.
12476   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12477   # <limits.h> exists even on freestanding compilers.
12478   # On the NeXT, cc -E runs the code through the compiler's parser,
12479   # not just through cpp. "Syntax error" is here to catch this case.
12480   cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h.  */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h.  */
12486 #ifdef __STDC__
12487 # include <limits.h>
12488 #else
12489 # include <assert.h>
12490 #endif
12491                      Syntax error
12492 _ACEOF
12493 if { (ac_try="$ac_cpp conftest.$ac_ext"
12494 case "(($ac_try" in
12495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12496   *) ac_try_echo=$ac_try;;
12497 esac
12498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12500   ac_status=$?
12501   grep -v '^ *+' conftest.er1 >conftest.err
12502   rm -f conftest.er1
12503   cat conftest.err >&5
12504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12505   (exit $ac_status); } >/dev/null && {
12506          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12507          test ! -s conftest.err
12508        }; then
12509   :
12510 else
12511   echo "$as_me: failed program was:" >&5
12512 sed 's/^/| /' conftest.$ac_ext >&5
12513
12514   # Broken: fails on valid input.
12515 continue
12516 fi
12517
12518 rm -f conftest.err conftest.$ac_ext
12519
12520   # OK, works on sane cases.  Now check whether nonexistent headers
12521   # can be detected and how.
12522   cat >conftest.$ac_ext <<_ACEOF
12523 /* confdefs.h.  */
12524 _ACEOF
12525 cat confdefs.h >>conftest.$ac_ext
12526 cat >>conftest.$ac_ext <<_ACEOF
12527 /* end confdefs.h.  */
12528 #include <ac_nonexistent.h>
12529 _ACEOF
12530 if { (ac_try="$ac_cpp conftest.$ac_ext"
12531 case "(($ac_try" in
12532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533   *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12537   ac_status=$?
12538   grep -v '^ *+' conftest.er1 >conftest.err
12539   rm -f conftest.er1
12540   cat conftest.err >&5
12541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542   (exit $ac_status); } >/dev/null && {
12543          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12544          test ! -s conftest.err
12545        }; then
12546   # Broken: success on invalid input.
12547 continue
12548 else
12549   echo "$as_me: failed program was:" >&5
12550 sed 's/^/| /' conftest.$ac_ext >&5
12551
12552   # Passes both tests.
12553 ac_preproc_ok=:
12554 break
12555 fi
12556
12557 rm -f conftest.err conftest.$ac_ext
12558
12559 done
12560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12561 rm -f conftest.err conftest.$ac_ext
12562 if $ac_preproc_ok; then
12563   break
12564 fi
12565
12566     done
12567     ac_cv_prog_CPP=$CPP
12568
12569 fi
12570   CPP=$ac_cv_prog_CPP
12571 else
12572   ac_cv_prog_CPP=$CPP
12573 fi
12574 { echo "$as_me:$LINENO: result: $CPP" >&5
12575 echo "${ECHO_T}$CPP" >&6; }
12576 ac_preproc_ok=false
12577 for ac_c_preproc_warn_flag in '' yes
12578 do
12579   # Use a header file that comes with gcc, so configuring glibc
12580   # with a fresh cross-compiler works.
12581   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12582   # <limits.h> exists even on freestanding compilers.
12583   # On the NeXT, cc -E runs the code through the compiler's parser,
12584   # not just through cpp. "Syntax error" is here to catch this case.
12585   cat >conftest.$ac_ext <<_ACEOF
12586 /* confdefs.h.  */
12587 _ACEOF
12588 cat confdefs.h >>conftest.$ac_ext
12589 cat >>conftest.$ac_ext <<_ACEOF
12590 /* end confdefs.h.  */
12591 #ifdef __STDC__
12592 # include <limits.h>
12593 #else
12594 # include <assert.h>
12595 #endif
12596                      Syntax error
12597 _ACEOF
12598 if { (ac_try="$ac_cpp conftest.$ac_ext"
12599 case "(($ac_try" in
12600   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601   *) ac_try_echo=$ac_try;;
12602 esac
12603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12605   ac_status=$?
12606   grep -v '^ *+' conftest.er1 >conftest.err
12607   rm -f conftest.er1
12608   cat conftest.err >&5
12609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610   (exit $ac_status); } >/dev/null && {
12611          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12612          test ! -s conftest.err
12613        }; then
12614   :
12615 else
12616   echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12618
12619   # Broken: fails on valid input.
12620 continue
12621 fi
12622
12623 rm -f conftest.err conftest.$ac_ext
12624
12625   # OK, works on sane cases.  Now check whether nonexistent headers
12626   # can be detected and how.
12627   cat >conftest.$ac_ext <<_ACEOF
12628 /* confdefs.h.  */
12629 _ACEOF
12630 cat confdefs.h >>conftest.$ac_ext
12631 cat >>conftest.$ac_ext <<_ACEOF
12632 /* end confdefs.h.  */
12633 #include <ac_nonexistent.h>
12634 _ACEOF
12635 if { (ac_try="$ac_cpp conftest.$ac_ext"
12636 case "(($ac_try" in
12637   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638   *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } >/dev/null && {
12648          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12649          test ! -s conftest.err
12650        }; then
12651   # Broken: success on invalid input.
12652 continue
12653 else
12654   echo "$as_me: failed program was:" >&5
12655 sed 's/^/| /' conftest.$ac_ext >&5
12656
12657   # Passes both tests.
12658 ac_preproc_ok=:
12659 break
12660 fi
12661
12662 rm -f conftest.err conftest.$ac_ext
12663
12664 done
12665 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12666 rm -f conftest.err conftest.$ac_ext
12667 if $ac_preproc_ok; then
12668   :
12669 else
12670   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12671 See \`config.log' for more details." >&5
12672 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12673 See \`config.log' for more details." >&2;}
12674    { (exit 1); exit 1; }; }
12675 fi
12676
12677 ac_ext=c
12678 ac_cpp='$CPP $CPPFLAGS'
12679 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12680 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12681 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12682
12683 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12684 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12685 if test "${ol_cv_msvc+set}" = set; then
12686   echo $ECHO_N "(cached) $ECHO_C" >&6
12687 else
12688   cat >conftest.$ac_ext <<_ACEOF
12689 /* confdefs.h.  */
12690 _ACEOF
12691 cat confdefs.h >>conftest.$ac_ext
12692 cat >>conftest.$ac_ext <<_ACEOF
12693 /* end confdefs.h.  */
12694
12695 #ifndef _MSC_VER
12696 #include <__FOO__/generate_error.h>
12697 #endif
12698
12699 _ACEOF
12700 if { (ac_try="$ac_cpp conftest.$ac_ext"
12701 case "(($ac_try" in
12702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12703   *) ac_try_echo=$ac_try;;
12704 esac
12705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12706   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12707   ac_status=$?
12708   grep -v '^ *+' conftest.er1 >conftest.err
12709   rm -f conftest.er1
12710   cat conftest.err >&5
12711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12712   (exit $ac_status); } >/dev/null && {
12713          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12714          test ! -s conftest.err
12715        }; then
12716   ol_cv_msvc=yes
12717 else
12718   echo "$as_me: failed program was:" >&5
12719 sed 's/^/| /' conftest.$ac_ext >&5
12720
12721   ol_cv_msvc=no
12722 fi
12723
12724 rm -f conftest.err conftest.$ac_ext
12725 fi
12726 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12727 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12728
12729 case $host_os in
12730   *mingw32* ) ac_cv_mingw32=yes ;;
12731   *cygwin* ) ac_cv_cygwin=yes ;;
12732   *interix* ) ac_cv_interix=yes ;;
12733 esac
12734
12735
12736
12737
12738 cat >>confdefs.h <<_ACEOF
12739 #define EXEEXT "${EXEEXT}"
12740 _ACEOF
12741
12742
12743 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12744 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12745 if test "${ac_cv_lib_be_be_app+set}" = set; then
12746   echo $ECHO_N "(cached) $ECHO_C" >&6
12747 else
12748   ac_check_lib_save_LIBS=$LIBS
12749 LIBS="-lbe -lroot -lnet $LIBS"
12750 cat >conftest.$ac_ext <<_ACEOF
12751 /* confdefs.h.  */
12752 _ACEOF
12753 cat confdefs.h >>conftest.$ac_ext
12754 cat >>conftest.$ac_ext <<_ACEOF
12755 /* end confdefs.h.  */
12756
12757 /* Override any GCC internal prototype to avoid an error.
12758    Use char because int might match the return type of a GCC
12759    builtin and then its argument prototype would still apply.  */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char be_app ();
12764 int
12765 main ()
12766 {
12767 return be_app ();
12768   ;
12769   return 0;
12770 }
12771 _ACEOF
12772 rm -f conftest.$ac_objext conftest$ac_exeext
12773 if { (ac_try="$ac_link"
12774 case "(($ac_try" in
12775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776   *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779   (eval "$ac_link") 2>conftest.er1
12780   ac_status=$?
12781   grep -v '^ *+' conftest.er1 >conftest.err
12782   rm -f conftest.er1
12783   cat conftest.err >&5
12784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785   (exit $ac_status); } && {
12786          test -z "$ac_c_werror_flag" ||
12787          test ! -s conftest.err
12788        } && test -s conftest$ac_exeext &&
12789        $as_test_x conftest$ac_exeext; then
12790   ac_cv_lib_be_be_app=yes
12791 else
12792   echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12794
12795         ac_cv_lib_be_be_app=no
12796 fi
12797
12798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12799       conftest$ac_exeext conftest.$ac_ext
12800 LIBS=$ac_check_lib_save_LIBS
12801 fi
12802 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12803 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12804 if test $ac_cv_lib_be_be_app = yes; then
12805   LIBS="$LIBS -lbe -lroot -lnet"
12806 else
12807   :
12808 fi
12809
12810
12811 ac_ext=c
12812 ac_cpp='$CPP $CPPFLAGS'
12813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12816 if test -n "$ac_tool_prefix"; then
12817   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12821 if test "${ac_cv_prog_CC+set}" = set; then
12822   echo $ECHO_N "(cached) $ECHO_C" >&6
12823 else
12824   if test -n "$CC"; then
12825   ac_cv_prog_CC="$CC" # Let the user override the test.
12826 else
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12829 do
12830   IFS=$as_save_IFS
12831   test -z "$as_dir" && as_dir=.
12832   for ac_exec_ext in '' $ac_executable_extensions; do
12833   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12835     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12836     break 2
12837   fi
12838 done
12839 done
12840 IFS=$as_save_IFS
12841
12842 fi
12843 fi
12844 CC=$ac_cv_prog_CC
12845 if test -n "$CC"; then
12846   { echo "$as_me:$LINENO: result: $CC" >&5
12847 echo "${ECHO_T}$CC" >&6; }
12848 else
12849   { echo "$as_me:$LINENO: result: no" >&5
12850 echo "${ECHO_T}no" >&6; }
12851 fi
12852
12853
12854 fi
12855 if test -z "$ac_cv_prog_CC"; then
12856   ac_ct_CC=$CC
12857   # Extract the first word of "gcc", so it can be a program name with args.
12858 set dummy gcc; ac_word=$2
12859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12861 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
12862   echo $ECHO_N "(cached) $ECHO_C" >&6
12863 else
12864   if test -n "$ac_ct_CC"; then
12865   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12866 else
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12869 do
12870   IFS=$as_save_IFS
12871   test -z "$as_dir" && as_dir=.
12872   for ac_exec_ext in '' $ac_executable_extensions; do
12873   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874     ac_cv_prog_ac_ct_CC="gcc"
12875     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12876     break 2
12877   fi
12878 done
12879 done
12880 IFS=$as_save_IFS
12881
12882 fi
12883 fi
12884 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12885 if test -n "$ac_ct_CC"; then
12886   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
12887 echo "${ECHO_T}$ac_ct_CC" >&6; }
12888 else
12889   { echo "$as_me:$LINENO: result: no" >&5
12890 echo "${ECHO_T}no" >&6; }
12891 fi
12892
12893   if test "x$ac_ct_CC" = x; then
12894     CC=""
12895   else
12896     case $cross_compiling:$ac_tool_warned in
12897 yes:)
12898 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
12899 whose name does not start with the host triplet.  If you think this
12900 configuration is useful to you, please write to autoconf@gnu.org." >&5
12901 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
12902 whose name does not start with the host triplet.  If you think this
12903 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
12904 ac_tool_warned=yes ;;
12905 esac
12906     CC=$ac_ct_CC
12907   fi
12908 else
12909   CC="$ac_cv_prog_CC"
12910 fi
12911
12912 if test -z "$CC"; then
12913           if test -n "$ac_tool_prefix"; then
12914     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12915 set dummy ${ac_tool_prefix}cc; ac_word=$2
12916 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12918 if test "${ac_cv_prog_CC+set}" = set; then
12919   echo $ECHO_N "(cached) $ECHO_C" >&6
12920 else
12921   if test -n "$CC"; then
12922   ac_cv_prog_CC="$CC" # Let the user override the test.
12923 else
12924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12925 for as_dir in $PATH
12926 do
12927   IFS=$as_save_IFS
12928   test -z "$as_dir" && as_dir=.
12929   for ac_exec_ext in '' $ac_executable_extensions; do
12930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12931     ac_cv_prog_CC="${ac_tool_prefix}cc"
12932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12933     break 2
12934   fi
12935 done
12936 done
12937 IFS=$as_save_IFS
12938
12939 fi
12940 fi
12941 CC=$ac_cv_prog_CC
12942 if test -n "$CC"; then
12943   { echo "$as_me:$LINENO: result: $CC" >&5
12944 echo "${ECHO_T}$CC" >&6; }
12945 else
12946   { echo "$as_me:$LINENO: result: no" >&5
12947 echo "${ECHO_T}no" >&6; }
12948 fi
12949
12950
12951   fi
12952 fi
12953 if test -z "$CC"; then
12954   # Extract the first word of "cc", so it can be a program name with args.
12955 set dummy cc; ac_word=$2
12956 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12958 if test "${ac_cv_prog_CC+set}" = set; then
12959   echo $ECHO_N "(cached) $ECHO_C" >&6
12960 else
12961   if test -n "$CC"; then
12962   ac_cv_prog_CC="$CC" # Let the user override the test.
12963 else
12964   ac_prog_rejected=no
12965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12966 for as_dir in $PATH
12967 do
12968   IFS=$as_save_IFS
12969   test -z "$as_dir" && as_dir=.
12970   for ac_exec_ext in '' $ac_executable_extensions; do
12971   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12972     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12973        ac_prog_rejected=yes
12974        continue
12975      fi
12976     ac_cv_prog_CC="cc"
12977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12978     break 2
12979   fi
12980 done
12981 done
12982 IFS=$as_save_IFS
12983
12984 if test $ac_prog_rejected = yes; then
12985   # We found a bogon in the path, so make sure we never use it.
12986   set dummy $ac_cv_prog_CC
12987   shift
12988   if test $# != 0; then
12989     # We chose a different compiler from the bogus one.
12990     # However, it has the same basename, so the bogon will be chosen
12991     # first if we set CC to just the basename; use the full file name.
12992     shift
12993     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12994   fi
12995 fi
12996 fi
12997 fi
12998 CC=$ac_cv_prog_CC
12999 if test -n "$CC"; then
13000   { echo "$as_me:$LINENO: result: $CC" >&5
13001 echo "${ECHO_T}$CC" >&6; }
13002 else
13003   { echo "$as_me:$LINENO: result: no" >&5
13004 echo "${ECHO_T}no" >&6; }
13005 fi
13006
13007
13008 fi
13009 if test -z "$CC"; then
13010   if test -n "$ac_tool_prefix"; then
13011   for ac_prog in cl.exe
13012   do
13013     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13014 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13017 if test "${ac_cv_prog_CC+set}" = set; then
13018   echo $ECHO_N "(cached) $ECHO_C" >&6
13019 else
13020   if test -n "$CC"; then
13021   ac_cv_prog_CC="$CC" # Let the user override the test.
13022 else
13023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13024 for as_dir in $PATH
13025 do
13026   IFS=$as_save_IFS
13027   test -z "$as_dir" && as_dir=.
13028   for ac_exec_ext in '' $ac_executable_extensions; do
13029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13030     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13032     break 2
13033   fi
13034 done
13035 done
13036 IFS=$as_save_IFS
13037
13038 fi
13039 fi
13040 CC=$ac_cv_prog_CC
13041 if test -n "$CC"; then
13042   { echo "$as_me:$LINENO: result: $CC" >&5
13043 echo "${ECHO_T}$CC" >&6; }
13044 else
13045   { echo "$as_me:$LINENO: result: no" >&5
13046 echo "${ECHO_T}no" >&6; }
13047 fi
13048
13049
13050     test -n "$CC" && break
13051   done
13052 fi
13053 if test -z "$CC"; then
13054   ac_ct_CC=$CC
13055   for ac_prog in cl.exe
13056 do
13057   # Extract the first word of "$ac_prog", so it can be a program name with args.
13058 set dummy $ac_prog; ac_word=$2
13059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13061 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13062   echo $ECHO_N "(cached) $ECHO_C" >&6
13063 else
13064   if test -n "$ac_ct_CC"; then
13065   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13066 else
13067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13068 for as_dir in $PATH
13069 do
13070   IFS=$as_save_IFS
13071   test -z "$as_dir" && as_dir=.
13072   for ac_exec_ext in '' $ac_executable_extensions; do
13073   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13074     ac_cv_prog_ac_ct_CC="$ac_prog"
13075     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13076     break 2
13077   fi
13078 done
13079 done
13080 IFS=$as_save_IFS
13081
13082 fi
13083 fi
13084 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13085 if test -n "$ac_ct_CC"; then
13086   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13087 echo "${ECHO_T}$ac_ct_CC" >&6; }
13088 else
13089   { echo "$as_me:$LINENO: result: no" >&5
13090 echo "${ECHO_T}no" >&6; }
13091 fi
13092
13093
13094   test -n "$ac_ct_CC" && break
13095 done
13096
13097   if test "x$ac_ct_CC" = x; then
13098     CC=""
13099   else
13100     case $cross_compiling:$ac_tool_warned in
13101 yes:)
13102 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13103 whose name does not start with the host triplet.  If you think this
13104 configuration is useful to you, please write to autoconf@gnu.org." >&5
13105 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13106 whose name does not start with the host triplet.  If you think this
13107 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13108 ac_tool_warned=yes ;;
13109 esac
13110     CC=$ac_ct_CC
13111   fi
13112 fi
13113
13114 fi
13115
13116
13117 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13118 See \`config.log' for more details." >&5
13119 echo "$as_me: error: no acceptable C compiler found in \$PATH
13120 See \`config.log' for more details." >&2;}
13121    { (exit 1); exit 1; }; }
13122
13123 # Provide some information about the compiler.
13124 echo "$as_me:$LINENO: checking for C compiler version" >&5
13125 ac_compiler=`set X $ac_compile; echo $2`
13126 { (ac_try="$ac_compiler --version >&5"
13127 case "(($ac_try" in
13128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13129   *) ac_try_echo=$ac_try;;
13130 esac
13131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13132   (eval "$ac_compiler --version >&5") 2>&5
13133   ac_status=$?
13134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13135   (exit $ac_status); }
13136 { (ac_try="$ac_compiler -v >&5"
13137 case "(($ac_try" in
13138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13139   *) ac_try_echo=$ac_try;;
13140 esac
13141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13142   (eval "$ac_compiler -v >&5") 2>&5
13143   ac_status=$?
13144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); }
13146 { (ac_try="$ac_compiler -V >&5"
13147 case "(($ac_try" in
13148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13149   *) ac_try_echo=$ac_try;;
13150 esac
13151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13152   (eval "$ac_compiler -V >&5") 2>&5
13153   ac_status=$?
13154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13155   (exit $ac_status); }
13156
13157 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13158 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13159 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13160   echo $ECHO_N "(cached) $ECHO_C" >&6
13161 else
13162   cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h.  */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h.  */
13168
13169 int
13170 main ()
13171 {
13172 #ifndef __GNUC__
13173        choke me
13174 #endif
13175
13176   ;
13177   return 0;
13178 }
13179 _ACEOF
13180 rm -f conftest.$ac_objext
13181 if { (ac_try="$ac_compile"
13182 case "(($ac_try" in
13183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13184   *) ac_try_echo=$ac_try;;
13185 esac
13186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13187   (eval "$ac_compile") 2>conftest.er1
13188   ac_status=$?
13189   grep -v '^ *+' conftest.er1 >conftest.err
13190   rm -f conftest.er1
13191   cat conftest.err >&5
13192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13193   (exit $ac_status); } && {
13194          test -z "$ac_c_werror_flag" ||
13195          test ! -s conftest.err
13196        } && test -s conftest.$ac_objext; then
13197   ac_compiler_gnu=yes
13198 else
13199   echo "$as_me: failed program was:" >&5
13200 sed 's/^/| /' conftest.$ac_ext >&5
13201
13202         ac_compiler_gnu=no
13203 fi
13204
13205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13206 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13207
13208 fi
13209 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13210 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13211 GCC=`test $ac_compiler_gnu = yes && echo yes`
13212 ac_test_CFLAGS=${CFLAGS+set}
13213 ac_save_CFLAGS=$CFLAGS
13214 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13215 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13216 if test "${ac_cv_prog_cc_g+set}" = set; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219   ac_save_c_werror_flag=$ac_c_werror_flag
13220    ac_c_werror_flag=yes
13221    ac_cv_prog_cc_g=no
13222    CFLAGS="-g"
13223    cat >conftest.$ac_ext <<_ACEOF
13224 /* confdefs.h.  */
13225 _ACEOF
13226 cat confdefs.h >>conftest.$ac_ext
13227 cat >>conftest.$ac_ext <<_ACEOF
13228 /* end confdefs.h.  */
13229
13230 int
13231 main ()
13232 {
13233
13234   ;
13235   return 0;
13236 }
13237 _ACEOF
13238 rm -f conftest.$ac_objext
13239 if { (ac_try="$ac_compile"
13240 case "(($ac_try" in
13241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242   *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245   (eval "$ac_compile") 2>conftest.er1
13246   ac_status=$?
13247   grep -v '^ *+' conftest.er1 >conftest.err
13248   rm -f conftest.er1
13249   cat conftest.err >&5
13250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251   (exit $ac_status); } && {
13252          test -z "$ac_c_werror_flag" ||
13253          test ! -s conftest.err
13254        } && test -s conftest.$ac_objext; then
13255   ac_cv_prog_cc_g=yes
13256 else
13257   echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260         CFLAGS=""
13261       cat >conftest.$ac_ext <<_ACEOF
13262 /* confdefs.h.  */
13263 _ACEOF
13264 cat confdefs.h >>conftest.$ac_ext
13265 cat >>conftest.$ac_ext <<_ACEOF
13266 /* end confdefs.h.  */
13267
13268 int
13269 main ()
13270 {
13271
13272   ;
13273   return 0;
13274 }
13275 _ACEOF
13276 rm -f conftest.$ac_objext
13277 if { (ac_try="$ac_compile"
13278 case "(($ac_try" in
13279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13280   *) ac_try_echo=$ac_try;;
13281 esac
13282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13283   (eval "$ac_compile") 2>conftest.er1
13284   ac_status=$?
13285   grep -v '^ *+' conftest.er1 >conftest.err
13286   rm -f conftest.er1
13287   cat conftest.err >&5
13288   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13289   (exit $ac_status); } && {
13290          test -z "$ac_c_werror_flag" ||
13291          test ! -s conftest.err
13292        } && test -s conftest.$ac_objext; then
13293   :
13294 else
13295   echo "$as_me: failed program was:" >&5
13296 sed 's/^/| /' conftest.$ac_ext >&5
13297
13298         ac_c_werror_flag=$ac_save_c_werror_flag
13299          CFLAGS="-g"
13300          cat >conftest.$ac_ext <<_ACEOF
13301 /* confdefs.h.  */
13302 _ACEOF
13303 cat confdefs.h >>conftest.$ac_ext
13304 cat >>conftest.$ac_ext <<_ACEOF
13305 /* end confdefs.h.  */
13306
13307 int
13308 main ()
13309 {
13310
13311   ;
13312   return 0;
13313 }
13314 _ACEOF
13315 rm -f conftest.$ac_objext
13316 if { (ac_try="$ac_compile"
13317 case "(($ac_try" in
13318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13319   *) ac_try_echo=$ac_try;;
13320 esac
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322   (eval "$ac_compile") 2>conftest.er1
13323   ac_status=$?
13324   grep -v '^ *+' conftest.er1 >conftest.err
13325   rm -f conftest.er1
13326   cat conftest.err >&5
13327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328   (exit $ac_status); } && {
13329          test -z "$ac_c_werror_flag" ||
13330          test ! -s conftest.err
13331        } && test -s conftest.$ac_objext; then
13332   ac_cv_prog_cc_g=yes
13333 else
13334   echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13336
13337
13338 fi
13339
13340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 fi
13345
13346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13347    ac_c_werror_flag=$ac_save_c_werror_flag
13348 fi
13349 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13350 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13351 if test "$ac_test_CFLAGS" = set; then
13352   CFLAGS=$ac_save_CFLAGS
13353 elif test $ac_cv_prog_cc_g = yes; then
13354   if test "$GCC" = yes; then
13355     CFLAGS="-g -O2"
13356   else
13357     CFLAGS="-g"
13358   fi
13359 else
13360   if test "$GCC" = yes; then
13361     CFLAGS="-O2"
13362   else
13363     CFLAGS=
13364   fi
13365 fi
13366 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13367 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13368 if test "${ac_cv_prog_cc_c89+set}" = set; then
13369   echo $ECHO_N "(cached) $ECHO_C" >&6
13370 else
13371   ac_cv_prog_cc_c89=no
13372 ac_save_CC=$CC
13373 cat >conftest.$ac_ext <<_ACEOF
13374 /* confdefs.h.  */
13375 _ACEOF
13376 cat confdefs.h >>conftest.$ac_ext
13377 cat >>conftest.$ac_ext <<_ACEOF
13378 /* end confdefs.h.  */
13379 #include <stdarg.h>
13380 #include <stdio.h>
13381 #include <sys/types.h>
13382 #include <sys/stat.h>
13383 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13384 struct buf { int x; };
13385 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13386 static char *e (p, i)
13387      char **p;
13388      int i;
13389 {
13390   return p[i];
13391 }
13392 static char *f (char * (*g) (char **, int), char **p, ...)
13393 {
13394   char *s;
13395   va_list v;
13396   va_start (v,p);
13397   s = g (p, va_arg (v,int));
13398   va_end (v);
13399   return s;
13400 }
13401
13402 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13403    function prototypes and stuff, but not '\xHH' hex character constants.
13404    These don't provoke an error unfortunately, instead are silently treated
13405    as 'x'.  The following induces an error, until -std is added to get
13406    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13407    array size at least.  It's necessary to write '\x00'==0 to get something
13408    that's true only with -std.  */
13409 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13410
13411 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13412    inside strings and character constants.  */
13413 #define FOO(x) 'x'
13414 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13415
13416 int test (int i, double x);
13417 struct s1 {int (*f) (int a);};
13418 struct s2 {int (*f) (double a);};
13419 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13420 int argc;
13421 char **argv;
13422 int
13423 main ()
13424 {
13425 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13426   ;
13427   return 0;
13428 }
13429 _ACEOF
13430 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13431         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13432 do
13433   CC="$ac_save_CC $ac_arg"
13434   rm -f conftest.$ac_objext
13435 if { (ac_try="$ac_compile"
13436 case "(($ac_try" in
13437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13438   *) ac_try_echo=$ac_try;;
13439 esac
13440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13441   (eval "$ac_compile") 2>conftest.er1
13442   ac_status=$?
13443   grep -v '^ *+' conftest.er1 >conftest.err
13444   rm -f conftest.er1
13445   cat conftest.err >&5
13446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13447   (exit $ac_status); } && {
13448          test -z "$ac_c_werror_flag" ||
13449          test ! -s conftest.err
13450        } && test -s conftest.$ac_objext; then
13451   ac_cv_prog_cc_c89=$ac_arg
13452 else
13453   echo "$as_me: failed program was:" >&5
13454 sed 's/^/| /' conftest.$ac_ext >&5
13455
13456
13457 fi
13458
13459 rm -f core conftest.err conftest.$ac_objext
13460   test "x$ac_cv_prog_cc_c89" != "xno" && break
13461 done
13462 rm -f conftest.$ac_ext
13463 CC=$ac_save_CC
13464
13465 fi
13466 # AC_CACHE_VAL
13467 case "x$ac_cv_prog_cc_c89" in
13468   x)
13469     { echo "$as_me:$LINENO: result: none needed" >&5
13470 echo "${ECHO_T}none needed" >&6; } ;;
13471   xno)
13472     { echo "$as_me:$LINENO: result: unsupported" >&5
13473 echo "${ECHO_T}unsupported" >&6; } ;;
13474   *)
13475     CC="$CC $ac_cv_prog_cc_c89"
13476     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13477 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13478 esac
13479
13480
13481 ac_ext=c
13482 ac_cpp='$CPP $CPPFLAGS'
13483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13486
13487 depcc="$CC"   am_compiler_list=
13488
13489 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13490 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13491 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13492   echo $ECHO_N "(cached) $ECHO_C" >&6
13493 else
13494   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13495   # We make a subdir and do the tests there.  Otherwise we can end up
13496   # making bogus files that we don't know about and never remove.  For
13497   # instance it was reported that on HP-UX the gcc test will end up
13498   # making a dummy file named `D' -- because `-MD' means `put the output
13499   # in D'.
13500   mkdir conftest.dir
13501   # Copy depcomp to subdir because otherwise we won't find it if we're
13502   # using a relative directory.
13503   cp "$am_depcomp" conftest.dir
13504   cd conftest.dir
13505   # We will build objects and dependencies in a subdirectory because
13506   # it helps to detect inapplicable dependency modes.  For instance
13507   # both Tru64's cc and ICC support -MD to output dependencies as a
13508   # side effect of compilation, but ICC will put the dependencies in
13509   # the current directory while Tru64 will put them in the object
13510   # directory.
13511   mkdir sub
13512
13513   am_cv_CC_dependencies_compiler_type=none
13514   if test "$am_compiler_list" = ""; then
13515      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13516   fi
13517   for depmode in $am_compiler_list; do
13518     # Setup a source with many dependencies, because some compilers
13519     # like to wrap large dependency lists on column 80 (with \), and
13520     # we should not choose a depcomp mode which is confused by this.
13521     #
13522     # We need to recreate these files for each test, as the compiler may
13523     # overwrite some of them when testing with obscure command lines.
13524     # This happens at least with the AIX C compiler.
13525     : > sub/conftest.c
13526     for i in 1 2 3 4 5 6; do
13527       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13528       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13529       # Solaris 8's {/usr,}/bin/sh.
13530       touch sub/conftst$i.h
13531     done
13532     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13533
13534     case $depmode in
13535     nosideeffect)
13536       # after this tag, mechanisms are not by side-effect, so they'll
13537       # only be used when explicitly requested
13538       if test "x$enable_dependency_tracking" = xyes; then
13539         continue
13540       else
13541         break
13542       fi
13543       ;;
13544     none) break ;;
13545     esac
13546     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13547     # mode.  It turns out that the SunPro C++ compiler does not properly
13548     # handle `-M -o', and we need to detect this.
13549     if depmode=$depmode \
13550        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13551        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13552        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13553          >/dev/null 2>conftest.err &&
13554        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13555        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13556        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13557       # icc doesn't choke on unknown options, it will just issue warnings
13558       # or remarks (even with -Werror).  So we grep stderr for any message
13559       # that says an option was ignored or not supported.
13560       # When given -MP, icc 7.0 and 7.1 complain thusly:
13561       #   icc: Command line warning: ignoring option '-M'; no argument required
13562       # The diagnosis changed in icc 8.0:
13563       #   icc: Command line remark: option '-MP' not supported
13564       if (grep 'ignoring option' conftest.err ||
13565           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13566         am_cv_CC_dependencies_compiler_type=$depmode
13567         break
13568       fi
13569     fi
13570   done
13571
13572   cd ..
13573   rm -rf conftest.dir
13574 else
13575   am_cv_CC_dependencies_compiler_type=none
13576 fi
13577
13578 fi
13579 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13580 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13581 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13582
13583
13584
13585 if
13586   test "x$enable_dependency_tracking" != xno \
13587   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13588   am__fastdepCC_TRUE=
13589   am__fastdepCC_FALSE='#'
13590 else
13591   am__fastdepCC_TRUE='#'
13592   am__fastdepCC_FALSE=
13593 fi
13594
13595
13596 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13597         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13598 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13599    { (exit 1); exit 1; }; }
13600 fi
13601
13602 # test for make depend flag
13603 OL_MKDEP=
13604 OL_MKDEP_FLAGS=
13605 if test -z "${MKDEP}"; then
13606         OL_MKDEP="${CC-cc}"
13607         if test -z "${MKDEP_FLAGS}"; then
13608                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13609 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13610 if test "${ol_cv_mkdep+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613
13614                         ol_cv_mkdep=no
13615                         for flag in "-M" "-xM"; do
13616                                 cat > conftest.c <<EOF
13617  noCode;
13618 EOF
13619                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13620   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13621   (eval $ac_try) 2>&5
13622   ac_status=$?
13623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624   (exit $ac_status); }; } \
13625                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13626                                 then
13627                                         if test ! -f conftest."${ac_object}" ; then
13628                                                 ol_cv_mkdep=$flag
13629                                                 OL_MKDEP_FLAGS="$flag"
13630                                                 break
13631                                         fi
13632                                 fi
13633                         done
13634                         rm -f conftest*
13635
13636 fi
13637 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13638 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13639                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13640         else
13641                 cc_cv_mkdep=yes
13642                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13643         fi
13644 else
13645         cc_cv_mkdep=yes
13646         OL_MKDEP="${MKDEP}"
13647         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13648 fi
13649
13650
13651
13652 if test "${ol_cv_mkdep}" = no ; then
13653         # this will soon become an error
13654         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13655 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13656 fi
13657
13658 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13659 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13660 if test "${ac_cv_lib_s_afopen+set}" = set; then
13661   echo $ECHO_N "(cached) $ECHO_C" >&6
13662 else
13663   ac_check_lib_save_LIBS=$LIBS
13664 LIBS="-ls  $LIBS"
13665 cat >conftest.$ac_ext <<_ACEOF
13666 /* confdefs.h.  */
13667 _ACEOF
13668 cat confdefs.h >>conftest.$ac_ext
13669 cat >>conftest.$ac_ext <<_ACEOF
13670 /* end confdefs.h.  */
13671
13672 /* Override any GCC internal prototype to avoid an error.
13673    Use char because int might match the return type of a GCC
13674    builtin and then its argument prototype would still apply.  */
13675 #ifdef __cplusplus
13676 extern "C"
13677 #endif
13678 char afopen ();
13679 int
13680 main ()
13681 {
13682 return afopen ();
13683   ;
13684   return 0;
13685 }
13686 _ACEOF
13687 rm -f conftest.$ac_objext conftest$ac_exeext
13688 if { (ac_try="$ac_link"
13689 case "(($ac_try" in
13690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691   *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694   (eval "$ac_link") 2>conftest.er1
13695   ac_status=$?
13696   grep -v '^ *+' conftest.er1 >conftest.err
13697   rm -f conftest.er1
13698   cat conftest.err >&5
13699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700   (exit $ac_status); } && {
13701          test -z "$ac_c_werror_flag" ||
13702          test ! -s conftest.err
13703        } && test -s conftest$ac_exeext &&
13704        $as_test_x conftest$ac_exeext; then
13705   ac_cv_lib_s_afopen=yes
13706 else
13707   echo "$as_me: failed program was:" >&5
13708 sed 's/^/| /' conftest.$ac_ext >&5
13709
13710         ac_cv_lib_s_afopen=no
13711 fi
13712
13713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13714       conftest$ac_exeext conftest.$ac_ext
13715 LIBS=$ac_check_lib_save_LIBS
13716 fi
13717 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13718 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13719 if test $ac_cv_lib_s_afopen = yes; then
13720
13721         AUTH_LIBS=-ls
13722
13723 cat >>confdefs.h <<\_ACEOF
13724 #define HAVE_AIX_SECURITY 1
13725 _ACEOF
13726
13727
13728 fi
13729
13730
13731 case "$target" in
13732 *-ibm-openedition)
13733         ac_cv_func_getopt=no
13734
13735 cat >>confdefs.h <<\_ACEOF
13736 #define BOTH_STRINGS_H 1
13737 _ACEOF
13738
13739         ;;
13740 esac
13741
13742 ol_link_modules=no
13743 WITH_MODULES_ENABLED=no
13744 if test $ol_enable_modules != no ; then
13745
13746 for ac_header in ltdl.h
13747 do
13748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13750   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13753   echo $ECHO_N "(cached) $ECHO_C" >&6
13754 fi
13755 ac_res=`eval echo '${'$as_ac_Header'}'`
13756                { echo "$as_me:$LINENO: result: $ac_res" >&5
13757 echo "${ECHO_T}$ac_res" >&6; }
13758 else
13759   # Is the header compilable?
13760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h.  */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h.  */
13768 $ac_includes_default
13769 #include <$ac_header>
13770 _ACEOF
13771 rm -f conftest.$ac_objext
13772 if { (ac_try="$ac_compile"
13773 case "(($ac_try" in
13774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13775   *) ac_try_echo=$ac_try;;
13776 esac
13777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13778   (eval "$ac_compile") 2>conftest.er1
13779   ac_status=$?
13780   grep -v '^ *+' conftest.er1 >conftest.err
13781   rm -f conftest.er1
13782   cat conftest.err >&5
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); } && {
13785          test -z "$ac_c_werror_flag" ||
13786          test ! -s conftest.err
13787        } && test -s conftest.$ac_objext; then
13788   ac_header_compiler=yes
13789 else
13790   echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.$ac_ext >&5
13792
13793         ac_header_compiler=no
13794 fi
13795
13796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13798 echo "${ECHO_T}$ac_header_compiler" >&6; }
13799
13800 # Is the header present?
13801 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13802 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13803 cat >conftest.$ac_ext <<_ACEOF
13804 /* confdefs.h.  */
13805 _ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h.  */
13809 #include <$ac_header>
13810 _ACEOF
13811 if { (ac_try="$ac_cpp conftest.$ac_ext"
13812 case "(($ac_try" in
13813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814   *) ac_try_echo=$ac_try;;
13815 esac
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13818   ac_status=$?
13819   grep -v '^ *+' conftest.er1 >conftest.err
13820   rm -f conftest.er1
13821   cat conftest.err >&5
13822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823   (exit $ac_status); } >/dev/null && {
13824          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13825          test ! -s conftest.err
13826        }; then
13827   ac_header_preproc=yes
13828 else
13829   echo "$as_me: failed program was:" >&5
13830 sed 's/^/| /' conftest.$ac_ext >&5
13831
13832   ac_header_preproc=no
13833 fi
13834
13835 rm -f conftest.err conftest.$ac_ext
13836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13837 echo "${ECHO_T}$ac_header_preproc" >&6; }
13838
13839 # So?  What about this header?
13840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13841   yes:no: )
13842     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13843 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13844     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13845 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13846     ac_header_preproc=yes
13847     ;;
13848   no:yes:* )
13849     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13850 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13851     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13852 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13853     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13854 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13855     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13856 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13857     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13858 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13859     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13860 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13861     ( cat <<\_ASBOX
13862 ## --------------------------------------------- ##
13863 ## Report this to <http://www.openldap.org/its/> ##
13864 ## --------------------------------------------- ##
13865 _ASBOX
13866      ) | sed "s/^/$as_me: WARNING:     /" >&2
13867     ;;
13868 esac
13869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13872   echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874   eval "$as_ac_Header=\$ac_header_preproc"
13875 fi
13876 ac_res=`eval echo '${'$as_ac_Header'}'`
13877                { echo "$as_me:$LINENO: result: $ac_res" >&5
13878 echo "${ECHO_T}$ac_res" >&6; }
13879
13880 fi
13881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13882   cat >>confdefs.h <<_ACEOF
13883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13884 _ACEOF
13885
13886 fi
13887
13888 done
13889
13890
13891         if test $ac_cv_header_ltdl_h = no ; then
13892                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
13893 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
13894    { (exit 1); exit 1; }; }
13895         fi
13896
13897         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
13898 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
13899 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
13900   echo $ECHO_N "(cached) $ECHO_C" >&6
13901 else
13902   ac_check_lib_save_LIBS=$LIBS
13903 LIBS="-lltdl  $LIBS"
13904 cat >conftest.$ac_ext <<_ACEOF
13905 /* confdefs.h.  */
13906 _ACEOF
13907 cat confdefs.h >>conftest.$ac_ext
13908 cat >>conftest.$ac_ext <<_ACEOF
13909 /* end confdefs.h.  */
13910
13911 /* Override any GCC internal prototype to avoid an error.
13912    Use char because int might match the return type of a GCC
13913    builtin and then its argument prototype would still apply.  */
13914 #ifdef __cplusplus
13915 extern "C"
13916 #endif
13917 char lt_dlinit ();
13918 int
13919 main ()
13920 {
13921 return lt_dlinit ();
13922   ;
13923   return 0;
13924 }
13925 _ACEOF
13926 rm -f conftest.$ac_objext conftest$ac_exeext
13927 if { (ac_try="$ac_link"
13928 case "(($ac_try" in
13929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930   *) ac_try_echo=$ac_try;;
13931 esac
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933   (eval "$ac_link") 2>conftest.er1
13934   ac_status=$?
13935   grep -v '^ *+' conftest.er1 >conftest.err
13936   rm -f conftest.er1
13937   cat conftest.err >&5
13938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13939   (exit $ac_status); } && {
13940          test -z "$ac_c_werror_flag" ||
13941          test ! -s conftest.err
13942        } && test -s conftest$ac_exeext &&
13943        $as_test_x conftest$ac_exeext; then
13944   ac_cv_lib_ltdl_lt_dlinit=yes
13945 else
13946   echo "$as_me: failed program was:" >&5
13947 sed 's/^/| /' conftest.$ac_ext >&5
13948
13949         ac_cv_lib_ltdl_lt_dlinit=no
13950 fi
13951
13952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13953       conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13955 fi
13956 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
13957 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
13958 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
13959
13960                 MODULES_LIBS=-lltdl
13961
13962 cat >>confdefs.h <<\_ACEOF
13963 #define HAVE_LIBLTDL 1
13964 _ACEOF
13965
13966
13967 fi
13968
13969
13970         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
13971                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
13972 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
13973    { (exit 1); exit 1; }; }
13974         fi
13975         ol_link_modules=yes
13976         WITH_MODULES_ENABLED=yes
13977
13978 else
13979         for i in $Backends; do
13980                 eval "ol_tmp=\$ol_enable_$i"
13981                 if test $ol_tmp = mod ; then
13982                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
13983 echo "$as_me: WARNING: building static $i backend" >&2;}
13984                         eval "ol_enable_$i=yes"
13985                 fi
13986         done
13987         for i in $Overlays; do
13988                 eval "ol_tmp=\$ol_enable_$i"
13989                 if test $ol_tmp = mod ; then
13990                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
13991 echo "$as_me: WARNING: building static $i overlay" >&2;}
13992                         eval "ol_enable_$i=yes"
13993                 fi
13994         done
13995 fi
13996
13997 # test for EBCDIC
13998 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
13999 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14000 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14001   echo $ECHO_N "(cached) $ECHO_C" >&6
14002 else
14003
14004         cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h.  */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h.  */
14010
14011 #if !('M' == 0xd4)
14012 #include <__ASCII__/generate_error.h>
14013 #endif
14014
14015 _ACEOF
14016 if { (ac_try="$ac_cpp conftest.$ac_ext"
14017 case "(($ac_try" in
14018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14019   *) ac_try_echo=$ac_try;;
14020 esac
14021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14022   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14023   ac_status=$?
14024   grep -v '^ *+' conftest.er1 >conftest.err
14025   rm -f conftest.er1
14026   cat conftest.err >&5
14027   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028   (exit $ac_status); } >/dev/null && {
14029          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14030          test ! -s conftest.err
14031        }; then
14032   ol_cv_cpp_ebcdic=yes
14033 else
14034   echo "$as_me: failed program was:" >&5
14035 sed 's/^/| /' conftest.$ac_ext >&5
14036
14037   ol_cv_cpp_ebcdic=no
14038 fi
14039
14040 rm -f conftest.err conftest.$ac_ext
14041 fi
14042 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14043 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14044 if test $ol_cv_cpp_ebcdic = yes ; then
14045
14046 cat >>confdefs.h <<\_ACEOF
14047 #define HAVE_EBCDIC 1
14048 _ACEOF
14049
14050 fi
14051
14052 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14053 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14054 if test "${ol_cv_header_stdc+set}" = set; then
14055   echo $ECHO_N "(cached) $ECHO_C" >&6
14056 else
14057   cat >conftest.$ac_ext <<_ACEOF
14058 /* confdefs.h.  */
14059 _ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h.  */
14063 #include <stdlib.h>
14064 #include <stdarg.h>
14065 #include <string.h>
14066 #include <float.h>
14067 _ACEOF
14068 if { (ac_try="$ac_cpp conftest.$ac_ext"
14069 case "(($ac_try" in
14070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14071   *) ac_try_echo=$ac_try;;
14072 esac
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14075   ac_status=$?
14076   grep -v '^ *+' conftest.er1 >conftest.err
14077   rm -f conftest.er1
14078   cat conftest.err >&5
14079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080   (exit $ac_status); } >/dev/null && {
14081          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14082          test ! -s conftest.err
14083        }; then
14084   ol_cv_header_stdc=yes
14085 else
14086   echo "$as_me: failed program was:" >&5
14087 sed 's/^/| /' conftest.$ac_ext >&5
14088
14089   ol_cv_header_stdc=no
14090 fi
14091
14092 rm -f conftest.err conftest.$ac_ext
14093
14094 if test $ol_cv_header_stdc = yes; then
14095   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14096 cat >conftest.$ac_ext <<_ACEOF
14097 /* confdefs.h.  */
14098 _ACEOF
14099 cat confdefs.h >>conftest.$ac_ext
14100 cat >>conftest.$ac_ext <<_ACEOF
14101 /* end confdefs.h.  */
14102 #include <string.h>
14103
14104 _ACEOF
14105 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14106   $EGREP "memchr" >/dev/null 2>&1; then
14107   :
14108 else
14109   ol_cv_header_stdc=no
14110 fi
14111 rm -f conftest*
14112
14113 fi
14114
14115 if test $ol_cv_header_stdc = yes; then
14116   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14117 cat >conftest.$ac_ext <<_ACEOF
14118 /* confdefs.h.  */
14119 _ACEOF
14120 cat confdefs.h >>conftest.$ac_ext
14121 cat >>conftest.$ac_ext <<_ACEOF
14122 /* end confdefs.h.  */
14123 #include <stdlib.h>
14124
14125 _ACEOF
14126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14127   $EGREP "free" >/dev/null 2>&1; then
14128   :
14129 else
14130   ol_cv_header_stdc=no
14131 fi
14132 rm -f conftest*
14133
14134 fi
14135
14136 if test $ol_cv_header_stdc = yes; then
14137   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14138 if test "$cross_compiling" = yes; then
14139   :
14140 else
14141   cat >conftest.$ac_ext <<_ACEOF
14142 /* confdefs.h.  */
14143 _ACEOF
14144 cat confdefs.h >>conftest.$ac_ext
14145 cat >>conftest.$ac_ext <<_ACEOF
14146 /* end confdefs.h.  */
14147 #include <ctype.h>
14148 #ifndef HAVE_EBCDIC
14149 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14150 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14151 #else
14152 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14153                 || ('j' <= (c) && (c) <= 'r') \
14154                 || ('s' <= (c) && (c) <= 'z'))
14155 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14156 #endif
14157 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14158 int main () { int i; for (i = 0; i < 256; i++)
14159 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14160 exit (0); }
14161
14162 _ACEOF
14163 rm -f conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167   *) ac_try_echo=$ac_try;;
14168 esac
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170   (eval "$ac_link") 2>&5
14171   ac_status=$?
14172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14174   { (case "(($ac_try" in
14175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176   *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179   (eval "$ac_try") 2>&5
14180   ac_status=$?
14181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14182   (exit $ac_status); }; }; then
14183   :
14184 else
14185   echo "$as_me: program exited with status $ac_status" >&5
14186 echo "$as_me: failed program was:" >&5
14187 sed 's/^/| /' conftest.$ac_ext >&5
14188
14189 ( exit $ac_status )
14190 ol_cv_header_stdc=no
14191 fi
14192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14193 fi
14194
14195
14196 fi
14197 fi
14198 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14199 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14200 if test $ol_cv_header_stdc = yes; then
14201   cat >>confdefs.h <<\_ACEOF
14202 #define STDC_HEADERS 1
14203 _ACEOF
14204
14205 fi
14206 ac_cv_header_stdc=disable
14207
14208
14209 if test $ol_cv_header_stdc != yes; then
14210         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14211 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14212 fi
14213
14214
14215
14216
14217
14218
14219 ac_header_dirent=no
14220 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14221   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14222 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14223 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14224 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14225   echo $ECHO_N "(cached) $ECHO_C" >&6
14226 else
14227   cat >conftest.$ac_ext <<_ACEOF
14228 /* confdefs.h.  */
14229 _ACEOF
14230 cat confdefs.h >>conftest.$ac_ext
14231 cat >>conftest.$ac_ext <<_ACEOF
14232 /* end confdefs.h.  */
14233 #include <sys/types.h>
14234 #include <$ac_hdr>
14235
14236 int
14237 main ()
14238 {
14239 if ((DIR *) 0)
14240 return 0;
14241   ;
14242   return 0;
14243 }
14244 _ACEOF
14245 rm -f conftest.$ac_objext
14246 if { (ac_try="$ac_compile"
14247 case "(($ac_try" in
14248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14249   *) ac_try_echo=$ac_try;;
14250 esac
14251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14252   (eval "$ac_compile") 2>conftest.er1
14253   ac_status=$?
14254   grep -v '^ *+' conftest.er1 >conftest.err
14255   rm -f conftest.er1
14256   cat conftest.err >&5
14257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14258   (exit $ac_status); } && {
14259          test -z "$ac_c_werror_flag" ||
14260          test ! -s conftest.err
14261        } && test -s conftest.$ac_objext; then
14262   eval "$as_ac_Header=yes"
14263 else
14264   echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267         eval "$as_ac_Header=no"
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14271 fi
14272 ac_res=`eval echo '${'$as_ac_Header'}'`
14273                { echo "$as_me:$LINENO: result: $ac_res" >&5
14274 echo "${ECHO_T}$ac_res" >&6; }
14275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14276   cat >>confdefs.h <<_ACEOF
14277 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14278 _ACEOF
14279
14280 ac_header_dirent=$ac_hdr; break
14281 fi
14282
14283 done
14284 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14285 if test $ac_header_dirent = dirent.h; then
14286   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14287 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14288 if test "${ac_cv_search_opendir+set}" = set; then
14289   echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291   ac_func_search_save_LIBS=$LIBS
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h.  */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h.  */
14298
14299 /* Override any GCC internal prototype to avoid an error.
14300    Use char because int might match the return type of a GCC
14301    builtin and then its argument prototype would still apply.  */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char opendir ();
14306 int
14307 main ()
14308 {
14309 return opendir ();
14310   ;
14311   return 0;
14312 }
14313 _ACEOF
14314 for ac_lib in '' dir; do
14315   if test -z "$ac_lib"; then
14316     ac_res="none required"
14317   else
14318     ac_res=-l$ac_lib
14319     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14320   fi
14321   rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325   *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328   (eval "$ac_link") 2>conftest.er1
14329   ac_status=$?
14330   grep -v '^ *+' conftest.er1 >conftest.err
14331   rm -f conftest.er1
14332   cat conftest.err >&5
14333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334   (exit $ac_status); } && {
14335          test -z "$ac_c_werror_flag" ||
14336          test ! -s conftest.err
14337        } && test -s conftest$ac_exeext &&
14338        $as_test_x conftest$ac_exeext; then
14339   ac_cv_search_opendir=$ac_res
14340 else
14341   echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14348       conftest$ac_exeext
14349   if test "${ac_cv_search_opendir+set}" = set; then
14350   break
14351 fi
14352 done
14353 if test "${ac_cv_search_opendir+set}" = set; then
14354   :
14355 else
14356   ac_cv_search_opendir=no
14357 fi
14358 rm conftest.$ac_ext
14359 LIBS=$ac_func_search_save_LIBS
14360 fi
14361 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14362 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14363 ac_res=$ac_cv_search_opendir
14364 if test "$ac_res" != no; then
14365   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14366
14367 fi
14368
14369 else
14370   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14371 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14372 if test "${ac_cv_search_opendir+set}" = set; then
14373   echo $ECHO_N "(cached) $ECHO_C" >&6
14374 else
14375   ac_func_search_save_LIBS=$LIBS
14376 cat >conftest.$ac_ext <<_ACEOF
14377 /* confdefs.h.  */
14378 _ACEOF
14379 cat confdefs.h >>conftest.$ac_ext
14380 cat >>conftest.$ac_ext <<_ACEOF
14381 /* end confdefs.h.  */
14382
14383 /* Override any GCC internal prototype to avoid an error.
14384    Use char because int might match the return type of a GCC
14385    builtin and then its argument prototype would still apply.  */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char opendir ();
14390 int
14391 main ()
14392 {
14393 return opendir ();
14394   ;
14395   return 0;
14396 }
14397 _ACEOF
14398 for ac_lib in '' x; do
14399   if test -z "$ac_lib"; then
14400     ac_res="none required"
14401   else
14402     ac_res=-l$ac_lib
14403     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14404   fi
14405   rm -f conftest.$ac_objext conftest$ac_exeext
14406 if { (ac_try="$ac_link"
14407 case "(($ac_try" in
14408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14409   *) ac_try_echo=$ac_try;;
14410 esac
14411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14412   (eval "$ac_link") 2>conftest.er1
14413   ac_status=$?
14414   grep -v '^ *+' conftest.er1 >conftest.err
14415   rm -f conftest.er1
14416   cat conftest.err >&5
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); } && {
14419          test -z "$ac_c_werror_flag" ||
14420          test ! -s conftest.err
14421        } && test -s conftest$ac_exeext &&
14422        $as_test_x conftest$ac_exeext; then
14423   ac_cv_search_opendir=$ac_res
14424 else
14425   echo "$as_me: failed program was:" >&5
14426 sed 's/^/| /' conftest.$ac_ext >&5
14427
14428
14429 fi
14430
14431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14432       conftest$ac_exeext
14433   if test "${ac_cv_search_opendir+set}" = set; then
14434   break
14435 fi
14436 done
14437 if test "${ac_cv_search_opendir+set}" = set; then
14438   :
14439 else
14440   ac_cv_search_opendir=no
14441 fi
14442 rm conftest.$ac_ext
14443 LIBS=$ac_func_search_save_LIBS
14444 fi
14445 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14446 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14447 ac_res=$ac_cv_search_opendir
14448 if test "$ac_res" != no; then
14449   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14450
14451 fi
14452
14453 fi
14454
14455 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14456 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14457 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14458   echo $ECHO_N "(cached) $ECHO_C" >&6
14459 else
14460   cat >conftest.$ac_ext <<_ACEOF
14461 /* confdefs.h.  */
14462 _ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h.  */
14466 #include <sys/types.h>
14467 #include <sys/wait.h>
14468 #ifndef WEXITSTATUS
14469 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14470 #endif
14471 #ifndef WIFEXITED
14472 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14473 #endif
14474
14475 int
14476 main ()
14477 {
14478   int s;
14479   wait (&s);
14480   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14481   ;
14482   return 0;
14483 }
14484 _ACEOF
14485 rm -f conftest.$ac_objext
14486 if { (ac_try="$ac_compile"
14487 case "(($ac_try" in
14488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14489   *) ac_try_echo=$ac_try;;
14490 esac
14491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14492   (eval "$ac_compile") 2>conftest.er1
14493   ac_status=$?
14494   grep -v '^ *+' conftest.er1 >conftest.err
14495   rm -f conftest.er1
14496   cat conftest.err >&5
14497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498   (exit $ac_status); } && {
14499          test -z "$ac_c_werror_flag" ||
14500          test ! -s conftest.err
14501        } && test -s conftest.$ac_objext; then
14502   ac_cv_header_sys_wait_h=yes
14503 else
14504   echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507         ac_cv_header_sys_wait_h=no
14508 fi
14509
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 fi
14512 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14513 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14514 if test $ac_cv_header_sys_wait_h = yes; then
14515
14516 cat >>confdefs.h <<\_ACEOF
14517 #define HAVE_SYS_WAIT_H 1
14518 _ACEOF
14519
14520 fi
14521
14522 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14523 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14524 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14525   echo $ECHO_N "(cached) $ECHO_C" >&6
14526 else
14527   cat >conftest.$ac_ext <<_ACEOF
14528 /* confdefs.h.  */
14529 _ACEOF
14530 cat confdefs.h >>conftest.$ac_ext
14531 cat >>conftest.$ac_ext <<_ACEOF
14532 /* end confdefs.h.  */
14533 #include <sys/types.h>
14534 #include <termios.h>
14535 #ifdef TIOCGWINSZ
14536   yes
14537 #endif
14538
14539 _ACEOF
14540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14541   $EGREP "yes" >/dev/null 2>&1; then
14542   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14543 else
14544   ac_cv_sys_tiocgwinsz_in_termios_h=no
14545 fi
14546 rm -f conftest*
14547
14548 fi
14549 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14550 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14551
14552 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14553   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14554 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14555 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14556   echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558   cat >conftest.$ac_ext <<_ACEOF
14559 /* confdefs.h.  */
14560 _ACEOF
14561 cat confdefs.h >>conftest.$ac_ext
14562 cat >>conftest.$ac_ext <<_ACEOF
14563 /* end confdefs.h.  */
14564 #include <sys/types.h>
14565 #include <sys/ioctl.h>
14566 #ifdef TIOCGWINSZ
14567   yes
14568 #endif
14569
14570 _ACEOF
14571 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14572   $EGREP "yes" >/dev/null 2>&1; then
14573   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14574 else
14575   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14576 fi
14577 rm -f conftest*
14578
14579 fi
14580 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14581 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14582
14583   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14584
14585 cat >>confdefs.h <<\_ACEOF
14586 #define GWINSZ_IN_SYS_IOCTL 1
14587 _ACEOF
14588
14589   fi
14590 fi
14591
14592
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 for ac_header in \
14641         arpa/inet.h             \
14642         arpa/nameser.h  \
14643         assert.h                \
14644         bits/types.h    \
14645         conio.h                 \
14646         crypt.h                 \
14647         direct.h                \
14648         errno.h                 \
14649         fcntl.h                 \
14650         filio.h                 \
14651         getopt.h                \
14652         grp.h                   \
14653         io.h                    \
14654         libutil.h               \
14655         limits.h                \
14656         locale.h                \
14657         malloc.h                \
14658         memory.h                \
14659         psap.h                  \
14660         pwd.h                   \
14661         process.h               \
14662         sgtty.h                 \
14663         shadow.h                \
14664         stddef.h                \
14665         string.h                \
14666         strings.h               \
14667         sysexits.h              \
14668         sys/file.h              \
14669         sys/filio.h             \
14670         sys/fstyp.h             \
14671         sys/errno.h             \
14672         sys/ioctl.h             \
14673         sys/param.h             \
14674         sys/privgrp.h   \
14675         sys/resource.h  \
14676         sys/select.h    \
14677         sys/socket.h    \
14678         sys/stat.h              \
14679         sys/syslog.h    \
14680         sys/time.h              \
14681         sys/types.h             \
14682         sys/uio.h               \
14683         sys/vmount.h    \
14684         syslog.h                \
14685         termios.h               \
14686         unistd.h                \
14687         utime.h                 \
14688
14689 do
14690 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14692   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14694 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14695   echo $ECHO_N "(cached) $ECHO_C" >&6
14696 fi
14697 ac_res=`eval echo '${'$as_ac_Header'}'`
14698                { echo "$as_me:$LINENO: result: $ac_res" >&5
14699 echo "${ECHO_T}$ac_res" >&6; }
14700 else
14701   # Is the header compilable?
14702 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14703 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14704 cat >conftest.$ac_ext <<_ACEOF
14705 /* confdefs.h.  */
14706 _ACEOF
14707 cat confdefs.h >>conftest.$ac_ext
14708 cat >>conftest.$ac_ext <<_ACEOF
14709 /* end confdefs.h.  */
14710 $ac_includes_default
14711 #include <$ac_header>
14712 _ACEOF
14713 rm -f conftest.$ac_objext
14714 if { (ac_try="$ac_compile"
14715 case "(($ac_try" in
14716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14717   *) ac_try_echo=$ac_try;;
14718 esac
14719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14720   (eval "$ac_compile") 2>conftest.er1
14721   ac_status=$?
14722   grep -v '^ *+' conftest.er1 >conftest.err
14723   rm -f conftest.er1
14724   cat conftest.err >&5
14725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726   (exit $ac_status); } && {
14727          test -z "$ac_c_werror_flag" ||
14728          test ! -s conftest.err
14729        } && test -s conftest.$ac_objext; then
14730   ac_header_compiler=yes
14731 else
14732   echo "$as_me: failed program was:" >&5
14733 sed 's/^/| /' conftest.$ac_ext >&5
14734
14735         ac_header_compiler=no
14736 fi
14737
14738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14739 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14740 echo "${ECHO_T}$ac_header_compiler" >&6; }
14741
14742 # Is the header present?
14743 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14744 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14745 cat >conftest.$ac_ext <<_ACEOF
14746 /* confdefs.h.  */
14747 _ACEOF
14748 cat confdefs.h >>conftest.$ac_ext
14749 cat >>conftest.$ac_ext <<_ACEOF
14750 /* end confdefs.h.  */
14751 #include <$ac_header>
14752 _ACEOF
14753 if { (ac_try="$ac_cpp conftest.$ac_ext"
14754 case "(($ac_try" in
14755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14756   *) ac_try_echo=$ac_try;;
14757 esac
14758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14759   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14760   ac_status=$?
14761   grep -v '^ *+' conftest.er1 >conftest.err
14762   rm -f conftest.er1
14763   cat conftest.err >&5
14764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765   (exit $ac_status); } >/dev/null && {
14766          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14767          test ! -s conftest.err
14768        }; then
14769   ac_header_preproc=yes
14770 else
14771   echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774   ac_header_preproc=no
14775 fi
14776
14777 rm -f conftest.err conftest.$ac_ext
14778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 echo "${ECHO_T}$ac_header_preproc" >&6; }
14780
14781 # So?  What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783   yes:no: )
14784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14788     ac_header_preproc=yes
14789     ;;
14790   no:yes:* )
14791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14803     ( cat <<\_ASBOX
14804 ## --------------------------------------------- ##
14805 ## Report this to <http://www.openldap.org/its/> ##
14806 ## --------------------------------------------- ##
14807 _ASBOX
14808      ) | sed "s/^/$as_me: WARNING:     /" >&2
14809     ;;
14810 esac
14811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14814   echo $ECHO_N "(cached) $ECHO_C" >&6
14815 else
14816   eval "$as_ac_Header=\$ac_header_preproc"
14817 fi
14818 ac_res=`eval echo '${'$as_ac_Header'}'`
14819                { echo "$as_me:$LINENO: result: $ac_res" >&5
14820 echo "${ECHO_T}$ac_res" >&6; }
14821
14822 fi
14823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14824   cat >>confdefs.h <<_ACEOF
14825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14826 _ACEOF
14827
14828 fi
14829
14830 done
14831
14832
14833 if test "$ac_cv_mingw32" = yes \
14834         -o "$ac_cv_interix" = yes \
14835         -o "$ol_cv_msvc" = yes
14836 then
14837
14838
14839 for ac_header in winsock.h winsock2.h
14840 do
14841 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14843   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14844 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14846   echo $ECHO_N "(cached) $ECHO_C" >&6
14847 fi
14848 ac_res=`eval echo '${'$as_ac_Header'}'`
14849                { echo "$as_me:$LINENO: result: $ac_res" >&5
14850 echo "${ECHO_T}$ac_res" >&6; }
14851 else
14852   # Is the header compilable?
14853 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14854 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14855 cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861 $ac_includes_default
14862 #include <$ac_header>
14863 _ACEOF
14864 rm -f conftest.$ac_objext
14865 if { (ac_try="$ac_compile"
14866 case "(($ac_try" in
14867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14868   *) ac_try_echo=$ac_try;;
14869 esac
14870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14871   (eval "$ac_compile") 2>conftest.er1
14872   ac_status=$?
14873   grep -v '^ *+' conftest.er1 >conftest.err
14874   rm -f conftest.er1
14875   cat conftest.err >&5
14876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877   (exit $ac_status); } && {
14878          test -z "$ac_c_werror_flag" ||
14879          test ! -s conftest.err
14880        } && test -s conftest.$ac_objext; then
14881   ac_header_compiler=yes
14882 else
14883   echo "$as_me: failed program was:" >&5
14884 sed 's/^/| /' conftest.$ac_ext >&5
14885
14886         ac_header_compiler=no
14887 fi
14888
14889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14890 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14891 echo "${ECHO_T}$ac_header_compiler" >&6; }
14892
14893 # Is the header present?
14894 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14895 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14896 cat >conftest.$ac_ext <<_ACEOF
14897 /* confdefs.h.  */
14898 _ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h.  */
14902 #include <$ac_header>
14903 _ACEOF
14904 if { (ac_try="$ac_cpp conftest.$ac_ext"
14905 case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14910   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14911   ac_status=$?
14912   grep -v '^ *+' conftest.er1 >conftest.err
14913   rm -f conftest.er1
14914   cat conftest.err >&5
14915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916   (exit $ac_status); } >/dev/null && {
14917          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14918          test ! -s conftest.err
14919        }; then
14920   ac_header_preproc=yes
14921 else
14922   echo "$as_me: failed program was:" >&5
14923 sed 's/^/| /' conftest.$ac_ext >&5
14924
14925   ac_header_preproc=no
14926 fi
14927
14928 rm -f conftest.err conftest.$ac_ext
14929 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14930 echo "${ECHO_T}$ac_header_preproc" >&6; }
14931
14932 # So?  What about this header?
14933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14934   yes:no: )
14935     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14936 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14937     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14938 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14939     ac_header_preproc=yes
14940     ;;
14941   no:yes:* )
14942     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14943 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14944     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14945 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14946     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14947 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14948     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14949 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14950     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14951 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14952     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14953 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14954     ( cat <<\_ASBOX
14955 ## --------------------------------------------- ##
14956 ## Report this to <http://www.openldap.org/its/> ##
14957 ## --------------------------------------------- ##
14958 _ASBOX
14959      ) | sed "s/^/$as_me: WARNING:     /" >&2
14960     ;;
14961 esac
14962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14965   echo $ECHO_N "(cached) $ECHO_C" >&6
14966 else
14967   eval "$as_ac_Header=\$ac_header_preproc"
14968 fi
14969 ac_res=`eval echo '${'$as_ac_Header'}'`
14970                { echo "$as_me:$LINENO: result: $ac_res" >&5
14971 echo "${ECHO_T}$ac_res" >&6; }
14972
14973 fi
14974 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14975   cat >>confdefs.h <<_ACEOF
14976 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14977 _ACEOF
14978
14979 fi
14980
14981 done
14982
14983 fi
14984
14985
14986 for ac_header in resolv.h
14987 do
14988 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14989 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14990 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14991 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14992   echo $ECHO_N "(cached) $ECHO_C" >&6
14993 else
14994   cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h.  */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h.  */
15000 $ac_includes_default
15001 #include <netinet/in.h>
15002
15003
15004 #include <$ac_header>
15005 _ACEOF
15006 rm -f conftest.$ac_objext
15007 if { (ac_try="$ac_compile"
15008 case "(($ac_try" in
15009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010   *) ac_try_echo=$ac_try;;
15011 esac
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013   (eval "$ac_compile") 2>conftest.er1
15014   ac_status=$?
15015   grep -v '^ *+' conftest.er1 >conftest.err
15016   rm -f conftest.er1
15017   cat conftest.err >&5
15018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15019   (exit $ac_status); } && {
15020          test -z "$ac_c_werror_flag" ||
15021          test ! -s conftest.err
15022        } && test -s conftest.$ac_objext; then
15023   eval "$as_ac_Header=yes"
15024 else
15025   echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15027
15028         eval "$as_ac_Header=no"
15029 fi
15030
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15032 fi
15033 ac_res=`eval echo '${'$as_ac_Header'}'`
15034                { echo "$as_me:$LINENO: result: $ac_res" >&5
15035 echo "${ECHO_T}$ac_res" >&6; }
15036 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15037   cat >>confdefs.h <<_ACEOF
15038 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15039 _ACEOF
15040
15041 fi
15042
15043 done
15044
15045
15046
15047 for ac_header in netinet/tcp.h
15048 do
15049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15053   echo $ECHO_N "(cached) $ECHO_C" >&6
15054 else
15055   cat >conftest.$ac_ext <<_ACEOF
15056 /* confdefs.h.  */
15057 _ACEOF
15058 cat confdefs.h >>conftest.$ac_ext
15059 cat >>conftest.$ac_ext <<_ACEOF
15060 /* end confdefs.h.  */
15061 $ac_includes_default
15062 #include <netinet/in.h>
15063
15064
15065 #include <$ac_header>
15066 _ACEOF
15067 rm -f conftest.$ac_objext
15068 if { (ac_try="$ac_compile"
15069 case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_compile") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } && {
15081          test -z "$ac_c_werror_flag" ||
15082          test ! -s conftest.err
15083        } && test -s conftest.$ac_objext; then
15084   eval "$as_ac_Header=yes"
15085 else
15086   echo "$as_me: failed program was:" >&5
15087 sed 's/^/| /' conftest.$ac_ext >&5
15088
15089         eval "$as_ac_Header=no"
15090 fi
15091
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15093 fi
15094 ac_res=`eval echo '${'$as_ac_Header'}'`
15095                { echo "$as_me:$LINENO: result: $ac_res" >&5
15096 echo "${ECHO_T}$ac_res" >&6; }
15097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15098   cat >>confdefs.h <<_ACEOF
15099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15100 _ACEOF
15101
15102 fi
15103
15104 done
15105
15106
15107
15108 for ac_header in sys/ucred.h
15109 do
15110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15112 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15114   echo $ECHO_N "(cached) $ECHO_C" >&6
15115 else
15116   cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122 $ac_includes_default
15123 #ifdef HAVE_SYS_PARAM_H
15124 #include <sys/param.h>
15125 #endif
15126
15127
15128 #include <$ac_header>
15129 _ACEOF
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_compile") 2>conftest.er1
15138   ac_status=$?
15139   grep -v '^ *+' conftest.er1 >conftest.err
15140   rm -f conftest.er1
15141   cat conftest.err >&5
15142   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143   (exit $ac_status); } && {
15144          test -z "$ac_c_werror_flag" ||
15145          test ! -s conftest.err
15146        } && test -s conftest.$ac_objext; then
15147   eval "$as_ac_Header=yes"
15148 else
15149   echo "$as_me: failed program was:" >&5
15150 sed 's/^/| /' conftest.$ac_ext >&5
15151
15152         eval "$as_ac_Header=no"
15153 fi
15154
15155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15156 fi
15157 ac_res=`eval echo '${'$as_ac_Header'}'`
15158                { echo "$as_me:$LINENO: result: $ac_res" >&5
15159 echo "${ECHO_T}$ac_res" >&6; }
15160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15161   cat >>confdefs.h <<_ACEOF
15162 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15163 _ACEOF
15164
15165 fi
15166
15167 done
15168
15169
15170
15171
15172
15173 for ac_func in sigaction sigset
15174 do
15175 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15176 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15177 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15178 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15179   echo $ECHO_N "(cached) $ECHO_C" >&6
15180 else
15181   cat >conftest.$ac_ext <<_ACEOF
15182 /* confdefs.h.  */
15183 _ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h.  */
15187 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15188    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15189 #define $ac_func innocuous_$ac_func
15190
15191 /* System header to define __stub macros and hopefully few prototypes,
15192     which can conflict with char $ac_func (); below.
15193     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15194     <limits.h> exists even on freestanding compilers.  */
15195
15196 #ifdef __STDC__
15197 # include <limits.h>
15198 #else
15199 # include <assert.h>
15200 #endif
15201
15202 #undef $ac_func
15203
15204 /* Override any GCC internal prototype to avoid an error.
15205    Use char because int might match the return type of a GCC
15206    builtin and then its argument prototype would still apply.  */
15207 #ifdef __cplusplus
15208 extern "C"
15209 #endif
15210 char $ac_func ();
15211 /* The GNU C library defines this for functions which it implements
15212     to always fail with ENOSYS.  Some functions are actually named
15213     something starting with __ and the normal name is an alias.  */
15214 #if defined __stub_$ac_func || defined __stub___$ac_func
15215 choke me
15216 #endif
15217
15218 int
15219 main ()
15220 {
15221 return $ac_func ();
15222   ;
15223   return 0;
15224 }
15225 _ACEOF
15226 rm -f conftest.$ac_objext conftest$ac_exeext
15227 if { (ac_try="$ac_link"
15228 case "(($ac_try" in
15229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15230   *) ac_try_echo=$ac_try;;
15231 esac
15232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15233   (eval "$ac_link") 2>conftest.er1
15234   ac_status=$?
15235   grep -v '^ *+' conftest.er1 >conftest.err
15236   rm -f conftest.er1
15237   cat conftest.err >&5
15238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15239   (exit $ac_status); } && {
15240          test -z "$ac_c_werror_flag" ||
15241          test ! -s conftest.err
15242        } && test -s conftest$ac_exeext &&
15243        $as_test_x conftest$ac_exeext; then
15244   eval "$as_ac_var=yes"
15245 else
15246   echo "$as_me: failed program was:" >&5
15247 sed 's/^/| /' conftest.$ac_ext >&5
15248
15249         eval "$as_ac_var=no"
15250 fi
15251
15252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15253       conftest$ac_exeext conftest.$ac_ext
15254 fi
15255 ac_res=`eval echo '${'$as_ac_var'}'`
15256                { echo "$as_me:$LINENO: result: $ac_res" >&5
15257 echo "${ECHO_T}$ac_res" >&6; }
15258 if test `eval echo '${'$as_ac_var'}'` = yes; then
15259   cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15261 _ACEOF
15262
15263 fi
15264 done
15265
15266
15267 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15268
15269 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15270 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15271 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15272   echo $ECHO_N "(cached) $ECHO_C" >&6
15273 else
15274   ac_check_lib_save_LIBS=$LIBS
15275 LIBS="-lV3  $LIBS"
15276 cat >conftest.$ac_ext <<_ACEOF
15277 /* confdefs.h.  */
15278 _ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h.  */
15282
15283 /* Override any GCC internal prototype to avoid an error.
15284    Use char because int might match the return type of a GCC
15285    builtin and then its argument prototype would still apply.  */
15286 #ifdef __cplusplus
15287 extern "C"
15288 #endif
15289 char sigset ();
15290 int
15291 main ()
15292 {
15293 return sigset ();
15294   ;
15295   return 0;
15296 }
15297 _ACEOF
15298 rm -f conftest.$ac_objext conftest$ac_exeext
15299 if { (ac_try="$ac_link"
15300 case "(($ac_try" in
15301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302   *) ac_try_echo=$ac_try;;
15303 esac
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305   (eval "$ac_link") 2>conftest.er1
15306   ac_status=$?
15307   grep -v '^ *+' conftest.er1 >conftest.err
15308   rm -f conftest.er1
15309   cat conftest.err >&5
15310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311   (exit $ac_status); } && {
15312          test -z "$ac_c_werror_flag" ||
15313          test ! -s conftest.err
15314        } && test -s conftest$ac_exeext &&
15315        $as_test_x conftest$ac_exeext; then
15316   ac_cv_lib_V3_sigset=yes
15317 else
15318   echo "$as_me: failed program was:" >&5
15319 sed 's/^/| /' conftest.$ac_ext >&5
15320
15321         ac_cv_lib_V3_sigset=no
15322 fi
15323
15324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15325       conftest$ac_exeext conftest.$ac_ext
15326 LIBS=$ac_check_lib_save_LIBS
15327 fi
15328 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15329 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15330 if test $ac_cv_lib_V3_sigset = yes; then
15331   cat >>confdefs.h <<_ACEOF
15332 #define HAVE_LIBV3 1
15333 _ACEOF
15334
15335   LIBS="-lV3 $LIBS"
15336
15337 fi
15338
15339 fi
15340
15341 if test $ol_cv_msvc ; then
15342    ol_cv_winsock=yes
15343 fi
15344
15345 if test "$ac_cv_header_winsock_h" = yes; then
15346         { echo "$as_me:$LINENO: checking for winsock" >&5
15347 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15348 if test "${ol_cv_winsock+set}" = set; then
15349   echo $ECHO_N "(cached) $ECHO_C" >&6
15350 else
15351
15352         save_LIBS="$LIBS"
15353         for curlib in none ws2_32 wsock32; do
15354                 if test curlib != none ; then
15355                 LIBS="$save_LIBS -l$curlib"
15356                 fi
15357                 cat >conftest.$ac_ext <<_ACEOF
15358 /* confdefs.h.  */
15359 _ACEOF
15360 cat confdefs.h >>conftest.$ac_ext
15361 cat >>conftest.$ac_ext <<_ACEOF
15362 /* end confdefs.h.  */
15363 #include <winsock.h>
15364
15365 int
15366 main ()
15367 {
15368
15369                         socket(0,0,0);
15370                         select(0,NULL,NULL,NULL,NULL);
15371                         closesocket(0);
15372                         gethostname(NULL,0);
15373
15374   ;
15375   return 0;
15376 }
15377 _ACEOF
15378 rm -f conftest.$ac_objext conftest$ac_exeext
15379 if { (ac_try="$ac_link"
15380 case "(($ac_try" in
15381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15382   *) ac_try_echo=$ac_try;;
15383 esac
15384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15385   (eval "$ac_link") 2>conftest.er1
15386   ac_status=$?
15387   grep -v '^ *+' conftest.er1 >conftest.err
15388   rm -f conftest.er1
15389   cat conftest.err >&5
15390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15391   (exit $ac_status); } && {
15392          test -z "$ac_c_werror_flag" ||
15393          test ! -s conftest.err
15394        } && test -s conftest$ac_exeext &&
15395        $as_test_x conftest$ac_exeext; then
15396   ol_cv_winsock=$curlib
15397 else
15398   echo "$as_me: failed program was:" >&5
15399 sed 's/^/| /' conftest.$ac_ext >&5
15400
15401         ol_cv_winsock=no
15402 fi
15403
15404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15405       conftest$ac_exeext conftest.$ac_ext
15406
15407                 test "$ol_cv_winsock" != no && break
15408         done
15409         LIBS="$save_LIBS"
15410
15411 fi
15412 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15413 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15414
15415         if test $ol_cv_winsock != no ; then
15416
15417 cat >>confdefs.h <<\_ACEOF
15418 #define HAVE_WINSOCK 1
15419 _ACEOF
15420
15421         ac_cv_func_socket=yes
15422         ac_cv_func_select=yes
15423         ac_cv_func_closesocket=yes
15424         ac_cv_func_gethostname=yes
15425
15426                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15427                 LIBS="$LIBS -l$ol_cv_winsock"
15428                 fi
15429
15430         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15431
15432 cat >>confdefs.h <<\_ACEOF
15433 #define HAVE_WINSOCK2 1
15434 _ACEOF
15435
15436         fi
15437         fi
15438 fi
15439
15440
15441 { echo "$as_me:$LINENO: checking for socket" >&5
15442 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15443 if test "${ac_cv_func_socket+set}" = set; then
15444   echo $ECHO_N "(cached) $ECHO_C" >&6
15445 else
15446   cat >conftest.$ac_ext <<_ACEOF
15447 /* confdefs.h.  */
15448 _ACEOF
15449 cat confdefs.h >>conftest.$ac_ext
15450 cat >>conftest.$ac_ext <<_ACEOF
15451 /* end confdefs.h.  */
15452 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15454 #define socket innocuous_socket
15455
15456 /* System header to define __stub macros and hopefully few prototypes,
15457     which can conflict with char socket (); below.
15458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15459     <limits.h> exists even on freestanding compilers.  */
15460
15461 #ifdef __STDC__
15462 # include <limits.h>
15463 #else
15464 # include <assert.h>
15465 #endif
15466
15467 #undef socket
15468
15469 /* Override any GCC internal prototype to avoid an error.
15470    Use char because int might match the return type of a GCC
15471    builtin and then its argument prototype would still apply.  */
15472 #ifdef __cplusplus
15473 extern "C"
15474 #endif
15475 char socket ();
15476 /* The GNU C library defines this for functions which it implements
15477     to always fail with ENOSYS.  Some functions are actually named
15478     something starting with __ and the normal name is an alias.  */
15479 #if defined __stub_socket || defined __stub___socket
15480 choke me
15481 #endif
15482
15483 int
15484 main ()
15485 {
15486 return socket ();
15487   ;
15488   return 0;
15489 }
15490 _ACEOF
15491 rm -f conftest.$ac_objext conftest$ac_exeext
15492 if { (ac_try="$ac_link"
15493 case "(($ac_try" in
15494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15495   *) ac_try_echo=$ac_try;;
15496 esac
15497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15498   (eval "$ac_link") 2>conftest.er1
15499   ac_status=$?
15500   grep -v '^ *+' conftest.er1 >conftest.err
15501   rm -f conftest.er1
15502   cat conftest.err >&5
15503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504   (exit $ac_status); } && {
15505          test -z "$ac_c_werror_flag" ||
15506          test ! -s conftest.err
15507        } && test -s conftest$ac_exeext &&
15508        $as_test_x conftest$ac_exeext; then
15509   ac_cv_func_socket=yes
15510 else
15511   echo "$as_me: failed program was:" >&5
15512 sed 's/^/| /' conftest.$ac_ext >&5
15513
15514         ac_cv_func_socket=no
15515 fi
15516
15517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15518       conftest$ac_exeext conftest.$ac_ext
15519 fi
15520 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15521 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15522 if test $ac_cv_func_socket = yes; then
15523   :
15524 else
15525
15526
15527 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15528 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15529 if test "${ac_cv_lib_socket_main+set}" = set; then
15530   echo $ECHO_N "(cached) $ECHO_C" >&6
15531 else
15532   ac_check_lib_save_LIBS=$LIBS
15533 LIBS="-lsocket  $LIBS"
15534 cat >conftest.$ac_ext <<_ACEOF
15535 /* confdefs.h.  */
15536 _ACEOF
15537 cat confdefs.h >>conftest.$ac_ext
15538 cat >>conftest.$ac_ext <<_ACEOF
15539 /* end confdefs.h.  */
15540
15541
15542 int
15543 main ()
15544 {
15545 return main ();
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557   (eval "$ac_link") 2>conftest.er1
15558   ac_status=$?
15559   grep -v '^ *+' conftest.er1 >conftest.err
15560   rm -f conftest.er1
15561   cat conftest.err >&5
15562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563   (exit $ac_status); } && {
15564          test -z "$ac_c_werror_flag" ||
15565          test ! -s conftest.err
15566        } && test -s conftest$ac_exeext &&
15567        $as_test_x conftest$ac_exeext; then
15568   ac_cv_lib_socket_main=yes
15569 else
15570   echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         ac_cv_lib_socket_main=no
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577       conftest$ac_exeext conftest.$ac_ext
15578 LIBS=$ac_check_lib_save_LIBS
15579 fi
15580 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15581 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15582 if test $ac_cv_lib_socket_main = yes; then
15583   cat >>confdefs.h <<_ACEOF
15584 #define HAVE_LIBSOCKET 1
15585 _ACEOF
15586
15587   LIBS="-lsocket $LIBS"
15588
15589 fi
15590
15591
15592 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15593 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15594 if test "${ac_cv_lib_net_main+set}" = set; then
15595   echo $ECHO_N "(cached) $ECHO_C" >&6
15596 else
15597   ac_check_lib_save_LIBS=$LIBS
15598 LIBS="-lnet  $LIBS"
15599 cat >conftest.$ac_ext <<_ACEOF
15600 /* confdefs.h.  */
15601 _ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h.  */
15605
15606
15607 int
15608 main ()
15609 {
15610 return main ();
15611   ;
15612   return 0;
15613 }
15614 _ACEOF
15615 rm -f conftest.$ac_objext conftest$ac_exeext
15616 if { (ac_try="$ac_link"
15617 case "(($ac_try" in
15618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15619   *) ac_try_echo=$ac_try;;
15620 esac
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622   (eval "$ac_link") 2>conftest.er1
15623   ac_status=$?
15624   grep -v '^ *+' conftest.er1 >conftest.err
15625   rm -f conftest.er1
15626   cat conftest.err >&5
15627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15628   (exit $ac_status); } && {
15629          test -z "$ac_c_werror_flag" ||
15630          test ! -s conftest.err
15631        } && test -s conftest$ac_exeext &&
15632        $as_test_x conftest$ac_exeext; then
15633   ac_cv_lib_net_main=yes
15634 else
15635   echo "$as_me: failed program was:" >&5
15636 sed 's/^/| /' conftest.$ac_ext >&5
15637
15638         ac_cv_lib_net_main=no
15639 fi
15640
15641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15642       conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15644 fi
15645 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15646 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15647 if test $ac_cv_lib_net_main = yes; then
15648   cat >>confdefs.h <<_ACEOF
15649 #define HAVE_LIBNET 1
15650 _ACEOF
15651
15652   LIBS="-lnet $LIBS"
15653
15654 fi
15655
15656
15657 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15658 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15659 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15660   echo $ECHO_N "(cached) $ECHO_C" >&6
15661 else
15662   ac_check_lib_save_LIBS=$LIBS
15663 LIBS="-lnsl_s  $LIBS"
15664 cat >conftest.$ac_ext <<_ACEOF
15665 /* confdefs.h.  */
15666 _ACEOF
15667 cat confdefs.h >>conftest.$ac_ext
15668 cat >>conftest.$ac_ext <<_ACEOF
15669 /* end confdefs.h.  */
15670
15671
15672 int
15673 main ()
15674 {
15675 return main ();
15676   ;
15677   return 0;
15678 }
15679 _ACEOF
15680 rm -f conftest.$ac_objext conftest$ac_exeext
15681 if { (ac_try="$ac_link"
15682 case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_link") 2>conftest.er1
15688   ac_status=$?
15689   grep -v '^ *+' conftest.er1 >conftest.err
15690   rm -f conftest.er1
15691   cat conftest.err >&5
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } && {
15694          test -z "$ac_c_werror_flag" ||
15695          test ! -s conftest.err
15696        } && test -s conftest$ac_exeext &&
15697        $as_test_x conftest$ac_exeext; then
15698   ac_cv_lib_nsl_s_main=yes
15699 else
15700   echo "$as_me: failed program was:" >&5
15701 sed 's/^/| /' conftest.$ac_ext >&5
15702
15703         ac_cv_lib_nsl_s_main=no
15704 fi
15705
15706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15707       conftest$ac_exeext conftest.$ac_ext
15708 LIBS=$ac_check_lib_save_LIBS
15709 fi
15710 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15711 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15712 if test $ac_cv_lib_nsl_s_main = yes; then
15713   cat >>confdefs.h <<_ACEOF
15714 #define HAVE_LIBNSL_S 1
15715 _ACEOF
15716
15717   LIBS="-lnsl_s $LIBS"
15718
15719 fi
15720
15721
15722 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15723 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15724 if test "${ac_cv_lib_nsl_main+set}" = set; then
15725   echo $ECHO_N "(cached) $ECHO_C" >&6
15726 else
15727   ac_check_lib_save_LIBS=$LIBS
15728 LIBS="-lnsl  $LIBS"
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h.  */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h.  */
15735
15736
15737 int
15738 main ()
15739 {
15740 return main ();
15741   ;
15742   return 0;
15743 }
15744 _ACEOF
15745 rm -f conftest.$ac_objext conftest$ac_exeext
15746 if { (ac_try="$ac_link"
15747 case "(($ac_try" in
15748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15749   *) ac_try_echo=$ac_try;;
15750 esac
15751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15752   (eval "$ac_link") 2>conftest.er1
15753   ac_status=$?
15754   grep -v '^ *+' conftest.er1 >conftest.err
15755   rm -f conftest.er1
15756   cat conftest.err >&5
15757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15758   (exit $ac_status); } && {
15759          test -z "$ac_c_werror_flag" ||
15760          test ! -s conftest.err
15761        } && test -s conftest$ac_exeext &&
15762        $as_test_x conftest$ac_exeext; then
15763   ac_cv_lib_nsl_main=yes
15764 else
15765   echo "$as_me: failed program was:" >&5
15766 sed 's/^/| /' conftest.$ac_ext >&5
15767
15768         ac_cv_lib_nsl_main=no
15769 fi
15770
15771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15772       conftest$ac_exeext conftest.$ac_ext
15773 LIBS=$ac_check_lib_save_LIBS
15774 fi
15775 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15776 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15777 if test $ac_cv_lib_nsl_main = yes; then
15778   cat >>confdefs.h <<_ACEOF
15779 #define HAVE_LIBNSL 1
15780 _ACEOF
15781
15782   LIBS="-lnsl $LIBS"
15783
15784 fi
15785
15786
15787 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15788 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15789 if test "${ac_cv_lib_inet_socket+set}" = set; then
15790   echo $ECHO_N "(cached) $ECHO_C" >&6
15791 else
15792   ac_check_lib_save_LIBS=$LIBS
15793 LIBS="-linet  $LIBS"
15794 cat >conftest.$ac_ext <<_ACEOF
15795 /* confdefs.h.  */
15796 _ACEOF
15797 cat confdefs.h >>conftest.$ac_ext
15798 cat >>conftest.$ac_ext <<_ACEOF
15799 /* end confdefs.h.  */
15800
15801 /* Override any GCC internal prototype to avoid an error.
15802    Use char because int might match the return type of a GCC
15803    builtin and then its argument prototype would still apply.  */
15804 #ifdef __cplusplus
15805 extern "C"
15806 #endif
15807 char socket ();
15808 int
15809 main ()
15810 {
15811 return socket ();
15812   ;
15813   return 0;
15814 }
15815 _ACEOF
15816 rm -f conftest.$ac_objext conftest$ac_exeext
15817 if { (ac_try="$ac_link"
15818 case "(($ac_try" in
15819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820   *) ac_try_echo=$ac_try;;
15821 esac
15822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15823   (eval "$ac_link") 2>conftest.er1
15824   ac_status=$?
15825   grep -v '^ *+' conftest.er1 >conftest.err
15826   rm -f conftest.er1
15827   cat conftest.err >&5
15828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829   (exit $ac_status); } && {
15830          test -z "$ac_c_werror_flag" ||
15831          test ! -s conftest.err
15832        } && test -s conftest$ac_exeext &&
15833        $as_test_x conftest$ac_exeext; then
15834   ac_cv_lib_inet_socket=yes
15835 else
15836   echo "$as_me: failed program was:" >&5
15837 sed 's/^/| /' conftest.$ac_ext >&5
15838
15839         ac_cv_lib_inet_socket=no
15840 fi
15841
15842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15843       conftest$ac_exeext conftest.$ac_ext
15844 LIBS=$ac_check_lib_save_LIBS
15845 fi
15846 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
15847 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
15848 if test $ac_cv_lib_inet_socket = yes; then
15849   cat >>confdefs.h <<_ACEOF
15850 #define HAVE_LIBINET 1
15851 _ACEOF
15852
15853   LIBS="-linet $LIBS"
15854
15855 fi
15856
15857
15858 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
15859 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
15860 if test "${ac_cv_lib_gen_main+set}" = set; then
15861   echo $ECHO_N "(cached) $ECHO_C" >&6
15862 else
15863   ac_check_lib_save_LIBS=$LIBS
15864 LIBS="-lgen  $LIBS"
15865 cat >conftest.$ac_ext <<_ACEOF
15866 /* confdefs.h.  */
15867 _ACEOF
15868 cat confdefs.h >>conftest.$ac_ext
15869 cat >>conftest.$ac_ext <<_ACEOF
15870 /* end confdefs.h.  */
15871
15872
15873 int
15874 main ()
15875 {
15876 return main ();
15877   ;
15878   return 0;
15879 }
15880 _ACEOF
15881 rm -f conftest.$ac_objext conftest$ac_exeext
15882 if { (ac_try="$ac_link"
15883 case "(($ac_try" in
15884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15885   *) ac_try_echo=$ac_try;;
15886 esac
15887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15888   (eval "$ac_link") 2>conftest.er1
15889   ac_status=$?
15890   grep -v '^ *+' conftest.er1 >conftest.err
15891   rm -f conftest.er1
15892   cat conftest.err >&5
15893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15894   (exit $ac_status); } && {
15895          test -z "$ac_c_werror_flag" ||
15896          test ! -s conftest.err
15897        } && test -s conftest$ac_exeext &&
15898        $as_test_x conftest$ac_exeext; then
15899   ac_cv_lib_gen_main=yes
15900 else
15901   echo "$as_me: failed program was:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15903
15904         ac_cv_lib_gen_main=no
15905 fi
15906
15907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15908       conftest$ac_exeext conftest.$ac_ext
15909 LIBS=$ac_check_lib_save_LIBS
15910 fi
15911 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
15912 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
15913 if test $ac_cv_lib_gen_main = yes; then
15914   cat >>confdefs.h <<_ACEOF
15915 #define HAVE_LIBGEN 1
15916 _ACEOF
15917
15918   LIBS="-lgen $LIBS"
15919
15920 fi
15921
15922
15923 fi
15924
15925
15926 { echo "$as_me:$LINENO: checking for select" >&5
15927 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
15928 if test "${ac_cv_func_select+set}" = set; then
15929   echo $ECHO_N "(cached) $ECHO_C" >&6
15930 else
15931   cat >conftest.$ac_ext <<_ACEOF
15932 /* confdefs.h.  */
15933 _ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h.  */
15937 /* Define select to an innocuous variant, in case <limits.h> declares select.
15938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15939 #define select innocuous_select
15940
15941 /* System header to define __stub macros and hopefully few prototypes,
15942     which can conflict with char select (); below.
15943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15944     <limits.h> exists even on freestanding compilers.  */
15945
15946 #ifdef __STDC__
15947 # include <limits.h>
15948 #else
15949 # include <assert.h>
15950 #endif
15951
15952 #undef select
15953
15954 /* Override any GCC internal prototype to avoid an error.
15955    Use char because int might match the return type of a GCC
15956    builtin and then its argument prototype would still apply.  */
15957 #ifdef __cplusplus
15958 extern "C"
15959 #endif
15960 char select ();
15961 /* The GNU C library defines this for functions which it implements
15962     to always fail with ENOSYS.  Some functions are actually named
15963     something starting with __ and the normal name is an alias.  */
15964 #if defined __stub_select || defined __stub___select
15965 choke me
15966 #endif
15967
15968 int
15969 main ()
15970 {
15971 return select ();
15972   ;
15973   return 0;
15974 }
15975 _ACEOF
15976 rm -f conftest.$ac_objext conftest$ac_exeext
15977 if { (ac_try="$ac_link"
15978 case "(($ac_try" in
15979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980   *) ac_try_echo=$ac_try;;
15981 esac
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983   (eval "$ac_link") 2>conftest.er1
15984   ac_status=$?
15985   grep -v '^ *+' conftest.er1 >conftest.err
15986   rm -f conftest.er1
15987   cat conftest.err >&5
15988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15989   (exit $ac_status); } && {
15990          test -z "$ac_c_werror_flag" ||
15991          test ! -s conftest.err
15992        } && test -s conftest$ac_exeext &&
15993        $as_test_x conftest$ac_exeext; then
15994   ac_cv_func_select=yes
15995 else
15996   echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999         ac_cv_func_select=no
16000 fi
16001
16002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16003       conftest$ac_exeext conftest.$ac_ext
16004 fi
16005 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16006 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16007 if test $ac_cv_func_select = yes; then
16008   :
16009 else
16010   { { echo "$as_me:$LINENO: error: select() required." >&5
16011 echo "$as_me: error: select() required." >&2;}
16012    { (exit 1); exit 1; }; }
16013 fi
16014
16015
16016 if test "${ac_cv_header_winsock_h}" != yes; then
16017
16018
16019 for ac_header in sys/select.h sys/socket.h
16020 do
16021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16026   echo $ECHO_N "(cached) $ECHO_C" >&6
16027 fi
16028 ac_res=`eval echo '${'$as_ac_Header'}'`
16029                { echo "$as_me:$LINENO: result: $ac_res" >&5
16030 echo "${ECHO_T}$ac_res" >&6; }
16031 else
16032   # Is the header compilable?
16033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16035 cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041 $ac_includes_default
16042 #include <$ac_header>
16043 _ACEOF
16044 rm -f conftest.$ac_objext
16045 if { (ac_try="$ac_compile"
16046 case "(($ac_try" in
16047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16048   *) ac_try_echo=$ac_try;;
16049 esac
16050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16051   (eval "$ac_compile") 2>conftest.er1
16052   ac_status=$?
16053   grep -v '^ *+' conftest.er1 >conftest.err
16054   rm -f conftest.er1
16055   cat conftest.err >&5
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); } && {
16058          test -z "$ac_c_werror_flag" ||
16059          test ! -s conftest.err
16060        } && test -s conftest.$ac_objext; then
16061   ac_header_compiler=yes
16062 else
16063   echo "$as_me: failed program was:" >&5
16064 sed 's/^/| /' conftest.$ac_ext >&5
16065
16066         ac_header_compiler=no
16067 fi
16068
16069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16071 echo "${ECHO_T}$ac_header_compiler" >&6; }
16072
16073 # Is the header present?
16074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16076 cat >conftest.$ac_ext <<_ACEOF
16077 /* confdefs.h.  */
16078 _ACEOF
16079 cat confdefs.h >>conftest.$ac_ext
16080 cat >>conftest.$ac_ext <<_ACEOF
16081 /* end confdefs.h.  */
16082 #include <$ac_header>
16083 _ACEOF
16084 if { (ac_try="$ac_cpp conftest.$ac_ext"
16085 case "(($ac_try" in
16086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16087   *) ac_try_echo=$ac_try;;
16088 esac
16089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16091   ac_status=$?
16092   grep -v '^ *+' conftest.er1 >conftest.err
16093   rm -f conftest.er1
16094   cat conftest.err >&5
16095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16096   (exit $ac_status); } >/dev/null && {
16097          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16098          test ! -s conftest.err
16099        }; then
16100   ac_header_preproc=yes
16101 else
16102   echo "$as_me: failed program was:" >&5
16103 sed 's/^/| /' conftest.$ac_ext >&5
16104
16105   ac_header_preproc=no
16106 fi
16107
16108 rm -f conftest.err conftest.$ac_ext
16109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16110 echo "${ECHO_T}$ac_header_preproc" >&6; }
16111
16112 # So?  What about this header?
16113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16114   yes:no: )
16115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16119     ac_header_preproc=yes
16120     ;;
16121   no:yes:* )
16122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16134     ( cat <<\_ASBOX
16135 ## --------------------------------------------- ##
16136 ## Report this to <http://www.openldap.org/its/> ##
16137 ## --------------------------------------------- ##
16138 _ASBOX
16139      ) | sed "s/^/$as_me: WARNING:     /" >&2
16140     ;;
16141 esac
16142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16145   echo $ECHO_N "(cached) $ECHO_C" >&6
16146 else
16147   eval "$as_ac_Header=\$ac_header_preproc"
16148 fi
16149 ac_res=`eval echo '${'$as_ac_Header'}'`
16150                { echo "$as_me:$LINENO: result: $ac_res" >&5
16151 echo "${ECHO_T}$ac_res" >&6; }
16152
16153 fi
16154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16155   cat >>confdefs.h <<_ACEOF
16156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16157 _ACEOF
16158
16159 fi
16160
16161 done
16162
16163 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16164 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16165 if test "${ac_cv_func_select_args+set}" = set; then
16166   echo $ECHO_N "(cached) $ECHO_C" >&6
16167 else
16168   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16169  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16170   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16171    cat >conftest.$ac_ext <<_ACEOF
16172 /* confdefs.h.  */
16173 _ACEOF
16174 cat confdefs.h >>conftest.$ac_ext
16175 cat >>conftest.$ac_ext <<_ACEOF
16176 /* end confdefs.h.  */
16177 $ac_includes_default
16178 #ifdef HAVE_SYS_SELECT_H
16179 # include <sys/select.h>
16180 #endif
16181 #ifdef HAVE_SYS_SOCKET_H
16182 # include <sys/socket.h>
16183 #endif
16184
16185 int
16186 main ()
16187 {
16188 extern int select ($ac_arg1,
16189                                             $ac_arg234, $ac_arg234, $ac_arg234,
16190                                             $ac_arg5);
16191   ;
16192   return 0;
16193 }
16194 _ACEOF
16195 rm -f conftest.$ac_objext
16196 if { (ac_try="$ac_compile"
16197 case "(($ac_try" in
16198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16199   *) ac_try_echo=$ac_try;;
16200 esac
16201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16202   (eval "$ac_compile") 2>conftest.er1
16203   ac_status=$?
16204   grep -v '^ *+' conftest.er1 >conftest.err
16205   rm -f conftest.er1
16206   cat conftest.err >&5
16207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208   (exit $ac_status); } && {
16209          test -z "$ac_c_werror_flag" ||
16210          test ! -s conftest.err
16211        } && test -s conftest.$ac_objext; then
16212   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16213 else
16214   echo "$as_me: failed program was:" >&5
16215 sed 's/^/| /' conftest.$ac_ext >&5
16216
16217
16218 fi
16219
16220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16221   done
16222  done
16223 done
16224 # Provide a safe default value.
16225 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16226
16227 fi
16228 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16229 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16230 ac_save_IFS=$IFS; IFS=','
16231 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16232 IFS=$ac_save_IFS
16233 shift
16234
16235 cat >>confdefs.h <<_ACEOF
16236 #define SELECT_TYPE_ARG1 $1
16237 _ACEOF
16238
16239
16240 cat >>confdefs.h <<_ACEOF
16241 #define SELECT_TYPE_ARG234 ($2)
16242 _ACEOF
16243
16244
16245 cat >>confdefs.h <<_ACEOF
16246 #define SELECT_TYPE_ARG5 ($3)
16247 _ACEOF
16248
16249 rm -f conftest*
16250
16251 fi
16252
16253
16254
16255 for ac_func in poll
16256 do
16257 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16258 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16259 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16260 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16261   echo $ECHO_N "(cached) $ECHO_C" >&6
16262 else
16263   cat >conftest.$ac_ext <<_ACEOF
16264 /* confdefs.h.  */
16265 _ACEOF
16266 cat confdefs.h >>conftest.$ac_ext
16267 cat >>conftest.$ac_ext <<_ACEOF
16268 /* end confdefs.h.  */
16269 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16270    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16271 #define $ac_func innocuous_$ac_func
16272
16273 /* System header to define __stub macros and hopefully few prototypes,
16274     which can conflict with char $ac_func (); below.
16275     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16276     <limits.h> exists even on freestanding compilers.  */
16277
16278 #ifdef __STDC__
16279 # include <limits.h>
16280 #else
16281 # include <assert.h>
16282 #endif
16283
16284 #undef $ac_func
16285
16286 /* Override any GCC internal prototype to avoid an error.
16287    Use char because int might match the return type of a GCC
16288    builtin and then its argument prototype would still apply.  */
16289 #ifdef __cplusplus
16290 extern "C"
16291 #endif
16292 char $ac_func ();
16293 /* The GNU C library defines this for functions which it implements
16294     to always fail with ENOSYS.  Some functions are actually named
16295     something starting with __ and the normal name is an alias.  */
16296 #if defined __stub_$ac_func || defined __stub___$ac_func
16297 choke me
16298 #endif
16299
16300 int
16301 main ()
16302 {
16303 return $ac_func ();
16304   ;
16305   return 0;
16306 }
16307 _ACEOF
16308 rm -f conftest.$ac_objext conftest$ac_exeext
16309 if { (ac_try="$ac_link"
16310 case "(($ac_try" in
16311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16312   *) ac_try_echo=$ac_try;;
16313 esac
16314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16315   (eval "$ac_link") 2>conftest.er1
16316   ac_status=$?
16317   grep -v '^ *+' conftest.er1 >conftest.err
16318   rm -f conftest.er1
16319   cat conftest.err >&5
16320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16321   (exit $ac_status); } && {
16322          test -z "$ac_c_werror_flag" ||
16323          test ! -s conftest.err
16324        } && test -s conftest$ac_exeext &&
16325        $as_test_x conftest$ac_exeext; then
16326   eval "$as_ac_var=yes"
16327 else
16328   echo "$as_me: failed program was:" >&5
16329 sed 's/^/| /' conftest.$ac_ext >&5
16330
16331         eval "$as_ac_var=no"
16332 fi
16333
16334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16335       conftest$ac_exeext conftest.$ac_ext
16336 fi
16337 ac_res=`eval echo '${'$as_ac_var'}'`
16338                { echo "$as_me:$LINENO: result: $ac_res" >&5
16339 echo "${ECHO_T}$ac_res" >&6; }
16340 if test `eval echo '${'$as_ac_var'}'` = yes; then
16341   cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16343 _ACEOF
16344
16345 fi
16346 done
16347
16348 if test $ac_cv_func_poll = yes; then
16349
16350
16351 for ac_header in poll.h sys/poll.h
16352 do
16353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16355   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358   echo $ECHO_N "(cached) $ECHO_C" >&6
16359 fi
16360 ac_res=`eval echo '${'$as_ac_Header'}'`
16361                { echo "$as_me:$LINENO: result: $ac_res" >&5
16362 echo "${ECHO_T}$ac_res" >&6; }
16363 else
16364   # Is the header compilable?
16365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16366 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16367 cat >conftest.$ac_ext <<_ACEOF
16368 /* confdefs.h.  */
16369 _ACEOF
16370 cat confdefs.h >>conftest.$ac_ext
16371 cat >>conftest.$ac_ext <<_ACEOF
16372 /* end confdefs.h.  */
16373 $ac_includes_default
16374 #include <$ac_header>
16375 _ACEOF
16376 rm -f conftest.$ac_objext
16377 if { (ac_try="$ac_compile"
16378 case "(($ac_try" in
16379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16380   *) ac_try_echo=$ac_try;;
16381 esac
16382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16383   (eval "$ac_compile") 2>conftest.er1
16384   ac_status=$?
16385   grep -v '^ *+' conftest.er1 >conftest.err
16386   rm -f conftest.er1
16387   cat conftest.err >&5
16388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389   (exit $ac_status); } && {
16390          test -z "$ac_c_werror_flag" ||
16391          test ! -s conftest.err
16392        } && test -s conftest.$ac_objext; then
16393   ac_header_compiler=yes
16394 else
16395   echo "$as_me: failed program was:" >&5
16396 sed 's/^/| /' conftest.$ac_ext >&5
16397
16398         ac_header_compiler=no
16399 fi
16400
16401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16403 echo "${ECHO_T}$ac_header_compiler" >&6; }
16404
16405 # Is the header present?
16406 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16408 cat >conftest.$ac_ext <<_ACEOF
16409 /* confdefs.h.  */
16410 _ACEOF
16411 cat confdefs.h >>conftest.$ac_ext
16412 cat >>conftest.$ac_ext <<_ACEOF
16413 /* end confdefs.h.  */
16414 #include <$ac_header>
16415 _ACEOF
16416 if { (ac_try="$ac_cpp conftest.$ac_ext"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16423   ac_status=$?
16424   grep -v '^ *+' conftest.er1 >conftest.err
16425   rm -f conftest.er1
16426   cat conftest.err >&5
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } >/dev/null && {
16429          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16430          test ! -s conftest.err
16431        }; then
16432   ac_header_preproc=yes
16433 else
16434   echo "$as_me: failed program was:" >&5
16435 sed 's/^/| /' conftest.$ac_ext >&5
16436
16437   ac_header_preproc=no
16438 fi
16439
16440 rm -f conftest.err conftest.$ac_ext
16441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16442 echo "${ECHO_T}$ac_header_preproc" >&6; }
16443
16444 # So?  What about this header?
16445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16446   yes:no: )
16447     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16449     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16451     ac_header_preproc=yes
16452     ;;
16453   no:yes:* )
16454     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16456     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16457 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16458     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16460     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16461 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16462     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16464     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16466     ( cat <<\_ASBOX
16467 ## --------------------------------------------- ##
16468 ## Report this to <http://www.openldap.org/its/> ##
16469 ## --------------------------------------------- ##
16470 _ASBOX
16471      ) | sed "s/^/$as_me: WARNING:     /" >&2
16472     ;;
16473 esac
16474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16477   echo $ECHO_N "(cached) $ECHO_C" >&6
16478 else
16479   eval "$as_ac_Header=\$ac_header_preproc"
16480 fi
16481 ac_res=`eval echo '${'$as_ac_Header'}'`
16482                { echo "$as_me:$LINENO: result: $ac_res" >&5
16483 echo "${ECHO_T}$ac_res" >&6; }
16484
16485 fi
16486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16487   cat >>confdefs.h <<_ACEOF
16488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16489 _ACEOF
16490
16491 fi
16492
16493 done
16494
16495 fi
16496
16497
16498 for ac_header in sys/epoll.h
16499 do
16500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16503 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16505   echo $ECHO_N "(cached) $ECHO_C" >&6
16506 fi
16507 ac_res=`eval echo '${'$as_ac_Header'}'`
16508                { echo "$as_me:$LINENO: result: $ac_res" >&5
16509 echo "${ECHO_T}$ac_res" >&6; }
16510 else
16511   # Is the header compilable?
16512 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16513 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16514 cat >conftest.$ac_ext <<_ACEOF
16515 /* confdefs.h.  */
16516 _ACEOF
16517 cat confdefs.h >>conftest.$ac_ext
16518 cat >>conftest.$ac_ext <<_ACEOF
16519 /* end confdefs.h.  */
16520 $ac_includes_default
16521 #include <$ac_header>
16522 _ACEOF
16523 rm -f conftest.$ac_objext
16524 if { (ac_try="$ac_compile"
16525 case "(($ac_try" in
16526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527   *) ac_try_echo=$ac_try;;
16528 esac
16529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16530   (eval "$ac_compile") 2>conftest.er1
16531   ac_status=$?
16532   grep -v '^ *+' conftest.er1 >conftest.err
16533   rm -f conftest.er1
16534   cat conftest.err >&5
16535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16536   (exit $ac_status); } && {
16537          test -z "$ac_c_werror_flag" ||
16538          test ! -s conftest.err
16539        } && test -s conftest.$ac_objext; then
16540   ac_header_compiler=yes
16541 else
16542   echo "$as_me: failed program was:" >&5
16543 sed 's/^/| /' conftest.$ac_ext >&5
16544
16545         ac_header_compiler=no
16546 fi
16547
16548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16549 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16550 echo "${ECHO_T}$ac_header_compiler" >&6; }
16551
16552 # Is the header present?
16553 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16554 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h.  */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h.  */
16561 #include <$ac_header>
16562 _ACEOF
16563 if { (ac_try="$ac_cpp conftest.$ac_ext"
16564 case "(($ac_try" in
16565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16566   *) ac_try_echo=$ac_try;;
16567 esac
16568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16570   ac_status=$?
16571   grep -v '^ *+' conftest.er1 >conftest.err
16572   rm -f conftest.er1
16573   cat conftest.err >&5
16574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16575   (exit $ac_status); } >/dev/null && {
16576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16577          test ! -s conftest.err
16578        }; then
16579   ac_header_preproc=yes
16580 else
16581   echo "$as_me: failed program was:" >&5
16582 sed 's/^/| /' conftest.$ac_ext >&5
16583
16584   ac_header_preproc=no
16585 fi
16586
16587 rm -f conftest.err conftest.$ac_ext
16588 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16589 echo "${ECHO_T}$ac_header_preproc" >&6; }
16590
16591 # So?  What about this header?
16592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16593   yes:no: )
16594     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16595 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16596     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16597 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16598     ac_header_preproc=yes
16599     ;;
16600   no:yes:* )
16601     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16602 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16603     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16604 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16605     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16606 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16607     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16608 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16609     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16610 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16611     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16612 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16613     ( cat <<\_ASBOX
16614 ## --------------------------------------------- ##
16615 ## Report this to <http://www.openldap.org/its/> ##
16616 ## --------------------------------------------- ##
16617 _ASBOX
16618      ) | sed "s/^/$as_me: WARNING:     /" >&2
16619     ;;
16620 esac
16621 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16624   echo $ECHO_N "(cached) $ECHO_C" >&6
16625 else
16626   eval "$as_ac_Header=\$ac_header_preproc"
16627 fi
16628 ac_res=`eval echo '${'$as_ac_Header'}'`
16629                { echo "$as_me:$LINENO: result: $ac_res" >&5
16630 echo "${ECHO_T}$ac_res" >&6; }
16631
16632 fi
16633 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16634   cat >>confdefs.h <<_ACEOF
16635 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16636 _ACEOF
16637
16638 fi
16639
16640 done
16641
16642 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16643         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16644 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16645         if test "$cross_compiling" = yes; then
16646   { echo "$as_me:$LINENO: result: no" >&5
16647 echo "${ECHO_T}no" >&6; }
16648 else
16649   cat >conftest.$ac_ext <<_ACEOF
16650 /* confdefs.h.  */
16651 _ACEOF
16652 cat confdefs.h >>conftest.$ac_ext
16653 cat >>conftest.$ac_ext <<_ACEOF
16654 /* end confdefs.h.  */
16655 int main(int argc, char **argv)
16656 {
16657         int epfd = epoll_create(256);
16658         exit (epfd == -1 ? 1 : 0);
16659 }
16660 _ACEOF
16661 rm -f conftest$ac_exeext
16662 if { (ac_try="$ac_link"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_link") 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16672   { (case "(($ac_try" in
16673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674   *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677   (eval "$ac_try") 2>&5
16678   ac_status=$?
16679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680   (exit $ac_status); }; }; then
16681   { echo "$as_me:$LINENO: result: yes" >&5
16682 echo "${ECHO_T}yes" >&6; }
16683
16684 cat >>confdefs.h <<\_ACEOF
16685 #define HAVE_EPOLL 1
16686 _ACEOF
16687
16688 else
16689   echo "$as_me: program exited with status $ac_status" >&5
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16692
16693 ( exit $ac_status )
16694 { echo "$as_me:$LINENO: result: no" >&5
16695 echo "${ECHO_T}no" >&6; }
16696 fi
16697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16698 fi
16699
16700
16701 fi
16702
16703
16704 for ac_header in sys/devpoll.h
16705 do
16706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16711   echo $ECHO_N "(cached) $ECHO_C" >&6
16712 fi
16713 ac_res=`eval echo '${'$as_ac_Header'}'`
16714                { echo "$as_me:$LINENO: result: $ac_res" >&5
16715 echo "${ECHO_T}$ac_res" >&6; }
16716 else
16717   # Is the header compilable?
16718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16720 cat >conftest.$ac_ext <<_ACEOF
16721 /* confdefs.h.  */
16722 _ACEOF
16723 cat confdefs.h >>conftest.$ac_ext
16724 cat >>conftest.$ac_ext <<_ACEOF
16725 /* end confdefs.h.  */
16726 $ac_includes_default
16727 #include <$ac_header>
16728 _ACEOF
16729 rm -f conftest.$ac_objext
16730 if { (ac_try="$ac_compile"
16731 case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_compile") 2>conftest.er1
16737   ac_status=$?
16738   grep -v '^ *+' conftest.er1 >conftest.err
16739   rm -f conftest.er1
16740   cat conftest.err >&5
16741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16742   (exit $ac_status); } && {
16743          test -z "$ac_c_werror_flag" ||
16744          test ! -s conftest.err
16745        } && test -s conftest.$ac_objext; then
16746   ac_header_compiler=yes
16747 else
16748   echo "$as_me: failed program was:" >&5
16749 sed 's/^/| /' conftest.$ac_ext >&5
16750
16751         ac_header_compiler=no
16752 fi
16753
16754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16756 echo "${ECHO_T}$ac_header_compiler" >&6; }
16757
16758 # Is the header present?
16759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16761 cat >conftest.$ac_ext <<_ACEOF
16762 /* confdefs.h.  */
16763 _ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h.  */
16767 #include <$ac_header>
16768 _ACEOF
16769 if { (ac_try="$ac_cpp conftest.$ac_ext"
16770 case "(($ac_try" in
16771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772   *) ac_try_echo=$ac_try;;
16773 esac
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16776   ac_status=$?
16777   grep -v '^ *+' conftest.er1 >conftest.err
16778   rm -f conftest.er1
16779   cat conftest.err >&5
16780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781   (exit $ac_status); } >/dev/null && {
16782          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16783          test ! -s conftest.err
16784        }; then
16785   ac_header_preproc=yes
16786 else
16787   echo "$as_me: failed program was:" >&5
16788 sed 's/^/| /' conftest.$ac_ext >&5
16789
16790   ac_header_preproc=no
16791 fi
16792
16793 rm -f conftest.err conftest.$ac_ext
16794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16795 echo "${ECHO_T}$ac_header_preproc" >&6; }
16796
16797 # So?  What about this header?
16798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16799   yes:no: )
16800     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16802     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16804     ac_header_preproc=yes
16805     ;;
16806   no:yes:* )
16807     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16809     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16810 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16811     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16813     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16814 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16815     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16817     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16819     ( cat <<\_ASBOX
16820 ## --------------------------------------------- ##
16821 ## Report this to <http://www.openldap.org/its/> ##
16822 ## --------------------------------------------- ##
16823 _ASBOX
16824      ) | sed "s/^/$as_me: WARNING:     /" >&2
16825     ;;
16826 esac
16827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16830   echo $ECHO_N "(cached) $ECHO_C" >&6
16831 else
16832   eval "$as_ac_Header=\$ac_header_preproc"
16833 fi
16834 ac_res=`eval echo '${'$as_ac_Header'}'`
16835                { echo "$as_me:$LINENO: result: $ac_res" >&5
16836 echo "${ECHO_T}$ac_res" >&6; }
16837
16838 fi
16839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16840   cat >>confdefs.h <<_ACEOF
16841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16842 _ACEOF
16843
16844 fi
16845
16846 done
16847
16848 if test "${ac_cv_header_sys_devpoll_h}" = yes \
16849                 -a "${ac_cv_header_poll_h}" = yes ; \
16850 then
16851         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
16852 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
16853         if test "$cross_compiling" = yes; then
16854   { echo "$as_me:$LINENO: result: no" >&5
16855 echo "${ECHO_T}no" >&6; }
16856 else
16857   cat >conftest.$ac_ext <<_ACEOF
16858 /* confdefs.h.  */
16859 _ACEOF
16860 cat confdefs.h >>conftest.$ac_ext
16861 cat >>conftest.$ac_ext <<_ACEOF
16862 /* end confdefs.h.  */
16863 int main(int argc, char **argv)
16864 {
16865         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
16866         exit (devpollfd == -1 ? 1 : 0);
16867 }
16868 _ACEOF
16869 rm -f conftest$ac_exeext
16870 if { (ac_try="$ac_link"
16871 case "(($ac_try" in
16872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873   *) ac_try_echo=$ac_try;;
16874 esac
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876   (eval "$ac_link") 2>&5
16877   ac_status=$?
16878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16880   { (case "(($ac_try" in
16881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882   *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885   (eval "$ac_try") 2>&5
16886   ac_status=$?
16887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888   (exit $ac_status); }; }; then
16889   { echo "$as_me:$LINENO: result: yes" >&5
16890 echo "${ECHO_T}yes" >&6; }
16891
16892 cat >>confdefs.h <<\_ACEOF
16893 #define HAVE_DEVPOLL 1
16894 _ACEOF
16895
16896 else
16897   echo "$as_me: program exited with status $ac_status" >&5
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 ( exit $ac_status )
16902 { echo "$as_me:$LINENO: result: no" >&5
16903 echo "${ECHO_T}no" >&6; }
16904 fi
16905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16906 fi
16907
16908
16909 fi
16910
16911 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
16912 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
16913 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
16914   echo $ECHO_N "(cached) $ECHO_C" >&6
16915 else
16916
16917         cat >conftest.$ac_ext <<_ACEOF
16918 /* confdefs.h.  */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h.  */
16923
16924 #include <stdio.h>
16925 #include <sys/types.h>
16926 #include <errno.h>
16927 #ifdef _WIN32
16928 #include <stdlib.h>
16929 #endif
16930 int
16931 main ()
16932 {
16933 char *c = (char *) *sys_errlist
16934   ;
16935   return 0;
16936 }
16937 _ACEOF
16938 rm -f conftest.$ac_objext
16939 if { (ac_try="$ac_compile"
16940 case "(($ac_try" in
16941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16942   *) ac_try_echo=$ac_try;;
16943 esac
16944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16945   (eval "$ac_compile") 2>conftest.er1
16946   ac_status=$?
16947   grep -v '^ *+' conftest.er1 >conftest.err
16948   rm -f conftest.er1
16949   cat conftest.err >&5
16950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16951   (exit $ac_status); } && {
16952          test -z "$ac_c_werror_flag" ||
16953          test ! -s conftest.err
16954        } && test -s conftest.$ac_objext; then
16955   ol_cv_dcl_sys_errlist=yes
16956         ol_cv_have_sys_errlist=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961         ol_cv_dcl_sys_errlist=no
16962 fi
16963
16964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16965 fi
16966 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
16967 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
16968 #
16969 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
16970 if test $ol_cv_dcl_sys_errlist = no ; then
16971
16972 cat >>confdefs.h <<\_ACEOF
16973 #define DECL_SYS_ERRLIST 1
16974 _ACEOF
16975
16976
16977         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
16978 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
16979 if test "${ol_cv_have_sys_errlist+set}" = set; then
16980   echo $ECHO_N "(cached) $ECHO_C" >&6
16981 else
16982
16983                 cat >conftest.$ac_ext <<_ACEOF
16984 /* confdefs.h.  */
16985 _ACEOF
16986 cat confdefs.h >>conftest.$ac_ext
16987 cat >>conftest.$ac_ext <<_ACEOF
16988 /* end confdefs.h.  */
16989 #include <errno.h>
16990 int
16991 main ()
16992 {
16993 char *c = (char *) *sys_errlist
16994   ;
16995   return 0;
16996 }
16997 _ACEOF
16998 rm -f conftest.$ac_objext conftest$ac_exeext
16999 if { (ac_try="$ac_link"
17000 case "(($ac_try" in
17001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002   *) ac_try_echo=$ac_try;;
17003 esac
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005   (eval "$ac_link") 2>conftest.er1
17006   ac_status=$?
17007   grep -v '^ *+' conftest.er1 >conftest.err
17008   rm -f conftest.er1
17009   cat conftest.err >&5
17010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17011   (exit $ac_status); } && {
17012          test -z "$ac_c_werror_flag" ||
17013          test ! -s conftest.err
17014        } && test -s conftest$ac_exeext &&
17015        $as_test_x conftest$ac_exeext; then
17016   ol_cv_have_sys_errlist=yes
17017 else
17018   echo "$as_me: failed program was:" >&5
17019 sed 's/^/| /' conftest.$ac_ext >&5
17020
17021         ol_cv_have_sys_errlist=no
17022 fi
17023
17024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17025       conftest$ac_exeext conftest.$ac_ext
17026 fi
17027 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17028 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17029 fi
17030 if test $ol_cv_have_sys_errlist = yes ; then
17031
17032 cat >>confdefs.h <<\_ACEOF
17033 #define HAVE_SYS_ERRLIST 1
17034 _ACEOF
17035
17036 fi
17037
17038
17039 for ac_func in strerror strerror_r
17040 do
17041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17045   echo $ECHO_N "(cached) $ECHO_C" >&6
17046 else
17047   cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17054    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17055 #define $ac_func innocuous_$ac_func
17056
17057 /* System header to define __stub macros and hopefully few prototypes,
17058     which can conflict with char $ac_func (); below.
17059     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17060     <limits.h> exists even on freestanding compilers.  */
17061
17062 #ifdef __STDC__
17063 # include <limits.h>
17064 #else
17065 # include <assert.h>
17066 #endif
17067
17068 #undef $ac_func
17069
17070 /* Override any GCC internal prototype to avoid an error.
17071    Use char because int might match the return type of a GCC
17072    builtin and then its argument prototype would still apply.  */
17073 #ifdef __cplusplus
17074 extern "C"
17075 #endif
17076 char $ac_func ();
17077 /* The GNU C library defines this for functions which it implements
17078     to always fail with ENOSYS.  Some functions are actually named
17079     something starting with __ and the normal name is an alias.  */
17080 #if defined __stub_$ac_func || defined __stub___$ac_func
17081 choke me
17082 #endif
17083
17084 int
17085 main ()
17086 {
17087 return $ac_func ();
17088   ;
17089   return 0;
17090 }
17091 _ACEOF
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096   *) ac_try_echo=$ac_try;;
17097 esac
17098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17099   (eval "$ac_link") 2>conftest.er1
17100   ac_status=$?
17101   grep -v '^ *+' conftest.er1 >conftest.err
17102   rm -f conftest.er1
17103   cat conftest.err >&5
17104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17105   (exit $ac_status); } && {
17106          test -z "$ac_c_werror_flag" ||
17107          test ! -s conftest.err
17108        } && test -s conftest$ac_exeext &&
17109        $as_test_x conftest$ac_exeext; then
17110   eval "$as_ac_var=yes"
17111 else
17112   echo "$as_me: failed program was:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17114
17115         eval "$as_ac_var=no"
17116 fi
17117
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119       conftest$ac_exeext conftest.$ac_ext
17120 fi
17121 ac_res=`eval echo '${'$as_ac_var'}'`
17122                { echo "$as_me:$LINENO: result: $ac_res" >&5
17123 echo "${ECHO_T}$ac_res" >&6; }
17124 if test `eval echo '${'$as_ac_var'}'` = yes; then
17125   cat >>confdefs.h <<_ACEOF
17126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17127 _ACEOF
17128
17129 fi
17130 done
17131
17132 ol_cv_func_strerror_r=no
17133 if test "${ac_cv_func_strerror_r}" = yes ; then
17134         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17135 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17136 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17137   echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139
17140         cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h.  */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h.  */
17146 #include <string.h>
17147 _ACEOF
17148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17149   $EGREP "strerror_r" >/dev/null 2>&1; then
17150   ol_decl_strerror_r=yes
17151 else
17152   ol_decl_strerror_r=no
17153 fi
17154 rm -f conftest*
17155
17156         if test $ol_decl_strerror_r = yes ; then
17157                 cat >conftest.$ac_ext <<_ACEOF
17158 /* confdefs.h.  */
17159 _ACEOF
17160 cat confdefs.h >>conftest.$ac_ext
17161 cat >>conftest.$ac_ext <<_ACEOF
17162 /* end confdefs.h.  */
17163 #include <string.h>
17164 int
17165 main ()
17166 {
17167    /* from autoconf 2.59 */
17168                                 char buf[100];
17169                                 char x = *strerror_r (0, buf, sizeof buf);
17170                                 char *p = strerror_r (0, buf, sizeof buf);
17171
17172   ;
17173   return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext
17177 if { (ac_try="$ac_compile"
17178 case "(($ac_try" in
17179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180   *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183   (eval "$ac_compile") 2>conftest.er1
17184   ac_status=$?
17185   grep -v '^ *+' conftest.er1 >conftest.err
17186   rm -f conftest.er1
17187   cat conftest.err >&5
17188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189   (exit $ac_status); } && {
17190          test -z "$ac_c_werror_flag" ||
17191          test ! -s conftest.err
17192        } && test -s conftest.$ac_objext; then
17193   ol_cv_nonposix_strerror_r=yes
17194 else
17195   echo "$as_me: failed program was:" >&5
17196 sed 's/^/| /' conftest.$ac_ext >&5
17197
17198         ol_cv_nonposix_strerror_r=no
17199 fi
17200
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202         else
17203                 if test "$cross_compiling" = yes; then
17204   ol_cv_nonposix_strerror=no
17205 else
17206   cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h.  */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h.  */
17212
17213                         main() {
17214                                 char buf[100];
17215                                 buf[0] = 0;
17216                                 strerror_r( 1, buf, sizeof buf );
17217                                 exit( buf[0] == 0 );
17218                         }
17219
17220 _ACEOF
17221 rm -f conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225   *) ac_try_echo=$ac_try;;
17226 esac
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228   (eval "$ac_link") 2>&5
17229   ac_status=$?
17230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17232   { (case "(($ac_try" in
17233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234   *) ac_try_echo=$ac_try;;
17235 esac
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237   (eval "$ac_try") 2>&5
17238   ac_status=$?
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); }; }; then
17241   ol_cv_nonposix_strerror_r=yes
17242 else
17243   echo "$as_me: program exited with status $ac_status" >&5
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17246
17247 ( exit $ac_status )
17248 ol_cv_nonposix_strerror=no
17249 fi
17250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17251 fi
17252
17253
17254         fi
17255
17256 fi
17257 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17258 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17259 if test $ol_cv_nonposix_strerror_r = yes ; then
17260
17261 cat >>confdefs.h <<\_ACEOF
17262 #define HAVE_NONPOSIX_STRERROR_R 1
17263 _ACEOF
17264
17265 fi
17266
17267 elif test "${ac_cv_func_strerror}" = no ; then
17268         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17269 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17270 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17271   echo $ECHO_N "(cached) $ECHO_C" >&6
17272 else
17273
17274         cat >conftest.$ac_ext <<_ACEOF
17275 /* confdefs.h.  */
17276 _ACEOF
17277 cat confdefs.h >>conftest.$ac_ext
17278 cat >>conftest.$ac_ext <<_ACEOF
17279 /* end confdefs.h.  */
17280
17281 #include <stdio.h>
17282 #include <sys/types.h>
17283 #include <errno.h>
17284 #ifdef _WIN32
17285 #include <stdlib.h>
17286 #endif
17287 int
17288 main ()
17289 {
17290 char *c = (char *) *sys_errlist
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (ac_try="$ac_compile"
17297 case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_compile") 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } && {
17309          test -z "$ac_c_werror_flag" ||
17310          test ! -s conftest.err
17311        } && test -s conftest.$ac_objext; then
17312   ol_cv_dcl_sys_errlist=yes
17313         ol_cv_have_sys_errlist=yes
17314 else
17315   echo "$as_me: failed program was:" >&5
17316 sed 's/^/| /' conftest.$ac_ext >&5
17317
17318         ol_cv_dcl_sys_errlist=no
17319 fi
17320
17321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17322 fi
17323 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17324 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17325 #
17326 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17327 if test $ol_cv_dcl_sys_errlist = no ; then
17328
17329 cat >>confdefs.h <<\_ACEOF
17330 #define DECL_SYS_ERRLIST 1
17331 _ACEOF
17332
17333
17334         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17335 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17336 if test "${ol_cv_have_sys_errlist+set}" = set; then
17337   echo $ECHO_N "(cached) $ECHO_C" >&6
17338 else
17339
17340                 cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346 #include <errno.h>
17347 int
17348 main ()
17349 {
17350 char *c = (char *) *sys_errlist
17351   ;
17352   return 0;
17353 }
17354 _ACEOF
17355 rm -f conftest.$ac_objext conftest$ac_exeext
17356 if { (ac_try="$ac_link"
17357 case "(($ac_try" in
17358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17359   *) ac_try_echo=$ac_try;;
17360 esac
17361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17362   (eval "$ac_link") 2>conftest.er1
17363   ac_status=$?
17364   grep -v '^ *+' conftest.er1 >conftest.err
17365   rm -f conftest.er1
17366   cat conftest.err >&5
17367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368   (exit $ac_status); } && {
17369          test -z "$ac_c_werror_flag" ||
17370          test ! -s conftest.err
17371        } && test -s conftest$ac_exeext &&
17372        $as_test_x conftest$ac_exeext; then
17373   ol_cv_have_sys_errlist=yes
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         ol_cv_have_sys_errlist=no
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17382       conftest$ac_exeext conftest.$ac_ext
17383 fi
17384 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17385 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17386 fi
17387 if test $ol_cv_have_sys_errlist = yes ; then
17388
17389 cat >>confdefs.h <<\_ACEOF
17390 #define HAVE_SYS_ERRLIST 1
17391 _ACEOF
17392
17393 fi
17394
17395 fi
17396
17397
17398
17399 for ac_header in regex.h
17400 do
17401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17405   echo $ECHO_N "(cached) $ECHO_C" >&6
17406 else
17407   cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h.  */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h.  */
17413 $ac_includes_default
17414 #ifdef HAVE_SYS_TYPES_H
17415 #include <sys/types.h>
17416 #endif
17417
17418
17419 #include <$ac_header>
17420 _ACEOF
17421 rm -f conftest.$ac_objext
17422 if { (ac_try="$ac_compile"
17423 case "(($ac_try" in
17424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425   *) ac_try_echo=$ac_try;;
17426 esac
17427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17428   (eval "$ac_compile") 2>conftest.er1
17429   ac_status=$?
17430   grep -v '^ *+' conftest.er1 >conftest.err
17431   rm -f conftest.er1
17432   cat conftest.err >&5
17433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17434   (exit $ac_status); } && {
17435          test -z "$ac_c_werror_flag" ||
17436          test ! -s conftest.err
17437        } && test -s conftest.$ac_objext; then
17438   eval "$as_ac_Header=yes"
17439 else
17440   echo "$as_me: failed program was:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17442
17443         eval "$as_ac_Header=no"
17444 fi
17445
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 fi
17448 ac_res=`eval echo '${'$as_ac_Header'}'`
17449                { echo "$as_me:$LINENO: result: $ac_res" >&5
17450 echo "${ECHO_T}$ac_res" >&6; }
17451 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17452   cat >>confdefs.h <<_ACEOF
17453 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17454 _ACEOF
17455
17456 fi
17457
17458 done
17459
17460
17461 if test "$ac_cv_header_regex_h" != yes ; then
17462         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17463 echo "$as_me: error: POSIX regex.h required." >&2;}
17464    { (exit 1); exit 1; }; }
17465 fi
17466 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17467 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17468 if test "${ac_cv_search_regfree+set}" = set; then
17469   echo $ECHO_N "(cached) $ECHO_C" >&6
17470 else
17471   ac_func_search_save_LIBS=$LIBS
17472 cat >conftest.$ac_ext <<_ACEOF
17473 /* confdefs.h.  */
17474 _ACEOF
17475 cat confdefs.h >>conftest.$ac_ext
17476 cat >>conftest.$ac_ext <<_ACEOF
17477 /* end confdefs.h.  */
17478
17479 /* Override any GCC internal prototype to avoid an error.
17480    Use char because int might match the return type of a GCC
17481    builtin and then its argument prototype would still apply.  */
17482 #ifdef __cplusplus
17483 extern "C"
17484 #endif
17485 char regfree ();
17486 int
17487 main ()
17488 {
17489 return regfree ();
17490   ;
17491   return 0;
17492 }
17493 _ACEOF
17494 for ac_lib in '' regex gnuregex; do
17495   if test -z "$ac_lib"; then
17496     ac_res="none required"
17497   else
17498     ac_res=-l$ac_lib
17499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17500   fi
17501   rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (ac_try="$ac_link"
17503 case "(($ac_try" in
17504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17505   *) ac_try_echo=$ac_try;;
17506 esac
17507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17508   (eval "$ac_link") 2>conftest.er1
17509   ac_status=$?
17510   grep -v '^ *+' conftest.er1 >conftest.err
17511   rm -f conftest.er1
17512   cat conftest.err >&5
17513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17514   (exit $ac_status); } && {
17515          test -z "$ac_c_werror_flag" ||
17516          test ! -s conftest.err
17517        } && test -s conftest$ac_exeext &&
17518        $as_test_x conftest$ac_exeext; then
17519   ac_cv_search_regfree=$ac_res
17520 else
17521   echo "$as_me: failed program was:" >&5
17522 sed 's/^/| /' conftest.$ac_ext >&5
17523
17524
17525 fi
17526
17527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17528       conftest$ac_exeext
17529   if test "${ac_cv_search_regfree+set}" = set; then
17530   break
17531 fi
17532 done
17533 if test "${ac_cv_search_regfree+set}" = set; then
17534   :
17535 else
17536   ac_cv_search_regfree=no
17537 fi
17538 rm conftest.$ac_ext
17539 LIBS=$ac_func_search_save_LIBS
17540 fi
17541 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17542 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17543 ac_res=$ac_cv_search_regfree
17544 if test "$ac_res" != no; then
17545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17546   :
17547 else
17548   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17549 echo "$as_me: error: POSIX regex required." >&2;}
17550    { (exit 1); exit 1; }; }
17551 fi
17552
17553
17554
17555 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17556 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17557 if test "${ol_cv_c_posix_regex+set}" = set; then
17558   echo $ECHO_N "(cached) $ECHO_C" >&6
17559 else
17560
17561         if test "$cross_compiling" = yes; then
17562   ol_cv_c_posix_regex=cross
17563 else
17564   cat >conftest.$ac_ext <<_ACEOF
17565 /* confdefs.h.  */
17566 _ACEOF
17567 cat confdefs.h >>conftest.$ac_ext
17568 cat >>conftest.$ac_ext <<_ACEOF
17569 /* end confdefs.h.  */
17570
17571 #include <sys/types.h>
17572 #include <regex.h>
17573 static char *pattern, *string;
17574 main()
17575 {
17576         int rc;
17577         regex_t re;
17578
17579         pattern = "^A";
17580
17581         if(regcomp(&re, pattern, 0)) {
17582                 return -1;
17583         }
17584
17585         string = "ALL MATCH";
17586
17587         rc = regexec(&re, string, 0, (void*)0, 0);
17588
17589         regfree(&re);
17590
17591         return rc;
17592 }
17593 _ACEOF
17594 rm -f conftest$ac_exeext
17595 if { (ac_try="$ac_link"
17596 case "(($ac_try" in
17597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17598   *) ac_try_echo=$ac_try;;
17599 esac
17600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17601   (eval "$ac_link") 2>&5
17602   ac_status=$?
17603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17604   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17605   { (case "(($ac_try" in
17606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607   *) ac_try_echo=$ac_try;;
17608 esac
17609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17610   (eval "$ac_try") 2>&5
17611   ac_status=$?
17612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17613   (exit $ac_status); }; }; then
17614   ol_cv_c_posix_regex=yes
17615 else
17616   echo "$as_me: program exited with status $ac_status" >&5
17617 echo "$as_me: failed program was:" >&5
17618 sed 's/^/| /' conftest.$ac_ext >&5
17619
17620 ( exit $ac_status )
17621 ol_cv_c_posix_regex=no
17622 fi
17623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17624 fi
17625
17626
17627 fi
17628 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17629 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17630
17631 if test "$ol_cv_c_posix_regex" = no ; then
17632         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17633 echo "$as_me: error: broken POSIX regex!" >&2;}
17634    { (exit 1); exit 1; }; }
17635 fi
17636
17637
17638 have_uuid=no
17639
17640 for ac_header in sys/uuid.h
17641 do
17642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17644   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17647   echo $ECHO_N "(cached) $ECHO_C" >&6
17648 fi
17649 ac_res=`eval echo '${'$as_ac_Header'}'`
17650                { echo "$as_me:$LINENO: result: $ac_res" >&5
17651 echo "${ECHO_T}$ac_res" >&6; }
17652 else
17653   # Is the header compilable?
17654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17656 cat >conftest.$ac_ext <<_ACEOF
17657 /* confdefs.h.  */
17658 _ACEOF
17659 cat confdefs.h >>conftest.$ac_ext
17660 cat >>conftest.$ac_ext <<_ACEOF
17661 /* end confdefs.h.  */
17662 $ac_includes_default
17663 #include <$ac_header>
17664 _ACEOF
17665 rm -f conftest.$ac_objext
17666 if { (ac_try="$ac_compile"
17667 case "(($ac_try" in
17668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17669   *) ac_try_echo=$ac_try;;
17670 esac
17671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17672   (eval "$ac_compile") 2>conftest.er1
17673   ac_status=$?
17674   grep -v '^ *+' conftest.er1 >conftest.err
17675   rm -f conftest.er1
17676   cat conftest.err >&5
17677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17678   (exit $ac_status); } && {
17679          test -z "$ac_c_werror_flag" ||
17680          test ! -s conftest.err
17681        } && test -s conftest.$ac_objext; then
17682   ac_header_compiler=yes
17683 else
17684   echo "$as_me: failed program was:" >&5
17685 sed 's/^/| /' conftest.$ac_ext >&5
17686
17687         ac_header_compiler=no
17688 fi
17689
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17692 echo "${ECHO_T}$ac_header_compiler" >&6; }
17693
17694 # Is the header present?
17695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17697 cat >conftest.$ac_ext <<_ACEOF
17698 /* confdefs.h.  */
17699 _ACEOF
17700 cat confdefs.h >>conftest.$ac_ext
17701 cat >>conftest.$ac_ext <<_ACEOF
17702 /* end confdefs.h.  */
17703 #include <$ac_header>
17704 _ACEOF
17705 if { (ac_try="$ac_cpp conftest.$ac_ext"
17706 case "(($ac_try" in
17707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17708   *) ac_try_echo=$ac_try;;
17709 esac
17710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17711   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17712   ac_status=$?
17713   grep -v '^ *+' conftest.er1 >conftest.err
17714   rm -f conftest.er1
17715   cat conftest.err >&5
17716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717   (exit $ac_status); } >/dev/null && {
17718          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17719          test ! -s conftest.err
17720        }; then
17721   ac_header_preproc=yes
17722 else
17723   echo "$as_me: failed program was:" >&5
17724 sed 's/^/| /' conftest.$ac_ext >&5
17725
17726   ac_header_preproc=no
17727 fi
17728
17729 rm -f conftest.err conftest.$ac_ext
17730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17731 echo "${ECHO_T}$ac_header_preproc" >&6; }
17732
17733 # So?  What about this header?
17734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17735   yes:no: )
17736     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17738     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17740     ac_header_preproc=yes
17741     ;;
17742   no:yes:* )
17743     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17745     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17746 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17747     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17749     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17750 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17753     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17755     ( cat <<\_ASBOX
17756 ## --------------------------------------------- ##
17757 ## Report this to <http://www.openldap.org/its/> ##
17758 ## --------------------------------------------- ##
17759 _ASBOX
17760      ) | sed "s/^/$as_me: WARNING:     /" >&2
17761     ;;
17762 esac
17763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17766   echo $ECHO_N "(cached) $ECHO_C" >&6
17767 else
17768   eval "$as_ac_Header=\$ac_header_preproc"
17769 fi
17770 ac_res=`eval echo '${'$as_ac_Header'}'`
17771                { echo "$as_me:$LINENO: result: $ac_res" >&5
17772 echo "${ECHO_T}$ac_res" >&6; }
17773
17774 fi
17775 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17776   cat >>confdefs.h <<_ACEOF
17777 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17778 _ACEOF
17779
17780 fi
17781
17782 done
17783
17784 if test $ac_cv_header_sys_uuid_h = yes ; then
17785         save_LIBS="$LIBS"
17786         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17787 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17788 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17789   echo $ECHO_N "(cached) $ECHO_C" >&6
17790 else
17791   ac_func_search_save_LIBS=$LIBS
17792 cat >conftest.$ac_ext <<_ACEOF
17793 /* confdefs.h.  */
17794 _ACEOF
17795 cat confdefs.h >>conftest.$ac_ext
17796 cat >>conftest.$ac_ext <<_ACEOF
17797 /* end confdefs.h.  */
17798
17799 /* Override any GCC internal prototype to avoid an error.
17800    Use char because int might match the return type of a GCC
17801    builtin and then its argument prototype would still apply.  */
17802 #ifdef __cplusplus
17803 extern "C"
17804 #endif
17805 char uuid_to_str ();
17806 int
17807 main ()
17808 {
17809 return uuid_to_str ();
17810   ;
17811   return 0;
17812 }
17813 _ACEOF
17814 for ac_lib in '' uuid; do
17815   if test -z "$ac_lib"; then
17816     ac_res="none required"
17817   else
17818     ac_res=-l$ac_lib
17819     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17820   fi
17821   rm -f conftest.$ac_objext conftest$ac_exeext
17822 if { (ac_try="$ac_link"
17823 case "(($ac_try" in
17824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17825   *) ac_try_echo=$ac_try;;
17826 esac
17827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17828   (eval "$ac_link") 2>conftest.er1
17829   ac_status=$?
17830   grep -v '^ *+' conftest.er1 >conftest.err
17831   rm -f conftest.er1
17832   cat conftest.err >&5
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); } && {
17835          test -z "$ac_c_werror_flag" ||
17836          test ! -s conftest.err
17837        } && test -s conftest$ac_exeext &&
17838        $as_test_x conftest$ac_exeext; then
17839   ac_cv_search_uuid_to_str=$ac_res
17840 else
17841   echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17843
17844
17845 fi
17846
17847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17848       conftest$ac_exeext
17849   if test "${ac_cv_search_uuid_to_str+set}" = set; then
17850   break
17851 fi
17852 done
17853 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17854   :
17855 else
17856   ac_cv_search_uuid_to_str=no
17857 fi
17858 rm conftest.$ac_ext
17859 LIBS=$ac_func_search_save_LIBS
17860 fi
17861 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
17862 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
17863 ac_res=$ac_cv_search_uuid_to_str
17864 if test "$ac_res" != no; then
17865   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17866   have_uuid=yes
17867 else
17868   :
17869 fi
17870
17871         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
17872 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
17873 if test "${ac_cv_search_uuid_create+set}" = set; then
17874   echo $ECHO_N "(cached) $ECHO_C" >&6
17875 else
17876   ac_func_search_save_LIBS=$LIBS
17877 cat >conftest.$ac_ext <<_ACEOF
17878 /* confdefs.h.  */
17879 _ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h.  */
17883
17884 /* Override any GCC internal prototype to avoid an error.
17885    Use char because int might match the return type of a GCC
17886    builtin and then its argument prototype would still apply.  */
17887 #ifdef __cplusplus
17888 extern "C"
17889 #endif
17890 char uuid_create ();
17891 int
17892 main ()
17893 {
17894 return uuid_create ();
17895   ;
17896   return 0;
17897 }
17898 _ACEOF
17899 for ac_lib in '' uuid; do
17900   if test -z "$ac_lib"; then
17901     ac_res="none required"
17902   else
17903     ac_res=-l$ac_lib
17904     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17905   fi
17906   rm -f conftest.$ac_objext conftest$ac_exeext
17907 if { (ac_try="$ac_link"
17908 case "(($ac_try" in
17909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910   *) ac_try_echo=$ac_try;;
17911 esac
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913   (eval "$ac_link") 2>conftest.er1
17914   ac_status=$?
17915   grep -v '^ *+' conftest.er1 >conftest.err
17916   rm -f conftest.er1
17917   cat conftest.err >&5
17918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919   (exit $ac_status); } && {
17920          test -z "$ac_c_werror_flag" ||
17921          test ! -s conftest.err
17922        } && test -s conftest$ac_exeext &&
17923        $as_test_x conftest$ac_exeext; then
17924   ac_cv_search_uuid_create=$ac_res
17925 else
17926   echo "$as_me: failed program was:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17928
17929
17930 fi
17931
17932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17933       conftest$ac_exeext
17934   if test "${ac_cv_search_uuid_create+set}" = set; then
17935   break
17936 fi
17937 done
17938 if test "${ac_cv_search_uuid_create+set}" = set; then
17939   :
17940 else
17941   ac_cv_search_uuid_create=no
17942 fi
17943 rm conftest.$ac_ext
17944 LIBS=$ac_func_search_save_LIBS
17945 fi
17946 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
17947 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
17948 ac_res=$ac_cv_search_uuid_create
17949 if test "$ac_res" != no; then
17950   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17951   :
17952 else
17953   have_uuid=no
17954 fi
17955
17956         LIBS="$save_LIBS"
17957
17958         if test $have_uuid = yes ; then
17959
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_UUID_TO_STR 1
17962 _ACEOF
17963
17964
17965                 test "$ac_cv_search_uuid_to_str" = "none required" || \
17966                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
17967         fi
17968 fi
17969
17970 if test $have_uuid = no ; then
17971
17972 for ac_header in uuid/uuid.h
17973 do
17974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17976   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17979   echo $ECHO_N "(cached) $ECHO_C" >&6
17980 fi
17981 ac_res=`eval echo '${'$as_ac_Header'}'`
17982                { echo "$as_me:$LINENO: result: $ac_res" >&5
17983 echo "${ECHO_T}$ac_res" >&6; }
17984 else
17985   # Is the header compilable?
17986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17994 $ac_includes_default
17995 #include <$ac_header>
17996 _ACEOF
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001   *) ac_try_echo=$ac_try;;
18002 esac
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004   (eval "$ac_compile") 2>conftest.er1
18005   ac_status=$?
18006   grep -v '^ *+' conftest.er1 >conftest.err
18007   rm -f conftest.er1
18008   cat conftest.err >&5
18009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010   (exit $ac_status); } && {
18011          test -z "$ac_c_werror_flag" ||
18012          test ! -s conftest.err
18013        } && test -s conftest.$ac_objext; then
18014   ac_header_compiler=yes
18015 else
18016   echo "$as_me: failed program was:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18018
18019         ac_header_compiler=no
18020 fi
18021
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18024 echo "${ECHO_T}$ac_header_compiler" >&6; }
18025
18026 # Is the header present?
18027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h.  */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h.  */
18035 #include <$ac_header>
18036 _ACEOF
18037 if { (ac_try="$ac_cpp conftest.$ac_ext"
18038 case "(($ac_try" in
18039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040   *) ac_try_echo=$ac_try;;
18041 esac
18042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18043   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18044   ac_status=$?
18045   grep -v '^ *+' conftest.er1 >conftest.err
18046   rm -f conftest.er1
18047   cat conftest.err >&5
18048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049   (exit $ac_status); } >/dev/null && {
18050          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18051          test ! -s conftest.err
18052        }; then
18053   ac_header_preproc=yes
18054 else
18055   echo "$as_me: failed program was:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18057
18058   ac_header_preproc=no
18059 fi
18060
18061 rm -f conftest.err conftest.$ac_ext
18062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18063 echo "${ECHO_T}$ac_header_preproc" >&6; }
18064
18065 # So?  What about this header?
18066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18067   yes:no: )
18068     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18069 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18070     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18071 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18072     ac_header_preproc=yes
18073     ;;
18074   no:yes:* )
18075     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18076 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18077     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18078 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18079     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18080 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18081     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18082 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18083     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18084 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18085     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18086 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18087     ( cat <<\_ASBOX
18088 ## --------------------------------------------- ##
18089 ## Report this to <http://www.openldap.org/its/> ##
18090 ## --------------------------------------------- ##
18091 _ASBOX
18092      ) | sed "s/^/$as_me: WARNING:     /" >&2
18093     ;;
18094 esac
18095 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18098   echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100   eval "$as_ac_Header=\$ac_header_preproc"
18101 fi
18102 ac_res=`eval echo '${'$as_ac_Header'}'`
18103                { echo "$as_me:$LINENO: result: $ac_res" >&5
18104 echo "${ECHO_T}$ac_res" >&6; }
18105
18106 fi
18107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18108   cat >>confdefs.h <<_ACEOF
18109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18110 _ACEOF
18111
18112 fi
18113
18114 done
18115
18116         if test $ac_cv_header_uuid_uuid_h = yes ; then
18117                 save_LIBS="$LIBS"
18118                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18119 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18120 if test "${ac_cv_search_uuid_generate+set}" = set; then
18121   echo $ECHO_N "(cached) $ECHO_C" >&6
18122 else
18123   ac_func_search_save_LIBS=$LIBS
18124 cat >conftest.$ac_ext <<_ACEOF
18125 /* confdefs.h.  */
18126 _ACEOF
18127 cat confdefs.h >>conftest.$ac_ext
18128 cat >>conftest.$ac_ext <<_ACEOF
18129 /* end confdefs.h.  */
18130
18131 /* Override any GCC internal prototype to avoid an error.
18132    Use char because int might match the return type of a GCC
18133    builtin and then its argument prototype would still apply.  */
18134 #ifdef __cplusplus
18135 extern "C"
18136 #endif
18137 char uuid_generate ();
18138 int
18139 main ()
18140 {
18141 return uuid_generate ();
18142   ;
18143   return 0;
18144 }
18145 _ACEOF
18146 for ac_lib in '' uuid; do
18147   if test -z "$ac_lib"; then
18148     ac_res="none required"
18149   else
18150     ac_res=-l$ac_lib
18151     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18152   fi
18153   rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (ac_try="$ac_link"
18155 case "(($ac_try" in
18156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157   *) ac_try_echo=$ac_try;;
18158 esac
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160   (eval "$ac_link") 2>conftest.er1
18161   ac_status=$?
18162   grep -v '^ *+' conftest.er1 >conftest.err
18163   rm -f conftest.er1
18164   cat conftest.err >&5
18165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166   (exit $ac_status); } && {
18167          test -z "$ac_c_werror_flag" ||
18168          test ! -s conftest.err
18169        } && test -s conftest$ac_exeext &&
18170        $as_test_x conftest$ac_exeext; then
18171   ac_cv_search_uuid_generate=$ac_res
18172 else
18173   echo "$as_me: failed program was:" >&5
18174 sed 's/^/| /' conftest.$ac_ext >&5
18175
18176
18177 fi
18178
18179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18180       conftest$ac_exeext
18181   if test "${ac_cv_search_uuid_generate+set}" = set; then
18182   break
18183 fi
18184 done
18185 if test "${ac_cv_search_uuid_generate+set}" = set; then
18186   :
18187 else
18188   ac_cv_search_uuid_generate=no
18189 fi
18190 rm conftest.$ac_ext
18191 LIBS=$ac_func_search_save_LIBS
18192 fi
18193 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18194 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18195 ac_res=$ac_cv_search_uuid_generate
18196 if test "$ac_res" != no; then
18197   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18198   have_uuid=yes
18199 else
18200   :
18201 fi
18202
18203                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18204 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18205 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18206   echo $ECHO_N "(cached) $ECHO_C" >&6
18207 else
18208   ac_func_search_save_LIBS=$LIBS
18209 cat >conftest.$ac_ext <<_ACEOF
18210 /* confdefs.h.  */
18211 _ACEOF
18212 cat confdefs.h >>conftest.$ac_ext
18213 cat >>conftest.$ac_ext <<_ACEOF
18214 /* end confdefs.h.  */
18215
18216 /* Override any GCC internal prototype to avoid an error.
18217    Use char because int might match the return type of a GCC
18218    builtin and then its argument prototype would still apply.  */
18219 #ifdef __cplusplus
18220 extern "C"
18221 #endif
18222 char uuid_unparse_lower ();
18223 int
18224 main ()
18225 {
18226 return uuid_unparse_lower ();
18227   ;
18228   return 0;
18229 }
18230 _ACEOF
18231 for ac_lib in '' uuid; do
18232   if test -z "$ac_lib"; then
18233     ac_res="none required"
18234   else
18235     ac_res=-l$ac_lib
18236     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18237   fi
18238   rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242   *) ac_try_echo=$ac_try;;
18243 esac
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245   (eval "$ac_link") 2>conftest.er1
18246   ac_status=$?
18247   grep -v '^ *+' conftest.er1 >conftest.err
18248   rm -f conftest.er1
18249   cat conftest.err >&5
18250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251   (exit $ac_status); } && {
18252          test -z "$ac_c_werror_flag" ||
18253          test ! -s conftest.err
18254        } && test -s conftest$ac_exeext &&
18255        $as_test_x conftest$ac_exeext; then
18256   ac_cv_search_uuid_unparse_lower=$ac_res
18257 else
18258   echo "$as_me: failed program was:" >&5
18259 sed 's/^/| /' conftest.$ac_ext >&5
18260
18261
18262 fi
18263
18264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18265       conftest$ac_exeext
18266   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18267   break
18268 fi
18269 done
18270 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18271   :
18272 else
18273   ac_cv_search_uuid_unparse_lower=no
18274 fi
18275 rm conftest.$ac_ext
18276 LIBS=$ac_func_search_save_LIBS
18277 fi
18278 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18279 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18280 ac_res=$ac_cv_search_uuid_unparse_lower
18281 if test "$ac_res" != no; then
18282   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18283   :
18284 else
18285   have_uuid=no
18286 fi
18287
18288                 LIBS="$save_LIBS"
18289
18290                 if test $have_uuid = yes ; then
18291
18292 cat >>confdefs.h <<\_ACEOF
18293 #define HAVE_UUID_GENERATE 1
18294 _ACEOF
18295
18296
18297                         test "$ac_cv_search_uuid_generate" = "none required" || \
18298                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18299                 fi
18300         fi
18301 fi
18302
18303 if test $have_uuid = no ; then
18304         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18305 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18306         save_LIBS="$LIBS"
18307         LIBS="$LIBS -lrpcrt4"
18308         cat >conftest.$ac_ext <<_ACEOF
18309 /* confdefs.h.  */
18310 _ACEOF
18311 cat confdefs.h >>conftest.$ac_ext
18312 cat >>conftest.$ac_ext <<_ACEOF
18313 /* end confdefs.h.  */
18314
18315                 int __stdcall UuidCreate(void *);
18316                 int __stdcall UuidToStringA(void *,void **);
18317
18318 int
18319 main ()
18320 {
18321
18322                 UuidCreate(0);
18323                 UuidToStringA(0,0);
18324
18325   ;
18326   return 0;
18327 }
18328 _ACEOF
18329 rm -f conftest.$ac_objext conftest$ac_exeext
18330 if { (ac_try="$ac_link"
18331 case "(($ac_try" in
18332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333   *) ac_try_echo=$ac_try;;
18334 esac
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336   (eval "$ac_link") 2>conftest.er1
18337   ac_status=$?
18338   grep -v '^ *+' conftest.er1 >conftest.err
18339   rm -f conftest.er1
18340   cat conftest.err >&5
18341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18342   (exit $ac_status); } && {
18343          test -z "$ac_c_werror_flag" ||
18344          test ! -s conftest.err
18345        } && test -s conftest$ac_exeext &&
18346        $as_test_x conftest$ac_exeext; then
18347   need_rpcrt=yes
18348 else
18349   echo "$as_me: failed program was:" >&5
18350 sed 's/^/| /' conftest.$ac_ext >&5
18351
18352         need_rpcrt=no
18353 fi
18354
18355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356       conftest$ac_exeext conftest.$ac_ext
18357         if test $need_rpcrt = yes; then
18358                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18359         fi
18360         LIBS="$save_LIBS"
18361         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18362 echo "${ECHO_T}$need_rpcrt" >&6; }
18363 fi
18364
18365 ol_cv_lib_resolver=no
18366 if test $ol_cv_lib_resolver = no ; then
18367         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18368 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18369 if test "${ol_cv_resolver_none+set}" = set; then
18370   echo $ECHO_N "(cached) $ECHO_C" >&6
18371 else
18372
18373         ol_RESOLVER_LIB=
18374         ol_LIBS=$LIBS
18375         LIBS="$ol_RESOLVER_LIB $LIBS"
18376
18377         cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h.  */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h.  */
18383
18384 #ifdef HAVE_SYS_TYPES_H
18385 #       include <sys/types.h>
18386 #endif
18387 #include <netinet/in.h>
18388 #ifdef HAVE_ARPA_NAMESER_H
18389 #       include <arpa/nameser.h>
18390 #endif
18391 #ifdef HAVE_RESOLV_H
18392 #       include <resolv.h>
18393 #endif
18394
18395 int
18396 main ()
18397 {
18398 {
18399         int len, status;
18400         char *request = NULL;
18401         unsigned char reply[64*1024];
18402         unsigned char host[64*1024];
18403         unsigned char *p;
18404
18405 #ifdef NS_HFIXEDSZ
18406         /* Bind 8/9 interface */
18407         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18408 #else
18409         /* Bind 4 interface */
18410 # ifndef T_SRV
18411 #  define T_SRV 33
18412 # endif
18413         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18414 #endif
18415         p = reply;
18416 #ifdef NS_HFIXEDSZ
18417         /* Bind 8/9 interface */
18418         p += NS_HFIXEDSZ;
18419 #elif defined(HFIXEDSZ)
18420         /* Bind 4 interface w/ HFIXEDSZ */
18421         p += HFIXEDSZ;
18422 #else
18423         /* Bind 4 interface w/o HFIXEDSZ */
18424         p += sizeof(HEADER);
18425 #endif
18426         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18427 }
18428   ;
18429   return 0;
18430 }
18431 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436   *) ac_try_echo=$ac_try;;
18437 esac
18438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18439   (eval "$ac_link") 2>conftest.er1
18440   ac_status=$?
18441   grep -v '^ *+' conftest.er1 >conftest.err
18442   rm -f conftest.er1
18443   cat conftest.err >&5
18444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18445   (exit $ac_status); } && {
18446          test -z "$ac_c_werror_flag" ||
18447          test ! -s conftest.err
18448        } && test -s conftest$ac_exeext &&
18449        $as_test_x conftest$ac_exeext; then
18450   ol_cv_resolver_none=yes
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455         ol_cv_resolver_none=no
18456 fi
18457
18458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18459       conftest$ac_exeext conftest.$ac_ext
18460
18461         LIBS="$ol_LIBS"
18462
18463 fi
18464 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18465 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18466
18467         if test $ol_cv_resolver_none = yes ; then
18468                 ol_cv_lib_resolver=yes
18469         fi
18470 fi
18471
18472 if test $ol_cv_lib_resolver = no ; then
18473         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18474 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18475 if test "${ol_cv_resolver_resolv+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478
18479         ol_RESOLVER_LIB=-lresolv
18480         ol_LIBS=$LIBS
18481         LIBS="$ol_RESOLVER_LIB $LIBS"
18482
18483         cat >conftest.$ac_ext <<_ACEOF
18484 /* confdefs.h.  */
18485 _ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h.  */
18489
18490 #ifdef HAVE_SYS_TYPES_H
18491 #       include <sys/types.h>
18492 #endif
18493 #include <netinet/in.h>
18494 #ifdef HAVE_ARPA_NAMESER_H
18495 #       include <arpa/nameser.h>
18496 #endif
18497 #ifdef HAVE_RESOLV_H
18498 #       include <resolv.h>
18499 #endif
18500
18501 int
18502 main ()
18503 {
18504 {
18505         int len, status;
18506         char *request = NULL;
18507         unsigned char reply[64*1024];
18508         unsigned char host[64*1024];
18509         unsigned char *p;
18510
18511 #ifdef NS_HFIXEDSZ
18512         /* Bind 8/9 interface */
18513         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18514 #else
18515         /* Bind 4 interface */
18516 # ifndef T_SRV
18517 #  define T_SRV 33
18518 # endif
18519         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18520 #endif
18521         p = reply;
18522 #ifdef NS_HFIXEDSZ
18523         /* Bind 8/9 interface */
18524         p += NS_HFIXEDSZ;
18525 #elif defined(HFIXEDSZ)
18526         /* Bind 4 interface w/ HFIXEDSZ */
18527         p += HFIXEDSZ;
18528 #else
18529         /* Bind 4 interface w/o HFIXEDSZ */
18530         p += sizeof(HEADER);
18531 #endif
18532         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18533 }
18534   ;
18535   return 0;
18536 }
18537 _ACEOF
18538 rm -f conftest.$ac_objext conftest$ac_exeext
18539 if { (ac_try="$ac_link"
18540 case "(($ac_try" in
18541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542   *) ac_try_echo=$ac_try;;
18543 esac
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545   (eval "$ac_link") 2>conftest.er1
18546   ac_status=$?
18547   grep -v '^ *+' conftest.er1 >conftest.err
18548   rm -f conftest.er1
18549   cat conftest.err >&5
18550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551   (exit $ac_status); } && {
18552          test -z "$ac_c_werror_flag" ||
18553          test ! -s conftest.err
18554        } && test -s conftest$ac_exeext &&
18555        $as_test_x conftest$ac_exeext; then
18556   ol_cv_resolver_resolv=yes
18557 else
18558   echo "$as_me: failed program was:" >&5
18559 sed 's/^/| /' conftest.$ac_ext >&5
18560
18561         ol_cv_resolver_resolv=no
18562 fi
18563
18564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18565       conftest$ac_exeext conftest.$ac_ext
18566
18567         LIBS="$ol_LIBS"
18568
18569 fi
18570 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18571 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18572
18573         if test $ol_cv_resolver_resolv = yes ; then
18574                 ol_cv_lib_resolver=-lresolv
18575         fi
18576 fi
18577
18578 if test $ol_cv_lib_resolver = no ; then
18579         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18580 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18581 if test "${ol_cv_resolver_bind+set}" = set; then
18582   echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584
18585         ol_RESOLVER_LIB=-lbind
18586         ol_LIBS=$LIBS
18587         LIBS="$ol_RESOLVER_LIB $LIBS"
18588
18589         cat >conftest.$ac_ext <<_ACEOF
18590 /* confdefs.h.  */
18591 _ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h.  */
18595
18596 #ifdef HAVE_SYS_TYPES_H
18597 #       include <sys/types.h>
18598 #endif
18599 #include <netinet/in.h>
18600 #ifdef HAVE_ARPA_NAMESER_H
18601 #       include <arpa/nameser.h>
18602 #endif
18603 #ifdef HAVE_RESOLV_H
18604 #       include <resolv.h>
18605 #endif
18606
18607 int
18608 main ()
18609 {
18610 {
18611         int len, status;
18612         char *request = NULL;
18613         unsigned char reply[64*1024];
18614         unsigned char host[64*1024];
18615         unsigned char *p;
18616
18617 #ifdef NS_HFIXEDSZ
18618         /* Bind 8/9 interface */
18619         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18620 #else
18621         /* Bind 4 interface */
18622 # ifndef T_SRV
18623 #  define T_SRV 33
18624 # endif
18625         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18626 #endif
18627         p = reply;
18628 #ifdef NS_HFIXEDSZ
18629         /* Bind 8/9 interface */
18630         p += NS_HFIXEDSZ;
18631 #elif defined(HFIXEDSZ)
18632         /* Bind 4 interface w/ HFIXEDSZ */
18633         p += HFIXEDSZ;
18634 #else
18635         /* Bind 4 interface w/o HFIXEDSZ */
18636         p += sizeof(HEADER);
18637 #endif
18638         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18639 }
18640   ;
18641   return 0;
18642 }
18643 _ACEOF
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648   *) ac_try_echo=$ac_try;;
18649 esac
18650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18651   (eval "$ac_link") 2>conftest.er1
18652   ac_status=$?
18653   grep -v '^ *+' conftest.er1 >conftest.err
18654   rm -f conftest.er1
18655   cat conftest.err >&5
18656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657   (exit $ac_status); } && {
18658          test -z "$ac_c_werror_flag" ||
18659          test ! -s conftest.err
18660        } && test -s conftest$ac_exeext &&
18661        $as_test_x conftest$ac_exeext; then
18662   ol_cv_resolver_bind=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667         ol_cv_resolver_bind=no
18668 fi
18669
18670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18671       conftest$ac_exeext conftest.$ac_ext
18672
18673         LIBS="$ol_LIBS"
18674
18675 fi
18676 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18677 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18678
18679         if test $ol_cv_resolver_bind = yes ; then
18680                 ol_cv_lib_resolver=-lbind
18681         fi
18682 fi
18683
18684
18685
18686 ol_link_dnssrv=no
18687 if test "$ol_cv_lib_resolver" != no ; then
18688
18689 cat >>confdefs.h <<\_ACEOF
18690 #define HAVE_RES_QUERY 1
18691 _ACEOF
18692
18693
18694         if test "$ol_enable_dnssrv" != no ; then
18695                 ol_link_dnssrv=yes
18696         fi
18697
18698         if test "$ol_cv_lib_resolver" != yes ; then
18699                 LIBS="$ol_cv_lib_resolver $LIBS"
18700         fi
18701 fi
18702
18703 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18704         if test "$ol_link_dnssrv" = no ; then
18705                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18706 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18707    { (exit 1); exit 1; }; }
18708         fi
18709 else
18710         ol_enable_dnssrv=no
18711 fi
18712
18713
18714 for ac_func in hstrerror
18715 do
18716 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18717 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18718 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18719 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18720   echo $ECHO_N "(cached) $ECHO_C" >&6
18721 else
18722   cat >conftest.$ac_ext <<_ACEOF
18723 /* confdefs.h.  */
18724 _ACEOF
18725 cat confdefs.h >>conftest.$ac_ext
18726 cat >>conftest.$ac_ext <<_ACEOF
18727 /* end confdefs.h.  */
18728 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18729    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18730 #define $ac_func innocuous_$ac_func
18731
18732 /* System header to define __stub macros and hopefully few prototypes,
18733     which can conflict with char $ac_func (); below.
18734     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18735     <limits.h> exists even on freestanding compilers.  */
18736
18737 #ifdef __STDC__
18738 # include <limits.h>
18739 #else
18740 # include <assert.h>
18741 #endif
18742
18743 #undef $ac_func
18744
18745 /* Override any GCC internal prototype to avoid an error.
18746    Use char because int might match the return type of a GCC
18747    builtin and then its argument prototype would still apply.  */
18748 #ifdef __cplusplus
18749 extern "C"
18750 #endif
18751 char $ac_func ();
18752 /* The GNU C library defines this for functions which it implements
18753     to always fail with ENOSYS.  Some functions are actually named
18754     something starting with __ and the normal name is an alias.  */
18755 #if defined __stub_$ac_func || defined __stub___$ac_func
18756 choke me
18757 #endif
18758
18759 int
18760 main ()
18761 {
18762 return $ac_func ();
18763   ;
18764   return 0;
18765 }
18766 _ACEOF
18767 rm -f conftest.$ac_objext conftest$ac_exeext
18768 if { (ac_try="$ac_link"
18769 case "(($ac_try" in
18770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771   *) ac_try_echo=$ac_try;;
18772 esac
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774   (eval "$ac_link") 2>conftest.er1
18775   ac_status=$?
18776   grep -v '^ *+' conftest.er1 >conftest.err
18777   rm -f conftest.er1
18778   cat conftest.err >&5
18779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780   (exit $ac_status); } && {
18781          test -z "$ac_c_werror_flag" ||
18782          test ! -s conftest.err
18783        } && test -s conftest$ac_exeext &&
18784        $as_test_x conftest$ac_exeext; then
18785   eval "$as_ac_var=yes"
18786 else
18787   echo "$as_me: failed program was:" >&5
18788 sed 's/^/| /' conftest.$ac_ext >&5
18789
18790         eval "$as_ac_var=no"
18791 fi
18792
18793 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18794       conftest$ac_exeext conftest.$ac_ext
18795 fi
18796 ac_res=`eval echo '${'$as_ac_var'}'`
18797                { echo "$as_me:$LINENO: result: $ac_res" >&5
18798 echo "${ECHO_T}$ac_res" >&6; }
18799 if test `eval echo '${'$as_ac_var'}'` = yes; then
18800   cat >>confdefs.h <<_ACEOF
18801 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18802 _ACEOF
18803
18804 fi
18805 done
18806
18807
18808
18809
18810
18811
18812 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18813 do
18814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18818   echo $ECHO_N "(cached) $ECHO_C" >&6
18819 else
18820   cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18828 #define $ac_func innocuous_$ac_func
18829
18830 /* System header to define __stub macros and hopefully few prototypes,
18831     which can conflict with char $ac_func (); below.
18832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18833     <limits.h> exists even on freestanding compilers.  */
18834
18835 #ifdef __STDC__
18836 # include <limits.h>
18837 #else
18838 # include <assert.h>
18839 #endif
18840
18841 #undef $ac_func
18842
18843 /* Override any GCC internal prototype to avoid an error.
18844    Use char because int might match the return type of a GCC
18845    builtin and then its argument prototype would still apply.  */
18846 #ifdef __cplusplus
18847 extern "C"
18848 #endif
18849 char $ac_func ();
18850 /* The GNU C library defines this for functions which it implements
18851     to always fail with ENOSYS.  Some functions are actually named
18852     something starting with __ and the normal name is an alias.  */
18853 #if defined __stub_$ac_func || defined __stub___$ac_func
18854 choke me
18855 #endif
18856
18857 int
18858 main ()
18859 {
18860 return $ac_func ();
18861   ;
18862   return 0;
18863 }
18864 _ACEOF
18865 rm -f conftest.$ac_objext conftest$ac_exeext
18866 if { (ac_try="$ac_link"
18867 case "(($ac_try" in
18868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869   *) ac_try_echo=$ac_try;;
18870 esac
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872   (eval "$ac_link") 2>conftest.er1
18873   ac_status=$?
18874   grep -v '^ *+' conftest.er1 >conftest.err
18875   rm -f conftest.er1
18876   cat conftest.err >&5
18877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18878   (exit $ac_status); } && {
18879          test -z "$ac_c_werror_flag" ||
18880          test ! -s conftest.err
18881        } && test -s conftest$ac_exeext &&
18882        $as_test_x conftest$ac_exeext; then
18883   eval "$as_ac_var=yes"
18884 else
18885   echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18887
18888         eval "$as_ac_var=no"
18889 fi
18890
18891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18892       conftest$ac_exeext conftest.$ac_ext
18893 fi
18894 ac_res=`eval echo '${'$as_ac_var'}'`
18895                { echo "$as_me:$LINENO: result: $ac_res" >&5
18896 echo "${ECHO_T}$ac_res" >&6; }
18897 if test `eval echo '${'$as_ac_var'}'` = yes; then
18898   cat >>confdefs.h <<_ACEOF
18899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18900 _ACEOF
18901
18902 fi
18903 done
18904
18905
18906 ol_link_ipv6=no
18907 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
18908         if test $ol_enable_ipv6 = yes ; then
18909                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
18910 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
18911    { (exit 1); exit 1; }; }
18912         fi
18913 elif test $ol_enable_ipv6 != no ; then
18914         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
18915 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
18916 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
18917   echo $ECHO_N "(cached) $ECHO_C" >&6
18918 else
18919
18920                 cat >conftest.$ac_ext <<_ACEOF
18921 /* confdefs.h.  */
18922 _ACEOF
18923 cat confdefs.h >>conftest.$ac_ext
18924 cat >>conftest.$ac_ext <<_ACEOF
18925 /* end confdefs.h.  */
18926
18927 #                       include <netinet/in.h>
18928 #                       ifdef INET6_ADDRSTRLEN
18929                                 __has_inet6_addrstrlen__;
18930 #                       endif
18931
18932 _ACEOF
18933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18934   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
18935   ol_cv_inet6_addrstrlen=yes
18936 else
18937   ol_cv_inet6_addrstrlen=no
18938 fi
18939 rm -f conftest*
18940
18941 fi
18942 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
18943 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
18944
18945
18946         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
18947 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
18948 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951
18952                 cat >conftest.$ac_ext <<_ACEOF
18953 /* confdefs.h.  */
18954 _ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h.  */
18958
18959 #include <sys/types.h>
18960 #include <sys/socket.h>
18961
18962 int
18963 main ()
18964 {
18965
18966                         struct sockaddr_storage ss;
18967
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979   (eval "$ac_compile") 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } && {
18986          test -z "$ac_c_werror_flag" ||
18987          test ! -s conftest.err
18988        } && test -s conftest.$ac_objext; then
18989   ol_cv_struct_sockaddr_storage=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994         ol_cv_struct_sockaddr_storage=no
18995 fi
18996
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18998 fi
18999 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19000 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19001
19002         if test $ol_cv_inet6_addrstrlen = yes &&
19003            test $ol_cv_struct_sockaddr_storage = yes ; then
19004                 ol_link_ipv6=yes
19005         elif test $ol_enable_ipv6 = yes &&
19006              test $ol_cv_inet6_addrstrlen = no ; then
19007                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19008 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19009    { (exit 1); exit 1; }; }
19010         elif test $ol_enable_ipv6 = yes &&
19011              test $ol_cv_struct_sockaddr_storage = no ; then
19012                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19013 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19014    { (exit 1); exit 1; }; }
19015         fi
19016 fi
19017
19018 if test $ol_enable_local != no ; then
19019
19020 for ac_header in sys/un.h
19021 do
19022 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19024   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19026 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19027   echo $ECHO_N "(cached) $ECHO_C" >&6
19028 fi
19029 ac_res=`eval echo '${'$as_ac_Header'}'`
19030                { echo "$as_me:$LINENO: result: $ac_res" >&5
19031 echo "${ECHO_T}$ac_res" >&6; }
19032 else
19033   # Is the header compilable?
19034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h.  */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h.  */
19042 $ac_includes_default
19043 #include <$ac_header>
19044 _ACEOF
19045 rm -f conftest.$ac_objext
19046 if { (ac_try="$ac_compile"
19047 case "(($ac_try" in
19048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049   *) ac_try_echo=$ac_try;;
19050 esac
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052   (eval "$ac_compile") 2>conftest.er1
19053   ac_status=$?
19054   grep -v '^ *+' conftest.er1 >conftest.err
19055   rm -f conftest.er1
19056   cat conftest.err >&5
19057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19058   (exit $ac_status); } && {
19059          test -z "$ac_c_werror_flag" ||
19060          test ! -s conftest.err
19061        } && test -s conftest.$ac_objext; then
19062   ac_header_compiler=yes
19063 else
19064   echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067         ac_header_compiler=no
19068 fi
19069
19070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19072 echo "${ECHO_T}$ac_header_compiler" >&6; }
19073
19074 # Is the header present?
19075 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h.  */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h.  */
19083 #include <$ac_header>
19084 _ACEOF
19085 if { (ac_try="$ac_cpp conftest.$ac_ext"
19086 case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19092   ac_status=$?
19093   grep -v '^ *+' conftest.er1 >conftest.err
19094   rm -f conftest.er1
19095   cat conftest.err >&5
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); } >/dev/null && {
19098          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19099          test ! -s conftest.err
19100        }; then
19101   ac_header_preproc=yes
19102 else
19103   echo "$as_me: failed program was:" >&5
19104 sed 's/^/| /' conftest.$ac_ext >&5
19105
19106   ac_header_preproc=no
19107 fi
19108
19109 rm -f conftest.err conftest.$ac_ext
19110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19111 echo "${ECHO_T}$ac_header_preproc" >&6; }
19112
19113 # So?  What about this header?
19114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19115   yes:no: )
19116     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19118     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19120     ac_header_preproc=yes
19121     ;;
19122   no:yes:* )
19123     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19125     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19126 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19127     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19129     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19130 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19131     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19133     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19135     ( cat <<\_ASBOX
19136 ## --------------------------------------------- ##
19137 ## Report this to <http://www.openldap.org/its/> ##
19138 ## --------------------------------------------- ##
19139 _ASBOX
19140      ) | sed "s/^/$as_me: WARNING:     /" >&2
19141     ;;
19142 esac
19143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19146   echo $ECHO_N "(cached) $ECHO_C" >&6
19147 else
19148   eval "$as_ac_Header=\$ac_header_preproc"
19149 fi
19150 ac_res=`eval echo '${'$as_ac_Header'}'`
19151                { echo "$as_me:$LINENO: result: $ac_res" >&5
19152 echo "${ECHO_T}$ac_res" >&6; }
19153
19154 fi
19155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19156   cat >>confdefs.h <<_ACEOF
19157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19158 _ACEOF
19159
19160 fi
19161
19162 done
19163
19164
19165         if test $ol_enable_local = auto ; then
19166                 ol_enable_local=$ac_cv_header_sys_un_h
19167         elif test $ac_cv_header_sys_un_h = no ; then
19168                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19169 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19170    { (exit 1); exit 1; }; }
19171         fi
19172 fi
19173
19174 ol_link_gssapi=no
19175
19176 case $ol_with_gssapi in yes | auto)
19177
19178         ol_header_gssapi=no
19179
19180 for ac_header in gssapi/gssapi.h
19181 do
19182 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19184   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19185 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19186 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19187   echo $ECHO_N "(cached) $ECHO_C" >&6
19188 fi
19189 ac_res=`eval echo '${'$as_ac_Header'}'`
19190                { echo "$as_me:$LINENO: result: $ac_res" >&5
19191 echo "${ECHO_T}$ac_res" >&6; }
19192 else
19193   # Is the header compilable?
19194 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19195 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19196 cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h.  */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h.  */
19202 $ac_includes_default
19203 #include <$ac_header>
19204 _ACEOF
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209   *) ac_try_echo=$ac_try;;
19210 esac
19211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19212   (eval "$ac_compile") 2>conftest.er1
19213   ac_status=$?
19214   grep -v '^ *+' conftest.er1 >conftest.err
19215   rm -f conftest.er1
19216   cat conftest.err >&5
19217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19218   (exit $ac_status); } && {
19219          test -z "$ac_c_werror_flag" ||
19220          test ! -s conftest.err
19221        } && test -s conftest.$ac_objext; then
19222   ac_header_compiler=yes
19223 else
19224   echo "$as_me: failed program was:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19226
19227         ac_header_compiler=no
19228 fi
19229
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19232 echo "${ECHO_T}$ac_header_compiler" >&6; }
19233
19234 # Is the header present?
19235 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19236 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h.  */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h.  */
19243 #include <$ac_header>
19244 _ACEOF
19245 if { (ac_try="$ac_cpp conftest.$ac_ext"
19246 case "(($ac_try" in
19247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19248   *) ac_try_echo=$ac_try;;
19249 esac
19250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19251   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19252   ac_status=$?
19253   grep -v '^ *+' conftest.er1 >conftest.err
19254   rm -f conftest.er1
19255   cat conftest.err >&5
19256   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19257   (exit $ac_status); } >/dev/null && {
19258          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19259          test ! -s conftest.err
19260        }; then
19261   ac_header_preproc=yes
19262 else
19263   echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19265
19266   ac_header_preproc=no
19267 fi
19268
19269 rm -f conftest.err conftest.$ac_ext
19270 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19271 echo "${ECHO_T}$ac_header_preproc" >&6; }
19272
19273 # So?  What about this header?
19274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19275   yes:no: )
19276     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19277 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19278     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19280     ac_header_preproc=yes
19281     ;;
19282   no:yes:* )
19283     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19284 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19285     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19286 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19287     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19288 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19289     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19290 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19291     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19293     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19294 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19295     ( cat <<\_ASBOX
19296 ## --------------------------------------------- ##
19297 ## Report this to <http://www.openldap.org/its/> ##
19298 ## --------------------------------------------- ##
19299 _ASBOX
19300      ) | sed "s/^/$as_me: WARNING:     /" >&2
19301     ;;
19302 esac
19303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19306   echo $ECHO_N "(cached) $ECHO_C" >&6
19307 else
19308   eval "$as_ac_Header=\$ac_header_preproc"
19309 fi
19310 ac_res=`eval echo '${'$as_ac_Header'}'`
19311                { echo "$as_me:$LINENO: result: $ac_res" >&5
19312 echo "${ECHO_T}$ac_res" >&6; }
19313
19314 fi
19315 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19316   cat >>confdefs.h <<_ACEOF
19317 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19318 _ACEOF
19319
19320 fi
19321
19322 done
19323
19324         if test $ac_cv_header_gssapi_gssapi_h = yes ; then
19325                 ol_header_gssapi=yes
19326         else
19327
19328 for ac_header in gssapi.h
19329 do
19330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19332   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19335   echo $ECHO_N "(cached) $ECHO_C" >&6
19336 fi
19337 ac_res=`eval echo '${'$as_ac_Header'}'`
19338                { echo "$as_me:$LINENO: result: $ac_res" >&5
19339 echo "${ECHO_T}$ac_res" >&6; }
19340 else
19341   # Is the header compilable?
19342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19344 cat >conftest.$ac_ext <<_ACEOF
19345 /* confdefs.h.  */
19346 _ACEOF
19347 cat confdefs.h >>conftest.$ac_ext
19348 cat >>conftest.$ac_ext <<_ACEOF
19349 /* end confdefs.h.  */
19350 $ac_includes_default
19351 #include <$ac_header>
19352 _ACEOF
19353 rm -f conftest.$ac_objext
19354 if { (ac_try="$ac_compile"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19360   (eval "$ac_compile") 2>conftest.er1
19361   ac_status=$?
19362   grep -v '^ *+' conftest.er1 >conftest.err
19363   rm -f conftest.er1
19364   cat conftest.err >&5
19365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19366   (exit $ac_status); } && {
19367          test -z "$ac_c_werror_flag" ||
19368          test ! -s conftest.err
19369        } && test -s conftest.$ac_objext; then
19370   ac_header_compiler=yes
19371 else
19372   echo "$as_me: failed program was:" >&5
19373 sed 's/^/| /' conftest.$ac_ext >&5
19374
19375         ac_header_compiler=no
19376 fi
19377
19378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19380 echo "${ECHO_T}$ac_header_compiler" >&6; }
19381
19382 # Is the header present?
19383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19385 cat >conftest.$ac_ext <<_ACEOF
19386 /* confdefs.h.  */
19387 _ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h.  */
19391 #include <$ac_header>
19392 _ACEOF
19393 if { (ac_try="$ac_cpp conftest.$ac_ext"
19394 case "(($ac_try" in
19395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19396   *) ac_try_echo=$ac_try;;
19397 esac
19398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19399   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19400   ac_status=$?
19401   grep -v '^ *+' conftest.er1 >conftest.err
19402   rm -f conftest.er1
19403   cat conftest.err >&5
19404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405   (exit $ac_status); } >/dev/null && {
19406          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19407          test ! -s conftest.err
19408        }; then
19409   ac_header_preproc=yes
19410 else
19411   echo "$as_me: failed program was:" >&5
19412 sed 's/^/| /' conftest.$ac_ext >&5
19413
19414   ac_header_preproc=no
19415 fi
19416
19417 rm -f conftest.err conftest.$ac_ext
19418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19419 echo "${ECHO_T}$ac_header_preproc" >&6; }
19420
19421 # So?  What about this header?
19422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19423   yes:no: )
19424     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19426     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19428     ac_header_preproc=yes
19429     ;;
19430   no:yes:* )
19431     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19433     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19434 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19435     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19437     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19438 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19439     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19441     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19443     ( cat <<\_ASBOX
19444 ## --------------------------------------------- ##
19445 ## Report this to <http://www.openldap.org/its/> ##
19446 ## --------------------------------------------- ##
19447 _ASBOX
19448      ) | sed "s/^/$as_me: WARNING:     /" >&2
19449     ;;
19450 esac
19451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19454   echo $ECHO_N "(cached) $ECHO_C" >&6
19455 else
19456   eval "$as_ac_Header=\$ac_header_preproc"
19457 fi
19458 ac_res=`eval echo '${'$as_ac_Header'}'`
19459                { echo "$as_me:$LINENO: result: $ac_res" >&5
19460 echo "${ECHO_T}$ac_res" >&6; }
19461
19462 fi
19463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19464   cat >>confdefs.h <<_ACEOF
19465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19466 _ACEOF
19467
19468 fi
19469
19470 done
19471
19472                 if test $ac_cv_header_gssapi_h = yes ; then
19473                         ol_header_gssapi=yes
19474                 fi
19475
19476                                                                 saveLIBS="$LIBS"
19477                 LIBS="$LIBS $GSSAPI_LIBS"
19478
19479 for ac_func in gss_oid_to_str
19480 do
19481 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19482 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19483 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19484 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19485   echo $ECHO_N "(cached) $ECHO_C" >&6
19486 else
19487   cat >conftest.$ac_ext <<_ACEOF
19488 /* confdefs.h.  */
19489 _ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h.  */
19493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19494    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19495 #define $ac_func innocuous_$ac_func
19496
19497 /* System header to define __stub macros and hopefully few prototypes,
19498     which can conflict with char $ac_func (); below.
19499     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19500     <limits.h> exists even on freestanding compilers.  */
19501
19502 #ifdef __STDC__
19503 # include <limits.h>
19504 #else
19505 # include <assert.h>
19506 #endif
19507
19508 #undef $ac_func
19509
19510 /* Override any GCC internal prototype to avoid an error.
19511    Use char because int might match the return type of a GCC
19512    builtin and then its argument prototype would still apply.  */
19513 #ifdef __cplusplus
19514 extern "C"
19515 #endif
19516 char $ac_func ();
19517 /* The GNU C library defines this for functions which it implements
19518     to always fail with ENOSYS.  Some functions are actually named
19519     something starting with __ and the normal name is an alias.  */
19520 #if defined __stub_$ac_func || defined __stub___$ac_func
19521 choke me
19522 #endif
19523
19524 int
19525 main ()
19526 {
19527 return $ac_func ();
19528   ;
19529   return 0;
19530 }
19531 _ACEOF
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536   *) ac_try_echo=$ac_try;;
19537 esac
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539   (eval "$ac_link") 2>conftest.er1
19540   ac_status=$?
19541   grep -v '^ *+' conftest.er1 >conftest.err
19542   rm -f conftest.er1
19543   cat conftest.err >&5
19544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19545   (exit $ac_status); } && {
19546          test -z "$ac_c_werror_flag" ||
19547          test ! -s conftest.err
19548        } && test -s conftest$ac_exeext &&
19549        $as_test_x conftest$ac_exeext; then
19550   eval "$as_ac_var=yes"
19551 else
19552   echo "$as_me: failed program was:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19554
19555         eval "$as_ac_var=no"
19556 fi
19557
19558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19559       conftest$ac_exeext conftest.$ac_ext
19560 fi
19561 ac_res=`eval echo '${'$as_ac_var'}'`
19562                { echo "$as_me:$LINENO: result: $ac_res" >&5
19563 echo "${ECHO_T}$ac_res" >&6; }
19564 if test `eval echo '${'$as_ac_var'}'` = yes; then
19565   cat >>confdefs.h <<_ACEOF
19566 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19567 _ACEOF
19568
19569 fi
19570 done
19571
19572                 LIBS="$saveLIBS"
19573         fi
19574
19575         if test $ol_header_gssapi = yes ; then
19576                                                 { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi" >&5
19577 echo $ECHO_N "checking for gss_wrap in -lgssapi... $ECHO_C" >&6; }
19578 if test "${ac_cv_lib_gssapi_gss_wrap+set}" = set; then
19579   echo $ECHO_N "(cached) $ECHO_C" >&6
19580 else
19581   ac_check_lib_save_LIBS=$LIBS
19582 LIBS="-lgssapi  $LIBS"
19583 cat >conftest.$ac_ext <<_ACEOF
19584 /* confdefs.h.  */
19585 _ACEOF
19586 cat confdefs.h >>conftest.$ac_ext
19587 cat >>conftest.$ac_ext <<_ACEOF
19588 /* end confdefs.h.  */
19589
19590 /* Override any GCC internal prototype to avoid an error.
19591    Use char because int might match the return type of a GCC
19592    builtin and then its argument prototype would still apply.  */
19593 #ifdef __cplusplus
19594 extern "C"
19595 #endif
19596 char gss_wrap ();
19597 int
19598 main ()
19599 {
19600 return gss_wrap ();
19601   ;
19602   return 0;
19603 }
19604 _ACEOF
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
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_link") 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); } && {
19619          test -z "$ac_c_werror_flag" ||
19620          test ! -s conftest.err
19621        } && test -s conftest$ac_exeext &&
19622        $as_test_x conftest$ac_exeext; then
19623   ac_cv_lib_gssapi_gss_wrap=yes
19624 else
19625   echo "$as_me: failed program was:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19627
19628         ac_cv_lib_gssapi_gss_wrap=no
19629 fi
19630
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632       conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19634 fi
19635 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_wrap" >&5
19636 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_wrap" >&6; }
19637 if test $ac_cv_lib_gssapi_gss_wrap = yes; then
19638   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi"
19639 else
19640   ol_link_gssapi=no
19641 fi
19642
19643                 if test $ol_link_gssapi != yes ; then
19644                         { echo "$as_me:$LINENO: checking for gss_wrap in -lgssapi_krb5" >&5
19645 echo $ECHO_N "checking for gss_wrap in -lgssapi_krb5... $ECHO_C" >&6; }
19646 if test "${ac_cv_lib_gssapi_krb5_gss_wrap+set}" = set; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   ac_check_lib_save_LIBS=$LIBS
19650 LIBS="-lgssapi_krb5  $LIBS"
19651 cat >conftest.$ac_ext <<_ACEOF
19652 /* confdefs.h.  */
19653 _ACEOF
19654 cat confdefs.h >>conftest.$ac_ext
19655 cat >>conftest.$ac_ext <<_ACEOF
19656 /* end confdefs.h.  */
19657
19658 /* Override any GCC internal prototype to avoid an error.
19659    Use char because int might match the return type of a GCC
19660    builtin and then its argument prototype would still apply.  */
19661 #ifdef __cplusplus
19662 extern "C"
19663 #endif
19664 char gss_wrap ();
19665 int
19666 main ()
19667 {
19668 return gss_wrap ();
19669   ;
19670   return 0;
19671 }
19672 _ACEOF
19673 rm -f conftest.$ac_objext conftest$ac_exeext
19674 if { (ac_try="$ac_link"
19675 case "(($ac_try" in
19676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19677   *) ac_try_echo=$ac_try;;
19678 esac
19679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19680   (eval "$ac_link") 2>conftest.er1
19681   ac_status=$?
19682   grep -v '^ *+' conftest.er1 >conftest.err
19683   rm -f conftest.er1
19684   cat conftest.err >&5
19685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19686   (exit $ac_status); } && {
19687          test -z "$ac_c_werror_flag" ||
19688          test ! -s conftest.err
19689        } && test -s conftest$ac_exeext &&
19690        $as_test_x conftest$ac_exeext; then
19691   ac_cv_lib_gssapi_krb5_gss_wrap=yes
19692 else
19693   echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19695
19696         ac_cv_lib_gssapi_krb5_gss_wrap=no
19697 fi
19698
19699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19700       conftest$ac_exeext conftest.$ac_ext
19701 LIBS=$ac_check_lib_save_LIBS
19702 fi
19703 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_wrap" >&5
19704 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_wrap" >&6; }
19705 if test $ac_cv_lib_gssapi_krb5_gss_wrap = yes; then
19706   ol_link_gssapi=yes;GSSAPI_LIBS="-lgssapi_krb5"
19707 else
19708   ol_link_gssapi=no
19709 fi
19710
19711                 fi
19712                 if test $ol_link_gssapi != yes ; then
19713                         { echo "$as_me:$LINENO: checking for gss_wrap in -lgss" >&5
19714 echo $ECHO_N "checking for gss_wrap in -lgss... $ECHO_C" >&6; }
19715 if test "${ac_cv_lib_gss_gss_wrap+set}" = set; then
19716   echo $ECHO_N "(cached) $ECHO_C" >&6
19717 else
19718   ac_check_lib_save_LIBS=$LIBS
19719 LIBS="-lgss  $LIBS"
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h.  */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h.  */
19726
19727 /* Override any GCC internal prototype to avoid an error.
19728    Use char because int might match the return type of a GCC
19729    builtin and then its argument prototype would still apply.  */
19730 #ifdef __cplusplus
19731 extern "C"
19732 #endif
19733 char gss_wrap ();
19734 int
19735 main ()
19736 {
19737 return gss_wrap ();
19738   ;
19739   return 0;
19740 }
19741 _ACEOF
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (ac_try="$ac_link"
19744 case "(($ac_try" in
19745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19746   *) ac_try_echo=$ac_try;;
19747 esac
19748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19749   (eval "$ac_link") 2>conftest.er1
19750   ac_status=$?
19751   grep -v '^ *+' conftest.er1 >conftest.err
19752   rm -f conftest.er1
19753   cat conftest.err >&5
19754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755   (exit $ac_status); } && {
19756          test -z "$ac_c_werror_flag" ||
19757          test ! -s conftest.err
19758        } && test -s conftest$ac_exeext &&
19759        $as_test_x conftest$ac_exeext; then
19760   ac_cv_lib_gss_gss_wrap=yes
19761 else
19762   echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765         ac_cv_lib_gss_gss_wrap=no
19766 fi
19767
19768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19769       conftest$ac_exeext conftest.$ac_ext
19770 LIBS=$ac_check_lib_save_LIBS
19771 fi
19772 { echo "$as_me:$LINENO: result: $ac_cv_lib_gss_gss_wrap" >&5
19773 echo "${ECHO_T}$ac_cv_lib_gss_gss_wrap" >&6; }
19774 if test $ac_cv_lib_gss_gss_wrap = yes; then
19775   ol_link_gssapi=yes;GSSAPI_LIBS="-lgss"
19776 else
19777   ol_link_gssapi=no
19778 fi
19779
19780                 fi
19781         fi
19782
19783         ;;
19784 esac
19785
19786 WITH_GSSAPI=no
19787 if test $ol_link_gssapi = yes; then
19788
19789 cat >>confdefs.h <<\_ACEOF
19790 #define HAVE_GSSAPI 1
19791 _ACEOF
19792
19793         WITH_GSSAPI=yes
19794 elif test $ol_with_gssapi = auto ; then
19795         { echo "$as_me:$LINENO: WARNING: Could not locate GSSAPI package" >&5
19796 echo "$as_me: WARNING: Could not locate GSSAPI package" >&2;}
19797         { echo "$as_me:$LINENO: WARNING: GSSAPI authentication not supported!" >&5
19798 echo "$as_me: WARNING: GSSAPI authentication not supported!" >&2;}
19799 elif test $ol_with_gssapi = yes ; then
19800         { { echo "$as_me:$LINENO: error: GSSAPI detection failed" >&5
19801 echo "$as_me: error: GSSAPI detection failed" >&2;}
19802    { (exit 1); exit 1; }; }
19803 fi
19804
19805
19806 if test $ol_with_tls = yes ; then
19807         ol_with_tls=auto
19808 fi
19809
19810 ol_link_tls=no
19811 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19812
19813 for ac_header in openssl/ssl.h
19814 do
19815 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19817   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19820   echo $ECHO_N "(cached) $ECHO_C" >&6
19821 fi
19822 ac_res=`eval echo '${'$as_ac_Header'}'`
19823                { echo "$as_me:$LINENO: result: $ac_res" >&5
19824 echo "${ECHO_T}$ac_res" >&6; }
19825 else
19826   # Is the header compilable?
19827 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19829 cat >conftest.$ac_ext <<_ACEOF
19830 /* confdefs.h.  */
19831 _ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h.  */
19835 $ac_includes_default
19836 #include <$ac_header>
19837 _ACEOF
19838 rm -f conftest.$ac_objext
19839 if { (ac_try="$ac_compile"
19840 case "(($ac_try" in
19841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842   *) ac_try_echo=$ac_try;;
19843 esac
19844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19845   (eval "$ac_compile") 2>conftest.er1
19846   ac_status=$?
19847   grep -v '^ *+' conftest.er1 >conftest.err
19848   rm -f conftest.er1
19849   cat conftest.err >&5
19850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19851   (exit $ac_status); } && {
19852          test -z "$ac_c_werror_flag" ||
19853          test ! -s conftest.err
19854        } && test -s conftest.$ac_objext; then
19855   ac_header_compiler=yes
19856 else
19857   echo "$as_me: failed program was:" >&5
19858 sed 's/^/| /' conftest.$ac_ext >&5
19859
19860         ac_header_compiler=no
19861 fi
19862
19863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19865 echo "${ECHO_T}$ac_header_compiler" >&6; }
19866
19867 # Is the header present?
19868 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19869 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19870 cat >conftest.$ac_ext <<_ACEOF
19871 /* confdefs.h.  */
19872 _ACEOF
19873 cat confdefs.h >>conftest.$ac_ext
19874 cat >>conftest.$ac_ext <<_ACEOF
19875 /* end confdefs.h.  */
19876 #include <$ac_header>
19877 _ACEOF
19878 if { (ac_try="$ac_cpp conftest.$ac_ext"
19879 case "(($ac_try" in
19880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19881   *) ac_try_echo=$ac_try;;
19882 esac
19883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19884   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19885   ac_status=$?
19886   grep -v '^ *+' conftest.er1 >conftest.err
19887   rm -f conftest.er1
19888   cat conftest.err >&5
19889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19890   (exit $ac_status); } >/dev/null && {
19891          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19892          test ! -s conftest.err
19893        }; then
19894   ac_header_preproc=yes
19895 else
19896   echo "$as_me: failed program was:" >&5
19897 sed 's/^/| /' conftest.$ac_ext >&5
19898
19899   ac_header_preproc=no
19900 fi
19901
19902 rm -f conftest.err conftest.$ac_ext
19903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19904 echo "${ECHO_T}$ac_header_preproc" >&6; }
19905
19906 # So?  What about this header?
19907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19908   yes:no: )
19909     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19911     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19913     ac_header_preproc=yes
19914     ;;
19915   no:yes:* )
19916     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19918     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19919 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19920     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19922     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19923 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19924     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19926     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19928     ( cat <<\_ASBOX
19929 ## --------------------------------------------- ##
19930 ## Report this to <http://www.openldap.org/its/> ##
19931 ## --------------------------------------------- ##
19932 _ASBOX
19933      ) | sed "s/^/$as_me: WARNING:     /" >&2
19934     ;;
19935 esac
19936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19939   echo $ECHO_N "(cached) $ECHO_C" >&6
19940 else
19941   eval "$as_ac_Header=\$ac_header_preproc"
19942 fi
19943 ac_res=`eval echo '${'$as_ac_Header'}'`
19944                { echo "$as_me:$LINENO: result: $ac_res" >&5
19945 echo "${ECHO_T}$ac_res" >&6; }
19946
19947 fi
19948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19949   cat >>confdefs.h <<_ACEOF
19950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19951 _ACEOF
19952
19953 fi
19954
19955 done
19956
19957
19958         if test $ac_cv_header_openssl_ssl_h = yes ; then
19959                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19960 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19961 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19962   echo $ECHO_N "(cached) $ECHO_C" >&6
19963 else
19964   ac_check_lib_save_LIBS=$LIBS
19965 LIBS="-lssl -lcrypto $LIBS"
19966 cat >conftest.$ac_ext <<_ACEOF
19967 /* confdefs.h.  */
19968 _ACEOF
19969 cat confdefs.h >>conftest.$ac_ext
19970 cat >>conftest.$ac_ext <<_ACEOF
19971 /* end confdefs.h.  */
19972
19973 /* Override any GCC internal prototype to avoid an error.
19974    Use char because int might match the return type of a GCC
19975    builtin and then its argument prototype would still apply.  */
19976 #ifdef __cplusplus
19977 extern "C"
19978 #endif
19979 char SSL_library_init ();
19980 int
19981 main ()
19982 {
19983 return SSL_library_init ();
19984   ;
19985   return 0;
19986 }
19987 _ACEOF
19988 rm -f conftest.$ac_objext conftest$ac_exeext
19989 if { (ac_try="$ac_link"
19990 case "(($ac_try" in
19991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992   *) ac_try_echo=$ac_try;;
19993 esac
19994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19995   (eval "$ac_link") 2>conftest.er1
19996   ac_status=$?
19997   grep -v '^ *+' conftest.er1 >conftest.err
19998   rm -f conftest.er1
19999   cat conftest.err >&5
20000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20001   (exit $ac_status); } && {
20002          test -z "$ac_c_werror_flag" ||
20003          test ! -s conftest.err
20004        } && test -s conftest$ac_exeext &&
20005        $as_test_x conftest$ac_exeext; then
20006   ac_cv_lib_ssl_SSL_library_init=yes
20007 else
20008   echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011         ac_cv_lib_ssl_SSL_library_init=no
20012 fi
20013
20014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20015       conftest$ac_exeext conftest.$ac_ext
20016 LIBS=$ac_check_lib_save_LIBS
20017 fi
20018 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
20019 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
20020 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
20021   have_openssl=yes
20022                         need_rsaref=no
20023 else
20024   have_openssl=no
20025 fi
20026
20027
20028                 if test $have_openssl = no ; then
20029                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
20030 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
20031 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
20032   echo $ECHO_N "(cached) $ECHO_C" >&6
20033 else
20034   ac_check_lib_save_LIBS=$LIBS
20035 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
20036 cat >conftest.$ac_ext <<_ACEOF
20037 /* confdefs.h.  */
20038 _ACEOF
20039 cat confdefs.h >>conftest.$ac_ext
20040 cat >>conftest.$ac_ext <<_ACEOF
20041 /* end confdefs.h.  */
20042
20043 /* Override any GCC internal prototype to avoid an error.
20044    Use char because int might match the return type of a GCC
20045    builtin and then its argument prototype would still apply.  */
20046 #ifdef __cplusplus
20047 extern "C"
20048 #endif
20049 char ssl3_accept ();
20050 int
20051 main ()
20052 {
20053 return ssl3_accept ();
20054   ;
20055   return 0;
20056 }
20057 _ACEOF
20058 rm -f conftest.$ac_objext conftest$ac_exeext
20059 if { (ac_try="$ac_link"
20060 case "(($ac_try" in
20061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20062   *) ac_try_echo=$ac_try;;
20063 esac
20064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20065   (eval "$ac_link") 2>conftest.er1
20066   ac_status=$?
20067   grep -v '^ *+' conftest.er1 >conftest.err
20068   rm -f conftest.er1
20069   cat conftest.err >&5
20070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071   (exit $ac_status); } && {
20072          test -z "$ac_c_werror_flag" ||
20073          test ! -s conftest.err
20074        } && test -s conftest$ac_exeext &&
20075        $as_test_x conftest$ac_exeext; then
20076   ac_cv_lib_ssl_ssl3_accept=yes
20077 else
20078   echo "$as_me: failed program was:" >&5
20079 sed 's/^/| /' conftest.$ac_ext >&5
20080
20081         ac_cv_lib_ssl_ssl3_accept=no
20082 fi
20083
20084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20085       conftest$ac_exeext conftest.$ac_ext
20086 LIBS=$ac_check_lib_save_LIBS
20087 fi
20088 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
20089 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
20090 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
20091   have_openssl=yes
20092                                 need_rsaref=yes
20093 else
20094   have_openssl=no
20095 fi
20096
20097                 fi
20098
20099                 if test $have_openssl = yes ; then
20100                         ol_with_tls=openssl
20101                         ol_link_tls=yes
20102
20103
20104 cat >>confdefs.h <<\_ACEOF
20105 #define HAVE_OPENSSL 1
20106 _ACEOF
20107
20108
20109                         if test $need_rsaref = yes; then
20110
20111 cat >>confdefs.h <<\_ACEOF
20112 #define HAVE_RSAREF 1
20113 _ACEOF
20114
20115
20116                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
20117                         else
20118                                 TLS_LIBS="-lssl -lcrypto"
20119                         fi
20120
20121                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
20122 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
20123 if test "${ol_cv_ssl_crl_compat+set}" = set; then
20124   echo $ECHO_N "(cached) $ECHO_C" >&6
20125 else
20126
20127                 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h.  */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h.  */
20133
20134 #ifdef HAVE_OPENSSL_SSL_H
20135 #include <openssl/ssl.h>
20136 #endif
20137
20138 /* Require 0.9.7d+ */
20139 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
20140         char *__ssl_compat = "0.9.7d";
20141 #endif
20142
20143 _ACEOF
20144 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20145   $EGREP "__ssl_compat" >/dev/null 2>&1; then
20146   ol_cv_ssl_crl_compat=yes
20147 else
20148   ol_cv_ssl_crl_compat=no
20149 fi
20150 rm -f conftest*
20151
20152 fi
20153 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
20154 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
20155
20156                         if test $ol_cv_ssl_crl_compat = yes ; then
20157
20158 cat >>confdefs.h <<\_ACEOF
20159 #define HAVE_OPENSSL_CRL 1
20160 _ACEOF
20161
20162                         fi
20163                 fi
20164         fi
20165 fi
20166
20167 if test $ol_link_tls = no ; then
20168         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
20169
20170 for ac_header in gnutls/gnutls.h
20171 do
20172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20174   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20177   echo $ECHO_N "(cached) $ECHO_C" >&6
20178 fi
20179 ac_res=`eval echo '${'$as_ac_Header'}'`
20180                { echo "$as_me:$LINENO: result: $ac_res" >&5
20181 echo "${ECHO_T}$ac_res" >&6; }
20182 else
20183   # Is the header compilable?
20184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20187 /* confdefs.h.  */
20188 _ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h.  */
20192 $ac_includes_default
20193 #include <$ac_header>
20194 _ACEOF
20195 rm -f conftest.$ac_objext
20196 if { (ac_try="$ac_compile"
20197 case "(($ac_try" in
20198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199   *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202   (eval "$ac_compile") 2>conftest.er1
20203   ac_status=$?
20204   grep -v '^ *+' conftest.er1 >conftest.err
20205   rm -f conftest.er1
20206   cat conftest.err >&5
20207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20208   (exit $ac_status); } && {
20209          test -z "$ac_c_werror_flag" ||
20210          test ! -s conftest.err
20211        } && test -s conftest.$ac_objext; then
20212   ac_header_compiler=yes
20213 else
20214   echo "$as_me: failed program was:" >&5
20215 sed 's/^/| /' conftest.$ac_ext >&5
20216
20217         ac_header_compiler=no
20218 fi
20219
20220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20222 echo "${ECHO_T}$ac_header_compiler" >&6; }
20223
20224 # Is the header present?
20225 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20227 cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 #include <$ac_header>
20234 _ACEOF
20235 if { (ac_try="$ac_cpp conftest.$ac_ext"
20236 case "(($ac_try" in
20237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238   *) ac_try_echo=$ac_try;;
20239 esac
20240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20241   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20242   ac_status=$?
20243   grep -v '^ *+' conftest.er1 >conftest.err
20244   rm -f conftest.er1
20245   cat conftest.err >&5
20246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20247   (exit $ac_status); } >/dev/null && {
20248          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20249          test ! -s conftest.err
20250        }; then
20251   ac_header_preproc=yes
20252 else
20253   echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20255
20256   ac_header_preproc=no
20257 fi
20258
20259 rm -f conftest.err conftest.$ac_ext
20260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20261 echo "${ECHO_T}$ac_header_preproc" >&6; }
20262
20263 # So?  What about this header?
20264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20265   yes:no: )
20266     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20267 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20268     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20269 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20270     ac_header_preproc=yes
20271     ;;
20272   no:yes:* )
20273     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20274 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20275     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20276 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20277     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20278 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20279     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20280 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20281     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20282 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20283     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20284 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20285     ( cat <<\_ASBOX
20286 ## --------------------------------------------- ##
20287 ## Report this to <http://www.openldap.org/its/> ##
20288 ## --------------------------------------------- ##
20289 _ASBOX
20290      ) | sed "s/^/$as_me: WARNING:     /" >&2
20291     ;;
20292 esac
20293 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20294 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20295 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20296   echo $ECHO_N "(cached) $ECHO_C" >&6
20297 else
20298   eval "$as_ac_Header=\$ac_header_preproc"
20299 fi
20300 ac_res=`eval echo '${'$as_ac_Header'}'`
20301                { echo "$as_me:$LINENO: result: $ac_res" >&5
20302 echo "${ECHO_T}$ac_res" >&6; }
20303
20304 fi
20305 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20306   cat >>confdefs.h <<_ACEOF
20307 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20308 _ACEOF
20309
20310 fi
20311
20312 done
20313
20314
20315                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
20316                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
20317 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
20318 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
20319   echo $ECHO_N "(cached) $ECHO_C" >&6
20320 else
20321   ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lgnutls  $LIBS"
20323 cat >conftest.$ac_ext <<_ACEOF
20324 /* confdefs.h.  */
20325 _ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h.  */
20329
20330 /* Override any GCC internal prototype to avoid an error.
20331    Use char because int might match the return type of a GCC
20332    builtin and then its argument prototype would still apply.  */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char gnutls_init ();
20337 int
20338 main ()
20339 {
20340 return gnutls_init ();
20341   ;
20342   return 0;
20343 }
20344 _ACEOF
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349   *) ac_try_echo=$ac_try;;
20350 esac
20351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20352   (eval "$ac_link") 2>conftest.er1
20353   ac_status=$?
20354   grep -v '^ *+' conftest.er1 >conftest.err
20355   rm -f conftest.er1
20356   cat conftest.err >&5
20357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20358   (exit $ac_status); } && {
20359          test -z "$ac_c_werror_flag" ||
20360          test ! -s conftest.err
20361        } && test -s conftest$ac_exeext &&
20362        $as_test_x conftest$ac_exeext; then
20363   ac_cv_lib_gnutls_gnutls_init=yes
20364 else
20365   echo "$as_me: failed program was:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20367
20368         ac_cv_lib_gnutls_gnutls_init=no
20369 fi
20370
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372       conftest$ac_exeext conftest.$ac_ext
20373 LIBS=$ac_check_lib_save_LIBS
20374 fi
20375 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
20376 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
20377 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
20378   have_gnutls=yes
20379 else
20380   have_gnutls=no
20381 fi
20382
20383
20384                         if test $have_gnutls = yes ; then
20385                                 ol_with_tls=gnutls
20386                                 ol_link_tls=yes
20387
20388                                 TLS_LIBS="-lgnutls"
20389
20390
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_GNUTLS 1
20393 _ACEOF
20394
20395                         fi
20396                 fi
20397         fi
20398 fi
20399
20400 WITH_TLS=no
20401 if test $ol_link_tls = yes ; then
20402
20403 cat >>confdefs.h <<\_ACEOF
20404 #define HAVE_TLS 1
20405 _ACEOF
20406
20407         WITH_TLS=yes
20408 elif test $ol_with_tls = auto ; then
20409         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20410 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20411         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20412 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20413 elif test $ol_with_tls != no ; then
20414         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20415 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20416    { (exit 1); exit 1; }; }
20417 else
20418         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20419 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20420 fi
20421
20422 if test $ol_enable_lmpasswd != no; then
20423         if test $ol_link_tls != yes ; then
20424                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20425 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20426    { (exit 1); exit 1; }; }
20427         fi
20428
20429
20430 cat >>confdefs.h <<\_ACEOF
20431 #define SLAPD_LMHASH 1
20432 _ACEOF
20433
20434 fi
20435
20436 ol_link_threads=no
20437
20438 case $ol_with_threads in auto | yes | nt)
20439
20440
20441         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20442 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20443 if test "${ac_cv_func__beginthread+set}" = set; then
20444   echo $ECHO_N "(cached) $ECHO_C" >&6
20445 else
20446   cat >conftest.$ac_ext <<_ACEOF
20447 /* confdefs.h.  */
20448 _ACEOF
20449 cat confdefs.h >>conftest.$ac_ext
20450 cat >>conftest.$ac_ext <<_ACEOF
20451 /* end confdefs.h.  */
20452 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20454 #define _beginthread innocuous__beginthread
20455
20456 /* System header to define __stub macros and hopefully few prototypes,
20457     which can conflict with char _beginthread (); below.
20458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20459     <limits.h> exists even on freestanding compilers.  */
20460
20461 #ifdef __STDC__
20462 # include <limits.h>
20463 #else
20464 # include <assert.h>
20465 #endif
20466
20467 #undef _beginthread
20468
20469 /* Override any GCC internal prototype to avoid an error.
20470    Use char because int might match the return type of a GCC
20471    builtin and then its argument prototype would still apply.  */
20472 #ifdef __cplusplus
20473 extern "C"
20474 #endif
20475 char _beginthread ();
20476 /* The GNU C library defines this for functions which it implements
20477     to always fail with ENOSYS.  Some functions are actually named
20478     something starting with __ and the normal name is an alias.  */
20479 #if defined __stub__beginthread || defined __stub____beginthread
20480 choke me
20481 #endif
20482
20483 int
20484 main ()
20485 {
20486 return _beginthread ();
20487   ;
20488   return 0;
20489 }
20490 _ACEOF
20491 rm -f conftest.$ac_objext conftest$ac_exeext
20492 if { (ac_try="$ac_link"
20493 case "(($ac_try" in
20494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20495   *) ac_try_echo=$ac_try;;
20496 esac
20497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20498   (eval "$ac_link") 2>conftest.er1
20499   ac_status=$?
20500   grep -v '^ *+' conftest.er1 >conftest.err
20501   rm -f conftest.er1
20502   cat conftest.err >&5
20503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20504   (exit $ac_status); } && {
20505          test -z "$ac_c_werror_flag" ||
20506          test ! -s conftest.err
20507        } && test -s conftest$ac_exeext &&
20508        $as_test_x conftest$ac_exeext; then
20509   ac_cv_func__beginthread=yes
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514         ac_cv_func__beginthread=no
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20518       conftest$ac_exeext conftest.$ac_ext
20519 fi
20520 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20521 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20522
20523
20524         if test $ac_cv_func__beginthread = yes ; then
20525
20526 cat >>confdefs.h <<\_ACEOF
20527 #define HAVE_NT_THREADS 1
20528 _ACEOF
20529
20530                 ol_cv_nt_threads=yes
20531         fi
20532
20533
20534         if test "$ol_cv_nt_threads" = yes ; then
20535                 ol_link_threads=nt
20536                 ol_with_threads=found
20537                 ol_with_yielding_select=yes
20538
20539
20540 cat >>confdefs.h <<\_ACEOF
20541 #define HAVE_NT_SERVICE_MANAGER 1
20542 _ACEOF
20543
20544
20545 cat >>confdefs.h <<\_ACEOF
20546 #define HAVE_NT_EVENT_LOG 1
20547 _ACEOF
20548
20549         fi
20550
20551         if test $ol_with_threads = nt ; then
20552                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20553 echo "$as_me: error: could not locate NT Threads" >&2;}
20554    { (exit 1); exit 1; }; }
20555         fi
20556         ;;
20557 esac
20558
20559 case $ol_with_threads in auto | yes | posix)
20560
20561
20562 for ac_header in pthread.h
20563 do
20564 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20566   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20569   echo $ECHO_N "(cached) $ECHO_C" >&6
20570 fi
20571 ac_res=`eval echo '${'$as_ac_Header'}'`
20572                { echo "$as_me:$LINENO: result: $ac_res" >&5
20573 echo "${ECHO_T}$ac_res" >&6; }
20574 else
20575   # Is the header compilable?
20576 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20578 cat >conftest.$ac_ext <<_ACEOF
20579 /* confdefs.h.  */
20580 _ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h.  */
20584 $ac_includes_default
20585 #include <$ac_header>
20586 _ACEOF
20587 rm -f conftest.$ac_objext
20588 if { (ac_try="$ac_compile"
20589 case "(($ac_try" in
20590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20591   *) ac_try_echo=$ac_try;;
20592 esac
20593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20594   (eval "$ac_compile") 2>conftest.er1
20595   ac_status=$?
20596   grep -v '^ *+' conftest.er1 >conftest.err
20597   rm -f conftest.er1
20598   cat conftest.err >&5
20599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20600   (exit $ac_status); } && {
20601          test -z "$ac_c_werror_flag" ||
20602          test ! -s conftest.err
20603        } && test -s conftest.$ac_objext; then
20604   ac_header_compiler=yes
20605 else
20606   echo "$as_me: failed program was:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20608
20609         ac_header_compiler=no
20610 fi
20611
20612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20613 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20614 echo "${ECHO_T}$ac_header_compiler" >&6; }
20615
20616 # Is the header present?
20617 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20618 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20619 cat >conftest.$ac_ext <<_ACEOF
20620 /* confdefs.h.  */
20621 _ACEOF
20622 cat confdefs.h >>conftest.$ac_ext
20623 cat >>conftest.$ac_ext <<_ACEOF
20624 /* end confdefs.h.  */
20625 #include <$ac_header>
20626 _ACEOF
20627 if { (ac_try="$ac_cpp conftest.$ac_ext"
20628 case "(($ac_try" in
20629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630   *) ac_try_echo=$ac_try;;
20631 esac
20632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20633   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20634   ac_status=$?
20635   grep -v '^ *+' conftest.er1 >conftest.err
20636   rm -f conftest.er1
20637   cat conftest.err >&5
20638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20639   (exit $ac_status); } >/dev/null && {
20640          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20641          test ! -s conftest.err
20642        }; then
20643   ac_header_preproc=yes
20644 else
20645   echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648   ac_header_preproc=no
20649 fi
20650
20651 rm -f conftest.err conftest.$ac_ext
20652 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20653 echo "${ECHO_T}$ac_header_preproc" >&6; }
20654
20655 # So?  What about this header?
20656 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20657   yes:no: )
20658     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20659 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20660     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20661 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20662     ac_header_preproc=yes
20663     ;;
20664   no:yes:* )
20665     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20666 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20667     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20668 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20669     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20670 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20671     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20672 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20673     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20674 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20675     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20676 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20677     ( cat <<\_ASBOX
20678 ## --------------------------------------------- ##
20679 ## Report this to <http://www.openldap.org/its/> ##
20680 ## --------------------------------------------- ##
20681 _ASBOX
20682      ) | sed "s/^/$as_me: WARNING:     /" >&2
20683     ;;
20684 esac
20685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20688   echo $ECHO_N "(cached) $ECHO_C" >&6
20689 else
20690   eval "$as_ac_Header=\$ac_header_preproc"
20691 fi
20692 ac_res=`eval echo '${'$as_ac_Header'}'`
20693                { echo "$as_me:$LINENO: result: $ac_res" >&5
20694 echo "${ECHO_T}$ac_res" >&6; }
20695
20696 fi
20697 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20698   cat >>confdefs.h <<_ACEOF
20699 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20700 _ACEOF
20701
20702 fi
20703
20704 done
20705
20706
20707         if test $ac_cv_header_pthread_h = yes ; then
20708                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20709 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20710 if test "${ol_cv_pthread_version+set}" = set; then
20711   echo $ECHO_N "(cached) $ECHO_C" >&6
20712 else
20713
20714         cat >conftest.$ac_ext <<_ACEOF
20715 /* confdefs.h.  */
20716 _ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h.  */
20720
20721 #               include <pthread.h>
20722
20723 int
20724 main ()
20725 {
20726
20727                 int i = PTHREAD_CREATE_JOINABLE;
20728
20729   ;
20730   return 0;
20731 }
20732 _ACEOF
20733 rm -f conftest.$ac_objext
20734 if { (ac_try="$ac_compile"
20735 case "(($ac_try" in
20736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737   *) ac_try_echo=$ac_try;;
20738 esac
20739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20740   (eval "$ac_compile") 2>conftest.er1
20741   ac_status=$?
20742   grep -v '^ *+' conftest.er1 >conftest.err
20743   rm -f conftest.er1
20744   cat conftest.err >&5
20745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746   (exit $ac_status); } && {
20747          test -z "$ac_c_werror_flag" ||
20748          test ! -s conftest.err
20749        } && test -s conftest.$ac_objext; then
20750
20751         cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h.  */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h.  */
20757 #include <pthread.h>
20758
20759 _ACEOF
20760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20761   $EGREP "pthread_detach" >/dev/null 2>&1; then
20762   ol_cv_pthread_version=10
20763 else
20764   ol_cv_pthread_version=8
20765 fi
20766 rm -f conftest*
20767
20768 else
20769   echo "$as_me: failed program was:" >&5
20770 sed 's/^/| /' conftest.$ac_ext >&5
20771
20772
20773         cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h.  */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h.  */
20779
20780 #               include <pthread.h>
20781 #               ifdef PTHREAD_CREATE_UNDETACHED
20782                 draft7
20783 #               endif
20784
20785 _ACEOF
20786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20787   $EGREP "draft7" >/dev/null 2>&1; then
20788   ol_cv_pthread_version=7
20789 else
20790
20791         cat >conftest.$ac_ext <<_ACEOF
20792 /* confdefs.h.  */
20793 _ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h.  */
20797 #include <pthread.h>
20798
20799 _ACEOF
20800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20801   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20802   ol_cv_pthread_version=6
20803 else
20804
20805         cat >conftest.$ac_ext <<_ACEOF
20806 /* confdefs.h.  */
20807 _ACEOF
20808 cat confdefs.h >>conftest.$ac_ext
20809 cat >>conftest.$ac_ext <<_ACEOF
20810 /* end confdefs.h.  */
20811
20812 #               include <pthread.h>
20813 #ifdef          PTHREAD_MUTEX_INITIALIZER
20814                 draft5
20815 #endif
20816
20817 _ACEOF
20818 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20819   $EGREP "draft5" >/dev/null 2>&1; then
20820   ol_cv_pthread_version=5
20821 else
20822   ol_cv_pthread_version=4
20823 fi
20824 rm -f conftest*
20825
20826 fi
20827 rm -f conftest*
20828
20829 fi
20830 rm -f conftest*
20831
20832 fi
20833
20834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20835
20836 fi
20837 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20838 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20839
20840
20841                 if test $ol_cv_pthread_version != 0 ; then
20842
20843 cat >>confdefs.h <<_ACEOF
20844 #define HAVE_PTHREADS $ol_cv_pthread_version
20845 _ACEOF
20846
20847                 else
20848                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20849 echo "$as_me: error: unknown pthread version" >&2;}
20850    { (exit 1); exit 1; }; }
20851                 fi
20852
20853                 # consider threads found
20854                 ol_with_threads=found
20855
20856
20857         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20858 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20859 if test "${ol_cv_header_linux_threads+set}" = set; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   cat >conftest.$ac_ext <<_ACEOF
20863 /* confdefs.h.  */
20864 _ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h.  */
20868 #include <pthread.h>
20869 _ACEOF
20870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20871   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20872   ol_cv_header_linux_threads=yes
20873 else
20874   ol_cv_header_linux_threads=no
20875 fi
20876 rm -f conftest*
20877
20878
20879 fi
20880 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20881 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20882         if test $ol_cv_header_linux_threads = yes; then
20883
20884 cat >>confdefs.h <<\_ACEOF
20885 #define HAVE_LINUX_THREADS 1
20886 _ACEOF
20887
20888         fi
20889
20890
20891         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20892 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20893 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20894   echo $ECHO_N "(cached) $ECHO_C" >&6
20895 else
20896   cat >conftest.$ac_ext <<_ACEOF
20897 /* confdefs.h.  */
20898 _ACEOF
20899 cat confdefs.h >>conftest.$ac_ext
20900 cat >>conftest.$ac_ext <<_ACEOF
20901 /* end confdefs.h.  */
20902 #include <pthread.h>
20903 #ifdef _POSIX_THREAD_IS_GNU_PTH
20904         __gnu_pth__;
20905 #endif
20906
20907 _ACEOF
20908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20909   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20910   ol_cv_header_gnu_pth_pthread_h=yes
20911 else
20912   ol_cv_header_gnu_pth_pthread_h=no
20913 fi
20914 rm -f conftest*
20915
20916
20917 fi
20918 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20919 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20920
20921
20922                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20923
20924 for ac_header in sched.h
20925 do
20926 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20928   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20931   echo $ECHO_N "(cached) $ECHO_C" >&6
20932 fi
20933 ac_res=`eval echo '${'$as_ac_Header'}'`
20934                { echo "$as_me:$LINENO: result: $ac_res" >&5
20935 echo "${ECHO_T}$ac_res" >&6; }
20936 else
20937   # Is the header compilable?
20938 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20939 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20940 cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 $ac_includes_default
20947 #include <$ac_header>
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && {
20963          test -z "$ac_c_werror_flag" ||
20964          test ! -s conftest.err
20965        } && test -s conftest.$ac_objext; then
20966   ac_header_compiler=yes
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         ac_header_compiler=no
20972 fi
20973
20974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20975 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20976 echo "${ECHO_T}$ac_header_compiler" >&6; }
20977
20978 # Is the header present?
20979 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20980 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20981 cat >conftest.$ac_ext <<_ACEOF
20982 /* confdefs.h.  */
20983 _ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h.  */
20987 #include <$ac_header>
20988 _ACEOF
20989 if { (ac_try="$ac_cpp conftest.$ac_ext"
20990 case "(($ac_try" in
20991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992   *) ac_try_echo=$ac_try;;
20993 esac
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20996   ac_status=$?
20997   grep -v '^ *+' conftest.er1 >conftest.err
20998   rm -f conftest.er1
20999   cat conftest.err >&5
21000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21001   (exit $ac_status); } >/dev/null && {
21002          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21003          test ! -s conftest.err
21004        }; then
21005   ac_header_preproc=yes
21006 else
21007   echo "$as_me: failed program was:" >&5
21008 sed 's/^/| /' conftest.$ac_ext >&5
21009
21010   ac_header_preproc=no
21011 fi
21012
21013 rm -f conftest.err conftest.$ac_ext
21014 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21015 echo "${ECHO_T}$ac_header_preproc" >&6; }
21016
21017 # So?  What about this header?
21018 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21019   yes:no: )
21020     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21021 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21022     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21023 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21024     ac_header_preproc=yes
21025     ;;
21026   no:yes:* )
21027     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21028 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21029     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21030 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21031     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21032 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21033     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21034 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21035     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21036 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21037     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21038 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21039     ( cat <<\_ASBOX
21040 ## --------------------------------------------- ##
21041 ## Report this to <http://www.openldap.org/its/> ##
21042 ## --------------------------------------------- ##
21043 _ASBOX
21044      ) | sed "s/^/$as_me: WARNING:     /" >&2
21045     ;;
21046 esac
21047 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21048 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21050   echo $ECHO_N "(cached) $ECHO_C" >&6
21051 else
21052   eval "$as_ac_Header=\$ac_header_preproc"
21053 fi
21054 ac_res=`eval echo '${'$as_ac_Header'}'`
21055                { echo "$as_me:$LINENO: result: $ac_res" >&5
21056 echo "${ECHO_T}$ac_res" >&6; }
21057
21058 fi
21059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21060   cat >>confdefs.h <<_ACEOF
21061 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21062 _ACEOF
21063
21064 fi
21065
21066 done
21067
21068                 fi
21069
21070
21071                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
21072 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
21073 if test "${ol_cv_pthread_create+set}" = set; then
21074   echo $ECHO_N "(cached) $ECHO_C" >&6
21075 else
21076
21077                         if test "$cross_compiling" = yes; then
21078   cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h.  */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h.  */
21084
21085 /* pthread test headers */
21086 #include <pthread.h>
21087 #if HAVE_PTHREADS < 7
21088 #include <errno.h>
21089 #endif
21090 #ifndef NULL
21091 #define NULL (void*)0
21092 #endif
21093
21094 static void *task(p)
21095         void *p;
21096 {
21097         return (void *) (p == NULL);
21098 }
21099
21100 int
21101 main ()
21102 {
21103
21104         /* pthread test function */
21105 #ifndef PTHREAD_CREATE_DETACHED
21106 #define PTHREAD_CREATE_DETACHED 1
21107 #endif
21108         pthread_t t;
21109         int status;
21110         int detach = PTHREAD_CREATE_DETACHED;
21111
21112 #if HAVE_PTHREADS > 4
21113         /* Final pthreads */
21114         pthread_attr_t attr;
21115
21116         status = pthread_attr_init(&attr);
21117         if( status ) return status;
21118
21119 #if HAVE_PTHREADS < 7
21120         status = pthread_attr_setdetachstate(&attr, &detach);
21121         if( status < 0 ) status = errno;
21122 #else
21123         status = pthread_attr_setdetachstate(&attr, detach);
21124 #endif
21125         if( status ) return status;
21126         status = pthread_create( &t, &attr, task, NULL );
21127 #if HAVE_PTHREADS < 7
21128         if( status < 0 ) status = errno;
21129 #endif
21130         if( status ) return status;
21131 #else
21132         /* Draft 4 pthreads */
21133         status = pthread_create( &t, pthread_attr_default, task, NULL );
21134         if( status ) return errno;
21135
21136         /* give thread a chance to complete */
21137         /* it should remain joinable and hence detachable */
21138         sleep( 1 );
21139
21140         status = pthread_detach( &t );
21141         if( status ) return errno;
21142 #endif
21143
21144 #ifdef HAVE_LINUX_THREADS
21145         pthread_kill_other_threads_np();
21146 #endif
21147
21148         return 0;
21149
21150   ;
21151   return 0;
21152 }
21153 _ACEOF
21154 rm -f conftest.$ac_objext conftest$ac_exeext
21155 if { (ac_try="$ac_link"
21156 case "(($ac_try" in
21157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21158   *) ac_try_echo=$ac_try;;
21159 esac
21160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21161   (eval "$ac_link") 2>conftest.er1
21162   ac_status=$?
21163   grep -v '^ *+' conftest.er1 >conftest.err
21164   rm -f conftest.er1
21165   cat conftest.err >&5
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); } && {
21168          test -z "$ac_c_werror_flag" ||
21169          test ! -s conftest.err
21170        } && test -s conftest$ac_exeext &&
21171        $as_test_x conftest$ac_exeext; then
21172   ol_cv_pthread_create=yes
21173 else
21174   echo "$as_me: failed program was:" >&5
21175 sed 's/^/| /' conftest.$ac_ext >&5
21176
21177         ol_cv_pthread_create=no
21178 fi
21179
21180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21181       conftest$ac_exeext conftest.$ac_ext
21182 else
21183   cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189
21190 /* pthread test headers */
21191 #include <pthread.h>
21192 #if HAVE_PTHREADS < 7
21193 #include <errno.h>
21194 #endif
21195 #ifndef NULL
21196 #define NULL (void*)0
21197 #endif
21198
21199 static void *task(p)
21200         void *p;
21201 {
21202         return (void *) (p == NULL);
21203 }
21204
21205
21206 int main(argc, argv)
21207         int argc;
21208         char **argv;
21209 {
21210
21211         /* pthread test function */
21212 #ifndef PTHREAD_CREATE_DETACHED
21213 #define PTHREAD_CREATE_DETACHED 1
21214 #endif
21215         pthread_t t;
21216         int status;
21217         int detach = PTHREAD_CREATE_DETACHED;
21218
21219 #if HAVE_PTHREADS > 4
21220         /* Final pthreads */
21221         pthread_attr_t attr;
21222
21223         status = pthread_attr_init(&attr);
21224         if( status ) return status;
21225
21226 #if HAVE_PTHREADS < 7
21227         status = pthread_attr_setdetachstate(&attr, &detach);
21228         if( status < 0 ) status = errno;
21229 #else
21230         status = pthread_attr_setdetachstate(&attr, detach);
21231 #endif
21232         if( status ) return status;
21233         status = pthread_create( &t, &attr, task, NULL );
21234 #if HAVE_PTHREADS < 7
21235         if( status < 0 ) status = errno;
21236 #endif
21237         if( status ) return status;
21238 #else
21239         /* Draft 4 pthreads */
21240         status = pthread_create( &t, pthread_attr_default, task, NULL );
21241         if( status ) return errno;
21242
21243         /* give thread a chance to complete */
21244         /* it should remain joinable and hence detachable */
21245         sleep( 1 );
21246
21247         status = pthread_detach( &t );
21248         if( status ) return errno;
21249 #endif
21250
21251 #ifdef HAVE_LINUX_THREADS
21252         pthread_kill_other_threads_np();
21253 #endif
21254
21255         return 0;
21256
21257 }
21258
21259 _ACEOF
21260 rm -f conftest$ac_exeext
21261 if { (ac_try="$ac_link"
21262 case "(($ac_try" in
21263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21264   *) ac_try_echo=$ac_try;;
21265 esac
21266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21267   (eval "$ac_link") 2>&5
21268   ac_status=$?
21269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21271   { (case "(($ac_try" in
21272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21273   *) ac_try_echo=$ac_try;;
21274 esac
21275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21276   (eval "$ac_try") 2>&5
21277   ac_status=$?
21278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279   (exit $ac_status); }; }; then
21280   ol_cv_pthread_create=yes
21281 else
21282   echo "$as_me: program exited with status $ac_status" >&5
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21285
21286 ( exit $ac_status )
21287 ol_cv_pthread_create=no
21288 fi
21289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21290 fi
21291
21292
21293 fi
21294 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21295 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21296
21297                 if test $ol_cv_pthread_create != no ; then
21298                         ol_link_threads=posix
21299                         ol_link_pthreads=""
21300                 fi
21301
21302                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21303 if test "$ol_link_threads" = no ; then
21304         # try -kthread
21305         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21306 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21307 if test "${ol_cv_pthread_kthread+set}" = set; then
21308   echo $ECHO_N "(cached) $ECHO_C" >&6
21309 else
21310
21311                 # save the flags
21312                 ol_LIBS="$LIBS"
21313                 LIBS="-kthread $LIBS"
21314
21315                 if test "$cross_compiling" = yes; then
21316   cat >conftest.$ac_ext <<_ACEOF
21317 /* confdefs.h.  */
21318 _ACEOF
21319 cat confdefs.h >>conftest.$ac_ext
21320 cat >>conftest.$ac_ext <<_ACEOF
21321 /* end confdefs.h.  */
21322
21323 /* pthread test headers */
21324 #include <pthread.h>
21325 #if HAVE_PTHREADS < 7
21326 #include <errno.h>
21327 #endif
21328 #ifndef NULL
21329 #define NULL (void*)0
21330 #endif
21331
21332 static void *task(p)
21333         void *p;
21334 {
21335         return (void *) (p == NULL);
21336 }
21337
21338 int
21339 main ()
21340 {
21341
21342         /* pthread test function */
21343 #ifndef PTHREAD_CREATE_DETACHED
21344 #define PTHREAD_CREATE_DETACHED 1
21345 #endif
21346         pthread_t t;
21347         int status;
21348         int detach = PTHREAD_CREATE_DETACHED;
21349
21350 #if HAVE_PTHREADS > 4
21351         /* Final pthreads */
21352         pthread_attr_t attr;
21353
21354         status = pthread_attr_init(&attr);
21355         if( status ) return status;
21356
21357 #if HAVE_PTHREADS < 7
21358         status = pthread_attr_setdetachstate(&attr, &detach);
21359         if( status < 0 ) status = errno;
21360 #else
21361         status = pthread_attr_setdetachstate(&attr, detach);
21362 #endif
21363         if( status ) return status;
21364         status = pthread_create( &t, &attr, task, NULL );
21365 #if HAVE_PTHREADS < 7
21366         if( status < 0 ) status = errno;
21367 #endif
21368         if( status ) return status;
21369 #else
21370         /* Draft 4 pthreads */
21371         status = pthread_create( &t, pthread_attr_default, task, NULL );
21372         if( status ) return errno;
21373
21374         /* give thread a chance to complete */
21375         /* it should remain joinable and hence detachable */
21376         sleep( 1 );
21377
21378         status = pthread_detach( &t );
21379         if( status ) return errno;
21380 #endif
21381
21382 #ifdef HAVE_LINUX_THREADS
21383         pthread_kill_other_threads_np();
21384 #endif
21385
21386         return 0;
21387
21388   ;
21389   return 0;
21390 }
21391 _ACEOF
21392 rm -f conftest.$ac_objext conftest$ac_exeext
21393 if { (ac_try="$ac_link"
21394 case "(($ac_try" in
21395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396   *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399   (eval "$ac_link") 2>conftest.er1
21400   ac_status=$?
21401   grep -v '^ *+' conftest.er1 >conftest.err
21402   rm -f conftest.er1
21403   cat conftest.err >&5
21404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405   (exit $ac_status); } && {
21406          test -z "$ac_c_werror_flag" ||
21407          test ! -s conftest.err
21408        } && test -s conftest$ac_exeext &&
21409        $as_test_x conftest$ac_exeext; then
21410   ol_cv_pthread_kthread=yes
21411 else
21412   echo "$as_me: failed program was:" >&5
21413 sed 's/^/| /' conftest.$ac_ext >&5
21414
21415         ol_cv_pthread_kthread=no
21416 fi
21417
21418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21419       conftest$ac_exeext conftest.$ac_ext
21420 else
21421   cat >conftest.$ac_ext <<_ACEOF
21422 /* confdefs.h.  */
21423 _ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h.  */
21427
21428 /* pthread test headers */
21429 #include <pthread.h>
21430 #if HAVE_PTHREADS < 7
21431 #include <errno.h>
21432 #endif
21433 #ifndef NULL
21434 #define NULL (void*)0
21435 #endif
21436
21437 static void *task(p)
21438         void *p;
21439 {
21440         return (void *) (p == NULL);
21441 }
21442
21443
21444 int main(argc, argv)
21445         int argc;
21446         char **argv;
21447 {
21448
21449         /* pthread test function */
21450 #ifndef PTHREAD_CREATE_DETACHED
21451 #define PTHREAD_CREATE_DETACHED 1
21452 #endif
21453         pthread_t t;
21454         int status;
21455         int detach = PTHREAD_CREATE_DETACHED;
21456
21457 #if HAVE_PTHREADS > 4
21458         /* Final pthreads */
21459         pthread_attr_t attr;
21460
21461         status = pthread_attr_init(&attr);
21462         if( status ) return status;
21463
21464 #if HAVE_PTHREADS < 7
21465         status = pthread_attr_setdetachstate(&attr, &detach);
21466         if( status < 0 ) status = errno;
21467 #else
21468         status = pthread_attr_setdetachstate(&attr, detach);
21469 #endif
21470         if( status ) return status;
21471         status = pthread_create( &t, &attr, task, NULL );
21472 #if HAVE_PTHREADS < 7
21473         if( status < 0 ) status = errno;
21474 #endif
21475         if( status ) return status;
21476 #else
21477         /* Draft 4 pthreads */
21478         status = pthread_create( &t, pthread_attr_default, task, NULL );
21479         if( status ) return errno;
21480
21481         /* give thread a chance to complete */
21482         /* it should remain joinable and hence detachable */
21483         sleep( 1 );
21484
21485         status = pthread_detach( &t );
21486         if( status ) return errno;
21487 #endif
21488
21489 #ifdef HAVE_LINUX_THREADS
21490         pthread_kill_other_threads_np();
21491 #endif
21492
21493         return 0;
21494
21495 }
21496
21497 _ACEOF
21498 rm -f conftest$ac_exeext
21499 if { (ac_try="$ac_link"
21500 case "(($ac_try" in
21501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502   *) ac_try_echo=$ac_try;;
21503 esac
21504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21505   (eval "$ac_link") 2>&5
21506   ac_status=$?
21507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21509   { (case "(($ac_try" in
21510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21511   *) ac_try_echo=$ac_try;;
21512 esac
21513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21514   (eval "$ac_try") 2>&5
21515   ac_status=$?
21516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21517   (exit $ac_status); }; }; then
21518   ol_cv_pthread_kthread=yes
21519 else
21520   echo "$as_me: program exited with status $ac_status" >&5
21521 echo "$as_me: failed program was:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21523
21524 ( exit $ac_status )
21525 ol_cv_pthread_kthread=no
21526 fi
21527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21528 fi
21529
21530
21531
21532                 # restore the LIBS
21533                 LIBS="$ol_LIBS"
21534
21535 fi
21536 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21537 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21538
21539         if test $ol_cv_pthread_kthread = yes ; then
21540                 ol_link_pthreads="-kthread"
21541                 ol_link_threads=posix
21542         fi
21543 fi
21544
21545                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21546 if test "$ol_link_threads" = no ; then
21547         # try -pthread
21548         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21549 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21550 if test "${ol_cv_pthread_pthread+set}" = set; then
21551   echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553
21554                 # save the flags
21555                 ol_LIBS="$LIBS"
21556                 LIBS="-pthread $LIBS"
21557
21558                 if test "$cross_compiling" = yes; then
21559   cat >conftest.$ac_ext <<_ACEOF
21560 /* confdefs.h.  */
21561 _ACEOF
21562 cat confdefs.h >>conftest.$ac_ext
21563 cat >>conftest.$ac_ext <<_ACEOF
21564 /* end confdefs.h.  */
21565
21566 /* pthread test headers */
21567 #include <pthread.h>
21568 #if HAVE_PTHREADS < 7
21569 #include <errno.h>
21570 #endif
21571 #ifndef NULL
21572 #define NULL (void*)0
21573 #endif
21574
21575 static void *task(p)
21576         void *p;
21577 {
21578         return (void *) (p == NULL);
21579 }
21580
21581 int
21582 main ()
21583 {
21584
21585         /* pthread test function */
21586 #ifndef PTHREAD_CREATE_DETACHED
21587 #define PTHREAD_CREATE_DETACHED 1
21588 #endif
21589         pthread_t t;
21590         int status;
21591         int detach = PTHREAD_CREATE_DETACHED;
21592
21593 #if HAVE_PTHREADS > 4
21594         /* Final pthreads */
21595         pthread_attr_t attr;
21596
21597         status = pthread_attr_init(&attr);
21598         if( status ) return status;
21599
21600 #if HAVE_PTHREADS < 7
21601         status = pthread_attr_setdetachstate(&attr, &detach);
21602         if( status < 0 ) status = errno;
21603 #else
21604         status = pthread_attr_setdetachstate(&attr, detach);
21605 #endif
21606         if( status ) return status;
21607         status = pthread_create( &t, &attr, task, NULL );
21608 #if HAVE_PTHREADS < 7
21609         if( status < 0 ) status = errno;
21610 #endif
21611         if( status ) return status;
21612 #else
21613         /* Draft 4 pthreads */
21614         status = pthread_create( &t, pthread_attr_default, task, NULL );
21615         if( status ) return errno;
21616
21617         /* give thread a chance to complete */
21618         /* it should remain joinable and hence detachable */
21619         sleep( 1 );
21620
21621         status = pthread_detach( &t );
21622         if( status ) return errno;
21623 #endif
21624
21625 #ifdef HAVE_LINUX_THREADS
21626         pthread_kill_other_threads_np();
21627 #endif
21628
21629         return 0;
21630
21631   ;
21632   return 0;
21633 }
21634 _ACEOF
21635 rm -f conftest.$ac_objext conftest$ac_exeext
21636 if { (ac_try="$ac_link"
21637 case "(($ac_try" in
21638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639   *) ac_try_echo=$ac_try;;
21640 esac
21641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21642   (eval "$ac_link") 2>conftest.er1
21643   ac_status=$?
21644   grep -v '^ *+' conftest.er1 >conftest.err
21645   rm -f conftest.er1
21646   cat conftest.err >&5
21647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21648   (exit $ac_status); } && {
21649          test -z "$ac_c_werror_flag" ||
21650          test ! -s conftest.err
21651        } && test -s conftest$ac_exeext &&
21652        $as_test_x conftest$ac_exeext; then
21653   ol_cv_pthread_pthread=yes
21654 else
21655   echo "$as_me: failed program was:" >&5
21656 sed 's/^/| /' conftest.$ac_ext >&5
21657
21658         ol_cv_pthread_pthread=no
21659 fi
21660
21661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21662       conftest$ac_exeext conftest.$ac_ext
21663 else
21664   cat >conftest.$ac_ext <<_ACEOF
21665 /* confdefs.h.  */
21666 _ACEOF
21667 cat confdefs.h >>conftest.$ac_ext
21668 cat >>conftest.$ac_ext <<_ACEOF
21669 /* end confdefs.h.  */
21670
21671 /* pthread test headers */
21672 #include <pthread.h>
21673 #if HAVE_PTHREADS < 7
21674 #include <errno.h>
21675 #endif
21676 #ifndef NULL
21677 #define NULL (void*)0
21678 #endif
21679
21680 static void *task(p)
21681         void *p;
21682 {
21683         return (void *) (p == NULL);
21684 }
21685
21686
21687 int main(argc, argv)
21688         int argc;
21689         char **argv;
21690 {
21691
21692         /* pthread test function */
21693 #ifndef PTHREAD_CREATE_DETACHED
21694 #define PTHREAD_CREATE_DETACHED 1
21695 #endif
21696         pthread_t t;
21697         int status;
21698         int detach = PTHREAD_CREATE_DETACHED;
21699
21700 #if HAVE_PTHREADS > 4
21701         /* Final pthreads */
21702         pthread_attr_t attr;
21703
21704         status = pthread_attr_init(&attr);
21705         if( status ) return status;
21706
21707 #if HAVE_PTHREADS < 7
21708         status = pthread_attr_setdetachstate(&attr, &detach);
21709         if( status < 0 ) status = errno;
21710 #else
21711         status = pthread_attr_setdetachstate(&attr, detach);
21712 #endif
21713         if( status ) return status;
21714         status = pthread_create( &t, &attr, task, NULL );
21715 #if HAVE_PTHREADS < 7
21716         if( status < 0 ) status = errno;
21717 #endif
21718         if( status ) return status;
21719 #else
21720         /* Draft 4 pthreads */
21721         status = pthread_create( &t, pthread_attr_default, task, NULL );
21722         if( status ) return errno;
21723
21724         /* give thread a chance to complete */
21725         /* it should remain joinable and hence detachable */
21726         sleep( 1 );
21727
21728         status = pthread_detach( &t );
21729         if( status ) return errno;
21730 #endif
21731
21732 #ifdef HAVE_LINUX_THREADS
21733         pthread_kill_other_threads_np();
21734 #endif
21735
21736         return 0;
21737
21738 }
21739
21740 _ACEOF
21741 rm -f conftest$ac_exeext
21742 if { (ac_try="$ac_link"
21743 case "(($ac_try" in
21744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21745   *) ac_try_echo=$ac_try;;
21746 esac
21747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21748   (eval "$ac_link") 2>&5
21749   ac_status=$?
21750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21752   { (case "(($ac_try" in
21753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754   *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757   (eval "$ac_try") 2>&5
21758   ac_status=$?
21759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760   (exit $ac_status); }; }; then
21761   ol_cv_pthread_pthread=yes
21762 else
21763   echo "$as_me: program exited with status $ac_status" >&5
21764 echo "$as_me: failed program was:" >&5
21765 sed 's/^/| /' conftest.$ac_ext >&5
21766
21767 ( exit $ac_status )
21768 ol_cv_pthread_pthread=no
21769 fi
21770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21771 fi
21772
21773
21774
21775                 # restore the LIBS
21776                 LIBS="$ol_LIBS"
21777
21778 fi
21779 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21780 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21781
21782         if test $ol_cv_pthread_pthread = yes ; then
21783                 ol_link_pthreads="-pthread"
21784                 ol_link_threads=posix
21785         fi
21786 fi
21787
21788                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21789 if test "$ol_link_threads" = no ; then
21790         # try -pthreads
21791         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21792 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21793 if test "${ol_cv_pthread_pthreads+set}" = set; then
21794   echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796
21797                 # save the flags
21798                 ol_LIBS="$LIBS"
21799                 LIBS="-pthreads $LIBS"
21800
21801                 if test "$cross_compiling" = yes; then
21802   cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808
21809 /* pthread test headers */
21810 #include <pthread.h>
21811 #if HAVE_PTHREADS < 7
21812 #include <errno.h>
21813 #endif
21814 #ifndef NULL
21815 #define NULL (void*)0
21816 #endif
21817
21818 static void *task(p)
21819         void *p;
21820 {
21821         return (void *) (p == NULL);
21822 }
21823
21824 int
21825 main ()
21826 {
21827
21828         /* pthread test function */
21829 #ifndef PTHREAD_CREATE_DETACHED
21830 #define PTHREAD_CREATE_DETACHED 1
21831 #endif
21832         pthread_t t;
21833         int status;
21834         int detach = PTHREAD_CREATE_DETACHED;
21835
21836 #if HAVE_PTHREADS > 4
21837         /* Final pthreads */
21838         pthread_attr_t attr;
21839
21840         status = pthread_attr_init(&attr);
21841         if( status ) return status;
21842
21843 #if HAVE_PTHREADS < 7
21844         status = pthread_attr_setdetachstate(&attr, &detach);
21845         if( status < 0 ) status = errno;
21846 #else
21847         status = pthread_attr_setdetachstate(&attr, detach);
21848 #endif
21849         if( status ) return status;
21850         status = pthread_create( &t, &attr, task, NULL );
21851 #if HAVE_PTHREADS < 7
21852         if( status < 0 ) status = errno;
21853 #endif
21854         if( status ) return status;
21855 #else
21856         /* Draft 4 pthreads */
21857         status = pthread_create( &t, pthread_attr_default, task, NULL );
21858         if( status ) return errno;
21859
21860         /* give thread a chance to complete */
21861         /* it should remain joinable and hence detachable */
21862         sleep( 1 );
21863
21864         status = pthread_detach( &t );
21865         if( status ) return errno;
21866 #endif
21867
21868 #ifdef HAVE_LINUX_THREADS
21869         pthread_kill_other_threads_np();
21870 #endif
21871
21872         return 0;
21873
21874   ;
21875   return 0;
21876 }
21877 _ACEOF
21878 rm -f conftest.$ac_objext conftest$ac_exeext
21879 if { (ac_try="$ac_link"
21880 case "(($ac_try" in
21881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21882   *) ac_try_echo=$ac_try;;
21883 esac
21884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21885   (eval "$ac_link") 2>conftest.er1
21886   ac_status=$?
21887   grep -v '^ *+' conftest.er1 >conftest.err
21888   rm -f conftest.er1
21889   cat conftest.err >&5
21890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21891   (exit $ac_status); } && {
21892          test -z "$ac_c_werror_flag" ||
21893          test ! -s conftest.err
21894        } && test -s conftest$ac_exeext &&
21895        $as_test_x conftest$ac_exeext; then
21896   ol_cv_pthread_pthreads=yes
21897 else
21898   echo "$as_me: failed program was:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21900
21901         ol_cv_pthread_pthreads=no
21902 fi
21903
21904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21905       conftest$ac_exeext conftest.$ac_ext
21906 else
21907   cat >conftest.$ac_ext <<_ACEOF
21908 /* confdefs.h.  */
21909 _ACEOF
21910 cat confdefs.h >>conftest.$ac_ext
21911 cat >>conftest.$ac_ext <<_ACEOF
21912 /* end confdefs.h.  */
21913
21914 /* pthread test headers */
21915 #include <pthread.h>
21916 #if HAVE_PTHREADS < 7
21917 #include <errno.h>
21918 #endif
21919 #ifndef NULL
21920 #define NULL (void*)0
21921 #endif
21922
21923 static void *task(p)
21924         void *p;
21925 {
21926         return (void *) (p == NULL);
21927 }
21928
21929
21930 int main(argc, argv)
21931         int argc;
21932         char **argv;
21933 {
21934
21935         /* pthread test function */
21936 #ifndef PTHREAD_CREATE_DETACHED
21937 #define PTHREAD_CREATE_DETACHED 1
21938 #endif
21939         pthread_t t;
21940         int status;
21941         int detach = PTHREAD_CREATE_DETACHED;
21942
21943 #if HAVE_PTHREADS > 4
21944         /* Final pthreads */
21945         pthread_attr_t attr;
21946
21947         status = pthread_attr_init(&attr);
21948         if( status ) return status;
21949
21950 #if HAVE_PTHREADS < 7
21951         status = pthread_attr_setdetachstate(&attr, &detach);
21952         if( status < 0 ) status = errno;
21953 #else
21954         status = pthread_attr_setdetachstate(&attr, detach);
21955 #endif
21956         if( status ) return status;
21957         status = pthread_create( &t, &attr, task, NULL );
21958 #if HAVE_PTHREADS < 7
21959         if( status < 0 ) status = errno;
21960 #endif
21961         if( status ) return status;
21962 #else
21963         /* Draft 4 pthreads */
21964         status = pthread_create( &t, pthread_attr_default, task, NULL );
21965         if( status ) return errno;
21966
21967         /* give thread a chance to complete */
21968         /* it should remain joinable and hence detachable */
21969         sleep( 1 );
21970
21971         status = pthread_detach( &t );
21972         if( status ) return errno;
21973 #endif
21974
21975 #ifdef HAVE_LINUX_THREADS
21976         pthread_kill_other_threads_np();
21977 #endif
21978
21979         return 0;
21980
21981 }
21982
21983 _ACEOF
21984 rm -f conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988   *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991   (eval "$ac_link") 2>&5
21992   ac_status=$?
21993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21995   { (case "(($ac_try" in
21996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21997   *) ac_try_echo=$ac_try;;
21998 esac
21999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22000   (eval "$ac_try") 2>&5
22001   ac_status=$?
22002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003   (exit $ac_status); }; }; then
22004   ol_cv_pthread_pthreads=yes
22005 else
22006   echo "$as_me: program exited with status $ac_status" >&5
22007 echo "$as_me: failed program was:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22009
22010 ( exit $ac_status )
22011 ol_cv_pthread_pthreads=no
22012 fi
22013 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22014 fi
22015
22016
22017
22018                 # restore the LIBS
22019                 LIBS="$ol_LIBS"
22020
22021 fi
22022 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
22023 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
22024
22025         if test $ol_cv_pthread_pthreads = yes ; then
22026                 ol_link_pthreads="-pthreads"
22027                 ol_link_threads=posix
22028         fi
22029 fi
22030
22031                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
22032 if test "$ol_link_threads" = no ; then
22033         # try -mthreads
22034         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
22035 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
22036 if test "${ol_cv_pthread_mthreads+set}" = set; then
22037   echo $ECHO_N "(cached) $ECHO_C" >&6
22038 else
22039
22040                 # save the flags
22041                 ol_LIBS="$LIBS"
22042                 LIBS="-mthreads $LIBS"
22043
22044                 if test "$cross_compiling" = yes; then
22045   cat >conftest.$ac_ext <<_ACEOF
22046 /* confdefs.h.  */
22047 _ACEOF
22048 cat confdefs.h >>conftest.$ac_ext
22049 cat >>conftest.$ac_ext <<_ACEOF
22050 /* end confdefs.h.  */
22051
22052 /* pthread test headers */
22053 #include <pthread.h>
22054 #if HAVE_PTHREADS < 7
22055 #include <errno.h>
22056 #endif
22057 #ifndef NULL
22058 #define NULL (void*)0
22059 #endif
22060
22061 static void *task(p)
22062         void *p;
22063 {
22064         return (void *) (p == NULL);
22065 }
22066
22067 int
22068 main ()
22069 {
22070
22071         /* pthread test function */
22072 #ifndef PTHREAD_CREATE_DETACHED
22073 #define PTHREAD_CREATE_DETACHED 1
22074 #endif
22075         pthread_t t;
22076         int status;
22077         int detach = PTHREAD_CREATE_DETACHED;
22078
22079 #if HAVE_PTHREADS > 4
22080         /* Final pthreads */
22081         pthread_attr_t attr;
22082
22083         status = pthread_attr_init(&attr);
22084         if( status ) return status;
22085
22086 #if HAVE_PTHREADS < 7
22087         status = pthread_attr_setdetachstate(&attr, &detach);
22088         if( status < 0 ) status = errno;
22089 #else
22090         status = pthread_attr_setdetachstate(&attr, detach);
22091 #endif
22092         if( status ) return status;
22093         status = pthread_create( &t, &attr, task, NULL );
22094 #if HAVE_PTHREADS < 7
22095         if( status < 0 ) status = errno;
22096 #endif
22097         if( status ) return status;
22098 #else
22099         /* Draft 4 pthreads */
22100         status = pthread_create( &t, pthread_attr_default, task, NULL );
22101         if( status ) return errno;
22102
22103         /* give thread a chance to complete */
22104         /* it should remain joinable and hence detachable */
22105         sleep( 1 );
22106
22107         status = pthread_detach( &t );
22108         if( status ) return errno;
22109 #endif
22110
22111 #ifdef HAVE_LINUX_THREADS
22112         pthread_kill_other_threads_np();
22113 #endif
22114
22115         return 0;
22116
22117   ;
22118   return 0;
22119 }
22120 _ACEOF
22121 rm -f conftest.$ac_objext conftest$ac_exeext
22122 if { (ac_try="$ac_link"
22123 case "(($ac_try" in
22124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125   *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128   (eval "$ac_link") 2>conftest.er1
22129   ac_status=$?
22130   grep -v '^ *+' conftest.er1 >conftest.err
22131   rm -f conftest.er1
22132   cat conftest.err >&5
22133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22134   (exit $ac_status); } && {
22135          test -z "$ac_c_werror_flag" ||
22136          test ! -s conftest.err
22137        } && test -s conftest$ac_exeext &&
22138        $as_test_x conftest$ac_exeext; then
22139   ol_cv_pthread_mthreads=yes
22140 else
22141   echo "$as_me: failed program was:" >&5
22142 sed 's/^/| /' conftest.$ac_ext >&5
22143
22144         ol_cv_pthread_mthreads=no
22145 fi
22146
22147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22148       conftest$ac_exeext conftest.$ac_ext
22149 else
22150   cat >conftest.$ac_ext <<_ACEOF
22151 /* confdefs.h.  */
22152 _ACEOF
22153 cat confdefs.h >>conftest.$ac_ext
22154 cat >>conftest.$ac_ext <<_ACEOF
22155 /* end confdefs.h.  */
22156
22157 /* pthread test headers */
22158 #include <pthread.h>
22159 #if HAVE_PTHREADS < 7
22160 #include <errno.h>
22161 #endif
22162 #ifndef NULL
22163 #define NULL (void*)0
22164 #endif
22165
22166 static void *task(p)
22167         void *p;
22168 {
22169         return (void *) (p == NULL);
22170 }
22171
22172
22173 int main(argc, argv)
22174         int argc;
22175         char **argv;
22176 {
22177
22178         /* pthread test function */
22179 #ifndef PTHREAD_CREATE_DETACHED
22180 #define PTHREAD_CREATE_DETACHED 1
22181 #endif
22182         pthread_t t;
22183         int status;
22184         int detach = PTHREAD_CREATE_DETACHED;
22185
22186 #if HAVE_PTHREADS > 4
22187         /* Final pthreads */
22188         pthread_attr_t attr;
22189
22190         status = pthread_attr_init(&attr);
22191         if( status ) return status;
22192
22193 #if HAVE_PTHREADS < 7
22194         status = pthread_attr_setdetachstate(&attr, &detach);
22195         if( status < 0 ) status = errno;
22196 #else
22197         status = pthread_attr_setdetachstate(&attr, detach);
22198 #endif
22199         if( status ) return status;
22200         status = pthread_create( &t, &attr, task, NULL );
22201 #if HAVE_PTHREADS < 7
22202         if( status < 0 ) status = errno;
22203 #endif
22204         if( status ) return status;
22205 #else
22206         /* Draft 4 pthreads */
22207         status = pthread_create( &t, pthread_attr_default, task, NULL );
22208         if( status ) return errno;
22209
22210         /* give thread a chance to complete */
22211         /* it should remain joinable and hence detachable */
22212         sleep( 1 );
22213
22214         status = pthread_detach( &t );
22215         if( status ) return errno;
22216 #endif
22217
22218 #ifdef HAVE_LINUX_THREADS
22219         pthread_kill_other_threads_np();
22220 #endif
22221
22222         return 0;
22223
22224 }
22225
22226 _ACEOF
22227 rm -f conftest$ac_exeext
22228 if { (ac_try="$ac_link"
22229 case "(($ac_try" in
22230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22231   *) ac_try_echo=$ac_try;;
22232 esac
22233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22234   (eval "$ac_link") 2>&5
22235   ac_status=$?
22236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22238   { (case "(($ac_try" in
22239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240   *) ac_try_echo=$ac_try;;
22241 esac
22242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22243   (eval "$ac_try") 2>&5
22244   ac_status=$?
22245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22246   (exit $ac_status); }; }; then
22247   ol_cv_pthread_mthreads=yes
22248 else
22249   echo "$as_me: program exited with status $ac_status" >&5
22250 echo "$as_me: failed program was:" >&5
22251 sed 's/^/| /' conftest.$ac_ext >&5
22252
22253 ( exit $ac_status )
22254 ol_cv_pthread_mthreads=no
22255 fi
22256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22257 fi
22258
22259
22260
22261                 # restore the LIBS
22262                 LIBS="$ol_LIBS"
22263
22264 fi
22265 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22266 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22267
22268         if test $ol_cv_pthread_mthreads = yes ; then
22269                 ol_link_pthreads="-mthreads"
22270                 ol_link_threads=posix
22271         fi
22272 fi
22273
22274                 # Pthread try link: -thread (ol_cv_pthread_thread)
22275 if test "$ol_link_threads" = no ; then
22276         # try -thread
22277         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22278 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22279 if test "${ol_cv_pthread_thread+set}" = set; then
22280   echo $ECHO_N "(cached) $ECHO_C" >&6
22281 else
22282
22283                 # save the flags
22284                 ol_LIBS="$LIBS"
22285                 LIBS="-thread $LIBS"
22286
22287                 if test "$cross_compiling" = yes; then
22288   cat >conftest.$ac_ext <<_ACEOF
22289 /* confdefs.h.  */
22290 _ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h.  */
22294
22295 /* pthread test headers */
22296 #include <pthread.h>
22297 #if HAVE_PTHREADS < 7
22298 #include <errno.h>
22299 #endif
22300 #ifndef NULL
22301 #define NULL (void*)0
22302 #endif
22303
22304 static void *task(p)
22305         void *p;
22306 {
22307         return (void *) (p == NULL);
22308 }
22309
22310 int
22311 main ()
22312 {
22313
22314         /* pthread test function */
22315 #ifndef PTHREAD_CREATE_DETACHED
22316 #define PTHREAD_CREATE_DETACHED 1
22317 #endif
22318         pthread_t t;
22319         int status;
22320         int detach = PTHREAD_CREATE_DETACHED;
22321
22322 #if HAVE_PTHREADS > 4
22323         /* Final pthreads */
22324         pthread_attr_t attr;
22325
22326         status = pthread_attr_init(&attr);
22327         if( status ) return status;
22328
22329 #if HAVE_PTHREADS < 7
22330         status = pthread_attr_setdetachstate(&attr, &detach);
22331         if( status < 0 ) status = errno;
22332 #else
22333         status = pthread_attr_setdetachstate(&attr, detach);
22334 #endif
22335         if( status ) return status;
22336         status = pthread_create( &t, &attr, task, NULL );
22337 #if HAVE_PTHREADS < 7
22338         if( status < 0 ) status = errno;
22339 #endif
22340         if( status ) return status;
22341 #else
22342         /* Draft 4 pthreads */
22343         status = pthread_create( &t, pthread_attr_default, task, NULL );
22344         if( status ) return errno;
22345
22346         /* give thread a chance to complete */
22347         /* it should remain joinable and hence detachable */
22348         sleep( 1 );
22349
22350         status = pthread_detach( &t );
22351         if( status ) return errno;
22352 #endif
22353
22354 #ifdef HAVE_LINUX_THREADS
22355         pthread_kill_other_threads_np();
22356 #endif
22357
22358         return 0;
22359
22360   ;
22361   return 0;
22362 }
22363 _ACEOF
22364 rm -f conftest.$ac_objext conftest$ac_exeext
22365 if { (ac_try="$ac_link"
22366 case "(($ac_try" in
22367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22368   *) ac_try_echo=$ac_try;;
22369 esac
22370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22371   (eval "$ac_link") 2>conftest.er1
22372   ac_status=$?
22373   grep -v '^ *+' conftest.er1 >conftest.err
22374   rm -f conftest.er1
22375   cat conftest.err >&5
22376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377   (exit $ac_status); } && {
22378          test -z "$ac_c_werror_flag" ||
22379          test ! -s conftest.err
22380        } && test -s conftest$ac_exeext &&
22381        $as_test_x conftest$ac_exeext; then
22382   ol_cv_pthread_thread=yes
22383 else
22384   echo "$as_me: failed program was:" >&5
22385 sed 's/^/| /' conftest.$ac_ext >&5
22386
22387         ol_cv_pthread_thread=no
22388 fi
22389
22390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22391       conftest$ac_exeext conftest.$ac_ext
22392 else
22393   cat >conftest.$ac_ext <<_ACEOF
22394 /* confdefs.h.  */
22395 _ACEOF
22396 cat confdefs.h >>conftest.$ac_ext
22397 cat >>conftest.$ac_ext <<_ACEOF
22398 /* end confdefs.h.  */
22399
22400 /* pthread test headers */
22401 #include <pthread.h>
22402 #if HAVE_PTHREADS < 7
22403 #include <errno.h>
22404 #endif
22405 #ifndef NULL
22406 #define NULL (void*)0
22407 #endif
22408
22409 static void *task(p)
22410         void *p;
22411 {
22412         return (void *) (p == NULL);
22413 }
22414
22415
22416 int main(argc, argv)
22417         int argc;
22418         char **argv;
22419 {
22420
22421         /* pthread test function */
22422 #ifndef PTHREAD_CREATE_DETACHED
22423 #define PTHREAD_CREATE_DETACHED 1
22424 #endif
22425         pthread_t t;
22426         int status;
22427         int detach = PTHREAD_CREATE_DETACHED;
22428
22429 #if HAVE_PTHREADS > 4
22430         /* Final pthreads */
22431         pthread_attr_t attr;
22432
22433         status = pthread_attr_init(&attr);
22434         if( status ) return status;
22435
22436 #if HAVE_PTHREADS < 7
22437         status = pthread_attr_setdetachstate(&attr, &detach);
22438         if( status < 0 ) status = errno;
22439 #else
22440         status = pthread_attr_setdetachstate(&attr, detach);
22441 #endif
22442         if( status ) return status;
22443         status = pthread_create( &t, &attr, task, NULL );
22444 #if HAVE_PTHREADS < 7
22445         if( status < 0 ) status = errno;
22446 #endif
22447         if( status ) return status;
22448 #else
22449         /* Draft 4 pthreads */
22450         status = pthread_create( &t, pthread_attr_default, task, NULL );
22451         if( status ) return errno;
22452
22453         /* give thread a chance to complete */
22454         /* it should remain joinable and hence detachable */
22455         sleep( 1 );
22456
22457         status = pthread_detach( &t );
22458         if( status ) return errno;
22459 #endif
22460
22461 #ifdef HAVE_LINUX_THREADS
22462         pthread_kill_other_threads_np();
22463 #endif
22464
22465         return 0;
22466
22467 }
22468
22469 _ACEOF
22470 rm -f conftest$ac_exeext
22471 if { (ac_try="$ac_link"
22472 case "(($ac_try" in
22473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22474   *) ac_try_echo=$ac_try;;
22475 esac
22476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22477   (eval "$ac_link") 2>&5
22478   ac_status=$?
22479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22480   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22481   { (case "(($ac_try" in
22482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22483   *) ac_try_echo=$ac_try;;
22484 esac
22485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22486   (eval "$ac_try") 2>&5
22487   ac_status=$?
22488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489   (exit $ac_status); }; }; then
22490   ol_cv_pthread_thread=yes
22491 else
22492   echo "$as_me: program exited with status $ac_status" >&5
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496 ( exit $ac_status )
22497 ol_cv_pthread_thread=no
22498 fi
22499 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22500 fi
22501
22502
22503
22504                 # restore the LIBS
22505                 LIBS="$ol_LIBS"
22506
22507 fi
22508 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22509 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22510
22511         if test $ol_cv_pthread_thread = yes ; then
22512                 ol_link_pthreads="-thread"
22513                 ol_link_threads=posix
22514         fi
22515 fi
22516
22517
22518                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22519 if test "$ol_link_threads" = no ; then
22520         # try -lpthread -lmach -lexc -lc_r
22521         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22522 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22523 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22524   echo $ECHO_N "(cached) $ECHO_C" >&6
22525 else
22526
22527                 # save the flags
22528                 ol_LIBS="$LIBS"
22529                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22530
22531                 if test "$cross_compiling" = yes; then
22532   cat >conftest.$ac_ext <<_ACEOF
22533 /* confdefs.h.  */
22534 _ACEOF
22535 cat confdefs.h >>conftest.$ac_ext
22536 cat >>conftest.$ac_ext <<_ACEOF
22537 /* end confdefs.h.  */
22538
22539 /* pthread test headers */
22540 #include <pthread.h>
22541 #if HAVE_PTHREADS < 7
22542 #include <errno.h>
22543 #endif
22544 #ifndef NULL
22545 #define NULL (void*)0
22546 #endif
22547
22548 static void *task(p)
22549         void *p;
22550 {
22551         return (void *) (p == NULL);
22552 }
22553
22554 int
22555 main ()
22556 {
22557
22558         /* pthread test function */
22559 #ifndef PTHREAD_CREATE_DETACHED
22560 #define PTHREAD_CREATE_DETACHED 1
22561 #endif
22562         pthread_t t;
22563         int status;
22564         int detach = PTHREAD_CREATE_DETACHED;
22565
22566 #if HAVE_PTHREADS > 4
22567         /* Final pthreads */
22568         pthread_attr_t attr;
22569
22570         status = pthread_attr_init(&attr);
22571         if( status ) return status;
22572
22573 #if HAVE_PTHREADS < 7
22574         status = pthread_attr_setdetachstate(&attr, &detach);
22575         if( status < 0 ) status = errno;
22576 #else
22577         status = pthread_attr_setdetachstate(&attr, detach);
22578 #endif
22579         if( status ) return status;
22580         status = pthread_create( &t, &attr, task, NULL );
22581 #if HAVE_PTHREADS < 7
22582         if( status < 0 ) status = errno;
22583 #endif
22584         if( status ) return status;
22585 #else
22586         /* Draft 4 pthreads */
22587         status = pthread_create( &t, pthread_attr_default, task, NULL );
22588         if( status ) return errno;
22589
22590         /* give thread a chance to complete */
22591         /* it should remain joinable and hence detachable */
22592         sleep( 1 );
22593
22594         status = pthread_detach( &t );
22595         if( status ) return errno;
22596 #endif
22597
22598 #ifdef HAVE_LINUX_THREADS
22599         pthread_kill_other_threads_np();
22600 #endif
22601
22602         return 0;
22603
22604   ;
22605   return 0;
22606 }
22607 _ACEOF
22608 rm -f conftest.$ac_objext conftest$ac_exeext
22609 if { (ac_try="$ac_link"
22610 case "(($ac_try" in
22611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612   *) ac_try_echo=$ac_try;;
22613 esac
22614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22615   (eval "$ac_link") 2>conftest.er1
22616   ac_status=$?
22617   grep -v '^ *+' conftest.er1 >conftest.err
22618   rm -f conftest.er1
22619   cat conftest.err >&5
22620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22621   (exit $ac_status); } && {
22622          test -z "$ac_c_werror_flag" ||
22623          test ! -s conftest.err
22624        } && test -s conftest$ac_exeext &&
22625        $as_test_x conftest$ac_exeext; then
22626   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22627 else
22628   echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22630
22631         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22632 fi
22633
22634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22635       conftest$ac_exeext conftest.$ac_ext
22636 else
22637   cat >conftest.$ac_ext <<_ACEOF
22638 /* confdefs.h.  */
22639 _ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h.  */
22643
22644 /* pthread test headers */
22645 #include <pthread.h>
22646 #if HAVE_PTHREADS < 7
22647 #include <errno.h>
22648 #endif
22649 #ifndef NULL
22650 #define NULL (void*)0
22651 #endif
22652
22653 static void *task(p)
22654         void *p;
22655 {
22656         return (void *) (p == NULL);
22657 }
22658
22659
22660 int main(argc, argv)
22661         int argc;
22662         char **argv;
22663 {
22664
22665         /* pthread test function */
22666 #ifndef PTHREAD_CREATE_DETACHED
22667 #define PTHREAD_CREATE_DETACHED 1
22668 #endif
22669         pthread_t t;
22670         int status;
22671         int detach = PTHREAD_CREATE_DETACHED;
22672
22673 #if HAVE_PTHREADS > 4
22674         /* Final pthreads */
22675         pthread_attr_t attr;
22676
22677         status = pthread_attr_init(&attr);
22678         if( status ) return status;
22679
22680 #if HAVE_PTHREADS < 7
22681         status = pthread_attr_setdetachstate(&attr, &detach);
22682         if( status < 0 ) status = errno;
22683 #else
22684         status = pthread_attr_setdetachstate(&attr, detach);
22685 #endif
22686         if( status ) return status;
22687         status = pthread_create( &t, &attr, task, NULL );
22688 #if HAVE_PTHREADS < 7
22689         if( status < 0 ) status = errno;
22690 #endif
22691         if( status ) return status;
22692 #else
22693         /* Draft 4 pthreads */
22694         status = pthread_create( &t, pthread_attr_default, task, NULL );
22695         if( status ) return errno;
22696
22697         /* give thread a chance to complete */
22698         /* it should remain joinable and hence detachable */
22699         sleep( 1 );
22700
22701         status = pthread_detach( &t );
22702         if( status ) return errno;
22703 #endif
22704
22705 #ifdef HAVE_LINUX_THREADS
22706         pthread_kill_other_threads_np();
22707 #endif
22708
22709         return 0;
22710
22711 }
22712
22713 _ACEOF
22714 rm -f conftest$ac_exeext
22715 if { (ac_try="$ac_link"
22716 case "(($ac_try" in
22717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22718   *) ac_try_echo=$ac_try;;
22719 esac
22720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22721   (eval "$ac_link") 2>&5
22722   ac_status=$?
22723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22724   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22725   { (case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_try") 2>&5
22731   ac_status=$?
22732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733   (exit $ac_status); }; }; then
22734   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22735 else
22736   echo "$as_me: program exited with status $ac_status" >&5
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22739
22740 ( exit $ac_status )
22741 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22742 fi
22743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22744 fi
22745
22746
22747
22748                 # restore the LIBS
22749                 LIBS="$ol_LIBS"
22750
22751 fi
22752 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22753 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22754
22755         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22756                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22757                 ol_link_threads=posix
22758         fi
22759 fi
22760
22761                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22762 if test "$ol_link_threads" = no ; then
22763         # try -lpthread -lmach -lexc
22764         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22765 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22766 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22767   echo $ECHO_N "(cached) $ECHO_C" >&6
22768 else
22769
22770                 # save the flags
22771                 ol_LIBS="$LIBS"
22772                 LIBS="-lpthread -lmach -lexc $LIBS"
22773
22774                 if test "$cross_compiling" = yes; then
22775   cat >conftest.$ac_ext <<_ACEOF
22776 /* confdefs.h.  */
22777 _ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h.  */
22781
22782 /* pthread test headers */
22783 #include <pthread.h>
22784 #if HAVE_PTHREADS < 7
22785 #include <errno.h>
22786 #endif
22787 #ifndef NULL
22788 #define NULL (void*)0
22789 #endif
22790
22791 static void *task(p)
22792         void *p;
22793 {
22794         return (void *) (p == NULL);
22795 }
22796
22797 int
22798 main ()
22799 {
22800
22801         /* pthread test function */
22802 #ifndef PTHREAD_CREATE_DETACHED
22803 #define PTHREAD_CREATE_DETACHED 1
22804 #endif
22805         pthread_t t;
22806         int status;
22807         int detach = PTHREAD_CREATE_DETACHED;
22808
22809 #if HAVE_PTHREADS > 4
22810         /* Final pthreads */
22811         pthread_attr_t attr;
22812
22813         status = pthread_attr_init(&attr);
22814         if( status ) return status;
22815
22816 #if HAVE_PTHREADS < 7
22817         status = pthread_attr_setdetachstate(&attr, &detach);
22818         if( status < 0 ) status = errno;
22819 #else
22820         status = pthread_attr_setdetachstate(&attr, detach);
22821 #endif
22822         if( status ) return status;
22823         status = pthread_create( &t, &attr, task, NULL );
22824 #if HAVE_PTHREADS < 7
22825         if( status < 0 ) status = errno;
22826 #endif
22827         if( status ) return status;
22828 #else
22829         /* Draft 4 pthreads */
22830         status = pthread_create( &t, pthread_attr_default, task, NULL );
22831         if( status ) return errno;
22832
22833         /* give thread a chance to complete */
22834         /* it should remain joinable and hence detachable */
22835         sleep( 1 );
22836
22837         status = pthread_detach( &t );
22838         if( status ) return errno;
22839 #endif
22840
22841 #ifdef HAVE_LINUX_THREADS
22842         pthread_kill_other_threads_np();
22843 #endif
22844
22845         return 0;
22846
22847   ;
22848   return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext conftest$ac_exeext
22852 if { (ac_try="$ac_link"
22853 case "(($ac_try" in
22854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855   *) ac_try_echo=$ac_try;;
22856 esac
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858   (eval "$ac_link") 2>conftest.er1
22859   ac_status=$?
22860   grep -v '^ *+' conftest.er1 >conftest.err
22861   rm -f conftest.er1
22862   cat conftest.err >&5
22863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864   (exit $ac_status); } && {
22865          test -z "$ac_c_werror_flag" ||
22866          test ! -s conftest.err
22867        } && test -s conftest$ac_exeext &&
22868        $as_test_x conftest$ac_exeext; then
22869   ol_cv_pthread_lpthread_lmach_lexc=yes
22870 else
22871   echo "$as_me: failed program was:" >&5
22872 sed 's/^/| /' conftest.$ac_ext >&5
22873
22874         ol_cv_pthread_lpthread_lmach_lexc=no
22875 fi
22876
22877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22878       conftest$ac_exeext conftest.$ac_ext
22879 else
22880   cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h.  */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h.  */
22886
22887 /* pthread test headers */
22888 #include <pthread.h>
22889 #if HAVE_PTHREADS < 7
22890 #include <errno.h>
22891 #endif
22892 #ifndef NULL
22893 #define NULL (void*)0
22894 #endif
22895
22896 static void *task(p)
22897         void *p;
22898 {
22899         return (void *) (p == NULL);
22900 }
22901
22902
22903 int main(argc, argv)
22904         int argc;
22905         char **argv;
22906 {
22907
22908         /* pthread test function */
22909 #ifndef PTHREAD_CREATE_DETACHED
22910 #define PTHREAD_CREATE_DETACHED 1
22911 #endif
22912         pthread_t t;
22913         int status;
22914         int detach = PTHREAD_CREATE_DETACHED;
22915
22916 #if HAVE_PTHREADS > 4
22917         /* Final pthreads */
22918         pthread_attr_t attr;
22919
22920         status = pthread_attr_init(&attr);
22921         if( status ) return status;
22922
22923 #if HAVE_PTHREADS < 7
22924         status = pthread_attr_setdetachstate(&attr, &detach);
22925         if( status < 0 ) status = errno;
22926 #else
22927         status = pthread_attr_setdetachstate(&attr, detach);
22928 #endif
22929         if( status ) return status;
22930         status = pthread_create( &t, &attr, task, NULL );
22931 #if HAVE_PTHREADS < 7
22932         if( status < 0 ) status = errno;
22933 #endif
22934         if( status ) return status;
22935 #else
22936         /* Draft 4 pthreads */
22937         status = pthread_create( &t, pthread_attr_default, task, NULL );
22938         if( status ) return errno;
22939
22940         /* give thread a chance to complete */
22941         /* it should remain joinable and hence detachable */
22942         sleep( 1 );
22943
22944         status = pthread_detach( &t );
22945         if( status ) return errno;
22946 #endif
22947
22948 #ifdef HAVE_LINUX_THREADS
22949         pthread_kill_other_threads_np();
22950 #endif
22951
22952         return 0;
22953
22954 }
22955
22956 _ACEOF
22957 rm -f conftest$ac_exeext
22958 if { (ac_try="$ac_link"
22959 case "(($ac_try" in
22960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22961   *) ac_try_echo=$ac_try;;
22962 esac
22963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22964   (eval "$ac_link") 2>&5
22965   ac_status=$?
22966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22968   { (case "(($ac_try" in
22969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22970   *) ac_try_echo=$ac_try;;
22971 esac
22972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22973   (eval "$ac_try") 2>&5
22974   ac_status=$?
22975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22976   (exit $ac_status); }; }; then
22977   ol_cv_pthread_lpthread_lmach_lexc=yes
22978 else
22979   echo "$as_me: program exited with status $ac_status" >&5
22980 echo "$as_me: failed program was:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22982
22983 ( exit $ac_status )
22984 ol_cv_pthread_lpthread_lmach_lexc=no
22985 fi
22986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22987 fi
22988
22989
22990
22991                 # restore the LIBS
22992                 LIBS="$ol_LIBS"
22993
22994 fi
22995 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22996 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22997
22998         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22999                 ol_link_pthreads="-lpthread -lmach -lexc"
23000                 ol_link_threads=posix
23001         fi
23002 fi
23003
23004
23005                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
23006 if test "$ol_link_threads" = no ; then
23007         # try -lpthread -Wl,-woff,85
23008         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
23009 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
23010 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
23011   echo $ECHO_N "(cached) $ECHO_C" >&6
23012 else
23013
23014                 # save the flags
23015                 ol_LIBS="$LIBS"
23016                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
23017
23018                 if test "$cross_compiling" = yes; then
23019   cat >conftest.$ac_ext <<_ACEOF
23020 /* confdefs.h.  */
23021 _ACEOF
23022 cat confdefs.h >>conftest.$ac_ext
23023 cat >>conftest.$ac_ext <<_ACEOF
23024 /* end confdefs.h.  */
23025
23026 /* pthread test headers */
23027 #include <pthread.h>
23028 #if HAVE_PTHREADS < 7
23029 #include <errno.h>
23030 #endif
23031 #ifndef NULL
23032 #define NULL (void*)0
23033 #endif
23034
23035 static void *task(p)
23036         void *p;
23037 {
23038         return (void *) (p == NULL);
23039 }
23040
23041 int
23042 main ()
23043 {
23044
23045         /* pthread test function */
23046 #ifndef PTHREAD_CREATE_DETACHED
23047 #define PTHREAD_CREATE_DETACHED 1
23048 #endif
23049         pthread_t t;
23050         int status;
23051         int detach = PTHREAD_CREATE_DETACHED;
23052
23053 #if HAVE_PTHREADS > 4
23054         /* Final pthreads */
23055         pthread_attr_t attr;
23056
23057         status = pthread_attr_init(&attr);
23058         if( status ) return status;
23059
23060 #if HAVE_PTHREADS < 7
23061         status = pthread_attr_setdetachstate(&attr, &detach);
23062         if( status < 0 ) status = errno;
23063 #else
23064         status = pthread_attr_setdetachstate(&attr, detach);
23065 #endif
23066         if( status ) return status;
23067         status = pthread_create( &t, &attr, task, NULL );
23068 #if HAVE_PTHREADS < 7
23069         if( status < 0 ) status = errno;
23070 #endif
23071         if( status ) return status;
23072 #else
23073         /* Draft 4 pthreads */
23074         status = pthread_create( &t, pthread_attr_default, task, NULL );
23075         if( status ) return errno;
23076
23077         /* give thread a chance to complete */
23078         /* it should remain joinable and hence detachable */
23079         sleep( 1 );
23080
23081         status = pthread_detach( &t );
23082         if( status ) return errno;
23083 #endif
23084
23085 #ifdef HAVE_LINUX_THREADS
23086         pthread_kill_other_threads_np();
23087 #endif
23088
23089         return 0;
23090
23091   ;
23092   return 0;
23093 }
23094 _ACEOF
23095 rm -f conftest.$ac_objext conftest$ac_exeext
23096 if { (ac_try="$ac_link"
23097 case "(($ac_try" in
23098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23099   *) ac_try_echo=$ac_try;;
23100 esac
23101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23102   (eval "$ac_link") 2>conftest.er1
23103   ac_status=$?
23104   grep -v '^ *+' conftest.er1 >conftest.err
23105   rm -f conftest.er1
23106   cat conftest.err >&5
23107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108   (exit $ac_status); } && {
23109          test -z "$ac_c_werror_flag" ||
23110          test ! -s conftest.err
23111        } && test -s conftest$ac_exeext &&
23112        $as_test_x conftest$ac_exeext; then
23113   ol_cv_pthread_lib_lpthread_woff=yes
23114 else
23115   echo "$as_me: failed program was:" >&5
23116 sed 's/^/| /' conftest.$ac_ext >&5
23117
23118         ol_cv_pthread_lib_lpthread_woff=no
23119 fi
23120
23121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23122       conftest$ac_exeext conftest.$ac_ext
23123 else
23124   cat >conftest.$ac_ext <<_ACEOF
23125 /* confdefs.h.  */
23126 _ACEOF
23127 cat confdefs.h >>conftest.$ac_ext
23128 cat >>conftest.$ac_ext <<_ACEOF
23129 /* end confdefs.h.  */
23130
23131 /* pthread test headers */
23132 #include <pthread.h>
23133 #if HAVE_PTHREADS < 7
23134 #include <errno.h>
23135 #endif
23136 #ifndef NULL
23137 #define NULL (void*)0
23138 #endif
23139
23140 static void *task(p)
23141         void *p;
23142 {
23143         return (void *) (p == NULL);
23144 }
23145
23146
23147 int main(argc, argv)
23148         int argc;
23149         char **argv;
23150 {
23151
23152         /* pthread test function */
23153 #ifndef PTHREAD_CREATE_DETACHED
23154 #define PTHREAD_CREATE_DETACHED 1
23155 #endif
23156         pthread_t t;
23157         int status;
23158         int detach = PTHREAD_CREATE_DETACHED;
23159
23160 #if HAVE_PTHREADS > 4
23161         /* Final pthreads */
23162         pthread_attr_t attr;
23163
23164         status = pthread_attr_init(&attr);
23165         if( status ) return status;
23166
23167 #if HAVE_PTHREADS < 7
23168         status = pthread_attr_setdetachstate(&attr, &detach);
23169         if( status < 0 ) status = errno;
23170 #else
23171         status = pthread_attr_setdetachstate(&attr, detach);
23172 #endif
23173         if( status ) return status;
23174         status = pthread_create( &t, &attr, task, NULL );
23175 #if HAVE_PTHREADS < 7
23176         if( status < 0 ) status = errno;
23177 #endif
23178         if( status ) return status;
23179 #else
23180         /* Draft 4 pthreads */
23181         status = pthread_create( &t, pthread_attr_default, task, NULL );
23182         if( status ) return errno;
23183
23184         /* give thread a chance to complete */
23185         /* it should remain joinable and hence detachable */
23186         sleep( 1 );
23187
23188         status = pthread_detach( &t );
23189         if( status ) return errno;
23190 #endif
23191
23192 #ifdef HAVE_LINUX_THREADS
23193         pthread_kill_other_threads_np();
23194 #endif
23195
23196         return 0;
23197
23198 }
23199
23200 _ACEOF
23201 rm -f conftest$ac_exeext
23202 if { (ac_try="$ac_link"
23203 case "(($ac_try" in
23204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205   *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208   (eval "$ac_link") 2>&5
23209   ac_status=$?
23210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23212   { (case "(($ac_try" in
23213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214   *) ac_try_echo=$ac_try;;
23215 esac
23216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23217   (eval "$ac_try") 2>&5
23218   ac_status=$?
23219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220   (exit $ac_status); }; }; then
23221   ol_cv_pthread_lib_lpthread_woff=yes
23222 else
23223   echo "$as_me: program exited with status $ac_status" >&5
23224 echo "$as_me: failed program was:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23226
23227 ( exit $ac_status )
23228 ol_cv_pthread_lib_lpthread_woff=no
23229 fi
23230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23231 fi
23232
23233
23234
23235                 # restore the LIBS
23236                 LIBS="$ol_LIBS"
23237
23238 fi
23239 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23240 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23241
23242         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23243                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23244                 ol_link_threads=posix
23245         fi
23246 fi
23247
23248
23249                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23250 if test "$ol_link_threads" = no ; then
23251         # try -lpthread
23252         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23253 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23254 if test "${ol_cv_pthread_lpthread+set}" = set; then
23255   echo $ECHO_N "(cached) $ECHO_C" >&6
23256 else
23257
23258                 # save the flags
23259                 ol_LIBS="$LIBS"
23260                 LIBS="-lpthread $LIBS"
23261
23262                 if test "$cross_compiling" = yes; then
23263   cat >conftest.$ac_ext <<_ACEOF
23264 /* confdefs.h.  */
23265 _ACEOF
23266 cat confdefs.h >>conftest.$ac_ext
23267 cat >>conftest.$ac_ext <<_ACEOF
23268 /* end confdefs.h.  */
23269
23270 /* pthread test headers */
23271 #include <pthread.h>
23272 #if HAVE_PTHREADS < 7
23273 #include <errno.h>
23274 #endif
23275 #ifndef NULL
23276 #define NULL (void*)0
23277 #endif
23278
23279 static void *task(p)
23280         void *p;
23281 {
23282         return (void *) (p == NULL);
23283 }
23284
23285 int
23286 main ()
23287 {
23288
23289         /* pthread test function */
23290 #ifndef PTHREAD_CREATE_DETACHED
23291 #define PTHREAD_CREATE_DETACHED 1
23292 #endif
23293         pthread_t t;
23294         int status;
23295         int detach = PTHREAD_CREATE_DETACHED;
23296
23297 #if HAVE_PTHREADS > 4
23298         /* Final pthreads */
23299         pthread_attr_t attr;
23300
23301         status = pthread_attr_init(&attr);
23302         if( status ) return status;
23303
23304 #if HAVE_PTHREADS < 7
23305         status = pthread_attr_setdetachstate(&attr, &detach);
23306         if( status < 0 ) status = errno;
23307 #else
23308         status = pthread_attr_setdetachstate(&attr, detach);
23309 #endif
23310         if( status ) return status;
23311         status = pthread_create( &t, &attr, task, NULL );
23312 #if HAVE_PTHREADS < 7
23313         if( status < 0 ) status = errno;
23314 #endif
23315         if( status ) return status;
23316 #else
23317         /* Draft 4 pthreads */
23318         status = pthread_create( &t, pthread_attr_default, task, NULL );
23319         if( status ) return errno;
23320
23321         /* give thread a chance to complete */
23322         /* it should remain joinable and hence detachable */
23323         sleep( 1 );
23324
23325         status = pthread_detach( &t );
23326         if( status ) return errno;
23327 #endif
23328
23329 #ifdef HAVE_LINUX_THREADS
23330         pthread_kill_other_threads_np();
23331 #endif
23332
23333         return 0;
23334
23335   ;
23336   return 0;
23337 }
23338 _ACEOF
23339 rm -f conftest.$ac_objext conftest$ac_exeext
23340 if { (ac_try="$ac_link"
23341 case "(($ac_try" in
23342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23343   *) ac_try_echo=$ac_try;;
23344 esac
23345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23346   (eval "$ac_link") 2>conftest.er1
23347   ac_status=$?
23348   grep -v '^ *+' conftest.er1 >conftest.err
23349   rm -f conftest.er1
23350   cat conftest.err >&5
23351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23352   (exit $ac_status); } && {
23353          test -z "$ac_c_werror_flag" ||
23354          test ! -s conftest.err
23355        } && test -s conftest$ac_exeext &&
23356        $as_test_x conftest$ac_exeext; then
23357   ol_cv_pthread_lpthread=yes
23358 else
23359   echo "$as_me: failed program was:" >&5
23360 sed 's/^/| /' conftest.$ac_ext >&5
23361
23362         ol_cv_pthread_lpthread=no
23363 fi
23364
23365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23366       conftest$ac_exeext conftest.$ac_ext
23367 else
23368   cat >conftest.$ac_ext <<_ACEOF
23369 /* confdefs.h.  */
23370 _ACEOF
23371 cat confdefs.h >>conftest.$ac_ext
23372 cat >>conftest.$ac_ext <<_ACEOF
23373 /* end confdefs.h.  */
23374
23375 /* pthread test headers */
23376 #include <pthread.h>
23377 #if HAVE_PTHREADS < 7
23378 #include <errno.h>
23379 #endif
23380 #ifndef NULL
23381 #define NULL (void*)0
23382 #endif
23383
23384 static void *task(p)
23385         void *p;
23386 {
23387         return (void *) (p == NULL);
23388 }
23389
23390
23391 int main(argc, argv)
23392         int argc;
23393         char **argv;
23394 {
23395
23396         /* pthread test function */
23397 #ifndef PTHREAD_CREATE_DETACHED
23398 #define PTHREAD_CREATE_DETACHED 1
23399 #endif
23400         pthread_t t;
23401         int status;
23402         int detach = PTHREAD_CREATE_DETACHED;
23403
23404 #if HAVE_PTHREADS > 4
23405         /* Final pthreads */
23406         pthread_attr_t attr;
23407
23408         status = pthread_attr_init(&attr);
23409         if( status ) return status;
23410
23411 #if HAVE_PTHREADS < 7
23412         status = pthread_attr_setdetachstate(&attr, &detach);
23413         if( status < 0 ) status = errno;
23414 #else
23415         status = pthread_attr_setdetachstate(&attr, detach);
23416 #endif
23417         if( status ) return status;
23418         status = pthread_create( &t, &attr, task, NULL );
23419 #if HAVE_PTHREADS < 7
23420         if( status < 0 ) status = errno;
23421 #endif
23422         if( status ) return status;
23423 #else
23424         /* Draft 4 pthreads */
23425         status = pthread_create( &t, pthread_attr_default, task, NULL );
23426         if( status ) return errno;
23427
23428         /* give thread a chance to complete */
23429         /* it should remain joinable and hence detachable */
23430         sleep( 1 );
23431
23432         status = pthread_detach( &t );
23433         if( status ) return errno;
23434 #endif
23435
23436 #ifdef HAVE_LINUX_THREADS
23437         pthread_kill_other_threads_np();
23438 #endif
23439
23440         return 0;
23441
23442 }
23443
23444 _ACEOF
23445 rm -f conftest$ac_exeext
23446 if { (ac_try="$ac_link"
23447 case "(($ac_try" in
23448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23449   *) ac_try_echo=$ac_try;;
23450 esac
23451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23452   (eval "$ac_link") 2>&5
23453   ac_status=$?
23454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23455   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23456   { (case "(($ac_try" in
23457   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458   *) ac_try_echo=$ac_try;;
23459 esac
23460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23461   (eval "$ac_try") 2>&5
23462   ac_status=$?
23463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464   (exit $ac_status); }; }; then
23465   ol_cv_pthread_lpthread=yes
23466 else
23467   echo "$as_me: program exited with status $ac_status" >&5
23468 echo "$as_me: failed program was:" >&5
23469 sed 's/^/| /' conftest.$ac_ext >&5
23470
23471 ( exit $ac_status )
23472 ol_cv_pthread_lpthread=no
23473 fi
23474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23475 fi
23476
23477
23478
23479                 # restore the LIBS
23480                 LIBS="$ol_LIBS"
23481
23482 fi
23483 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23484 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23485
23486         if test $ol_cv_pthread_lpthread = yes ; then
23487                 ol_link_pthreads="-lpthread"
23488                 ol_link_threads=posix
23489         fi
23490 fi
23491
23492                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23493 if test "$ol_link_threads" = no ; then
23494         # try -lc_r
23495         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23496 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23497 if test "${ol_cv_pthread_lc_r+set}" = set; then
23498   echo $ECHO_N "(cached) $ECHO_C" >&6
23499 else
23500
23501                 # save the flags
23502                 ol_LIBS="$LIBS"
23503                 LIBS="-lc_r $LIBS"
23504
23505                 if test "$cross_compiling" = yes; then
23506   cat >conftest.$ac_ext <<_ACEOF
23507 /* confdefs.h.  */
23508 _ACEOF
23509 cat confdefs.h >>conftest.$ac_ext
23510 cat >>conftest.$ac_ext <<_ACEOF
23511 /* end confdefs.h.  */
23512
23513 /* pthread test headers */
23514 #include <pthread.h>
23515 #if HAVE_PTHREADS < 7
23516 #include <errno.h>
23517 #endif
23518 #ifndef NULL
23519 #define NULL (void*)0
23520 #endif
23521
23522 static void *task(p)
23523         void *p;
23524 {
23525         return (void *) (p == NULL);
23526 }
23527
23528 int
23529 main ()
23530 {
23531
23532         /* pthread test function */
23533 #ifndef PTHREAD_CREATE_DETACHED
23534 #define PTHREAD_CREATE_DETACHED 1
23535 #endif
23536         pthread_t t;
23537         int status;
23538         int detach = PTHREAD_CREATE_DETACHED;
23539
23540 #if HAVE_PTHREADS > 4
23541         /* Final pthreads */
23542         pthread_attr_t attr;
23543
23544         status = pthread_attr_init(&attr);
23545         if( status ) return status;
23546
23547 #if HAVE_PTHREADS < 7
23548         status = pthread_attr_setdetachstate(&attr, &detach);
23549         if( status < 0 ) status = errno;
23550 #else
23551         status = pthread_attr_setdetachstate(&attr, detach);
23552 #endif
23553         if( status ) return status;
23554         status = pthread_create( &t, &attr, task, NULL );
23555 #if HAVE_PTHREADS < 7
23556         if( status < 0 ) status = errno;
23557 #endif
23558         if( status ) return status;
23559 #else
23560         /* Draft 4 pthreads */
23561         status = pthread_create( &t, pthread_attr_default, task, NULL );
23562         if( status ) return errno;
23563
23564         /* give thread a chance to complete */
23565         /* it should remain joinable and hence detachable */
23566         sleep( 1 );
23567
23568         status = pthread_detach( &t );
23569         if( status ) return errno;
23570 #endif
23571
23572 #ifdef HAVE_LINUX_THREADS
23573         pthread_kill_other_threads_np();
23574 #endif
23575
23576         return 0;
23577
23578   ;
23579   return 0;
23580 }
23581 _ACEOF
23582 rm -f conftest.$ac_objext conftest$ac_exeext
23583 if { (ac_try="$ac_link"
23584 case "(($ac_try" in
23585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23586   *) ac_try_echo=$ac_try;;
23587 esac
23588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23589   (eval "$ac_link") 2>conftest.er1
23590   ac_status=$?
23591   grep -v '^ *+' conftest.er1 >conftest.err
23592   rm -f conftest.er1
23593   cat conftest.err >&5
23594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595   (exit $ac_status); } && {
23596          test -z "$ac_c_werror_flag" ||
23597          test ! -s conftest.err
23598        } && test -s conftest$ac_exeext &&
23599        $as_test_x conftest$ac_exeext; then
23600   ol_cv_pthread_lc_r=yes
23601 else
23602   echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23604
23605         ol_cv_pthread_lc_r=no
23606 fi
23607
23608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23609       conftest$ac_exeext conftest.$ac_ext
23610 else
23611   cat >conftest.$ac_ext <<_ACEOF
23612 /* confdefs.h.  */
23613 _ACEOF
23614 cat confdefs.h >>conftest.$ac_ext
23615 cat >>conftest.$ac_ext <<_ACEOF
23616 /* end confdefs.h.  */
23617
23618 /* pthread test headers */
23619 #include <pthread.h>
23620 #if HAVE_PTHREADS < 7
23621 #include <errno.h>
23622 #endif
23623 #ifndef NULL
23624 #define NULL (void*)0
23625 #endif
23626
23627 static void *task(p)
23628         void *p;
23629 {
23630         return (void *) (p == NULL);
23631 }
23632
23633
23634 int main(argc, argv)
23635         int argc;
23636         char **argv;
23637 {
23638
23639         /* pthread test function */
23640 #ifndef PTHREAD_CREATE_DETACHED
23641 #define PTHREAD_CREATE_DETACHED 1
23642 #endif
23643         pthread_t t;
23644         int status;
23645         int detach = PTHREAD_CREATE_DETACHED;
23646
23647 #if HAVE_PTHREADS > 4
23648         /* Final pthreads */
23649         pthread_attr_t attr;
23650
23651         status = pthread_attr_init(&attr);
23652         if( status ) return status;
23653
23654 #if HAVE_PTHREADS < 7
23655         status = pthread_attr_setdetachstate(&attr, &detach);
23656         if( status < 0 ) status = errno;
23657 #else
23658         status = pthread_attr_setdetachstate(&attr, detach);
23659 #endif
23660         if( status ) return status;
23661         status = pthread_create( &t, &attr, task, NULL );
23662 #if HAVE_PTHREADS < 7
23663         if( status < 0 ) status = errno;
23664 #endif
23665         if( status ) return status;
23666 #else
23667         /* Draft 4 pthreads */
23668         status = pthread_create( &t, pthread_attr_default, task, NULL );
23669         if( status ) return errno;
23670
23671         /* give thread a chance to complete */
23672         /* it should remain joinable and hence detachable */
23673         sleep( 1 );
23674
23675         status = pthread_detach( &t );
23676         if( status ) return errno;
23677 #endif
23678
23679 #ifdef HAVE_LINUX_THREADS
23680         pthread_kill_other_threads_np();
23681 #endif
23682
23683         return 0;
23684
23685 }
23686
23687 _ACEOF
23688 rm -f conftest$ac_exeext
23689 if { (ac_try="$ac_link"
23690 case "(($ac_try" in
23691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23692   *) ac_try_echo=$ac_try;;
23693 esac
23694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23695   (eval "$ac_link") 2>&5
23696   ac_status=$?
23697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23698   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23699   { (case "(($ac_try" in
23700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701   *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704   (eval "$ac_try") 2>&5
23705   ac_status=$?
23706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23707   (exit $ac_status); }; }; then
23708   ol_cv_pthread_lc_r=yes
23709 else
23710   echo "$as_me: program exited with status $ac_status" >&5
23711 echo "$as_me: failed program was:" >&5
23712 sed 's/^/| /' conftest.$ac_ext >&5
23713
23714 ( exit $ac_status )
23715 ol_cv_pthread_lc_r=no
23716 fi
23717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23718 fi
23719
23720
23721
23722                 # restore the LIBS
23723                 LIBS="$ol_LIBS"
23724
23725 fi
23726 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23727 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23728
23729         if test $ol_cv_pthread_lc_r = yes ; then
23730                 ol_link_pthreads="-lc_r"
23731                 ol_link_threads=posix
23732         fi
23733 fi
23734
23735
23736                 # Pthread try link: -threads (ol_cv_pthread_threads)
23737 if test "$ol_link_threads" = no ; then
23738         # try -threads
23739         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23740 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23741 if test "${ol_cv_pthread_threads+set}" = set; then
23742   echo $ECHO_N "(cached) $ECHO_C" >&6
23743 else
23744
23745                 # save the flags
23746                 ol_LIBS="$LIBS"
23747                 LIBS="-threads $LIBS"
23748
23749                 if test "$cross_compiling" = yes; then
23750   cat >conftest.$ac_ext <<_ACEOF
23751 /* confdefs.h.  */
23752 _ACEOF
23753 cat confdefs.h >>conftest.$ac_ext
23754 cat >>conftest.$ac_ext <<_ACEOF
23755 /* end confdefs.h.  */
23756
23757 /* pthread test headers */
23758 #include <pthread.h>
23759 #if HAVE_PTHREADS < 7
23760 #include <errno.h>
23761 #endif
23762 #ifndef NULL
23763 #define NULL (void*)0
23764 #endif
23765
23766 static void *task(p)
23767         void *p;
23768 {
23769         return (void *) (p == NULL);
23770 }
23771
23772 int
23773 main ()
23774 {
23775
23776         /* pthread test function */
23777 #ifndef PTHREAD_CREATE_DETACHED
23778 #define PTHREAD_CREATE_DETACHED 1
23779 #endif
23780         pthread_t t;
23781         int status;
23782         int detach = PTHREAD_CREATE_DETACHED;
23783
23784 #if HAVE_PTHREADS > 4
23785         /* Final pthreads */
23786         pthread_attr_t attr;
23787
23788         status = pthread_attr_init(&attr);
23789         if( status ) return status;
23790
23791 #if HAVE_PTHREADS < 7
23792         status = pthread_attr_setdetachstate(&attr, &detach);
23793         if( status < 0 ) status = errno;
23794 #else
23795         status = pthread_attr_setdetachstate(&attr, detach);
23796 #endif
23797         if( status ) return status;
23798         status = pthread_create( &t, &attr, task, NULL );
23799 #if HAVE_PTHREADS < 7
23800         if( status < 0 ) status = errno;
23801 #endif
23802         if( status ) return status;
23803 #else
23804         /* Draft 4 pthreads */
23805         status = pthread_create( &t, pthread_attr_default, task, NULL );
23806         if( status ) return errno;
23807
23808         /* give thread a chance to complete */
23809         /* it should remain joinable and hence detachable */
23810         sleep( 1 );
23811
23812         status = pthread_detach( &t );
23813         if( status ) return errno;
23814 #endif
23815
23816 #ifdef HAVE_LINUX_THREADS
23817         pthread_kill_other_threads_np();
23818 #endif
23819
23820         return 0;
23821
23822   ;
23823   return 0;
23824 }
23825 _ACEOF
23826 rm -f conftest.$ac_objext conftest$ac_exeext
23827 if { (ac_try="$ac_link"
23828 case "(($ac_try" in
23829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23830   *) ac_try_echo=$ac_try;;
23831 esac
23832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23833   (eval "$ac_link") 2>conftest.er1
23834   ac_status=$?
23835   grep -v '^ *+' conftest.er1 >conftest.err
23836   rm -f conftest.er1
23837   cat conftest.err >&5
23838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23839   (exit $ac_status); } && {
23840          test -z "$ac_c_werror_flag" ||
23841          test ! -s conftest.err
23842        } && test -s conftest$ac_exeext &&
23843        $as_test_x conftest$ac_exeext; then
23844   ol_cv_pthread_threads=yes
23845 else
23846   echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23848
23849         ol_cv_pthread_threads=no
23850 fi
23851
23852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23853       conftest$ac_exeext conftest.$ac_ext
23854 else
23855   cat >conftest.$ac_ext <<_ACEOF
23856 /* confdefs.h.  */
23857 _ACEOF
23858 cat confdefs.h >>conftest.$ac_ext
23859 cat >>conftest.$ac_ext <<_ACEOF
23860 /* end confdefs.h.  */
23861
23862 /* pthread test headers */
23863 #include <pthread.h>
23864 #if HAVE_PTHREADS < 7
23865 #include <errno.h>
23866 #endif
23867 #ifndef NULL
23868 #define NULL (void*)0
23869 #endif
23870
23871 static void *task(p)
23872         void *p;
23873 {
23874         return (void *) (p == NULL);
23875 }
23876
23877
23878 int main(argc, argv)
23879         int argc;
23880         char **argv;
23881 {
23882
23883         /* pthread test function */
23884 #ifndef PTHREAD_CREATE_DETACHED
23885 #define PTHREAD_CREATE_DETACHED 1
23886 #endif
23887         pthread_t t;
23888         int status;
23889         int detach = PTHREAD_CREATE_DETACHED;
23890
23891 #if HAVE_PTHREADS > 4
23892         /* Final pthreads */
23893         pthread_attr_t attr;
23894
23895         status = pthread_attr_init(&attr);
23896         if( status ) return status;
23897
23898 #if HAVE_PTHREADS < 7
23899         status = pthread_attr_setdetachstate(&attr, &detach);
23900         if( status < 0 ) status = errno;
23901 #else
23902         status = pthread_attr_setdetachstate(&attr, detach);
23903 #endif
23904         if( status ) return status;
23905         status = pthread_create( &t, &attr, task, NULL );
23906 #if HAVE_PTHREADS < 7
23907         if( status < 0 ) status = errno;
23908 #endif
23909         if( status ) return status;
23910 #else
23911         /* Draft 4 pthreads */
23912         status = pthread_create( &t, pthread_attr_default, task, NULL );
23913         if( status ) return errno;
23914
23915         /* give thread a chance to complete */
23916         /* it should remain joinable and hence detachable */
23917         sleep( 1 );
23918
23919         status = pthread_detach( &t );
23920         if( status ) return errno;
23921 #endif
23922
23923 #ifdef HAVE_LINUX_THREADS
23924         pthread_kill_other_threads_np();
23925 #endif
23926
23927         return 0;
23928
23929 }
23930
23931 _ACEOF
23932 rm -f conftest$ac_exeext
23933 if { (ac_try="$ac_link"
23934 case "(($ac_try" in
23935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23936   *) ac_try_echo=$ac_try;;
23937 esac
23938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23939   (eval "$ac_link") 2>&5
23940   ac_status=$?
23941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23943   { (case "(($ac_try" in
23944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945   *) ac_try_echo=$ac_try;;
23946 esac
23947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23948   (eval "$ac_try") 2>&5
23949   ac_status=$?
23950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23951   (exit $ac_status); }; }; then
23952   ol_cv_pthread_threads=yes
23953 else
23954   echo "$as_me: program exited with status $ac_status" >&5
23955 echo "$as_me: failed program was:" >&5
23956 sed 's/^/| /' conftest.$ac_ext >&5
23957
23958 ( exit $ac_status )
23959 ol_cv_pthread_threads=no
23960 fi
23961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23962 fi
23963
23964
23965
23966                 # restore the LIBS
23967                 LIBS="$ol_LIBS"
23968
23969 fi
23970 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23971 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23972
23973         if test $ol_cv_pthread_threads = yes ; then
23974                 ol_link_pthreads="-threads"
23975                 ol_link_threads=posix
23976         fi
23977 fi
23978
23979
23980                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23981 if test "$ol_link_threads" = no ; then
23982         # try -lpthreads -lmach -lexc -lc_r
23983         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23984 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23985 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23986   echo $ECHO_N "(cached) $ECHO_C" >&6
23987 else
23988
23989                 # save the flags
23990                 ol_LIBS="$LIBS"
23991                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23992
23993                 if test "$cross_compiling" = yes; then
23994   cat >conftest.$ac_ext <<_ACEOF
23995 /* confdefs.h.  */
23996 _ACEOF
23997 cat confdefs.h >>conftest.$ac_ext
23998 cat >>conftest.$ac_ext <<_ACEOF
23999 /* end confdefs.h.  */
24000
24001 /* pthread test headers */
24002 #include <pthread.h>
24003 #if HAVE_PTHREADS < 7
24004 #include <errno.h>
24005 #endif
24006 #ifndef NULL
24007 #define NULL (void*)0
24008 #endif
24009
24010 static void *task(p)
24011         void *p;
24012 {
24013         return (void *) (p == NULL);
24014 }
24015
24016 int
24017 main ()
24018 {
24019
24020         /* pthread test function */
24021 #ifndef PTHREAD_CREATE_DETACHED
24022 #define PTHREAD_CREATE_DETACHED 1
24023 #endif
24024         pthread_t t;
24025         int status;
24026         int detach = PTHREAD_CREATE_DETACHED;
24027
24028 #if HAVE_PTHREADS > 4
24029         /* Final pthreads */
24030         pthread_attr_t attr;
24031
24032         status = pthread_attr_init(&attr);
24033         if( status ) return status;
24034
24035 #if HAVE_PTHREADS < 7
24036         status = pthread_attr_setdetachstate(&attr, &detach);
24037         if( status < 0 ) status = errno;
24038 #else
24039         status = pthread_attr_setdetachstate(&attr, detach);
24040 #endif
24041         if( status ) return status;
24042         status = pthread_create( &t, &attr, task, NULL );
24043 #if HAVE_PTHREADS < 7
24044         if( status < 0 ) status = errno;
24045 #endif
24046         if( status ) return status;
24047 #else
24048         /* Draft 4 pthreads */
24049         status = pthread_create( &t, pthread_attr_default, task, NULL );
24050         if( status ) return errno;
24051
24052         /* give thread a chance to complete */
24053         /* it should remain joinable and hence detachable */
24054         sleep( 1 );
24055
24056         status = pthread_detach( &t );
24057         if( status ) return errno;
24058 #endif
24059
24060 #ifdef HAVE_LINUX_THREADS
24061         pthread_kill_other_threads_np();
24062 #endif
24063
24064         return 0;
24065
24066   ;
24067   return 0;
24068 }
24069 _ACEOF
24070 rm -f conftest.$ac_objext conftest$ac_exeext
24071 if { (ac_try="$ac_link"
24072 case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24077   (eval "$ac_link") 2>conftest.er1
24078   ac_status=$?
24079   grep -v '^ *+' conftest.er1 >conftest.err
24080   rm -f conftest.er1
24081   cat conftest.err >&5
24082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083   (exit $ac_status); } && {
24084          test -z "$ac_c_werror_flag" ||
24085          test ! -s conftest.err
24086        } && test -s conftest$ac_exeext &&
24087        $as_test_x conftest$ac_exeext; then
24088   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24089 else
24090   echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24092
24093         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24094 fi
24095
24096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24097       conftest$ac_exeext conftest.$ac_ext
24098 else
24099   cat >conftest.$ac_ext <<_ACEOF
24100 /* confdefs.h.  */
24101 _ACEOF
24102 cat confdefs.h >>conftest.$ac_ext
24103 cat >>conftest.$ac_ext <<_ACEOF
24104 /* end confdefs.h.  */
24105
24106 /* pthread test headers */
24107 #include <pthread.h>
24108 #if HAVE_PTHREADS < 7
24109 #include <errno.h>
24110 #endif
24111 #ifndef NULL
24112 #define NULL (void*)0
24113 #endif
24114
24115 static void *task(p)
24116         void *p;
24117 {
24118         return (void *) (p == NULL);
24119 }
24120
24121
24122 int main(argc, argv)
24123         int argc;
24124         char **argv;
24125 {
24126
24127         /* pthread test function */
24128 #ifndef PTHREAD_CREATE_DETACHED
24129 #define PTHREAD_CREATE_DETACHED 1
24130 #endif
24131         pthread_t t;
24132         int status;
24133         int detach = PTHREAD_CREATE_DETACHED;
24134
24135 #if HAVE_PTHREADS > 4
24136         /* Final pthreads */
24137         pthread_attr_t attr;
24138
24139         status = pthread_attr_init(&attr);
24140         if( status ) return status;
24141
24142 #if HAVE_PTHREADS < 7
24143         status = pthread_attr_setdetachstate(&attr, &detach);
24144         if( status < 0 ) status = errno;
24145 #else
24146         status = pthread_attr_setdetachstate(&attr, detach);
24147 #endif
24148         if( status ) return status;
24149         status = pthread_create( &t, &attr, task, NULL );
24150 #if HAVE_PTHREADS < 7
24151         if( status < 0 ) status = errno;
24152 #endif
24153         if( status ) return status;
24154 #else
24155         /* Draft 4 pthreads */
24156         status = pthread_create( &t, pthread_attr_default, task, NULL );
24157         if( status ) return errno;
24158
24159         /* give thread a chance to complete */
24160         /* it should remain joinable and hence detachable */
24161         sleep( 1 );
24162
24163         status = pthread_detach( &t );
24164         if( status ) return errno;
24165 #endif
24166
24167 #ifdef HAVE_LINUX_THREADS
24168         pthread_kill_other_threads_np();
24169 #endif
24170
24171         return 0;
24172
24173 }
24174
24175 _ACEOF
24176 rm -f conftest$ac_exeext
24177 if { (ac_try="$ac_link"
24178 case "(($ac_try" in
24179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24180   *) ac_try_echo=$ac_try;;
24181 esac
24182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24183   (eval "$ac_link") 2>&5
24184   ac_status=$?
24185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24186   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24187   { (case "(($ac_try" in
24188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24189   *) ac_try_echo=$ac_try;;
24190 esac
24191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24192   (eval "$ac_try") 2>&5
24193   ac_status=$?
24194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195   (exit $ac_status); }; }; then
24196   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
24197 else
24198   echo "$as_me: program exited with status $ac_status" >&5
24199 echo "$as_me: failed program was:" >&5
24200 sed 's/^/| /' conftest.$ac_ext >&5
24201
24202 ( exit $ac_status )
24203 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
24204 fi
24205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24206 fi
24207
24208
24209
24210                 # restore the LIBS
24211                 LIBS="$ol_LIBS"
24212
24213 fi
24214 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
24215 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24216
24217         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24218                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24219                 ol_link_threads=posix
24220         fi
24221 fi
24222
24223                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24224 if test "$ol_link_threads" = no ; then
24225         # try -lpthreads -lmach -lexc
24226         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24227 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24228 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24229   echo $ECHO_N "(cached) $ECHO_C" >&6
24230 else
24231
24232                 # save the flags
24233                 ol_LIBS="$LIBS"
24234                 LIBS="-lpthreads -lmach -lexc $LIBS"
24235
24236                 if test "$cross_compiling" = yes; then
24237   cat >conftest.$ac_ext <<_ACEOF
24238 /* confdefs.h.  */
24239 _ACEOF
24240 cat confdefs.h >>conftest.$ac_ext
24241 cat >>conftest.$ac_ext <<_ACEOF
24242 /* end confdefs.h.  */
24243
24244 /* pthread test headers */
24245 #include <pthread.h>
24246 #if HAVE_PTHREADS < 7
24247 #include <errno.h>
24248 #endif
24249 #ifndef NULL
24250 #define NULL (void*)0
24251 #endif
24252
24253 static void *task(p)
24254         void *p;
24255 {
24256         return (void *) (p == NULL);
24257 }
24258
24259 int
24260 main ()
24261 {
24262
24263         /* pthread test function */
24264 #ifndef PTHREAD_CREATE_DETACHED
24265 #define PTHREAD_CREATE_DETACHED 1
24266 #endif
24267         pthread_t t;
24268         int status;
24269         int detach = PTHREAD_CREATE_DETACHED;
24270
24271 #if HAVE_PTHREADS > 4
24272         /* Final pthreads */
24273         pthread_attr_t attr;
24274
24275         status = pthread_attr_init(&attr);
24276         if( status ) return status;
24277
24278 #if HAVE_PTHREADS < 7
24279         status = pthread_attr_setdetachstate(&attr, &detach);
24280         if( status < 0 ) status = errno;
24281 #else
24282         status = pthread_attr_setdetachstate(&attr, detach);
24283 #endif
24284         if( status ) return status;
24285         status = pthread_create( &t, &attr, task, NULL );
24286 #if HAVE_PTHREADS < 7
24287         if( status < 0 ) status = errno;
24288 #endif
24289         if( status ) return status;
24290 #else
24291         /* Draft 4 pthreads */
24292         status = pthread_create( &t, pthread_attr_default, task, NULL );
24293         if( status ) return errno;
24294
24295         /* give thread a chance to complete */
24296         /* it should remain joinable and hence detachable */
24297         sleep( 1 );
24298
24299         status = pthread_detach( &t );
24300         if( status ) return errno;
24301 #endif
24302
24303 #ifdef HAVE_LINUX_THREADS
24304         pthread_kill_other_threads_np();
24305 #endif
24306
24307         return 0;
24308
24309   ;
24310   return 0;
24311 }
24312 _ACEOF
24313 rm -f conftest.$ac_objext conftest$ac_exeext
24314 if { (ac_try="$ac_link"
24315 case "(($ac_try" in
24316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24317   *) ac_try_echo=$ac_try;;
24318 esac
24319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24320   (eval "$ac_link") 2>conftest.er1
24321   ac_status=$?
24322   grep -v '^ *+' conftest.er1 >conftest.err
24323   rm -f conftest.er1
24324   cat conftest.err >&5
24325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326   (exit $ac_status); } && {
24327          test -z "$ac_c_werror_flag" ||
24328          test ! -s conftest.err
24329        } && test -s conftest$ac_exeext &&
24330        $as_test_x conftest$ac_exeext; then
24331   ol_cv_pthread_lpthreads_lmach_lexc=yes
24332 else
24333   echo "$as_me: failed program was:" >&5
24334 sed 's/^/| /' conftest.$ac_ext >&5
24335
24336         ol_cv_pthread_lpthreads_lmach_lexc=no
24337 fi
24338
24339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24340       conftest$ac_exeext conftest.$ac_ext
24341 else
24342   cat >conftest.$ac_ext <<_ACEOF
24343 /* confdefs.h.  */
24344 _ACEOF
24345 cat confdefs.h >>conftest.$ac_ext
24346 cat >>conftest.$ac_ext <<_ACEOF
24347 /* end confdefs.h.  */
24348
24349 /* pthread test headers */
24350 #include <pthread.h>
24351 #if HAVE_PTHREADS < 7
24352 #include <errno.h>
24353 #endif
24354 #ifndef NULL
24355 #define NULL (void*)0
24356 #endif
24357
24358 static void *task(p)
24359         void *p;
24360 {
24361         return (void *) (p == NULL);
24362 }
24363
24364
24365 int main(argc, argv)
24366         int argc;
24367         char **argv;
24368 {
24369
24370         /* pthread test function */
24371 #ifndef PTHREAD_CREATE_DETACHED
24372 #define PTHREAD_CREATE_DETACHED 1
24373 #endif
24374         pthread_t t;
24375         int status;
24376         int detach = PTHREAD_CREATE_DETACHED;
24377
24378 #if HAVE_PTHREADS > 4
24379         /* Final pthreads */
24380         pthread_attr_t attr;
24381
24382         status = pthread_attr_init(&attr);
24383         if( status ) return status;
24384
24385 #if HAVE_PTHREADS < 7
24386         status = pthread_attr_setdetachstate(&attr, &detach);
24387         if( status < 0 ) status = errno;
24388 #else
24389         status = pthread_attr_setdetachstate(&attr, detach);
24390 #endif
24391         if( status ) return status;
24392         status = pthread_create( &t, &attr, task, NULL );
24393 #if HAVE_PTHREADS < 7
24394         if( status < 0 ) status = errno;
24395 #endif
24396         if( status ) return status;
24397 #else
24398         /* Draft 4 pthreads */
24399         status = pthread_create( &t, pthread_attr_default, task, NULL );
24400         if( status ) return errno;
24401
24402         /* give thread a chance to complete */
24403         /* it should remain joinable and hence detachable */
24404         sleep( 1 );
24405
24406         status = pthread_detach( &t );
24407         if( status ) return errno;
24408 #endif
24409
24410 #ifdef HAVE_LINUX_THREADS
24411         pthread_kill_other_threads_np();
24412 #endif
24413
24414         return 0;
24415
24416 }
24417
24418 _ACEOF
24419 rm -f conftest$ac_exeext
24420 if { (ac_try="$ac_link"
24421 case "(($ac_try" in
24422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24423   *) ac_try_echo=$ac_try;;
24424 esac
24425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24426   (eval "$ac_link") 2>&5
24427   ac_status=$?
24428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24429   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24430   { (case "(($ac_try" in
24431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24432   *) ac_try_echo=$ac_try;;
24433 esac
24434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24435   (eval "$ac_try") 2>&5
24436   ac_status=$?
24437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438   (exit $ac_status); }; }; then
24439   ol_cv_pthread_lpthreads_lmach_lexc=yes
24440 else
24441   echo "$as_me: program exited with status $ac_status" >&5
24442 echo "$as_me: failed program was:" >&5
24443 sed 's/^/| /' conftest.$ac_ext >&5
24444
24445 ( exit $ac_status )
24446 ol_cv_pthread_lpthreads_lmach_lexc=no
24447 fi
24448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24449 fi
24450
24451
24452
24453                 # restore the LIBS
24454                 LIBS="$ol_LIBS"
24455
24456 fi
24457 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24458 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24459
24460         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24461                 ol_link_pthreads="-lpthreads -lmach -lexc"
24462                 ol_link_threads=posix
24463         fi
24464 fi
24465
24466                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24467 if test "$ol_link_threads" = no ; then
24468         # try -lpthreads -lexc
24469         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24470 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24471 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24472   echo $ECHO_N "(cached) $ECHO_C" >&6
24473 else
24474
24475                 # save the flags
24476                 ol_LIBS="$LIBS"
24477                 LIBS="-lpthreads -lexc $LIBS"
24478
24479                 if test "$cross_compiling" = yes; then
24480   cat >conftest.$ac_ext <<_ACEOF
24481 /* confdefs.h.  */
24482 _ACEOF
24483 cat confdefs.h >>conftest.$ac_ext
24484 cat >>conftest.$ac_ext <<_ACEOF
24485 /* end confdefs.h.  */
24486
24487 /* pthread test headers */
24488 #include <pthread.h>
24489 #if HAVE_PTHREADS < 7
24490 #include <errno.h>
24491 #endif
24492 #ifndef NULL
24493 #define NULL (void*)0
24494 #endif
24495
24496 static void *task(p)
24497         void *p;
24498 {
24499         return (void *) (p == NULL);
24500 }
24501
24502 int
24503 main ()
24504 {
24505
24506         /* pthread test function */
24507 #ifndef PTHREAD_CREATE_DETACHED
24508 #define PTHREAD_CREATE_DETACHED 1
24509 #endif
24510         pthread_t t;
24511         int status;
24512         int detach = PTHREAD_CREATE_DETACHED;
24513
24514 #if HAVE_PTHREADS > 4
24515         /* Final pthreads */
24516         pthread_attr_t attr;
24517
24518         status = pthread_attr_init(&attr);
24519         if( status ) return status;
24520
24521 #if HAVE_PTHREADS < 7
24522         status = pthread_attr_setdetachstate(&attr, &detach);
24523         if( status < 0 ) status = errno;
24524 #else
24525         status = pthread_attr_setdetachstate(&attr, detach);
24526 #endif
24527         if( status ) return status;
24528         status = pthread_create( &t, &attr, task, NULL );
24529 #if HAVE_PTHREADS < 7
24530         if( status < 0 ) status = errno;
24531 #endif
24532         if( status ) return status;
24533 #else
24534         /* Draft 4 pthreads */
24535         status = pthread_create( &t, pthread_attr_default, task, NULL );
24536         if( status ) return errno;
24537
24538         /* give thread a chance to complete */
24539         /* it should remain joinable and hence detachable */
24540         sleep( 1 );
24541
24542         status = pthread_detach( &t );
24543         if( status ) return errno;
24544 #endif
24545
24546 #ifdef HAVE_LINUX_THREADS
24547         pthread_kill_other_threads_np();
24548 #endif
24549
24550         return 0;
24551
24552   ;
24553   return 0;
24554 }
24555 _ACEOF
24556 rm -f conftest.$ac_objext conftest$ac_exeext
24557 if { (ac_try="$ac_link"
24558 case "(($ac_try" in
24559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24560   *) ac_try_echo=$ac_try;;
24561 esac
24562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24563   (eval "$ac_link") 2>conftest.er1
24564   ac_status=$?
24565   grep -v '^ *+' conftest.er1 >conftest.err
24566   rm -f conftest.er1
24567   cat conftest.err >&5
24568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24569   (exit $ac_status); } && {
24570          test -z "$ac_c_werror_flag" ||
24571          test ! -s conftest.err
24572        } && test -s conftest$ac_exeext &&
24573        $as_test_x conftest$ac_exeext; then
24574   ol_cv_pthread_lpthreads_lexc=yes
24575 else
24576   echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.$ac_ext >&5
24578
24579         ol_cv_pthread_lpthreads_lexc=no
24580 fi
24581
24582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24583       conftest$ac_exeext conftest.$ac_ext
24584 else
24585   cat >conftest.$ac_ext <<_ACEOF
24586 /* confdefs.h.  */
24587 _ACEOF
24588 cat confdefs.h >>conftest.$ac_ext
24589 cat >>conftest.$ac_ext <<_ACEOF
24590 /* end confdefs.h.  */
24591
24592 /* pthread test headers */
24593 #include <pthread.h>
24594 #if HAVE_PTHREADS < 7
24595 #include <errno.h>
24596 #endif
24597 #ifndef NULL
24598 #define NULL (void*)0
24599 #endif
24600
24601 static void *task(p)
24602         void *p;
24603 {
24604         return (void *) (p == NULL);
24605 }
24606
24607
24608 int main(argc, argv)
24609         int argc;
24610         char **argv;
24611 {
24612
24613         /* pthread test function */
24614 #ifndef PTHREAD_CREATE_DETACHED
24615 #define PTHREAD_CREATE_DETACHED 1
24616 #endif
24617         pthread_t t;
24618         int status;
24619         int detach = PTHREAD_CREATE_DETACHED;
24620
24621 #if HAVE_PTHREADS > 4
24622         /* Final pthreads */
24623         pthread_attr_t attr;
24624
24625         status = pthread_attr_init(&attr);
24626         if( status ) return status;
24627
24628 #if HAVE_PTHREADS < 7
24629         status = pthread_attr_setdetachstate(&attr, &detach);
24630         if( status < 0 ) status = errno;
24631 #else
24632         status = pthread_attr_setdetachstate(&attr, detach);
24633 #endif
24634         if( status ) return status;
24635         status = pthread_create( &t, &attr, task, NULL );
24636 #if HAVE_PTHREADS < 7
24637         if( status < 0 ) status = errno;
24638 #endif
24639         if( status ) return status;
24640 #else
24641         /* Draft 4 pthreads */
24642         status = pthread_create( &t, pthread_attr_default, task, NULL );
24643         if( status ) return errno;
24644
24645         /* give thread a chance to complete */
24646         /* it should remain joinable and hence detachable */
24647         sleep( 1 );
24648
24649         status = pthread_detach( &t );
24650         if( status ) return errno;
24651 #endif
24652
24653 #ifdef HAVE_LINUX_THREADS
24654         pthread_kill_other_threads_np();
24655 #endif
24656
24657         return 0;
24658
24659 }
24660
24661 _ACEOF
24662 rm -f conftest$ac_exeext
24663 if { (ac_try="$ac_link"
24664 case "(($ac_try" in
24665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24666   *) ac_try_echo=$ac_try;;
24667 esac
24668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24669   (eval "$ac_link") 2>&5
24670   ac_status=$?
24671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24673   { (case "(($ac_try" in
24674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24675   *) ac_try_echo=$ac_try;;
24676 esac
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678   (eval "$ac_try") 2>&5
24679   ac_status=$?
24680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24681   (exit $ac_status); }; }; then
24682   ol_cv_pthread_lpthreads_lexc=yes
24683 else
24684   echo "$as_me: program exited with status $ac_status" >&5
24685 echo "$as_me: failed program was:" >&5
24686 sed 's/^/| /' conftest.$ac_ext >&5
24687
24688 ( exit $ac_status )
24689 ol_cv_pthread_lpthreads_lexc=no
24690 fi
24691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24692 fi
24693
24694
24695
24696                 # restore the LIBS
24697                 LIBS="$ol_LIBS"
24698
24699 fi
24700 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24701 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24702
24703         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24704                 ol_link_pthreads="-lpthreads -lexc"
24705                 ol_link_threads=posix
24706         fi
24707 fi
24708
24709
24710                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24711 if test "$ol_link_threads" = no ; then
24712         # try -lpthreads
24713         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24714 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24715 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24716   echo $ECHO_N "(cached) $ECHO_C" >&6
24717 else
24718
24719                 # save the flags
24720                 ol_LIBS="$LIBS"
24721                 LIBS="-lpthreads $LIBS"
24722
24723                 if test "$cross_compiling" = yes; then
24724   cat >conftest.$ac_ext <<_ACEOF
24725 /* confdefs.h.  */
24726 _ACEOF
24727 cat confdefs.h >>conftest.$ac_ext
24728 cat >>conftest.$ac_ext <<_ACEOF
24729 /* end confdefs.h.  */
24730
24731 /* pthread test headers */
24732 #include <pthread.h>
24733 #if HAVE_PTHREADS < 7
24734 #include <errno.h>
24735 #endif
24736 #ifndef NULL
24737 #define NULL (void*)0
24738 #endif
24739
24740 static void *task(p)
24741         void *p;
24742 {
24743         return (void *) (p == NULL);
24744 }
24745
24746 int
24747 main ()
24748 {
24749
24750         /* pthread test function */
24751 #ifndef PTHREAD_CREATE_DETACHED
24752 #define PTHREAD_CREATE_DETACHED 1
24753 #endif
24754         pthread_t t;
24755         int status;
24756         int detach = PTHREAD_CREATE_DETACHED;
24757
24758 #if HAVE_PTHREADS > 4
24759         /* Final pthreads */
24760         pthread_attr_t attr;
24761
24762         status = pthread_attr_init(&attr);
24763         if( status ) return status;
24764
24765 #if HAVE_PTHREADS < 7
24766         status = pthread_attr_setdetachstate(&attr, &detach);
24767         if( status < 0 ) status = errno;
24768 #else
24769         status = pthread_attr_setdetachstate(&attr, detach);
24770 #endif
24771         if( status ) return status;
24772         status = pthread_create( &t, &attr, task, NULL );
24773 #if HAVE_PTHREADS < 7
24774         if( status < 0 ) status = errno;
24775 #endif
24776         if( status ) return status;
24777 #else
24778         /* Draft 4 pthreads */
24779         status = pthread_create( &t, pthread_attr_default, task, NULL );
24780         if( status ) return errno;
24781
24782         /* give thread a chance to complete */
24783         /* it should remain joinable and hence detachable */
24784         sleep( 1 );
24785
24786         status = pthread_detach( &t );
24787         if( status ) return errno;
24788 #endif
24789
24790 #ifdef HAVE_LINUX_THREADS
24791         pthread_kill_other_threads_np();
24792 #endif
24793
24794         return 0;
24795
24796   ;
24797   return 0;
24798 }
24799 _ACEOF
24800 rm -f conftest.$ac_objext conftest$ac_exeext
24801 if { (ac_try="$ac_link"
24802 case "(($ac_try" in
24803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24804   *) ac_try_echo=$ac_try;;
24805 esac
24806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24807   (eval "$ac_link") 2>conftest.er1
24808   ac_status=$?
24809   grep -v '^ *+' conftest.er1 >conftest.err
24810   rm -f conftest.er1
24811   cat conftest.err >&5
24812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24813   (exit $ac_status); } && {
24814          test -z "$ac_c_werror_flag" ||
24815          test ! -s conftest.err
24816        } && test -s conftest$ac_exeext &&
24817        $as_test_x conftest$ac_exeext; then
24818   ol_cv_pthread_lib_lpthreads=yes
24819 else
24820   echo "$as_me: failed program was:" >&5
24821 sed 's/^/| /' conftest.$ac_ext >&5
24822
24823         ol_cv_pthread_lib_lpthreads=no
24824 fi
24825
24826 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24827       conftest$ac_exeext conftest.$ac_ext
24828 else
24829   cat >conftest.$ac_ext <<_ACEOF
24830 /* confdefs.h.  */
24831 _ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h.  */
24835
24836 /* pthread test headers */
24837 #include <pthread.h>
24838 #if HAVE_PTHREADS < 7
24839 #include <errno.h>
24840 #endif
24841 #ifndef NULL
24842 #define NULL (void*)0
24843 #endif
24844
24845 static void *task(p)
24846         void *p;
24847 {
24848         return (void *) (p == NULL);
24849 }
24850
24851
24852 int main(argc, argv)
24853         int argc;
24854         char **argv;
24855 {
24856
24857         /* pthread test function */
24858 #ifndef PTHREAD_CREATE_DETACHED
24859 #define PTHREAD_CREATE_DETACHED 1
24860 #endif
24861         pthread_t t;
24862         int status;
24863         int detach = PTHREAD_CREATE_DETACHED;
24864
24865 #if HAVE_PTHREADS > 4
24866         /* Final pthreads */
24867         pthread_attr_t attr;
24868
24869         status = pthread_attr_init(&attr);
24870         if( status ) return status;
24871
24872 #if HAVE_PTHREADS < 7
24873         status = pthread_attr_setdetachstate(&attr, &detach);
24874         if( status < 0 ) status = errno;
24875 #else
24876         status = pthread_attr_setdetachstate(&attr, detach);
24877 #endif
24878         if( status ) return status;
24879         status = pthread_create( &t, &attr, task, NULL );
24880 #if HAVE_PTHREADS < 7
24881         if( status < 0 ) status = errno;
24882 #endif
24883         if( status ) return status;
24884 #else
24885         /* Draft 4 pthreads */
24886         status = pthread_create( &t, pthread_attr_default, task, NULL );
24887         if( status ) return errno;
24888
24889         /* give thread a chance to complete */
24890         /* it should remain joinable and hence detachable */
24891         sleep( 1 );
24892
24893         status = pthread_detach( &t );
24894         if( status ) return errno;
24895 #endif
24896
24897 #ifdef HAVE_LINUX_THREADS
24898         pthread_kill_other_threads_np();
24899 #endif
24900
24901         return 0;
24902
24903 }
24904
24905 _ACEOF
24906 rm -f conftest$ac_exeext
24907 if { (ac_try="$ac_link"
24908 case "(($ac_try" in
24909   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24910   *) ac_try_echo=$ac_try;;
24911 esac
24912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24913   (eval "$ac_link") 2>&5
24914   ac_status=$?
24915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24916   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24917   { (case "(($ac_try" in
24918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24919   *) ac_try_echo=$ac_try;;
24920 esac
24921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24922   (eval "$ac_try") 2>&5
24923   ac_status=$?
24924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24925   (exit $ac_status); }; }; then
24926   ol_cv_pthread_lib_lpthreads=yes
24927 else
24928   echo "$as_me: program exited with status $ac_status" >&5
24929 echo "$as_me: failed program was:" >&5
24930 sed 's/^/| /' conftest.$ac_ext >&5
24931
24932 ( exit $ac_status )
24933 ol_cv_pthread_lib_lpthreads=no
24934 fi
24935 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24936 fi
24937
24938
24939
24940                 # restore the LIBS
24941                 LIBS="$ol_LIBS"
24942
24943 fi
24944 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24945 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24946
24947         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24948                 ol_link_pthreads="-lpthreads"
24949                 ol_link_threads=posix
24950         fi
24951 fi
24952
24953
24954                 if test $ol_link_threads != no ; then
24955                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24956
24957                                                 save_CPPFLAGS="$CPPFLAGS"
24958                         save_LIBS="$LIBS"
24959                         LIBS="$LTHREAD_LIBS $LIBS"
24960
24961
24962
24963
24964 for ac_func in sched_yield pthread_yield thr_yield
24965 do
24966 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24967 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24968 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24969 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24970   echo $ECHO_N "(cached) $ECHO_C" >&6
24971 else
24972   cat >conftest.$ac_ext <<_ACEOF
24973 /* confdefs.h.  */
24974 _ACEOF
24975 cat confdefs.h >>conftest.$ac_ext
24976 cat >>conftest.$ac_ext <<_ACEOF
24977 /* end confdefs.h.  */
24978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24979    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24980 #define $ac_func innocuous_$ac_func
24981
24982 /* System header to define __stub macros and hopefully few prototypes,
24983     which can conflict with char $ac_func (); below.
24984     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24985     <limits.h> exists even on freestanding compilers.  */
24986
24987 #ifdef __STDC__
24988 # include <limits.h>
24989 #else
24990 # include <assert.h>
24991 #endif
24992
24993 #undef $ac_func
24994
24995 /* Override any GCC internal prototype to avoid an error.
24996    Use char because int might match the return type of a GCC
24997    builtin and then its argument prototype would still apply.  */
24998 #ifdef __cplusplus
24999 extern "C"
25000 #endif
25001 char $ac_func ();
25002 /* The GNU C library defines this for functions which it implements
25003     to always fail with ENOSYS.  Some functions are actually named
25004     something starting with __ and the normal name is an alias.  */
25005 #if defined __stub_$ac_func || defined __stub___$ac_func
25006 choke me
25007 #endif
25008
25009 int
25010 main ()
25011 {
25012 return $ac_func ();
25013   ;
25014   return 0;
25015 }
25016 _ACEOF
25017 rm -f conftest.$ac_objext conftest$ac_exeext
25018 if { (ac_try="$ac_link"
25019 case "(($ac_try" in
25020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25021   *) ac_try_echo=$ac_try;;
25022 esac
25023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25024   (eval "$ac_link") 2>conftest.er1
25025   ac_status=$?
25026   grep -v '^ *+' conftest.er1 >conftest.err
25027   rm -f conftest.er1
25028   cat conftest.err >&5
25029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25030   (exit $ac_status); } && {
25031          test -z "$ac_c_werror_flag" ||
25032          test ! -s conftest.err
25033        } && test -s conftest$ac_exeext &&
25034        $as_test_x conftest$ac_exeext; then
25035   eval "$as_ac_var=yes"
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         eval "$as_ac_var=no"
25041 fi
25042
25043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25044       conftest$ac_exeext conftest.$ac_ext
25045 fi
25046 ac_res=`eval echo '${'$as_ac_var'}'`
25047                { echo "$as_me:$LINENO: result: $ac_res" >&5
25048 echo "${ECHO_T}$ac_res" >&6; }
25049 if test `eval echo '${'$as_ac_var'}'` = yes; then
25050   cat >>confdefs.h <<_ACEOF
25051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25052 _ACEOF
25053
25054 fi
25055 done
25056
25057
25058                         if test $ac_cv_func_sched_yield = no &&
25059                            test $ac_cv_func_pthread_yield = no &&
25060                            test $ac_cv_func_thr_yield = no ; then
25061                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
25062 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
25063 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
25064   echo $ECHO_N "(cached) $ECHO_C" >&6
25065 else
25066   ac_check_lib_save_LIBS=$LIBS
25067 LIBS="-lrt  $LIBS"
25068 cat >conftest.$ac_ext <<_ACEOF
25069 /* confdefs.h.  */
25070 _ACEOF
25071 cat confdefs.h >>conftest.$ac_ext
25072 cat >>conftest.$ac_ext <<_ACEOF
25073 /* end confdefs.h.  */
25074
25075 /* Override any GCC internal prototype to avoid an error.
25076    Use char because int might match the return type of a GCC
25077    builtin and then its argument prototype would still apply.  */
25078 #ifdef __cplusplus
25079 extern "C"
25080 #endif
25081 char sched_yield ();
25082 int
25083 main ()
25084 {
25085 return sched_yield ();
25086   ;
25087   return 0;
25088 }
25089 _ACEOF
25090 rm -f conftest.$ac_objext conftest$ac_exeext
25091 if { (ac_try="$ac_link"
25092 case "(($ac_try" in
25093   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25094   *) ac_try_echo=$ac_try;;
25095 esac
25096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25097   (eval "$ac_link") 2>conftest.er1
25098   ac_status=$?
25099   grep -v '^ *+' conftest.er1 >conftest.err
25100   rm -f conftest.er1
25101   cat conftest.err >&5
25102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25103   (exit $ac_status); } && {
25104          test -z "$ac_c_werror_flag" ||
25105          test ! -s conftest.err
25106        } && test -s conftest$ac_exeext &&
25107        $as_test_x conftest$ac_exeext; then
25108   ac_cv_lib_rt_sched_yield=yes
25109 else
25110   echo "$as_me: failed program was:" >&5
25111 sed 's/^/| /' conftest.$ac_ext >&5
25112
25113         ac_cv_lib_rt_sched_yield=no
25114 fi
25115
25116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25117       conftest$ac_exeext conftest.$ac_ext
25118 LIBS=$ac_check_lib_save_LIBS
25119 fi
25120 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
25121 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
25122 if test $ac_cv_lib_rt_sched_yield = yes; then
25123   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
25124
25125 cat >>confdefs.h <<\_ACEOF
25126 #define HAVE_SCHED_YIELD 1
25127 _ACEOF
25128
25129                                         ac_cv_func_sched_yield=yes
25130 else
25131   ac_cv_func_sched_yield=no
25132 fi
25133
25134                         fi
25135                         if test $ac_cv_func_sched_yield = no &&
25136                            test $ac_cv_func_pthread_yield = no &&
25137                            test "$ac_cv_func_thr_yield" = no ; then
25138                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
25139 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
25140                         fi
25141
25142
25143 for ac_func in pthread_kill
25144 do
25145 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25146 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25147 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25148 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25149   echo $ECHO_N "(cached) $ECHO_C" >&6
25150 else
25151   cat >conftest.$ac_ext <<_ACEOF
25152 /* confdefs.h.  */
25153 _ACEOF
25154 cat confdefs.h >>conftest.$ac_ext
25155 cat >>conftest.$ac_ext <<_ACEOF
25156 /* end confdefs.h.  */
25157 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25158    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25159 #define $ac_func innocuous_$ac_func
25160
25161 /* System header to define __stub macros and hopefully few prototypes,
25162     which can conflict with char $ac_func (); below.
25163     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25164     <limits.h> exists even on freestanding compilers.  */
25165
25166 #ifdef __STDC__
25167 # include <limits.h>
25168 #else
25169 # include <assert.h>
25170 #endif
25171
25172 #undef $ac_func
25173
25174 /* Override any GCC internal prototype to avoid an error.
25175    Use char because int might match the return type of a GCC
25176    builtin and then its argument prototype would still apply.  */
25177 #ifdef __cplusplus
25178 extern "C"
25179 #endif
25180 char $ac_func ();
25181 /* The GNU C library defines this for functions which it implements
25182     to always fail with ENOSYS.  Some functions are actually named
25183     something starting with __ and the normal name is an alias.  */
25184 #if defined __stub_$ac_func || defined __stub___$ac_func
25185 choke me
25186 #endif
25187
25188 int
25189 main ()
25190 {
25191 return $ac_func ();
25192   ;
25193   return 0;
25194 }
25195 _ACEOF
25196 rm -f conftest.$ac_objext conftest$ac_exeext
25197 if { (ac_try="$ac_link"
25198 case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25203   (eval "$ac_link") 2>conftest.er1
25204   ac_status=$?
25205   grep -v '^ *+' conftest.er1 >conftest.err
25206   rm -f conftest.er1
25207   cat conftest.err >&5
25208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209   (exit $ac_status); } && {
25210          test -z "$ac_c_werror_flag" ||
25211          test ! -s conftest.err
25212        } && test -s conftest$ac_exeext &&
25213        $as_test_x conftest$ac_exeext; then
25214   eval "$as_ac_var=yes"
25215 else
25216   echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219         eval "$as_ac_var=no"
25220 fi
25221
25222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25223       conftest$ac_exeext conftest.$ac_ext
25224 fi
25225 ac_res=`eval echo '${'$as_ac_var'}'`
25226                { echo "$as_me:$LINENO: result: $ac_res" >&5
25227 echo "${ECHO_T}$ac_res" >&6; }
25228 if test `eval echo '${'$as_ac_var'}'` = yes; then
25229   cat >>confdefs.h <<_ACEOF
25230 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25231 _ACEOF
25232
25233 fi
25234 done
25235
25236
25237                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25238 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25239 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25240   echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242
25243                                                                 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h.  */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h.  */
25249
25250 #include <pthread.h>
25251 pthread_rwlock_t rwlock;
25252
25253 int
25254 main ()
25255 {
25256 pthread_rwlock_destroy(&rwlock);
25257   ;
25258   return 0;
25259 }
25260 _ACEOF
25261 rm -f conftest.$ac_objext conftest$ac_exeext
25262 if { (ac_try="$ac_link"
25263 case "(($ac_try" in
25264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25265   *) ac_try_echo=$ac_try;;
25266 esac
25267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25268   (eval "$ac_link") 2>conftest.er1
25269   ac_status=$?
25270   grep -v '^ *+' conftest.er1 >conftest.err
25271   rm -f conftest.er1
25272   cat conftest.err >&5
25273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25274   (exit $ac_status); } && {
25275          test -z "$ac_c_werror_flag" ||
25276          test ! -s conftest.err
25277        } && test -s conftest$ac_exeext &&
25278        $as_test_x conftest$ac_exeext; then
25279   ol_cv_func_pthread_rwlock_destroy=yes
25280 else
25281   echo "$as_me: failed program was:" >&5
25282 sed 's/^/| /' conftest.$ac_ext >&5
25283
25284         ol_cv_func_pthread_rwlock_destroy=no
25285 fi
25286
25287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25288       conftest$ac_exeext conftest.$ac_ext
25289
25290 fi
25291 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25292 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25293                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25294
25295 cat >>confdefs.h <<\_ACEOF
25296 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25297 _ACEOF
25298
25299                         fi
25300
25301                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25302 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25303 if test "${ol_cv_func_pthread_detach+set}" = set; then
25304   echo $ECHO_N "(cached) $ECHO_C" >&6
25305 else
25306
25307                                                                 cat >conftest.$ac_ext <<_ACEOF
25308 /* confdefs.h.  */
25309 _ACEOF
25310 cat confdefs.h >>conftest.$ac_ext
25311 cat >>conftest.$ac_ext <<_ACEOF
25312 /* end confdefs.h.  */
25313
25314 #include <pthread.h>
25315 #ifndef NULL
25316 #define NULL (void*)0
25317 #endif
25318
25319 int
25320 main ()
25321 {
25322 pthread_detach(NULL);
25323   ;
25324   return 0;
25325 }
25326 _ACEOF
25327 rm -f conftest.$ac_objext conftest$ac_exeext
25328 if { (ac_try="$ac_link"
25329 case "(($ac_try" in
25330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25331   *) ac_try_echo=$ac_try;;
25332 esac
25333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25334   (eval "$ac_link") 2>conftest.er1
25335   ac_status=$?
25336   grep -v '^ *+' conftest.er1 >conftest.err
25337   rm -f conftest.er1
25338   cat conftest.err >&5
25339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340   (exit $ac_status); } && {
25341          test -z "$ac_c_werror_flag" ||
25342          test ! -s conftest.err
25343        } && test -s conftest$ac_exeext &&
25344        $as_test_x conftest$ac_exeext; then
25345   ol_cv_func_pthread_detach=yes
25346 else
25347   echo "$as_me: failed program was:" >&5
25348 sed 's/^/| /' conftest.$ac_ext >&5
25349
25350         ol_cv_func_pthread_detach=no
25351 fi
25352
25353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25354       conftest$ac_exeext conftest.$ac_ext
25355
25356 fi
25357 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25358 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25359
25360                         if test $ol_cv_func_pthread_detach = no ; then
25361                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25362 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25363    { (exit 1); exit 1; }; }
25364                         fi
25365
25366
25367 cat >>confdefs.h <<\_ACEOF
25368 #define HAVE_PTHREAD_DETACH 1
25369 _ACEOF
25370
25371
25372
25373
25374
25375
25376 for ac_func in \
25377                                 pthread_setconcurrency \
25378                                 pthread_getconcurrency \
25379                                 thr_setconcurrency \
25380                                 thr_getconcurrency \
25381
25382 do
25383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25387   echo $ECHO_N "(cached) $ECHO_C" >&6
25388 else
25389   cat >conftest.$ac_ext <<_ACEOF
25390 /* confdefs.h.  */
25391 _ACEOF
25392 cat confdefs.h >>conftest.$ac_ext
25393 cat >>conftest.$ac_ext <<_ACEOF
25394 /* end confdefs.h.  */
25395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25396    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25397 #define $ac_func innocuous_$ac_func
25398
25399 /* System header to define __stub macros and hopefully few prototypes,
25400     which can conflict with char $ac_func (); below.
25401     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25402     <limits.h> exists even on freestanding compilers.  */
25403
25404 #ifdef __STDC__
25405 # include <limits.h>
25406 #else
25407 # include <assert.h>
25408 #endif
25409
25410 #undef $ac_func
25411
25412 /* Override any GCC internal prototype to avoid an error.
25413    Use char because int might match the return type of a GCC
25414    builtin and then its argument prototype would still apply.  */
25415 #ifdef __cplusplus
25416 extern "C"
25417 #endif
25418 char $ac_func ();
25419 /* The GNU C library defines this for functions which it implements
25420     to always fail with ENOSYS.  Some functions are actually named
25421     something starting with __ and the normal name is an alias.  */
25422 #if defined __stub_$ac_func || defined __stub___$ac_func
25423 choke me
25424 #endif
25425
25426 int
25427 main ()
25428 {
25429 return $ac_func ();
25430   ;
25431   return 0;
25432 }
25433 _ACEOF
25434 rm -f conftest.$ac_objext conftest$ac_exeext
25435 if { (ac_try="$ac_link"
25436 case "(($ac_try" in
25437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438   *) ac_try_echo=$ac_try;;
25439 esac
25440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25441   (eval "$ac_link") 2>conftest.er1
25442   ac_status=$?
25443   grep -v '^ *+' conftest.er1 >conftest.err
25444   rm -f conftest.er1
25445   cat conftest.err >&5
25446   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25447   (exit $ac_status); } && {
25448          test -z "$ac_c_werror_flag" ||
25449          test ! -s conftest.err
25450        } && test -s conftest$ac_exeext &&
25451        $as_test_x conftest$ac_exeext; then
25452   eval "$as_ac_var=yes"
25453 else
25454   echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457         eval "$as_ac_var=no"
25458 fi
25459
25460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25461       conftest$ac_exeext conftest.$ac_ext
25462 fi
25463 ac_res=`eval echo '${'$as_ac_var'}'`
25464                { echo "$as_me:$LINENO: result: $ac_res" >&5
25465 echo "${ECHO_T}$ac_res" >&6; }
25466 if test `eval echo '${'$as_ac_var'}'` = yes; then
25467   cat >>confdefs.h <<_ACEOF
25468 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25469 _ACEOF
25470
25471 fi
25472 done
25473
25474
25475
25476
25477 for ac_func in pthread_kill_other_threads_np
25478 do
25479 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25480 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25481 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25482 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25483   echo $ECHO_N "(cached) $ECHO_C" >&6
25484 else
25485   cat >conftest.$ac_ext <<_ACEOF
25486 /* confdefs.h.  */
25487 _ACEOF
25488 cat confdefs.h >>conftest.$ac_ext
25489 cat >>conftest.$ac_ext <<_ACEOF
25490 /* end confdefs.h.  */
25491 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25492    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25493 #define $ac_func innocuous_$ac_func
25494
25495 /* System header to define __stub macros and hopefully few prototypes,
25496     which can conflict with char $ac_func (); below.
25497     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25498     <limits.h> exists even on freestanding compilers.  */
25499
25500 #ifdef __STDC__
25501 # include <limits.h>
25502 #else
25503 # include <assert.h>
25504 #endif
25505
25506 #undef $ac_func
25507
25508 /* Override any GCC internal prototype to avoid an error.
25509    Use char because int might match the return type of a GCC
25510    builtin and then its argument prototype would still apply.  */
25511 #ifdef __cplusplus
25512 extern "C"
25513 #endif
25514 char $ac_func ();
25515 /* The GNU C library defines this for functions which it implements
25516     to always fail with ENOSYS.  Some functions are actually named
25517     something starting with __ and the normal name is an alias.  */
25518 #if defined __stub_$ac_func || defined __stub___$ac_func
25519 choke me
25520 #endif
25521
25522 int
25523 main ()
25524 {
25525 return $ac_func ();
25526   ;
25527   return 0;
25528 }
25529 _ACEOF
25530 rm -f conftest.$ac_objext conftest$ac_exeext
25531 if { (ac_try="$ac_link"
25532 case "(($ac_try" in
25533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25534   *) ac_try_echo=$ac_try;;
25535 esac
25536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25537   (eval "$ac_link") 2>conftest.er1
25538   ac_status=$?
25539   grep -v '^ *+' conftest.er1 >conftest.err
25540   rm -f conftest.er1
25541   cat conftest.err >&5
25542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25543   (exit $ac_status); } && {
25544          test -z "$ac_c_werror_flag" ||
25545          test ! -s conftest.err
25546        } && test -s conftest$ac_exeext &&
25547        $as_test_x conftest$ac_exeext; then
25548   eval "$as_ac_var=yes"
25549 else
25550   echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553         eval "$as_ac_var=no"
25554 fi
25555
25556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25557       conftest$ac_exeext conftest.$ac_ext
25558 fi
25559 ac_res=`eval echo '${'$as_ac_var'}'`
25560                { echo "$as_me:$LINENO: result: $ac_res" >&5
25561 echo "${ECHO_T}$ac_res" >&6; }
25562 if test `eval echo '${'$as_ac_var'}'` = yes; then
25563   cat >>confdefs.h <<_ACEOF
25564 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25565 _ACEOF
25566
25567 fi
25568 done
25569
25570         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25571 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25572 if test "${ol_cv_sys_linux_threads+set}" = set; then
25573   echo $ECHO_N "(cached) $ECHO_C" >&6
25574 else
25575   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25576 fi
25577 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25578 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25579
25580
25581
25582
25583         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25584 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25585 if test "${ol_cv_linux_threads+set}" = set; then
25586   echo $ECHO_N "(cached) $ECHO_C" >&6
25587 else
25588
25589                 if test $ol_cv_header_linux_threads = yes &&
25590                    test $ol_cv_sys_linux_threads = yes; then
25591                         ol_cv_linux_threads=yes
25592                 elif test $ol_cv_header_linux_threads = no &&
25593                      test $ol_cv_sys_linux_threads = no; then
25594                         ol_cv_linux_threads=no
25595                 else
25596                         ol_cv_linux_threads=error
25597                 fi
25598
25599 fi
25600 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25601 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25602
25603
25604                         if test $ol_cv_linux_threads = error; then
25605                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25606 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25607    { (exit 1); exit 1; }; };
25608                         fi
25609
25610                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25611 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25612 if test "${ol_cv_pthread_create_works+set}" = set; then
25613   echo $ECHO_N "(cached) $ECHO_C" >&6
25614 else
25615
25616                         if test "$cross_compiling" = yes; then
25617                                 ol_cv_pthread_create_works=yes
25618 else
25619   cat >conftest.$ac_ext <<_ACEOF
25620 /* confdefs.h.  */
25621 _ACEOF
25622 cat confdefs.h >>conftest.$ac_ext
25623 cat >>conftest.$ac_ext <<_ACEOF
25624 /* end confdefs.h.  */
25625
25626 /* pthread test headers */
25627 #include <pthread.h>
25628 #if HAVE_PTHREADS < 7
25629 #include <errno.h>
25630 #endif
25631 #ifndef NULL
25632 #define NULL (void*)0
25633 #endif
25634
25635 static void *task(p)
25636         void *p;
25637 {
25638         return (void *) (p == NULL);
25639 }
25640
25641
25642 int main(argc, argv)
25643         int argc;
25644         char **argv;
25645 {
25646
25647         /* pthread test function */
25648 #ifndef PTHREAD_CREATE_DETACHED
25649 #define PTHREAD_CREATE_DETACHED 1
25650 #endif
25651         pthread_t t;
25652         int status;
25653         int detach = PTHREAD_CREATE_DETACHED;
25654
25655 #if HAVE_PTHREADS > 4
25656         /* Final pthreads */
25657         pthread_attr_t attr;
25658
25659         status = pthread_attr_init(&attr);
25660         if( status ) return status;
25661
25662 #if HAVE_PTHREADS < 7
25663         status = pthread_attr_setdetachstate(&attr, &detach);
25664         if( status < 0 ) status = errno;
25665 #else
25666         status = pthread_attr_setdetachstate(&attr, detach);
25667 #endif
25668         if( status ) return status;
25669         status = pthread_create( &t, &attr, task, NULL );
25670 #if HAVE_PTHREADS < 7
25671         if( status < 0 ) status = errno;
25672 #endif
25673         if( status ) return status;
25674 #else
25675         /* Draft 4 pthreads */
25676         status = pthread_create( &t, pthread_attr_default, task, NULL );
25677         if( status ) return errno;
25678
25679         /* give thread a chance to complete */
25680         /* it should remain joinable and hence detachable */
25681         sleep( 1 );
25682
25683         status = pthread_detach( &t );
25684         if( status ) return errno;
25685 #endif
25686
25687 #ifdef HAVE_LINUX_THREADS
25688         pthread_kill_other_threads_np();
25689 #endif
25690
25691         return 0;
25692
25693 }
25694
25695 _ACEOF
25696 rm -f conftest$ac_exeext
25697 if { (ac_try="$ac_link"
25698 case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_link") 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25707   { (case "(($ac_try" in
25708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25709   *) ac_try_echo=$ac_try;;
25710 esac
25711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25712   (eval "$ac_try") 2>&5
25713   ac_status=$?
25714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715   (exit $ac_status); }; }; then
25716   ol_cv_pthread_create_works=yes
25717 else
25718   echo "$as_me: program exited with status $ac_status" >&5
25719 echo "$as_me: failed program was:" >&5
25720 sed 's/^/| /' conftest.$ac_ext >&5
25721
25722 ( exit $ac_status )
25723 ol_cv_pthread_create_works=no
25724 fi
25725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25726 fi
25727
25728
25729 fi
25730 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25731 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25732
25733                         if test $ol_cv_pthread_create_works = no ; then
25734                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25735 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25736    { (exit 1); exit 1; }; }
25737                         fi
25738
25739                         ol_replace_broken_yield=no
25740
25741                         if test $ol_replace_broken_yield = yes ; then
25742
25743 cat >>confdefs.h <<\_ACEOF
25744 #define REPLACE_BROKEN_YIELD 1
25745 _ACEOF
25746
25747                         fi
25748
25749                                                 if test $ol_with_yielding_select = auto ; then
25750                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25751 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25752 if test "${ol_cv_pthread_select_yields+set}" = set; then
25753   echo $ECHO_N "(cached) $ECHO_C" >&6
25754 else
25755
25756                                 if test "$cross_compiling" = yes; then
25757   ol_cv_pthread_select_yields=cross
25758 else
25759   cat >conftest.$ac_ext <<_ACEOF
25760 /* confdefs.h.  */
25761 _ACEOF
25762 cat confdefs.h >>conftest.$ac_ext
25763 cat >>conftest.$ac_ext <<_ACEOF
25764 /* end confdefs.h.  */
25765
25766 #include <sys/types.h>
25767 #include <sys/time.h>
25768 #include <unistd.h>
25769 #include <pthread.h>
25770 #ifndef NULL
25771 #define NULL (void*) 0
25772 #endif
25773
25774 static int fildes[2];
25775
25776 static void *task(p)
25777         void *p;
25778 {
25779         int i;
25780         struct timeval tv;
25781
25782         fd_set rfds;
25783
25784         tv.tv_sec=10;
25785         tv.tv_usec=0;
25786
25787         FD_ZERO(&rfds);
25788         FD_SET(fildes[0], &rfds);
25789
25790         /* we're not interested in any fds */
25791         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25792
25793         if(i < 0) {
25794                 perror("select");
25795                 exit(10);
25796         }
25797
25798         exit(0); /* if we exit here, the select blocked the whole process */
25799 }
25800
25801 int main(argc, argv)
25802         int argc;
25803         char **argv;
25804 {
25805         pthread_t t;
25806
25807         /* create a pipe to select */
25808         if(pipe(&fildes[0])) {
25809                 perror("select");
25810                 exit(1);
25811         }
25812
25813 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25814         (void) pthread_setconcurrency(2);
25815 #else
25816 #ifdef HAVE_THR_SETCONCURRENCY
25817         /* Set Solaris LWP concurrency to 2 */
25818         thr_setconcurrency(2);
25819 #endif
25820 #endif
25821
25822 #if HAVE_PTHREADS < 6
25823         pthread_create(&t, pthread_attr_default, task, NULL);
25824 #else
25825         pthread_create(&t, NULL, task, NULL);
25826 #endif
25827
25828         /* make sure task runs first */
25829 #ifdef HAVE_THR_YIELD
25830         thr_yield();
25831 #elif defined( HAVE_SCHED_YIELD )
25832         sched_yield();
25833 #elif defined( HAVE_PTHREAD_YIELD )
25834         pthread_yield();
25835 #endif
25836
25837         exit(2);
25838 }
25839 _ACEOF
25840 rm -f conftest$ac_exeext
25841 if { (ac_try="$ac_link"
25842 case "(($ac_try" in
25843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25844   *) ac_try_echo=$ac_try;;
25845 esac
25846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25847   (eval "$ac_link") 2>&5
25848   ac_status=$?
25849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25850   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25851   { (case "(($ac_try" in
25852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853   *) ac_try_echo=$ac_try;;
25854 esac
25855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25856   (eval "$ac_try") 2>&5
25857   ac_status=$?
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); }; }; then
25860   ol_cv_pthread_select_yields=no
25861 else
25862   echo "$as_me: program exited with status $ac_status" >&5
25863 echo "$as_me: failed program was:" >&5
25864 sed 's/^/| /' conftest.$ac_ext >&5
25865
25866 ( exit $ac_status )
25867 ol_cv_pthread_select_yields=yes
25868 fi
25869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25870 fi
25871
25872
25873 fi
25874 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25875 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25876
25877                                 if test $ol_cv_pthread_select_yields = cross ; then
25878                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25879 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25880    { (exit 1); exit 1; }; }
25881                                 fi
25882
25883                                 if test $ol_cv_pthread_select_yields = yes ; then
25884                                         ol_with_yielding_select=yes
25885                                 fi
25886                         fi
25887
25888                                                 CPPFLAGS="$save_CPPFLAGS"
25889                         LIBS="$save_LIBS"
25890                 else
25891                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25892 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25893    { (exit 1); exit 1; }; }
25894                 fi
25895         fi
25896
25897         if test $ol_with_threads = posix ; then
25898                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25899 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25900    { (exit 1); exit 1; }; }
25901         fi
25902         ;;
25903 esac
25904
25905 case $ol_with_threads in auto | yes | mach)
25906
25907
25908
25909 for ac_header in mach/cthreads.h cthreads.h
25910 do
25911 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25913   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25916   echo $ECHO_N "(cached) $ECHO_C" >&6
25917 fi
25918 ac_res=`eval echo '${'$as_ac_Header'}'`
25919                { echo "$as_me:$LINENO: result: $ac_res" >&5
25920 echo "${ECHO_T}$ac_res" >&6; }
25921 else
25922   # Is the header compilable?
25923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25925 cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h.  */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h.  */
25931 $ac_includes_default
25932 #include <$ac_header>
25933 _ACEOF
25934 rm -f conftest.$ac_objext
25935 if { (ac_try="$ac_compile"
25936 case "(($ac_try" in
25937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25938   *) ac_try_echo=$ac_try;;
25939 esac
25940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25941   (eval "$ac_compile") 2>conftest.er1
25942   ac_status=$?
25943   grep -v '^ *+' conftest.er1 >conftest.err
25944   rm -f conftest.er1
25945   cat conftest.err >&5
25946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25947   (exit $ac_status); } && {
25948          test -z "$ac_c_werror_flag" ||
25949          test ! -s conftest.err
25950        } && test -s conftest.$ac_objext; then
25951   ac_header_compiler=yes
25952 else
25953   echo "$as_me: failed program was:" >&5
25954 sed 's/^/| /' conftest.$ac_ext >&5
25955
25956         ac_header_compiler=no
25957 fi
25958
25959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25961 echo "${ECHO_T}$ac_header_compiler" >&6; }
25962
25963 # Is the header present?
25964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25966 cat >conftest.$ac_ext <<_ACEOF
25967 /* confdefs.h.  */
25968 _ACEOF
25969 cat confdefs.h >>conftest.$ac_ext
25970 cat >>conftest.$ac_ext <<_ACEOF
25971 /* end confdefs.h.  */
25972 #include <$ac_header>
25973 _ACEOF
25974 if { (ac_try="$ac_cpp conftest.$ac_ext"
25975 case "(($ac_try" in
25976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25977   *) ac_try_echo=$ac_try;;
25978 esac
25979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25980   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25981   ac_status=$?
25982   grep -v '^ *+' conftest.er1 >conftest.err
25983   rm -f conftest.er1
25984   cat conftest.err >&5
25985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986   (exit $ac_status); } >/dev/null && {
25987          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25988          test ! -s conftest.err
25989        }; then
25990   ac_header_preproc=yes
25991 else
25992   echo "$as_me: failed program was:" >&5
25993 sed 's/^/| /' conftest.$ac_ext >&5
25994
25995   ac_header_preproc=no
25996 fi
25997
25998 rm -f conftest.err conftest.$ac_ext
25999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26000 echo "${ECHO_T}$ac_header_preproc" >&6; }
26001
26002 # So?  What about this header?
26003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26004   yes:no: )
26005     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26007     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26009     ac_header_preproc=yes
26010     ;;
26011   no:yes:* )
26012     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26014     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26015 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26016     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26018     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26019 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26020     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26022     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26024     ( cat <<\_ASBOX
26025 ## --------------------------------------------- ##
26026 ## Report this to <http://www.openldap.org/its/> ##
26027 ## --------------------------------------------- ##
26028 _ASBOX
26029      ) | sed "s/^/$as_me: WARNING:     /" >&2
26030     ;;
26031 esac
26032 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26033 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26035   echo $ECHO_N "(cached) $ECHO_C" >&6
26036 else
26037   eval "$as_ac_Header=\$ac_header_preproc"
26038 fi
26039 ac_res=`eval echo '${'$as_ac_Header'}'`
26040                { echo "$as_me:$LINENO: result: $ac_res" >&5
26041 echo "${ECHO_T}$ac_res" >&6; }
26042
26043 fi
26044 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26045   cat >>confdefs.h <<_ACEOF
26046 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26047 _ACEOF
26048
26049 fi
26050
26051 done
26052
26053         if test $ac_cv_header_mach_cthreads_h = yes ; then
26054                 ol_with_threads=found
26055
26056                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26057 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26058 if test "${ac_cv_func_cthread_fork+set}" = set; then
26059   echo $ECHO_N "(cached) $ECHO_C" >&6
26060 else
26061   cat >conftest.$ac_ext <<_ACEOF
26062 /* confdefs.h.  */
26063 _ACEOF
26064 cat confdefs.h >>conftest.$ac_ext
26065 cat >>conftest.$ac_ext <<_ACEOF
26066 /* end confdefs.h.  */
26067 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26069 #define cthread_fork innocuous_cthread_fork
26070
26071 /* System header to define __stub macros and hopefully few prototypes,
26072     which can conflict with char cthread_fork (); below.
26073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26074     <limits.h> exists even on freestanding compilers.  */
26075
26076 #ifdef __STDC__
26077 # include <limits.h>
26078 #else
26079 # include <assert.h>
26080 #endif
26081
26082 #undef cthread_fork
26083
26084 /* Override any GCC internal prototype to avoid an error.
26085    Use char because int might match the return type of a GCC
26086    builtin and then its argument prototype would still apply.  */
26087 #ifdef __cplusplus
26088 extern "C"
26089 #endif
26090 char cthread_fork ();
26091 /* The GNU C library defines this for functions which it implements
26092     to always fail with ENOSYS.  Some functions are actually named
26093     something starting with __ and the normal name is an alias.  */
26094 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26095 choke me
26096 #endif
26097
26098 int
26099 main ()
26100 {
26101 return cthread_fork ();
26102   ;
26103   return 0;
26104 }
26105 _ACEOF
26106 rm -f conftest.$ac_objext conftest$ac_exeext
26107 if { (ac_try="$ac_link"
26108 case "(($ac_try" in
26109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26110   *) ac_try_echo=$ac_try;;
26111 esac
26112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26113   (eval "$ac_link") 2>conftest.er1
26114   ac_status=$?
26115   grep -v '^ *+' conftest.er1 >conftest.err
26116   rm -f conftest.er1
26117   cat conftest.err >&5
26118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26119   (exit $ac_status); } && {
26120          test -z "$ac_c_werror_flag" ||
26121          test ! -s conftest.err
26122        } && test -s conftest$ac_exeext &&
26123        $as_test_x conftest$ac_exeext; then
26124   ac_cv_func_cthread_fork=yes
26125 else
26126   echo "$as_me: failed program was:" >&5
26127 sed 's/^/| /' conftest.$ac_ext >&5
26128
26129         ac_cv_func_cthread_fork=no
26130 fi
26131
26132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26133       conftest$ac_exeext conftest.$ac_ext
26134 fi
26135 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26136 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26137 if test $ac_cv_func_cthread_fork = yes; then
26138   ol_link_threads=yes
26139 fi
26140
26141
26142                 if test $ol_link_threads = no ; then
26143                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
26144 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
26145 if test "${ol_cv_cthread_all_load+set}" = set; then
26146   echo $ECHO_N "(cached) $ECHO_C" >&6
26147 else
26148
26149                                                                 save_LIBS="$LIBS"
26150                                 LIBS="-all_load $LIBS"
26151                                 cat >conftest.$ac_ext <<_ACEOF
26152 /* confdefs.h.  */
26153 _ACEOF
26154 cat confdefs.h >>conftest.$ac_ext
26155 cat >>conftest.$ac_ext <<_ACEOF
26156 /* end confdefs.h.  */
26157 #include <mach/cthreads.h>
26158 int
26159 main ()
26160 {
26161
26162                                         cthread_fork((void *)0, (void *)0);
26163
26164   ;
26165   return 0;
26166 }
26167 _ACEOF
26168 rm -f conftest.$ac_objext conftest$ac_exeext
26169 if { (ac_try="$ac_link"
26170 case "(($ac_try" in
26171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172   *) ac_try_echo=$ac_try;;
26173 esac
26174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26175   (eval "$ac_link") 2>conftest.er1
26176   ac_status=$?
26177   grep -v '^ *+' conftest.er1 >conftest.err
26178   rm -f conftest.er1
26179   cat conftest.err >&5
26180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26181   (exit $ac_status); } && {
26182          test -z "$ac_c_werror_flag" ||
26183          test ! -s conftest.err
26184        } && test -s conftest$ac_exeext &&
26185        $as_test_x conftest$ac_exeext; then
26186   ol_cv_cthread_all_load=yes
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191         ol_cv_cthread_all_load=no
26192 fi
26193
26194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26195       conftest$ac_exeext conftest.$ac_ext
26196                                                                 LIBS="$save_LIBS"
26197
26198 fi
26199 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
26200 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
26201
26202                         if test $ol_cv_cthread_all_load = yes ; then
26203                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
26204                                 ol_link_threads=mach
26205                                 ol_with_threads=found
26206                         fi
26207                 fi
26208
26209         elif test $ac_cv_header_cthreads_h = yes ; then
26210
26211                 ol_with_threads=found
26212
26213                                 save_LIBS="$LIBS"
26214                 LIBS="$LIBS -lthreads"
26215                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26216 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26217 if test "${ac_cv_func_cthread_fork+set}" = set; then
26218   echo $ECHO_N "(cached) $ECHO_C" >&6
26219 else
26220   cat >conftest.$ac_ext <<_ACEOF
26221 /* confdefs.h.  */
26222 _ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h.  */
26226 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26227    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26228 #define cthread_fork innocuous_cthread_fork
26229
26230 /* System header to define __stub macros and hopefully few prototypes,
26231     which can conflict with char cthread_fork (); below.
26232     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26233     <limits.h> exists even on freestanding compilers.  */
26234
26235 #ifdef __STDC__
26236 # include <limits.h>
26237 #else
26238 # include <assert.h>
26239 #endif
26240
26241 #undef cthread_fork
26242
26243 /* Override any GCC internal prototype to avoid an error.
26244    Use char because int might match the return type of a GCC
26245    builtin and then its argument prototype would still apply.  */
26246 #ifdef __cplusplus
26247 extern "C"
26248 #endif
26249 char cthread_fork ();
26250 /* The GNU C library defines this for functions which it implements
26251     to always fail with ENOSYS.  Some functions are actually named
26252     something starting with __ and the normal name is an alias.  */
26253 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26254 choke me
26255 #endif
26256
26257 int
26258 main ()
26259 {
26260 return cthread_fork ();
26261   ;
26262   return 0;
26263 }
26264 _ACEOF
26265 rm -f conftest.$ac_objext conftest$ac_exeext
26266 if { (ac_try="$ac_link"
26267 case "(($ac_try" in
26268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26269   *) ac_try_echo=$ac_try;;
26270 esac
26271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26272   (eval "$ac_link") 2>conftest.er1
26273   ac_status=$?
26274   grep -v '^ *+' conftest.er1 >conftest.err
26275   rm -f conftest.er1
26276   cat conftest.err >&5
26277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26278   (exit $ac_status); } && {
26279          test -z "$ac_c_werror_flag" ||
26280          test ! -s conftest.err
26281        } && test -s conftest$ac_exeext &&
26282        $as_test_x conftest$ac_exeext; then
26283   ac_cv_func_cthread_fork=yes
26284 else
26285   echo "$as_me: failed program was:" >&5
26286 sed 's/^/| /' conftest.$ac_ext >&5
26287
26288         ac_cv_func_cthread_fork=no
26289 fi
26290
26291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26292       conftest$ac_exeext conftest.$ac_ext
26293 fi
26294 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26295 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26296 if test $ac_cv_func_cthread_fork = yes; then
26297   ol_link_threads=yes
26298 fi
26299
26300                 LIBS="$save_LIBS"
26301
26302                 if test $ol_link_threads = yes ; then
26303                         LTHREAD_LIBS="-lthreads"
26304                         ol_link_threads=mach
26305                         ol_with_threads=found
26306                 else
26307                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26308 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26309    { (exit 1); exit 1; }; }
26310                 fi
26311
26312         elif test $ol_with_threads = mach ; then
26313                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26314 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26315    { (exit 1); exit 1; }; }
26316         fi
26317
26318         if test $ol_link_threads = mach ; then
26319
26320 cat >>confdefs.h <<\_ACEOF
26321 #define HAVE_MACH_CTHREADS 1
26322 _ACEOF
26323
26324         elif test $ol_with_threads = found ; then
26325                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26326 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26327    { (exit 1); exit 1; }; }
26328         fi
26329         ;;
26330 esac
26331
26332 case $ol_with_threads in auto | yes | pth)
26333
26334
26335 for ac_header in pth.h
26336 do
26337 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26339   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26342   echo $ECHO_N "(cached) $ECHO_C" >&6
26343 fi
26344 ac_res=`eval echo '${'$as_ac_Header'}'`
26345                { echo "$as_me:$LINENO: result: $ac_res" >&5
26346 echo "${ECHO_T}$ac_res" >&6; }
26347 else
26348   # Is the header compilable?
26349 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26350 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26351 cat >conftest.$ac_ext <<_ACEOF
26352 /* confdefs.h.  */
26353 _ACEOF
26354 cat confdefs.h >>conftest.$ac_ext
26355 cat >>conftest.$ac_ext <<_ACEOF
26356 /* end confdefs.h.  */
26357 $ac_includes_default
26358 #include <$ac_header>
26359 _ACEOF
26360 rm -f conftest.$ac_objext
26361 if { (ac_try="$ac_compile"
26362 case "(($ac_try" in
26363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26364   *) ac_try_echo=$ac_try;;
26365 esac
26366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26367   (eval "$ac_compile") 2>conftest.er1
26368   ac_status=$?
26369   grep -v '^ *+' conftest.er1 >conftest.err
26370   rm -f conftest.er1
26371   cat conftest.err >&5
26372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26373   (exit $ac_status); } && {
26374          test -z "$ac_c_werror_flag" ||
26375          test ! -s conftest.err
26376        } && test -s conftest.$ac_objext; then
26377   ac_header_compiler=yes
26378 else
26379   echo "$as_me: failed program was:" >&5
26380 sed 's/^/| /' conftest.$ac_ext >&5
26381
26382         ac_header_compiler=no
26383 fi
26384
26385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26386 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26387 echo "${ECHO_T}$ac_header_compiler" >&6; }
26388
26389 # Is the header present?
26390 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26391 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26392 cat >conftest.$ac_ext <<_ACEOF
26393 /* confdefs.h.  */
26394 _ACEOF
26395 cat confdefs.h >>conftest.$ac_ext
26396 cat >>conftest.$ac_ext <<_ACEOF
26397 /* end confdefs.h.  */
26398 #include <$ac_header>
26399 _ACEOF
26400 if { (ac_try="$ac_cpp conftest.$ac_ext"
26401 case "(($ac_try" in
26402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26403   *) ac_try_echo=$ac_try;;
26404 esac
26405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26406   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26407   ac_status=$?
26408   grep -v '^ *+' conftest.er1 >conftest.err
26409   rm -f conftest.er1
26410   cat conftest.err >&5
26411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26412   (exit $ac_status); } >/dev/null && {
26413          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26414          test ! -s conftest.err
26415        }; then
26416   ac_header_preproc=yes
26417 else
26418   echo "$as_me: failed program was:" >&5
26419 sed 's/^/| /' conftest.$ac_ext >&5
26420
26421   ac_header_preproc=no
26422 fi
26423
26424 rm -f conftest.err conftest.$ac_ext
26425 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26426 echo "${ECHO_T}$ac_header_preproc" >&6; }
26427
26428 # So?  What about this header?
26429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26430   yes:no: )
26431     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26433     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26435     ac_header_preproc=yes
26436     ;;
26437   no:yes:* )
26438     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26440     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26441 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26442     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26444     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26445 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26446     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26448     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26450     ( cat <<\_ASBOX
26451 ## --------------------------------------------- ##
26452 ## Report this to <http://www.openldap.org/its/> ##
26453 ## --------------------------------------------- ##
26454 _ASBOX
26455      ) | sed "s/^/$as_me: WARNING:     /" >&2
26456     ;;
26457 esac
26458 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26459 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26460 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26461   echo $ECHO_N "(cached) $ECHO_C" >&6
26462 else
26463   eval "$as_ac_Header=\$ac_header_preproc"
26464 fi
26465 ac_res=`eval echo '${'$as_ac_Header'}'`
26466                { echo "$as_me:$LINENO: result: $ac_res" >&5
26467 echo "${ECHO_T}$ac_res" >&6; }
26468
26469 fi
26470 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26471   cat >>confdefs.h <<_ACEOF
26472 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26473 _ACEOF
26474
26475 fi
26476
26477 done
26478
26479
26480         if test $ac_cv_header_pth_h = yes ; then
26481                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26482 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26483 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26484   echo $ECHO_N "(cached) $ECHO_C" >&6
26485 else
26486   ac_check_lib_save_LIBS=$LIBS
26487 LIBS="-lpth  $LIBS"
26488 cat >conftest.$ac_ext <<_ACEOF
26489 /* confdefs.h.  */
26490 _ACEOF
26491 cat confdefs.h >>conftest.$ac_ext
26492 cat >>conftest.$ac_ext <<_ACEOF
26493 /* end confdefs.h.  */
26494
26495 /* Override any GCC internal prototype to avoid an error.
26496    Use char because int might match the return type of a GCC
26497    builtin and then its argument prototype would still apply.  */
26498 #ifdef __cplusplus
26499 extern "C"
26500 #endif
26501 char pth_version ();
26502 int
26503 main ()
26504 {
26505 return pth_version ();
26506   ;
26507   return 0;
26508 }
26509 _ACEOF
26510 rm -f conftest.$ac_objext conftest$ac_exeext
26511 if { (ac_try="$ac_link"
26512 case "(($ac_try" in
26513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26514   *) ac_try_echo=$ac_try;;
26515 esac
26516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26517   (eval "$ac_link") 2>conftest.er1
26518   ac_status=$?
26519   grep -v '^ *+' conftest.er1 >conftest.err
26520   rm -f conftest.er1
26521   cat conftest.err >&5
26522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26523   (exit $ac_status); } && {
26524          test -z "$ac_c_werror_flag" ||
26525          test ! -s conftest.err
26526        } && test -s conftest$ac_exeext &&
26527        $as_test_x conftest$ac_exeext; then
26528   ac_cv_lib_pth_pth_version=yes
26529 else
26530   echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533         ac_cv_lib_pth_pth_version=no
26534 fi
26535
26536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26537       conftest$ac_exeext conftest.$ac_ext
26538 LIBS=$ac_check_lib_save_LIBS
26539 fi
26540 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26541 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26542 if test $ac_cv_lib_pth_pth_version = yes; then
26543   have_pth=yes
26544 else
26545   have_pth=no
26546 fi
26547
26548
26549                 if test $have_pth = yes ; then
26550
26551 cat >>confdefs.h <<\_ACEOF
26552 #define HAVE_GNU_PTH 1
26553 _ACEOF
26554
26555                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26556                         ol_link_threads=pth
26557                         ol_with_threads=found
26558
26559                         if test $ol_with_yielding_select = auto ; then
26560                                 ol_with_yielding_select=yes
26561                         fi
26562                 fi
26563         fi
26564         ;;
26565 esac
26566
26567 case $ol_with_threads in auto | yes | lwp)
26568
26569
26570
26571 for ac_header in thread.h synch.h
26572 do
26573 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26574 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26575   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26578   echo $ECHO_N "(cached) $ECHO_C" >&6
26579 fi
26580 ac_res=`eval echo '${'$as_ac_Header'}'`
26581                { echo "$as_me:$LINENO: result: $ac_res" >&5
26582 echo "${ECHO_T}$ac_res" >&6; }
26583 else
26584   # Is the header compilable?
26585 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26586 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26587 cat >conftest.$ac_ext <<_ACEOF
26588 /* confdefs.h.  */
26589 _ACEOF
26590 cat confdefs.h >>conftest.$ac_ext
26591 cat >>conftest.$ac_ext <<_ACEOF
26592 /* end confdefs.h.  */
26593 $ac_includes_default
26594 #include <$ac_header>
26595 _ACEOF
26596 rm -f conftest.$ac_objext
26597 if { (ac_try="$ac_compile"
26598 case "(($ac_try" in
26599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26600   *) ac_try_echo=$ac_try;;
26601 esac
26602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26603   (eval "$ac_compile") 2>conftest.er1
26604   ac_status=$?
26605   grep -v '^ *+' conftest.er1 >conftest.err
26606   rm -f conftest.er1
26607   cat conftest.err >&5
26608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26609   (exit $ac_status); } && {
26610          test -z "$ac_c_werror_flag" ||
26611          test ! -s conftest.err
26612        } && test -s conftest.$ac_objext; then
26613   ac_header_compiler=yes
26614 else
26615   echo "$as_me: failed program was:" >&5
26616 sed 's/^/| /' conftest.$ac_ext >&5
26617
26618         ac_header_compiler=no
26619 fi
26620
26621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26622 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26623 echo "${ECHO_T}$ac_header_compiler" >&6; }
26624
26625 # Is the header present?
26626 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26627 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26628 cat >conftest.$ac_ext <<_ACEOF
26629 /* confdefs.h.  */
26630 _ACEOF
26631 cat confdefs.h >>conftest.$ac_ext
26632 cat >>conftest.$ac_ext <<_ACEOF
26633 /* end confdefs.h.  */
26634 #include <$ac_header>
26635 _ACEOF
26636 if { (ac_try="$ac_cpp conftest.$ac_ext"
26637 case "(($ac_try" in
26638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26639   *) ac_try_echo=$ac_try;;
26640 esac
26641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26642   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26643   ac_status=$?
26644   grep -v '^ *+' conftest.er1 >conftest.err
26645   rm -f conftest.er1
26646   cat conftest.err >&5
26647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26648   (exit $ac_status); } >/dev/null && {
26649          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26650          test ! -s conftest.err
26651        }; then
26652   ac_header_preproc=yes
26653 else
26654   echo "$as_me: failed program was:" >&5
26655 sed 's/^/| /' conftest.$ac_ext >&5
26656
26657   ac_header_preproc=no
26658 fi
26659
26660 rm -f conftest.err conftest.$ac_ext
26661 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26662 echo "${ECHO_T}$ac_header_preproc" >&6; }
26663
26664 # So?  What about this header?
26665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26666   yes:no: )
26667     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26669     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26671     ac_header_preproc=yes
26672     ;;
26673   no:yes:* )
26674     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26676     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26677 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26678     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26680     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26681 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26684     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26686     ( cat <<\_ASBOX
26687 ## --------------------------------------------- ##
26688 ## Report this to <http://www.openldap.org/its/> ##
26689 ## --------------------------------------------- ##
26690 _ASBOX
26691      ) | sed "s/^/$as_me: WARNING:     /" >&2
26692     ;;
26693 esac
26694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26697   echo $ECHO_N "(cached) $ECHO_C" >&6
26698 else
26699   eval "$as_ac_Header=\$ac_header_preproc"
26700 fi
26701 ac_res=`eval echo '${'$as_ac_Header'}'`
26702                { echo "$as_me:$LINENO: result: $ac_res" >&5
26703 echo "${ECHO_T}$ac_res" >&6; }
26704
26705 fi
26706 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26707   cat >>confdefs.h <<_ACEOF
26708 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26709 _ACEOF
26710
26711 fi
26712
26713 done
26714
26715         if test $ac_cv_header_thread_h = yes &&
26716            test $ac_cv_header_synch_h = yes ; then
26717                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26718 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26719 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26720   echo $ECHO_N "(cached) $ECHO_C" >&6
26721 else
26722   ac_check_lib_save_LIBS=$LIBS
26723 LIBS="-lthread  $LIBS"
26724 cat >conftest.$ac_ext <<_ACEOF
26725 /* confdefs.h.  */
26726 _ACEOF
26727 cat confdefs.h >>conftest.$ac_ext
26728 cat >>conftest.$ac_ext <<_ACEOF
26729 /* end confdefs.h.  */
26730
26731 /* Override any GCC internal prototype to avoid an error.
26732    Use char because int might match the return type of a GCC
26733    builtin and then its argument prototype would still apply.  */
26734 #ifdef __cplusplus
26735 extern "C"
26736 #endif
26737 char thr_create ();
26738 int
26739 main ()
26740 {
26741 return thr_create ();
26742   ;
26743   return 0;
26744 }
26745 _ACEOF
26746 rm -f conftest.$ac_objext conftest$ac_exeext
26747 if { (ac_try="$ac_link"
26748 case "(($ac_try" in
26749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26750   *) ac_try_echo=$ac_try;;
26751 esac
26752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26753   (eval "$ac_link") 2>conftest.er1
26754   ac_status=$?
26755   grep -v '^ *+' conftest.er1 >conftest.err
26756   rm -f conftest.er1
26757   cat conftest.err >&5
26758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26759   (exit $ac_status); } && {
26760          test -z "$ac_c_werror_flag" ||
26761          test ! -s conftest.err
26762        } && test -s conftest$ac_exeext &&
26763        $as_test_x conftest$ac_exeext; then
26764   ac_cv_lib_thread_thr_create=yes
26765 else
26766   echo "$as_me: failed program was:" >&5
26767 sed 's/^/| /' conftest.$ac_ext >&5
26768
26769         ac_cv_lib_thread_thr_create=no
26770 fi
26771
26772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26773       conftest$ac_exeext conftest.$ac_ext
26774 LIBS=$ac_check_lib_save_LIBS
26775 fi
26776 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26777 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26778 if test $ac_cv_lib_thread_thr_create = yes; then
26779   have_thr=yes
26780 else
26781   have_thr=no
26782 fi
26783
26784
26785                 if test $have_thr = yes ; then
26786
26787 cat >>confdefs.h <<\_ACEOF
26788 #define HAVE_THR 1
26789 _ACEOF
26790
26791                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26792                         ol_link_threads=thr
26793
26794                         if test $ol_with_yielding_select = auto ; then
26795                                 ol_with_yielding_select=yes
26796                         fi
26797
26798
26799
26800 for ac_func in \
26801                                 thr_setconcurrency \
26802                                 thr_getconcurrency \
26803
26804 do
26805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26809   echo $ECHO_N "(cached) $ECHO_C" >&6
26810 else
26811   cat >conftest.$ac_ext <<_ACEOF
26812 /* confdefs.h.  */
26813 _ACEOF
26814 cat confdefs.h >>conftest.$ac_ext
26815 cat >>conftest.$ac_ext <<_ACEOF
26816 /* end confdefs.h.  */
26817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26819 #define $ac_func innocuous_$ac_func
26820
26821 /* System header to define __stub macros and hopefully few prototypes,
26822     which can conflict with char $ac_func (); below.
26823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26824     <limits.h> exists even on freestanding compilers.  */
26825
26826 #ifdef __STDC__
26827 # include <limits.h>
26828 #else
26829 # include <assert.h>
26830 #endif
26831
26832 #undef $ac_func
26833
26834 /* Override any GCC internal prototype to avoid an error.
26835    Use char because int might match the return type of a GCC
26836    builtin and then its argument prototype would still apply.  */
26837 #ifdef __cplusplus
26838 extern "C"
26839 #endif
26840 char $ac_func ();
26841 /* The GNU C library defines this for functions which it implements
26842     to always fail with ENOSYS.  Some functions are actually named
26843     something starting with __ and the normal name is an alias.  */
26844 #if defined __stub_$ac_func || defined __stub___$ac_func
26845 choke me
26846 #endif
26847
26848 int
26849 main ()
26850 {
26851 return $ac_func ();
26852   ;
26853   return 0;
26854 }
26855 _ACEOF
26856 rm -f conftest.$ac_objext conftest$ac_exeext
26857 if { (ac_try="$ac_link"
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_link") 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); } && {
26870          test -z "$ac_c_werror_flag" ||
26871          test ! -s conftest.err
26872        } && test -s conftest$ac_exeext &&
26873        $as_test_x conftest$ac_exeext; then
26874   eval "$as_ac_var=yes"
26875 else
26876   echo "$as_me: failed program was:" >&5
26877 sed 's/^/| /' conftest.$ac_ext >&5
26878
26879         eval "$as_ac_var=no"
26880 fi
26881
26882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26883       conftest$ac_exeext conftest.$ac_ext
26884 fi
26885 ac_res=`eval echo '${'$as_ac_var'}'`
26886                { echo "$as_me:$LINENO: result: $ac_res" >&5
26887 echo "${ECHO_T}$ac_res" >&6; }
26888 if test `eval echo '${'$as_ac_var'}'` = yes; then
26889   cat >>confdefs.h <<_ACEOF
26890 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26891 _ACEOF
26892
26893 fi
26894 done
26895
26896                 fi
26897         fi
26898
26899
26900 for ac_header in lwp/lwp.h
26901 do
26902 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26904   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26907   echo $ECHO_N "(cached) $ECHO_C" >&6
26908 fi
26909 ac_res=`eval echo '${'$as_ac_Header'}'`
26910                { echo "$as_me:$LINENO: result: $ac_res" >&5
26911 echo "${ECHO_T}$ac_res" >&6; }
26912 else
26913   # Is the header compilable?
26914 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26915 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26916 cat >conftest.$ac_ext <<_ACEOF
26917 /* confdefs.h.  */
26918 _ACEOF
26919 cat confdefs.h >>conftest.$ac_ext
26920 cat >>conftest.$ac_ext <<_ACEOF
26921 /* end confdefs.h.  */
26922 $ac_includes_default
26923 #include <$ac_header>
26924 _ACEOF
26925 rm -f conftest.$ac_objext
26926 if { (ac_try="$ac_compile"
26927 case "(($ac_try" in
26928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26929   *) ac_try_echo=$ac_try;;
26930 esac
26931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26932   (eval "$ac_compile") 2>conftest.er1
26933   ac_status=$?
26934   grep -v '^ *+' conftest.er1 >conftest.err
26935   rm -f conftest.er1
26936   cat conftest.err >&5
26937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26938   (exit $ac_status); } && {
26939          test -z "$ac_c_werror_flag" ||
26940          test ! -s conftest.err
26941        } && test -s conftest.$ac_objext; then
26942   ac_header_compiler=yes
26943 else
26944   echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26946
26947         ac_header_compiler=no
26948 fi
26949
26950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26951 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26952 echo "${ECHO_T}$ac_header_compiler" >&6; }
26953
26954 # Is the header present?
26955 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26956 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26957 cat >conftest.$ac_ext <<_ACEOF
26958 /* confdefs.h.  */
26959 _ACEOF
26960 cat confdefs.h >>conftest.$ac_ext
26961 cat >>conftest.$ac_ext <<_ACEOF
26962 /* end confdefs.h.  */
26963 #include <$ac_header>
26964 _ACEOF
26965 if { (ac_try="$ac_cpp conftest.$ac_ext"
26966 case "(($ac_try" in
26967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26968   *) ac_try_echo=$ac_try;;
26969 esac
26970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26971   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26972   ac_status=$?
26973   grep -v '^ *+' conftest.er1 >conftest.err
26974   rm -f conftest.er1
26975   cat conftest.err >&5
26976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26977   (exit $ac_status); } >/dev/null && {
26978          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26979          test ! -s conftest.err
26980        }; then
26981   ac_header_preproc=yes
26982 else
26983   echo "$as_me: failed program was:" >&5
26984 sed 's/^/| /' conftest.$ac_ext >&5
26985
26986   ac_header_preproc=no
26987 fi
26988
26989 rm -f conftest.err conftest.$ac_ext
26990 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26991 echo "${ECHO_T}$ac_header_preproc" >&6; }
26992
26993 # So?  What about this header?
26994 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26995   yes:no: )
26996     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26998     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26999 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27000     ac_header_preproc=yes
27001     ;;
27002   no:yes:* )
27003     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27004 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27005     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27006 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27007     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27008 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27009     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27010 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27011     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27012 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27013     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27014 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27015     ( cat <<\_ASBOX
27016 ## --------------------------------------------- ##
27017 ## Report this to <http://www.openldap.org/its/> ##
27018 ## --------------------------------------------- ##
27019 _ASBOX
27020      ) | sed "s/^/$as_me: WARNING:     /" >&2
27021     ;;
27022 esac
27023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27026   echo $ECHO_N "(cached) $ECHO_C" >&6
27027 else
27028   eval "$as_ac_Header=\$ac_header_preproc"
27029 fi
27030 ac_res=`eval echo '${'$as_ac_Header'}'`
27031                { echo "$as_me:$LINENO: result: $ac_res" >&5
27032 echo "${ECHO_T}$ac_res" >&6; }
27033
27034 fi
27035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27036   cat >>confdefs.h <<_ACEOF
27037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27038 _ACEOF
27039
27040 fi
27041
27042 done
27043
27044         if test $ac_cv_header_lwp_lwp_h = yes ; then
27045                 { echo "$as_me:$LINENO: checking for lwp_create in -llwp" >&5
27046 echo $ECHO_N "checking for lwp_create in -llwp... $ECHO_C" >&6; }
27047 if test "${ac_cv_lib_lwp_lwp_create+set}" = set; then
27048   echo $ECHO_N "(cached) $ECHO_C" >&6
27049 else
27050   ac_check_lib_save_LIBS=$LIBS
27051 LIBS="-llwp  $LIBS"
27052 cat >conftest.$ac_ext <<_ACEOF
27053 /* confdefs.h.  */
27054 _ACEOF
27055 cat confdefs.h >>conftest.$ac_ext
27056 cat >>conftest.$ac_ext <<_ACEOF
27057 /* end confdefs.h.  */
27058
27059 /* Override any GCC internal prototype to avoid an error.
27060    Use char because int might match the return type of a GCC
27061    builtin and then its argument prototype would still apply.  */
27062 #ifdef __cplusplus
27063 extern "C"
27064 #endif
27065 char lwp_create ();
27066 int
27067 main ()
27068 {
27069 return lwp_create ();
27070   ;
27071   return 0;
27072 }
27073 _ACEOF
27074 rm -f conftest.$ac_objext conftest$ac_exeext
27075 if { (ac_try="$ac_link"
27076 case "(($ac_try" in
27077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27078   *) ac_try_echo=$ac_try;;
27079 esac
27080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27081   (eval "$ac_link") 2>conftest.er1
27082   ac_status=$?
27083   grep -v '^ *+' conftest.er1 >conftest.err
27084   rm -f conftest.er1
27085   cat conftest.err >&5
27086   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27087   (exit $ac_status); } && {
27088          test -z "$ac_c_werror_flag" ||
27089          test ! -s conftest.err
27090        } && test -s conftest$ac_exeext &&
27091        $as_test_x conftest$ac_exeext; then
27092   ac_cv_lib_lwp_lwp_create=yes
27093 else
27094   echo "$as_me: failed program was:" >&5
27095 sed 's/^/| /' conftest.$ac_ext >&5
27096
27097         ac_cv_lib_lwp_lwp_create=no
27098 fi
27099
27100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27101       conftest$ac_exeext conftest.$ac_ext
27102 LIBS=$ac_check_lib_save_LIBS
27103 fi
27104 { echo "$as_me:$LINENO: result: $ac_cv_lib_lwp_lwp_create" >&5
27105 echo "${ECHO_T}$ac_cv_lib_lwp_lwp_create" >&6; }
27106 if test $ac_cv_lib_lwp_lwp_create = yes; then
27107   have_lwp=yes
27108 else
27109   have_lwp=no
27110 fi
27111
27112
27113                 if test $have_lwp = yes ; then
27114
27115 cat >>confdefs.h <<\_ACEOF
27116 #define HAVE_LWP 1
27117 _ACEOF
27118
27119                         LTHREAD_LIBS="$LTHREAD_LIBS -llwp"
27120                         ol_link_threads=lwp
27121
27122                         if test $ol_with_yielding_select = auto ; then
27123                                 ol_with_yielding_select=no
27124                         fi
27125                 fi
27126         fi
27127         ;;
27128 esac
27129
27130 if test $ol_with_yielding_select = yes ; then
27131
27132 cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_YIELDING_SELECT 1
27134 _ACEOF
27135
27136 fi
27137
27138 if test $ol_with_threads = manual ; then
27139                 ol_link_threads=yes
27140
27141         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
27142 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
27143
27144
27145
27146 for ac_header in pthread.h sched.h
27147 do
27148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27150   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27153   echo $ECHO_N "(cached) $ECHO_C" >&6
27154 fi
27155 ac_res=`eval echo '${'$as_ac_Header'}'`
27156                { echo "$as_me:$LINENO: result: $ac_res" >&5
27157 echo "${ECHO_T}$ac_res" >&6; }
27158 else
27159   # Is the header compilable?
27160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27162 cat >conftest.$ac_ext <<_ACEOF
27163 /* confdefs.h.  */
27164 _ACEOF
27165 cat confdefs.h >>conftest.$ac_ext
27166 cat >>conftest.$ac_ext <<_ACEOF
27167 /* end confdefs.h.  */
27168 $ac_includes_default
27169 #include <$ac_header>
27170 _ACEOF
27171 rm -f conftest.$ac_objext
27172 if { (ac_try="$ac_compile"
27173 case "(($ac_try" in
27174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27175   *) ac_try_echo=$ac_try;;
27176 esac
27177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27178   (eval "$ac_compile") 2>conftest.er1
27179   ac_status=$?
27180   grep -v '^ *+' conftest.er1 >conftest.err
27181   rm -f conftest.er1
27182   cat conftest.err >&5
27183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27184   (exit $ac_status); } && {
27185          test -z "$ac_c_werror_flag" ||
27186          test ! -s conftest.err
27187        } && test -s conftest.$ac_objext; then
27188   ac_header_compiler=yes
27189 else
27190   echo "$as_me: failed program was:" >&5
27191 sed 's/^/| /' conftest.$ac_ext >&5
27192
27193         ac_header_compiler=no
27194 fi
27195
27196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27198 echo "${ECHO_T}$ac_header_compiler" >&6; }
27199
27200 # Is the header present?
27201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27203 cat >conftest.$ac_ext <<_ACEOF
27204 /* confdefs.h.  */
27205 _ACEOF
27206 cat confdefs.h >>conftest.$ac_ext
27207 cat >>conftest.$ac_ext <<_ACEOF
27208 /* end confdefs.h.  */
27209 #include <$ac_header>
27210 _ACEOF
27211 if { (ac_try="$ac_cpp conftest.$ac_ext"
27212 case "(($ac_try" in
27213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27214   *) ac_try_echo=$ac_try;;
27215 esac
27216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27217   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27218   ac_status=$?
27219   grep -v '^ *+' conftest.er1 >conftest.err
27220   rm -f conftest.er1
27221   cat conftest.err >&5
27222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27223   (exit $ac_status); } >/dev/null && {
27224          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27225          test ! -s conftest.err
27226        }; then
27227   ac_header_preproc=yes
27228 else
27229   echo "$as_me: failed program was:" >&5
27230 sed 's/^/| /' conftest.$ac_ext >&5
27231
27232   ac_header_preproc=no
27233 fi
27234
27235 rm -f conftest.err conftest.$ac_ext
27236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27237 echo "${ECHO_T}$ac_header_preproc" >&6; }
27238
27239 # So?  What about this header?
27240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27241   yes:no: )
27242     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27244     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27246     ac_header_preproc=yes
27247     ;;
27248   no:yes:* )
27249     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27251     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27252 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27253     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27255     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27256 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27257     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27259     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27261     ( cat <<\_ASBOX
27262 ## --------------------------------------------- ##
27263 ## Report this to <http://www.openldap.org/its/> ##
27264 ## --------------------------------------------- ##
27265 _ASBOX
27266      ) | sed "s/^/$as_me: WARNING:     /" >&2
27267     ;;
27268 esac
27269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27272   echo $ECHO_N "(cached) $ECHO_C" >&6
27273 else
27274   eval "$as_ac_Header=\$ac_header_preproc"
27275 fi
27276 ac_res=`eval echo '${'$as_ac_Header'}'`
27277                { echo "$as_me:$LINENO: result: $ac_res" >&5
27278 echo "${ECHO_T}$ac_res" >&6; }
27279
27280 fi
27281 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27282   cat >>confdefs.h <<_ACEOF
27283 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27284 _ACEOF
27285
27286 fi
27287
27288 done
27289
27290
27291
27292 for ac_func in sched_yield pthread_yield
27293 do
27294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27295 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27298   echo $ECHO_N "(cached) $ECHO_C" >&6
27299 else
27300   cat >conftest.$ac_ext <<_ACEOF
27301 /* confdefs.h.  */
27302 _ACEOF
27303 cat confdefs.h >>conftest.$ac_ext
27304 cat >>conftest.$ac_ext <<_ACEOF
27305 /* end confdefs.h.  */
27306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27308 #define $ac_func innocuous_$ac_func
27309
27310 /* System header to define __stub macros and hopefully few prototypes,
27311     which can conflict with char $ac_func (); below.
27312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27313     <limits.h> exists even on freestanding compilers.  */
27314
27315 #ifdef __STDC__
27316 # include <limits.h>
27317 #else
27318 # include <assert.h>
27319 #endif
27320
27321 #undef $ac_func
27322
27323 /* Override any GCC internal prototype to avoid an error.
27324    Use char because int might match the return type of a GCC
27325    builtin and then its argument prototype would still apply.  */
27326 #ifdef __cplusplus
27327 extern "C"
27328 #endif
27329 char $ac_func ();
27330 /* The GNU C library defines this for functions which it implements
27331     to always fail with ENOSYS.  Some functions are actually named
27332     something starting with __ and the normal name is an alias.  */
27333 #if defined __stub_$ac_func || defined __stub___$ac_func
27334 choke me
27335 #endif
27336
27337 int
27338 main ()
27339 {
27340 return $ac_func ();
27341   ;
27342   return 0;
27343 }
27344 _ACEOF
27345 rm -f conftest.$ac_objext conftest$ac_exeext
27346 if { (ac_try="$ac_link"
27347 case "(($ac_try" in
27348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27349   *) ac_try_echo=$ac_try;;
27350 esac
27351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27352   (eval "$ac_link") 2>conftest.er1
27353   ac_status=$?
27354   grep -v '^ *+' conftest.er1 >conftest.err
27355   rm -f conftest.er1
27356   cat conftest.err >&5
27357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358   (exit $ac_status); } && {
27359          test -z "$ac_c_werror_flag" ||
27360          test ! -s conftest.err
27361        } && test -s conftest$ac_exeext &&
27362        $as_test_x conftest$ac_exeext; then
27363   eval "$as_ac_var=yes"
27364 else
27365   echo "$as_me: failed program was:" >&5
27366 sed 's/^/| /' conftest.$ac_ext >&5
27367
27368         eval "$as_ac_var=no"
27369 fi
27370
27371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27372       conftest$ac_exeext conftest.$ac_ext
27373 fi
27374 ac_res=`eval echo '${'$as_ac_var'}'`
27375                { echo "$as_me:$LINENO: result: $ac_res" >&5
27376 echo "${ECHO_T}$ac_res" >&6; }
27377 if test `eval echo '${'$as_ac_var'}'` = yes; then
27378   cat >>confdefs.h <<_ACEOF
27379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27380 _ACEOF
27381
27382 fi
27383 done
27384
27385
27386         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
27387 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
27388 if test "${ol_cv_header_linux_threads+set}" = set; then
27389   echo $ECHO_N "(cached) $ECHO_C" >&6
27390 else
27391   cat >conftest.$ac_ext <<_ACEOF
27392 /* confdefs.h.  */
27393 _ACEOF
27394 cat confdefs.h >>conftest.$ac_ext
27395 cat >>conftest.$ac_ext <<_ACEOF
27396 /* end confdefs.h.  */
27397 #include <pthread.h>
27398 _ACEOF
27399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27400   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
27401   ol_cv_header_linux_threads=yes
27402 else
27403   ol_cv_header_linux_threads=no
27404 fi
27405 rm -f conftest*
27406
27407
27408 fi
27409 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
27410 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
27411         if test $ol_cv_header_linux_threads = yes; then
27412
27413 cat >>confdefs.h <<\_ACEOF
27414 #define HAVE_LINUX_THREADS 1
27415 _ACEOF
27416
27417         fi
27418
27419
27420
27421 for ac_header in mach/cthreads.h
27422 do
27423 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27424 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27425   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27428   echo $ECHO_N "(cached) $ECHO_C" >&6
27429 fi
27430 ac_res=`eval echo '${'$as_ac_Header'}'`
27431                { echo "$as_me:$LINENO: result: $ac_res" >&5
27432 echo "${ECHO_T}$ac_res" >&6; }
27433 else
27434   # Is the header compilable?
27435 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27436 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27437 cat >conftest.$ac_ext <<_ACEOF
27438 /* confdefs.h.  */
27439 _ACEOF
27440 cat confdefs.h >>conftest.$ac_ext
27441 cat >>conftest.$ac_ext <<_ACEOF
27442 /* end confdefs.h.  */
27443 $ac_includes_default
27444 #include <$ac_header>
27445 _ACEOF
27446 rm -f conftest.$ac_objext
27447 if { (ac_try="$ac_compile"
27448 case "(($ac_try" in
27449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27450   *) ac_try_echo=$ac_try;;
27451 esac
27452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27453   (eval "$ac_compile") 2>conftest.er1
27454   ac_status=$?
27455   grep -v '^ *+' conftest.er1 >conftest.err
27456   rm -f conftest.er1
27457   cat conftest.err >&5
27458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27459   (exit $ac_status); } && {
27460          test -z "$ac_c_werror_flag" ||
27461          test ! -s conftest.err
27462        } && test -s conftest.$ac_objext; then
27463   ac_header_compiler=yes
27464 else
27465   echo "$as_me: failed program was:" >&5
27466 sed 's/^/| /' conftest.$ac_ext >&5
27467
27468         ac_header_compiler=no
27469 fi
27470
27471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27473 echo "${ECHO_T}$ac_header_compiler" >&6; }
27474
27475 # Is the header present?
27476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27478 cat >conftest.$ac_ext <<_ACEOF
27479 /* confdefs.h.  */
27480 _ACEOF
27481 cat confdefs.h >>conftest.$ac_ext
27482 cat >>conftest.$ac_ext <<_ACEOF
27483 /* end confdefs.h.  */
27484 #include <$ac_header>
27485 _ACEOF
27486 if { (ac_try="$ac_cpp conftest.$ac_ext"
27487 case "(($ac_try" in
27488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27489   *) ac_try_echo=$ac_try;;
27490 esac
27491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27493   ac_status=$?
27494   grep -v '^ *+' conftest.er1 >conftest.err
27495   rm -f conftest.er1
27496   cat conftest.err >&5
27497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27498   (exit $ac_status); } >/dev/null && {
27499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27500          test ! -s conftest.err
27501        }; then
27502   ac_header_preproc=yes
27503 else
27504   echo "$as_me: failed program was:" >&5
27505 sed 's/^/| /' conftest.$ac_ext >&5
27506
27507   ac_header_preproc=no
27508 fi
27509
27510 rm -f conftest.err conftest.$ac_ext
27511 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27512 echo "${ECHO_T}$ac_header_preproc" >&6; }
27513
27514 # So?  What about this header?
27515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27516   yes:no: )
27517     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27519     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27521     ac_header_preproc=yes
27522     ;;
27523   no:yes:* )
27524     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27526     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27527 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27528     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27530     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27531 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27532     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27534     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27536     ( cat <<\_ASBOX
27537 ## --------------------------------------------- ##
27538 ## Report this to <http://www.openldap.org/its/> ##
27539 ## --------------------------------------------- ##
27540 _ASBOX
27541      ) | sed "s/^/$as_me: WARNING:     /" >&2
27542     ;;
27543 esac
27544 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27545 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27546 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   eval "$as_ac_Header=\$ac_header_preproc"
27550 fi
27551 ac_res=`eval echo '${'$as_ac_Header'}'`
27552                { echo "$as_me:$LINENO: result: $ac_res" >&5
27553 echo "${ECHO_T}$ac_res" >&6; }
27554
27555 fi
27556 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27557   cat >>confdefs.h <<_ACEOF
27558 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27559 _ACEOF
27560
27561 fi
27562
27563 done
27564
27565
27566 for ac_header in lwp/lwp.h
27567 do
27568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27570   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27573   echo $ECHO_N "(cached) $ECHO_C" >&6
27574 fi
27575 ac_res=`eval echo '${'$as_ac_Header'}'`
27576                { echo "$as_me:$LINENO: result: $ac_res" >&5
27577 echo "${ECHO_T}$ac_res" >&6; }
27578 else
27579   # Is the header compilable?
27580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27582 cat >conftest.$ac_ext <<_ACEOF
27583 /* confdefs.h.  */
27584 _ACEOF
27585 cat confdefs.h >>conftest.$ac_ext
27586 cat >>conftest.$ac_ext <<_ACEOF
27587 /* end confdefs.h.  */
27588 $ac_includes_default
27589 #include <$ac_header>
27590 _ACEOF
27591 rm -f conftest.$ac_objext
27592 if { (ac_try="$ac_compile"
27593 case "(($ac_try" in
27594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27595   *) ac_try_echo=$ac_try;;
27596 esac
27597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27598   (eval "$ac_compile") 2>conftest.er1
27599   ac_status=$?
27600   grep -v '^ *+' conftest.er1 >conftest.err
27601   rm -f conftest.er1
27602   cat conftest.err >&5
27603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27604   (exit $ac_status); } && {
27605          test -z "$ac_c_werror_flag" ||
27606          test ! -s conftest.err
27607        } && test -s conftest.$ac_objext; then
27608   ac_header_compiler=yes
27609 else
27610   echo "$as_me: failed program was:" >&5
27611 sed 's/^/| /' conftest.$ac_ext >&5
27612
27613         ac_header_compiler=no
27614 fi
27615
27616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27617 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27618 echo "${ECHO_T}$ac_header_compiler" >&6; }
27619
27620 # Is the header present?
27621 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27623 cat >conftest.$ac_ext <<_ACEOF
27624 /* confdefs.h.  */
27625 _ACEOF
27626 cat confdefs.h >>conftest.$ac_ext
27627 cat >>conftest.$ac_ext <<_ACEOF
27628 /* end confdefs.h.  */
27629 #include <$ac_header>
27630 _ACEOF
27631 if { (ac_try="$ac_cpp conftest.$ac_ext"
27632 case "(($ac_try" in
27633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27634   *) ac_try_echo=$ac_try;;
27635 esac
27636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27637   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27638   ac_status=$?
27639   grep -v '^ *+' conftest.er1 >conftest.err
27640   rm -f conftest.er1
27641   cat conftest.err >&5
27642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27643   (exit $ac_status); } >/dev/null && {
27644          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27645          test ! -s conftest.err
27646        }; then
27647   ac_header_preproc=yes
27648 else
27649   echo "$as_me: failed program was:" >&5
27650 sed 's/^/| /' conftest.$ac_ext >&5
27651
27652   ac_header_preproc=no
27653 fi
27654
27655 rm -f conftest.err conftest.$ac_ext
27656 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27657 echo "${ECHO_T}$ac_header_preproc" >&6; }
27658
27659 # So?  What about this header?
27660 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27661   yes:no: )
27662     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27663 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27664     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27665 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27666     ac_header_preproc=yes
27667     ;;
27668   no:yes:* )
27669     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27670 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27671     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27672 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27673     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27674 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27675     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27676 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27677     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27678 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27679     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27680 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27681     ( cat <<\_ASBOX
27682 ## --------------------------------------------- ##
27683 ## Report this to <http://www.openldap.org/its/> ##
27684 ## --------------------------------------------- ##
27685 _ASBOX
27686      ) | sed "s/^/$as_me: WARNING:     /" >&2
27687     ;;
27688 esac
27689 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27690 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27691 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694   eval "$as_ac_Header=\$ac_header_preproc"
27695 fi
27696 ac_res=`eval echo '${'$as_ac_Header'}'`
27697                { echo "$as_me:$LINENO: result: $ac_res" >&5
27698 echo "${ECHO_T}$ac_res" >&6; }
27699
27700 fi
27701 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27702   cat >>confdefs.h <<_ACEOF
27703 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27704 _ACEOF
27705
27706 fi
27707
27708 done
27709
27710
27711
27712 for ac_header in thread.h synch.h
27713 do
27714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27719   echo $ECHO_N "(cached) $ECHO_C" >&6
27720 fi
27721 ac_res=`eval echo '${'$as_ac_Header'}'`
27722                { echo "$as_me:$LINENO: result: $ac_res" >&5
27723 echo "${ECHO_T}$ac_res" >&6; }
27724 else
27725   # Is the header compilable?
27726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27728 cat >conftest.$ac_ext <<_ACEOF
27729 /* confdefs.h.  */
27730 _ACEOF
27731 cat confdefs.h >>conftest.$ac_ext
27732 cat >>conftest.$ac_ext <<_ACEOF
27733 /* end confdefs.h.  */
27734 $ac_includes_default
27735 #include <$ac_header>
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741   *) ac_try_echo=$ac_try;;
27742 esac
27743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27744   (eval "$ac_compile") 2>conftest.er1
27745   ac_status=$?
27746   grep -v '^ *+' conftest.er1 >conftest.err
27747   rm -f conftest.er1
27748   cat conftest.err >&5
27749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27750   (exit $ac_status); } && {
27751          test -z "$ac_c_werror_flag" ||
27752          test ! -s conftest.err
27753        } && test -s conftest.$ac_objext; then
27754   ac_header_compiler=yes
27755 else
27756   echo "$as_me: failed program was:" >&5
27757 sed 's/^/| /' conftest.$ac_ext >&5
27758
27759         ac_header_compiler=no
27760 fi
27761
27762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27764 echo "${ECHO_T}$ac_header_compiler" >&6; }
27765
27766 # Is the header present?
27767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27769 cat >conftest.$ac_ext <<_ACEOF
27770 /* confdefs.h.  */
27771 _ACEOF
27772 cat confdefs.h >>conftest.$ac_ext
27773 cat >>conftest.$ac_ext <<_ACEOF
27774 /* end confdefs.h.  */
27775 #include <$ac_header>
27776 _ACEOF
27777 if { (ac_try="$ac_cpp conftest.$ac_ext"
27778 case "(($ac_try" in
27779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27780   *) ac_try_echo=$ac_try;;
27781 esac
27782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27784   ac_status=$?
27785   grep -v '^ *+' conftest.er1 >conftest.err
27786   rm -f conftest.er1
27787   cat conftest.err >&5
27788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789   (exit $ac_status); } >/dev/null && {
27790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27791          test ! -s conftest.err
27792        }; then
27793   ac_header_preproc=yes
27794 else
27795   echo "$as_me: failed program was:" >&5
27796 sed 's/^/| /' conftest.$ac_ext >&5
27797
27798   ac_header_preproc=no
27799 fi
27800
27801 rm -f conftest.err conftest.$ac_ext
27802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27803 echo "${ECHO_T}$ac_header_preproc" >&6; }
27804
27805 # So?  What about this header?
27806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27807   yes:no: )
27808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27812     ac_header_preproc=yes
27813     ;;
27814   no:yes:* )
27815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27827     ( cat <<\_ASBOX
27828 ## --------------------------------------------- ##
27829 ## Report this to <http://www.openldap.org/its/> ##
27830 ## --------------------------------------------- ##
27831 _ASBOX
27832      ) | sed "s/^/$as_me: WARNING:     /" >&2
27833     ;;
27834 esac
27835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27838   echo $ECHO_N "(cached) $ECHO_C" >&6
27839 else
27840   eval "$as_ac_Header=\$ac_header_preproc"
27841 fi
27842 ac_res=`eval echo '${'$as_ac_Header'}'`
27843                { echo "$as_me:$LINENO: result: $ac_res" >&5
27844 echo "${ECHO_T}$ac_res" >&6; }
27845
27846 fi
27847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27848   cat >>confdefs.h <<_ACEOF
27849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27850 _ACEOF
27851
27852 fi
27853
27854 done
27855
27856 fi
27857
27858 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27859                         cat >>confdefs.h <<\_ACEOF
27860 #define REENTRANT 1
27861 _ACEOF
27862
27863         cat >>confdefs.h <<\_ACEOF
27864 #define _REENTRANT 1
27865 _ACEOF
27866
27867         cat >>confdefs.h <<\_ACEOF
27868 #define THREAD_SAFE 1
27869 _ACEOF
27870
27871         cat >>confdefs.h <<\_ACEOF
27872 #define _THREAD_SAFE 1
27873 _ACEOF
27874
27875         cat >>confdefs.h <<\_ACEOF
27876 #define THREADSAFE 1
27877 _ACEOF
27878
27879         cat >>confdefs.h <<\_ACEOF
27880 #define _THREADSAFE 1
27881 _ACEOF
27882
27883         cat >>confdefs.h <<\_ACEOF
27884 #define _SGI_MP_SOURCE 1
27885 _ACEOF
27886
27887
27888                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27889 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27890 if test "${ol_cv_errno_thread_specific+set}" = set; then
27891   echo $ECHO_N "(cached) $ECHO_C" >&6
27892 else
27893
27894                 cat >conftest.$ac_ext <<_ACEOF
27895 /* confdefs.h.  */
27896 _ACEOF
27897 cat confdefs.h >>conftest.$ac_ext
27898 cat >>conftest.$ac_ext <<_ACEOF
27899 /* end confdefs.h.  */
27900 #include <errno.h>
27901 int
27902 main ()
27903 {
27904 errno = 0;
27905   ;
27906   return 0;
27907 }
27908 _ACEOF
27909 rm -f conftest.$ac_objext conftest$ac_exeext
27910 if { (ac_try="$ac_link"
27911 case "(($ac_try" in
27912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27913   *) ac_try_echo=$ac_try;;
27914 esac
27915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27916   (eval "$ac_link") 2>conftest.er1
27917   ac_status=$?
27918   grep -v '^ *+' conftest.er1 >conftest.err
27919   rm -f conftest.er1
27920   cat conftest.err >&5
27921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); } && {
27923          test -z "$ac_c_werror_flag" ||
27924          test ! -s conftest.err
27925        } && test -s conftest$ac_exeext &&
27926        $as_test_x conftest$ac_exeext; then
27927   ol_cv_errno_thread_specific=yes
27928 else
27929   echo "$as_me: failed program was:" >&5
27930 sed 's/^/| /' conftest.$ac_ext >&5
27931
27932         ol_cv_errno_thread_specific=no
27933 fi
27934
27935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27936       conftest$ac_exeext conftest.$ac_ext
27937
27938 fi
27939 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27940 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27941
27942                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27943 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27944 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27945   echo $ECHO_N "(cached) $ECHO_C" >&6
27946 else
27947
27948                 cat >conftest.$ac_ext <<_ACEOF
27949 /* confdefs.h.  */
27950 _ACEOF
27951 cat confdefs.h >>conftest.$ac_ext
27952 cat >>conftest.$ac_ext <<_ACEOF
27953 /* end confdefs.h.  */
27954 #include <netdb.h>
27955 int
27956 main ()
27957 {
27958 h_errno = 0;
27959   ;
27960   return 0;
27961 }
27962 _ACEOF
27963 rm -f conftest.$ac_objext conftest$ac_exeext
27964 if { (ac_try="$ac_link"
27965 case "(($ac_try" in
27966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27967   *) ac_try_echo=$ac_try;;
27968 esac
27969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27970   (eval "$ac_link") 2>conftest.er1
27971   ac_status=$?
27972   grep -v '^ *+' conftest.er1 >conftest.err
27973   rm -f conftest.er1
27974   cat conftest.err >&5
27975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27976   (exit $ac_status); } && {
27977          test -z "$ac_c_werror_flag" ||
27978          test ! -s conftest.err
27979        } && test -s conftest$ac_exeext &&
27980        $as_test_x conftest$ac_exeext; then
27981   ol_cv_h_errno_thread_specific=yes
27982 else
27983   echo "$as_me: failed program was:" >&5
27984 sed 's/^/| /' conftest.$ac_ext >&5
27985
27986         ol_cv_h_errno_thread_specific=no
27987 fi
27988
27989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27990       conftest$ac_exeext conftest.$ac_ext
27991
27992 fi
27993 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27994 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27995
27996         if test $ol_cv_errno_thread_specific != yes ||
27997            test $ol_cv_h_errno_thread_specific != yes ; then
27998                 LIBS="$LTHREAD_LIBS $LIBS"
27999                 LTHREAD_LIBS=""
28000         fi
28001
28002 fi
28003
28004 if test $ol_link_threads = no ; then
28005         if test $ol_with_threads = yes ; then
28006                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
28007 echo "$as_me: error: no suitable thread support" >&2;}
28008    { (exit 1); exit 1; }; }
28009         fi
28010
28011         if test $ol_with_threads = auto ; then
28012                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
28013 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
28014                 ol_with_threads=no
28015         fi
28016
28017
28018 cat >>confdefs.h <<\_ACEOF
28019 #define NO_THREADS 1
28020 _ACEOF
28021
28022         LTHREAD_LIBS=""
28023         BUILD_THREAD=no
28024 else
28025         BUILD_THREAD=yes
28026 fi
28027
28028 if test $ol_link_threads != no ; then
28029
28030 cat >>confdefs.h <<\_ACEOF
28031 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
28032 _ACEOF
28033
28034 fi
28035
28036
28037
28038
28039 for ac_func in \
28040         ctime_r                 \
28041         gethostbyname_r gethostbyaddr_r \
28042
28043 do
28044 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28045 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28046 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28047 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28048   echo $ECHO_N "(cached) $ECHO_C" >&6
28049 else
28050   cat >conftest.$ac_ext <<_ACEOF
28051 /* confdefs.h.  */
28052 _ACEOF
28053 cat confdefs.h >>conftest.$ac_ext
28054 cat >>conftest.$ac_ext <<_ACEOF
28055 /* end confdefs.h.  */
28056 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28057    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28058 #define $ac_func innocuous_$ac_func
28059
28060 /* System header to define __stub macros and hopefully few prototypes,
28061     which can conflict with char $ac_func (); below.
28062     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28063     <limits.h> exists even on freestanding compilers.  */
28064
28065 #ifdef __STDC__
28066 # include <limits.h>
28067 #else
28068 # include <assert.h>
28069 #endif
28070
28071 #undef $ac_func
28072
28073 /* Override any GCC internal prototype to avoid an error.
28074    Use char because int might match the return type of a GCC
28075    builtin and then its argument prototype would still apply.  */
28076 #ifdef __cplusplus
28077 extern "C"
28078 #endif
28079 char $ac_func ();
28080 /* The GNU C library defines this for functions which it implements
28081     to always fail with ENOSYS.  Some functions are actually named
28082     something starting with __ and the normal name is an alias.  */
28083 #if defined __stub_$ac_func || defined __stub___$ac_func
28084 choke me
28085 #endif
28086
28087 int
28088 main ()
28089 {
28090 return $ac_func ();
28091   ;
28092   return 0;
28093 }
28094 _ACEOF
28095 rm -f conftest.$ac_objext conftest$ac_exeext
28096 if { (ac_try="$ac_link"
28097 case "(($ac_try" in
28098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28099   *) ac_try_echo=$ac_try;;
28100 esac
28101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28102   (eval "$ac_link") 2>conftest.er1
28103   ac_status=$?
28104   grep -v '^ *+' conftest.er1 >conftest.err
28105   rm -f conftest.er1
28106   cat conftest.err >&5
28107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28108   (exit $ac_status); } && {
28109          test -z "$ac_c_werror_flag" ||
28110          test ! -s conftest.err
28111        } && test -s conftest$ac_exeext &&
28112        $as_test_x conftest$ac_exeext; then
28113   eval "$as_ac_var=yes"
28114 else
28115   echo "$as_me: failed program was:" >&5
28116 sed 's/^/| /' conftest.$ac_ext >&5
28117
28118         eval "$as_ac_var=no"
28119 fi
28120
28121 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28122       conftest$ac_exeext conftest.$ac_ext
28123 fi
28124 ac_res=`eval echo '${'$as_ac_var'}'`
28125                { echo "$as_me:$LINENO: result: $ac_res" >&5
28126 echo "${ECHO_T}$ac_res" >&6; }
28127 if test `eval echo '${'$as_ac_var'}'` = yes; then
28128   cat >>confdefs.h <<_ACEOF
28129 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28130 _ACEOF
28131
28132 fi
28133 done
28134
28135
28136 if test "$ac_cv_func_ctime_r" = no ; then
28137         ol_cv_func_ctime_r_nargs=0
28138 else
28139         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
28140 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
28141 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
28142   echo $ECHO_N "(cached) $ECHO_C" >&6
28143 else
28144   cat >conftest.$ac_ext <<_ACEOF
28145 /* confdefs.h.  */
28146 _ACEOF
28147 cat confdefs.h >>conftest.$ac_ext
28148 cat >>conftest.$ac_ext <<_ACEOF
28149 /* end confdefs.h.  */
28150 #include <time.h>
28151 int
28152 main ()
28153 {
28154 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
28155   ;
28156   return 0;
28157 }
28158 _ACEOF
28159 rm -f conftest.$ac_objext
28160 if { (ac_try="$ac_compile"
28161 case "(($ac_try" in
28162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28163   *) ac_try_echo=$ac_try;;
28164 esac
28165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28166   (eval "$ac_compile") 2>conftest.er1
28167   ac_status=$?
28168   grep -v '^ *+' conftest.er1 >conftest.err
28169   rm -f conftest.er1
28170   cat conftest.err >&5
28171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28172   (exit $ac_status); } && {
28173          test -z "$ac_c_werror_flag" ||
28174          test ! -s conftest.err
28175        } && test -s conftest.$ac_objext; then
28176   ol_cv_func_ctime_r_nargs3=yes
28177 else
28178   echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28180
28181         ol_cv_func_ctime_r_nargs3=no
28182 fi
28183
28184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28185
28186         cat >conftest.$ac_ext <<_ACEOF
28187 /* confdefs.h.  */
28188 _ACEOF
28189 cat confdefs.h >>conftest.$ac_ext
28190 cat >>conftest.$ac_ext <<_ACEOF
28191 /* end confdefs.h.  */
28192 #include <time.h>
28193 int
28194 main ()
28195 {
28196 time_t ti; char *buffer; ctime_r(&ti,buffer);
28197   ;
28198   return 0;
28199 }
28200 _ACEOF
28201 rm -f conftest.$ac_objext
28202 if { (ac_try="$ac_compile"
28203 case "(($ac_try" in
28204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28205   *) ac_try_echo=$ac_try;;
28206 esac
28207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28208   (eval "$ac_compile") 2>conftest.er1
28209   ac_status=$?
28210   grep -v '^ *+' conftest.er1 >conftest.err
28211   rm -f conftest.er1
28212   cat conftest.err >&5
28213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28214   (exit $ac_status); } && {
28215          test -z "$ac_c_werror_flag" ||
28216          test ! -s conftest.err
28217        } && test -s conftest.$ac_objext; then
28218   ol_cv_func_ctime_r_nargs2=yes
28219 else
28220   echo "$as_me: failed program was:" >&5
28221 sed 's/^/| /' conftest.$ac_ext >&5
28222
28223         ol_cv_func_ctime_r_nargs2=no
28224 fi
28225
28226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28227
28228         if test $ol_cv_func_ctime_r_nargs3 = yes &&
28229            test $ol_cv_func_ctime_r_nargs2 = no ; then
28230
28231                 ol_cv_func_ctime_r_nargs=3
28232
28233         elif test $ol_cv_func_ctime_r_nargs3 = no &&
28234              test $ol_cv_func_ctime_r_nargs2 = yes ; then
28235
28236                 ol_cv_func_ctime_r_nargs=2
28237
28238         else
28239                 ol_cv_func_ctime_r_nargs=0
28240         fi
28241
28242 fi
28243 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
28244 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
28245
28246   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
28247
28248 cat >>confdefs.h <<_ACEOF
28249 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
28250 _ACEOF
28251
28252   fi
28253
28254 fi
28255
28256 if test "$ac_cv_func_gethostbyname_r" = yes ; then
28257         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
28258 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
28259 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
28260   echo $ECHO_N "(cached) $ECHO_C" >&6
28261 else
28262   cat >conftest.$ac_ext <<_ACEOF
28263 /* confdefs.h.  */
28264 _ACEOF
28265 cat confdefs.h >>conftest.$ac_ext
28266 cat >>conftest.$ac_ext <<_ACEOF
28267 /* end confdefs.h.  */
28268 #include <sys/types.h>
28269 #include <sys/socket.h>
28270 #include <netinet/in.h>
28271 #include <netdb.h>
28272 #define BUFSIZE (sizeof(struct hostent)+10)
28273 int
28274 main ()
28275 {
28276 struct hostent hent; char buffer[BUFSIZE];
28277                 int bufsize=BUFSIZE;int h_errno;
28278                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
28279                         buffer, bufsize, &h_errno);
28280   ;
28281   return 0;
28282 }
28283 _ACEOF
28284 rm -f conftest.$ac_objext
28285 if { (ac_try="$ac_compile"
28286 case "(($ac_try" in
28287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28288   *) ac_try_echo=$ac_try;;
28289 esac
28290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28291   (eval "$ac_compile") 2>conftest.er1
28292   ac_status=$?
28293   grep -v '^ *+' conftest.er1 >conftest.err
28294   rm -f conftest.er1
28295   cat conftest.err >&5
28296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28297   (exit $ac_status); } && {
28298          test -z "$ac_c_werror_flag" ||
28299          test ! -s conftest.err
28300        } && test -s conftest.$ac_objext; then
28301   ol_cv_func_gethostbyname_r_nargs5=yes
28302 else
28303   echo "$as_me: failed program was:" >&5
28304 sed 's/^/| /' conftest.$ac_ext >&5
28305
28306         ol_cv_func_gethostbyname_r_nargs5=no
28307 fi
28308
28309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28310
28311         cat >conftest.$ac_ext <<_ACEOF
28312 /* confdefs.h.  */
28313 _ACEOF
28314 cat confdefs.h >>conftest.$ac_ext
28315 cat >>conftest.$ac_ext <<_ACEOF
28316 /* end confdefs.h.  */
28317 #include <sys/types.h>
28318 #include <sys/socket.h>
28319 #include <netinet/in.h>
28320 #include <netdb.h>
28321 #define BUFSIZE (sizeof(struct hostent)+10)
28322 int
28323 main ()
28324 {
28325 struct hostent hent;struct hostent *rhent;
28326                 char buffer[BUFSIZE];
28327                 int bufsize=BUFSIZE;int h_errno;
28328                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
28329                         &rhent, &h_errno);
28330   ;
28331   return 0;
28332 }
28333 _ACEOF
28334 rm -f conftest.$ac_objext
28335 if { (ac_try="$ac_compile"
28336 case "(($ac_try" in
28337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28338   *) ac_try_echo=$ac_try;;
28339 esac
28340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28341   (eval "$ac_compile") 2>conftest.er1
28342   ac_status=$?
28343   grep -v '^ *+' conftest.er1 >conftest.err
28344   rm -f conftest.er1
28345   cat conftest.err >&5
28346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28347   (exit $ac_status); } && {
28348          test -z "$ac_c_werror_flag" ||
28349          test ! -s conftest.err
28350        } && test -s conftest.$ac_objext; then
28351   ol_cv_func_gethostbyname_r_nargs6=yes
28352 else
28353   echo "$as_me: failed program was:" >&5
28354 sed 's/^/| /' conftest.$ac_ext >&5
28355
28356         ol_cv_func_gethostbyname_r_nargs6=no
28357 fi
28358
28359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28360
28361         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
28362            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
28363
28364                 ol_cv_func_gethostbyname_r_nargs=5
28365
28366         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
28367              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
28368
28369                 ol_cv_func_gethostbyname_r_nargs=6
28370
28371         else
28372                 ol_cv_func_gethostbyname_r_nargs=0
28373         fi
28374
28375 fi
28376 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
28377 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
28378   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
28379
28380 cat >>confdefs.h <<_ACEOF
28381 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
28382 _ACEOF
28383
28384   fi
28385
28386 else
28387         ol_cv_func_gethostbyname_r_nargs=0
28388 fi
28389
28390 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
28391         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
28392 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
28393 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
28394   echo $ECHO_N "(cached) $ECHO_C" >&6
28395 else
28396   cat >conftest.$ac_ext <<_ACEOF
28397 /* confdefs.h.  */
28398 _ACEOF
28399 cat confdefs.h >>conftest.$ac_ext
28400 cat >>conftest.$ac_ext <<_ACEOF
28401 /* end confdefs.h.  */
28402 #include <sys/types.h>
28403 #include <sys/socket.h>
28404 #include <netinet/in.h>
28405 #include <netdb.h>
28406 #define BUFSIZE (sizeof(struct hostent)+10)
28407 int
28408 main ()
28409 {
28410 struct hostent hent; char buffer[BUFSIZE];
28411             struct in_addr add;
28412             size_t alen=sizeof(struct in_addr);
28413             int bufsize=BUFSIZE;int h_errno;
28414                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28415                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
28416   ;
28417   return 0;
28418 }
28419 _ACEOF
28420 rm -f conftest.$ac_objext
28421 if { (ac_try="$ac_compile"
28422 case "(($ac_try" in
28423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28424   *) ac_try_echo=$ac_try;;
28425 esac
28426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28427   (eval "$ac_compile") 2>conftest.er1
28428   ac_status=$?
28429   grep -v '^ *+' conftest.er1 >conftest.err
28430   rm -f conftest.er1
28431   cat conftest.err >&5
28432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433   (exit $ac_status); } && {
28434          test -z "$ac_c_werror_flag" ||
28435          test ! -s conftest.err
28436        } && test -s conftest.$ac_objext; then
28437   ol_cv_func_gethostbyaddr_r_nargs7=yes
28438 else
28439   echo "$as_me: failed program was:" >&5
28440 sed 's/^/| /' conftest.$ac_ext >&5
28441
28442         ol_cv_func_gethostbyaddr_r_nargs7=no
28443 fi
28444
28445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28446
28447         cat >conftest.$ac_ext <<_ACEOF
28448 /* confdefs.h.  */
28449 _ACEOF
28450 cat confdefs.h >>conftest.$ac_ext
28451 cat >>conftest.$ac_ext <<_ACEOF
28452 /* end confdefs.h.  */
28453 #include <sys/types.h>
28454 #include <sys/socket.h>
28455 #include <netinet/in.h>
28456 #include <netdb.h>
28457 #define BUFSIZE (sizeof(struct hostent)+10)
28458 int
28459 main ()
28460 {
28461 struct hostent hent;
28462                 struct hostent *rhent; char buffer[BUFSIZE];
28463                 struct in_addr add;
28464                 size_t alen=sizeof(struct in_addr);
28465                 int bufsize=BUFSIZE;int h_errno;
28466                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
28467                         alen, AF_INET, &hent, buffer, bufsize,
28468                         &rhent, &h_errno);
28469   ;
28470   return 0;
28471 }
28472 _ACEOF
28473 rm -f conftest.$ac_objext
28474 if { (ac_try="$ac_compile"
28475 case "(($ac_try" in
28476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28477   *) ac_try_echo=$ac_try;;
28478 esac
28479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28480   (eval "$ac_compile") 2>conftest.er1
28481   ac_status=$?
28482   grep -v '^ *+' conftest.er1 >conftest.err
28483   rm -f conftest.er1
28484   cat conftest.err >&5
28485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28486   (exit $ac_status); } && {
28487          test -z "$ac_c_werror_flag" ||
28488          test ! -s conftest.err
28489        } && test -s conftest.$ac_objext; then
28490   ol_cv_func_gethostbyaddr_r_nargs8=yes
28491 else
28492   echo "$as_me: failed program was:" >&5
28493 sed 's/^/| /' conftest.$ac_ext >&5
28494
28495         ol_cv_func_gethostbyaddr_r_nargs8=no
28496 fi
28497
28498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28499
28500         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
28501            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
28502
28503                 ol_cv_func_gethostbyaddr_r_nargs=7
28504
28505         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
28506              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
28507
28508                 ol_cv_func_gethostbyaddr_r_nargs=8
28509
28510         else
28511                 ol_cv_func_gethostbyaddr_r_nargs=0
28512         fi
28513
28514 fi
28515 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
28516 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
28517   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
28518
28519 cat >>confdefs.h <<_ACEOF
28520 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
28521 _ACEOF
28522
28523   fi
28524
28525 else
28526         ol_cv_func_gethostbyaddr_r_nargs=0
28527 fi
28528
28529 ol_link_bdb=no
28530
28531 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
28532         ol_cv_berkeley_db=no
28533
28534 for ac_header in db.h
28535 do
28536 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28538   { echo "$as_me:$LINENO: checking for $ac_header" >&5
28539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28541   echo $ECHO_N "(cached) $ECHO_C" >&6
28542 fi
28543 ac_res=`eval echo '${'$as_ac_Header'}'`
28544                { echo "$as_me:$LINENO: result: $ac_res" >&5
28545 echo "${ECHO_T}$ac_res" >&6; }
28546 else
28547   # Is the header compilable?
28548 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
28549 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
28550 cat >conftest.$ac_ext <<_ACEOF
28551 /* confdefs.h.  */
28552 _ACEOF
28553 cat confdefs.h >>conftest.$ac_ext
28554 cat >>conftest.$ac_ext <<_ACEOF
28555 /* end confdefs.h.  */
28556 $ac_includes_default
28557 #include <$ac_header>
28558 _ACEOF
28559 rm -f conftest.$ac_objext
28560 if { (ac_try="$ac_compile"
28561 case "(($ac_try" in
28562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28563   *) ac_try_echo=$ac_try;;
28564 esac
28565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28566   (eval "$ac_compile") 2>conftest.er1
28567   ac_status=$?
28568   grep -v '^ *+' conftest.er1 >conftest.err
28569   rm -f conftest.er1
28570   cat conftest.err >&5
28571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28572   (exit $ac_status); } && {
28573          test -z "$ac_c_werror_flag" ||
28574          test ! -s conftest.err
28575        } && test -s conftest.$ac_objext; then
28576   ac_header_compiler=yes
28577 else
28578   echo "$as_me: failed program was:" >&5
28579 sed 's/^/| /' conftest.$ac_ext >&5
28580
28581         ac_header_compiler=no
28582 fi
28583
28584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28586 echo "${ECHO_T}$ac_header_compiler" >&6; }
28587
28588 # Is the header present?
28589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28591 cat >conftest.$ac_ext <<_ACEOF
28592 /* confdefs.h.  */
28593 _ACEOF
28594 cat confdefs.h >>conftest.$ac_ext
28595 cat >>conftest.$ac_ext <<_ACEOF
28596 /* end confdefs.h.  */
28597 #include <$ac_header>
28598 _ACEOF
28599 if { (ac_try="$ac_cpp conftest.$ac_ext"
28600 case "(($ac_try" in
28601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28602   *) ac_try_echo=$ac_try;;
28603 esac
28604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28606   ac_status=$?
28607   grep -v '^ *+' conftest.er1 >conftest.err
28608   rm -f conftest.er1
28609   cat conftest.err >&5
28610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28611   (exit $ac_status); } >/dev/null && {
28612          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28613          test ! -s conftest.err
28614        }; then
28615   ac_header_preproc=yes
28616 else
28617   echo "$as_me: failed program was:" >&5
28618 sed 's/^/| /' conftest.$ac_ext >&5
28619
28620   ac_header_preproc=no
28621 fi
28622
28623 rm -f conftest.err conftest.$ac_ext
28624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28625 echo "${ECHO_T}$ac_header_preproc" >&6; }
28626
28627 # So?  What about this header?
28628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28629   yes:no: )
28630     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28631 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28632     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28633 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28634     ac_header_preproc=yes
28635     ;;
28636   no:yes:* )
28637     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28638 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28639     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28640 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28641     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28642 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28643     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28644 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28645     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28646 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28647     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28648 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28649     ( cat <<\_ASBOX
28650 ## --------------------------------------------- ##
28651 ## Report this to <http://www.openldap.org/its/> ##
28652 ## --------------------------------------------- ##
28653 _ASBOX
28654      ) | sed "s/^/$as_me: WARNING:     /" >&2
28655     ;;
28656 esac
28657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28660   echo $ECHO_N "(cached) $ECHO_C" >&6
28661 else
28662   eval "$as_ac_Header=\$ac_header_preproc"
28663 fi
28664 ac_res=`eval echo '${'$as_ac_Header'}'`
28665                { echo "$as_me:$LINENO: result: $ac_res" >&5
28666 echo "${ECHO_T}$ac_res" >&6; }
28667
28668 fi
28669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28670   cat >>confdefs.h <<_ACEOF
28671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28672 _ACEOF
28673
28674 fi
28675
28676 done
28677
28678 if test $ac_cv_header_db_h = yes; then
28679         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28680 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28681 if test "${ol_cv_bdb_major+set}" = set; then
28682   echo $ECHO_N "(cached) $ECHO_C" >&6
28683 else
28684
28685         cat >conftest.$ac_ext <<_ACEOF
28686
28687 #include <db.h>
28688 #ifndef DB_VERSION_MAJOR
28689 #       define DB_VERSION_MAJOR 1
28690 #endif
28691 __db_version DB_VERSION_MAJOR
28692
28693 _ACEOF
28694         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28695         ol_cv_bdb_major=${3}
28696
28697 fi
28698 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28699 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28700 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28701         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28702 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28703    { (exit 1); exit 1; }; } ;;
28704 esac
28705
28706 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28707 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28708 if test "${ol_cv_bdb_minor+set}" = set; then
28709   echo $ECHO_N "(cached) $ECHO_C" >&6
28710 else
28711
28712         cat >conftest.$ac_ext <<_ACEOF
28713
28714 #include <db.h>
28715 #ifndef DB_VERSION_MINOR
28716 #       define DB_VERSION_MINOR 0
28717 #endif
28718 __db_version DB_VERSION_MINOR
28719
28720 _ACEOF
28721         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28722         ol_cv_bdb_minor=${3}
28723
28724 fi
28725 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28726 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28727 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28728         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28729 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28730    { (exit 1); exit 1; }; } ;;
28731 esac
28732
28733         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28734 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28735 if test "${ol_cv_bdb_compat+set}" = set; then
28736   echo $ECHO_N "(cached) $ECHO_C" >&6
28737 else
28738
28739         cat >conftest.$ac_ext <<_ACEOF
28740 /* confdefs.h.  */
28741 _ACEOF
28742 cat confdefs.h >>conftest.$ac_ext
28743 cat >>conftest.$ac_ext <<_ACEOF
28744 /* end confdefs.h.  */
28745
28746 #include <db.h>
28747
28748  /* this check could be improved */
28749 #ifndef DB_VERSION_MAJOR
28750 #       define DB_VERSION_MAJOR 1
28751 #endif
28752 #ifndef DB_VERSION_MINOR
28753 #       define DB_VERSION_MINOR 0
28754 #endif
28755
28756 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28757
28758 /* require 4.4 or later */
28759 #if DB_VERSION_MM >= 0x0404
28760         __db_version_compat
28761 #endif
28762
28763 _ACEOF
28764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28765   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28766   ol_cv_bdb_compat=yes
28767 else
28768   ol_cv_bdb_compat=no
28769 fi
28770 rm -f conftest*
28771
28772 fi
28773 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28774 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28775
28776
28777         if test $ol_cv_bdb_compat != yes ; then
28778                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28779 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28780    { (exit 1); exit 1; }; }
28781         fi
28782
28783         ol_cv_lib_db=no
28784
28785 if test $ol_cv_bdb_major = 4 ; then
28786         if test $ol_cv_lib_db = no ; then
28787         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28788 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28789 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28790   echo $ECHO_N "(cached) $ECHO_C" >&6
28791 else
28792
28793         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28794         ol_LIBS=$LIBS
28795         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28796
28797         cat >conftest.$ac_ext <<_ACEOF
28798 /* confdefs.h.  */
28799 _ACEOF
28800 cat confdefs.h >>conftest.$ac_ext
28801 cat >>conftest.$ac_ext <<_ACEOF
28802 /* end confdefs.h.  */
28803
28804 #ifdef HAVE_DB_185_H
28805 # include <db_185.h>
28806 #else
28807 # include <db.h>
28808 #endif
28809
28810 #ifndef DB_VERSION_MAJOR
28811 # define DB_VERSION_MAJOR 1
28812 #endif
28813
28814 #ifndef NULL
28815 #define NULL ((void*)0)
28816 #endif
28817
28818 int
28819 main ()
28820 {
28821
28822 #if DB_VERSION_MAJOR > 2
28823         db_env_create( NULL, 0 );
28824 #elif DB_VERSION_MAJOR > 1
28825         db_appexit( NULL );
28826 #else
28827         (void) dbopen( NULL, 0, 0, 0, NULL);
28828 #endif
28829
28830   ;
28831   return 0;
28832 }
28833 _ACEOF
28834 rm -f conftest.$ac_objext conftest$ac_exeext
28835 if { (ac_try="$ac_link"
28836 case "(($ac_try" in
28837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28838   *) ac_try_echo=$ac_try;;
28839 esac
28840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28841   (eval "$ac_link") 2>conftest.er1
28842   ac_status=$?
28843   grep -v '^ *+' conftest.er1 >conftest.err
28844   rm -f conftest.er1
28845   cat conftest.err >&5
28846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28847   (exit $ac_status); } && {
28848          test -z "$ac_c_werror_flag" ||
28849          test ! -s conftest.err
28850        } && test -s conftest$ac_exeext &&
28851        $as_test_x conftest$ac_exeext; then
28852   ol_cv_db_db_4_dot_m=yes
28853 else
28854   echo "$as_me: failed program was:" >&5
28855 sed 's/^/| /' conftest.$ac_ext >&5
28856
28857         ol_cv_db_db_4_dot_m=no
28858 fi
28859
28860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28861       conftest$ac_exeext conftest.$ac_ext
28862
28863         LIBS="$ol_LIBS"
28864
28865 fi
28866 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28867 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28868
28869         if test $ol_cv_db_db_4_dot_m = yes ; then
28870                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28871         fi
28872 fi
28873
28874         if test $ol_cv_lib_db = no ; then
28875         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28876 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28877 if test "${ol_cv_db_db4m+set}" = set; then
28878   echo $ECHO_N "(cached) $ECHO_C" >&6
28879 else
28880
28881         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28882         ol_LIBS=$LIBS
28883         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28884
28885         cat >conftest.$ac_ext <<_ACEOF
28886 /* confdefs.h.  */
28887 _ACEOF
28888 cat confdefs.h >>conftest.$ac_ext
28889 cat >>conftest.$ac_ext <<_ACEOF
28890 /* end confdefs.h.  */
28891
28892 #ifdef HAVE_DB_185_H
28893 # include <db_185.h>
28894 #else
28895 # include <db.h>
28896 #endif
28897
28898 #ifndef DB_VERSION_MAJOR
28899 # define DB_VERSION_MAJOR 1
28900 #endif
28901
28902 #ifndef NULL
28903 #define NULL ((void*)0)
28904 #endif
28905
28906 int
28907 main ()
28908 {
28909
28910 #if DB_VERSION_MAJOR > 2
28911         db_env_create( NULL, 0 );
28912 #elif DB_VERSION_MAJOR > 1
28913         db_appexit( NULL );
28914 #else
28915         (void) dbopen( NULL, 0, 0, 0, NULL);
28916 #endif
28917
28918   ;
28919   return 0;
28920 }
28921 _ACEOF
28922 rm -f conftest.$ac_objext conftest$ac_exeext
28923 if { (ac_try="$ac_link"
28924 case "(($ac_try" in
28925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28926   *) ac_try_echo=$ac_try;;
28927 esac
28928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28929   (eval "$ac_link") 2>conftest.er1
28930   ac_status=$?
28931   grep -v '^ *+' conftest.er1 >conftest.err
28932   rm -f conftest.er1
28933   cat conftest.err >&5
28934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28935   (exit $ac_status); } && {
28936          test -z "$ac_c_werror_flag" ||
28937          test ! -s conftest.err
28938        } && test -s conftest$ac_exeext &&
28939        $as_test_x conftest$ac_exeext; then
28940   ol_cv_db_db4m=yes
28941 else
28942   echo "$as_me: failed program was:" >&5
28943 sed 's/^/| /' conftest.$ac_ext >&5
28944
28945         ol_cv_db_db4m=no
28946 fi
28947
28948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28949       conftest$ac_exeext conftest.$ac_ext
28950
28951         LIBS="$ol_LIBS"
28952
28953 fi
28954 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28955 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28956
28957         if test $ol_cv_db_db4m = yes ; then
28958                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28959         fi
28960 fi
28961
28962         if test $ol_cv_lib_db = no ; then
28963         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28964 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28965 if test "${ol_cv_db_db_4m+set}" = set; then
28966   echo $ECHO_N "(cached) $ECHO_C" >&6
28967 else
28968
28969         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28970         ol_LIBS=$LIBS
28971         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28972
28973         cat >conftest.$ac_ext <<_ACEOF
28974 /* confdefs.h.  */
28975 _ACEOF
28976 cat confdefs.h >>conftest.$ac_ext
28977 cat >>conftest.$ac_ext <<_ACEOF
28978 /* end confdefs.h.  */
28979
28980 #ifdef HAVE_DB_185_H
28981 # include <db_185.h>
28982 #else
28983 # include <db.h>
28984 #endif
28985
28986 #ifndef DB_VERSION_MAJOR
28987 # define DB_VERSION_MAJOR 1
28988 #endif
28989
28990 #ifndef NULL
28991 #define NULL ((void*)0)
28992 #endif
28993
28994 int
28995 main ()
28996 {
28997
28998 #if DB_VERSION_MAJOR > 2
28999         db_env_create( NULL, 0 );
29000 #elif DB_VERSION_MAJOR > 1
29001         db_appexit( NULL );
29002 #else
29003         (void) dbopen( NULL, 0, 0, 0, NULL);
29004 #endif
29005
29006   ;
29007   return 0;
29008 }
29009 _ACEOF
29010 rm -f conftest.$ac_objext conftest$ac_exeext
29011 if { (ac_try="$ac_link"
29012 case "(($ac_try" in
29013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014   *) ac_try_echo=$ac_try;;
29015 esac
29016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29017   (eval "$ac_link") 2>conftest.er1
29018   ac_status=$?
29019   grep -v '^ *+' conftest.er1 >conftest.err
29020   rm -f conftest.er1
29021   cat conftest.err >&5
29022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29023   (exit $ac_status); } && {
29024          test -z "$ac_c_werror_flag" ||
29025          test ! -s conftest.err
29026        } && test -s conftest$ac_exeext &&
29027        $as_test_x conftest$ac_exeext; then
29028   ol_cv_db_db_4m=yes
29029 else
29030   echo "$as_me: failed program was:" >&5
29031 sed 's/^/| /' conftest.$ac_ext >&5
29032
29033         ol_cv_db_db_4m=no
29034 fi
29035
29036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29037       conftest$ac_exeext conftest.$ac_ext
29038
29039         LIBS="$ol_LIBS"
29040
29041 fi
29042 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
29043 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
29044
29045         if test $ol_cv_db_db_4m = yes ; then
29046                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
29047         fi
29048 fi
29049
29050         if test $ol_cv_lib_db = no ; then
29051         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
29052 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
29053 if test "${ol_cv_db_db_4_m+set}" = set; then
29054   echo $ECHO_N "(cached) $ECHO_C" >&6
29055 else
29056
29057         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
29058         ol_LIBS=$LIBS
29059         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29060
29061         cat >conftest.$ac_ext <<_ACEOF
29062 /* confdefs.h.  */
29063 _ACEOF
29064 cat confdefs.h >>conftest.$ac_ext
29065 cat >>conftest.$ac_ext <<_ACEOF
29066 /* end confdefs.h.  */
29067
29068 #ifdef HAVE_DB_185_H
29069 # include <db_185.h>
29070 #else
29071 # include <db.h>
29072 #endif
29073
29074 #ifndef DB_VERSION_MAJOR
29075 # define DB_VERSION_MAJOR 1
29076 #endif
29077
29078 #ifndef NULL
29079 #define NULL ((void*)0)
29080 #endif
29081
29082 int
29083 main ()
29084 {
29085
29086 #if DB_VERSION_MAJOR > 2
29087         db_env_create( NULL, 0 );
29088 #elif DB_VERSION_MAJOR > 1
29089         db_appexit( NULL );
29090 #else
29091         (void) dbopen( NULL, 0, 0, 0, NULL);
29092 #endif
29093
29094   ;
29095   return 0;
29096 }
29097 _ACEOF
29098 rm -f conftest.$ac_objext conftest$ac_exeext
29099 if { (ac_try="$ac_link"
29100 case "(($ac_try" in
29101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29102   *) ac_try_echo=$ac_try;;
29103 esac
29104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29105   (eval "$ac_link") 2>conftest.er1
29106   ac_status=$?
29107   grep -v '^ *+' conftest.er1 >conftest.err
29108   rm -f conftest.er1
29109   cat conftest.err >&5
29110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29111   (exit $ac_status); } && {
29112          test -z "$ac_c_werror_flag" ||
29113          test ! -s conftest.err
29114        } && test -s conftest$ac_exeext &&
29115        $as_test_x conftest$ac_exeext; then
29116   ol_cv_db_db_4_m=yes
29117 else
29118   echo "$as_me: failed program was:" >&5
29119 sed 's/^/| /' conftest.$ac_ext >&5
29120
29121         ol_cv_db_db_4_m=no
29122 fi
29123
29124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29125       conftest$ac_exeext conftest.$ac_ext
29126
29127         LIBS="$ol_LIBS"
29128
29129 fi
29130 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
29131 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
29132
29133         if test $ol_cv_db_db_4_m = yes ; then
29134                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
29135         fi
29136 fi
29137
29138         if test $ol_cv_lib_db = no ; then
29139         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29140 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
29141 if test "${ol_cv_db_db_4+set}" = set; then
29142   echo $ECHO_N "(cached) $ECHO_C" >&6
29143 else
29144
29145         ol_DB_LIB=-ldb-4
29146         ol_LIBS=$LIBS
29147         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29148
29149         cat >conftest.$ac_ext <<_ACEOF
29150 /* confdefs.h.  */
29151 _ACEOF
29152 cat confdefs.h >>conftest.$ac_ext
29153 cat >>conftest.$ac_ext <<_ACEOF
29154 /* end confdefs.h.  */
29155
29156 #ifdef HAVE_DB_185_H
29157 # include <db_185.h>
29158 #else
29159 # include <db.h>
29160 #endif
29161
29162 #ifndef DB_VERSION_MAJOR
29163 # define DB_VERSION_MAJOR 1
29164 #endif
29165
29166 #ifndef NULL
29167 #define NULL ((void*)0)
29168 #endif
29169
29170 int
29171 main ()
29172 {
29173
29174 #if DB_VERSION_MAJOR > 2
29175         db_env_create( NULL, 0 );
29176 #elif DB_VERSION_MAJOR > 1
29177         db_appexit( NULL );
29178 #else
29179         (void) dbopen( NULL, 0, 0, 0, NULL);
29180 #endif
29181
29182   ;
29183   return 0;
29184 }
29185 _ACEOF
29186 rm -f conftest.$ac_objext conftest$ac_exeext
29187 if { (ac_try="$ac_link"
29188 case "(($ac_try" in
29189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29190   *) ac_try_echo=$ac_try;;
29191 esac
29192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29193   (eval "$ac_link") 2>conftest.er1
29194   ac_status=$?
29195   grep -v '^ *+' conftest.er1 >conftest.err
29196   rm -f conftest.er1
29197   cat conftest.err >&5
29198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29199   (exit $ac_status); } && {
29200          test -z "$ac_c_werror_flag" ||
29201          test ! -s conftest.err
29202        } && test -s conftest$ac_exeext &&
29203        $as_test_x conftest$ac_exeext; then
29204   ol_cv_db_db_4=yes
29205 else
29206   echo "$as_me: failed program was:" >&5
29207 sed 's/^/| /' conftest.$ac_ext >&5
29208
29209         ol_cv_db_db_4=no
29210 fi
29211
29212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29213       conftest$ac_exeext conftest.$ac_ext
29214
29215         LIBS="$ol_LIBS"
29216
29217 fi
29218 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29219 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29220
29221         if test $ol_cv_db_db_4 = yes ; then
29222                 ol_cv_lib_db=-ldb-4
29223         fi
29224 fi
29225
29226         if test $ol_cv_lib_db = no ; then
29227         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29228 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29229 if test "${ol_cv_db_db4+set}" = set; then
29230   echo $ECHO_N "(cached) $ECHO_C" >&6
29231 else
29232
29233         ol_DB_LIB=-ldb4
29234         ol_LIBS=$LIBS
29235         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29236
29237         cat >conftest.$ac_ext <<_ACEOF
29238 /* confdefs.h.  */
29239 _ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h.  */
29243
29244 #ifdef HAVE_DB_185_H
29245 # include <db_185.h>
29246 #else
29247 # include <db.h>
29248 #endif
29249
29250 #ifndef DB_VERSION_MAJOR
29251 # define DB_VERSION_MAJOR 1
29252 #endif
29253
29254 #ifndef NULL
29255 #define NULL ((void*)0)
29256 #endif
29257
29258 int
29259 main ()
29260 {
29261
29262 #if DB_VERSION_MAJOR > 2
29263         db_env_create( NULL, 0 );
29264 #elif DB_VERSION_MAJOR > 1
29265         db_appexit( NULL );
29266 #else
29267         (void) dbopen( NULL, 0, 0, 0, NULL);
29268 #endif
29269
29270   ;
29271   return 0;
29272 }
29273 _ACEOF
29274 rm -f conftest.$ac_objext conftest$ac_exeext
29275 if { (ac_try="$ac_link"
29276 case "(($ac_try" in
29277   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29278   *) ac_try_echo=$ac_try;;
29279 esac
29280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29281   (eval "$ac_link") 2>conftest.er1
29282   ac_status=$?
29283   grep -v '^ *+' conftest.er1 >conftest.err
29284   rm -f conftest.er1
29285   cat conftest.err >&5
29286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29287   (exit $ac_status); } && {
29288          test -z "$ac_c_werror_flag" ||
29289          test ! -s conftest.err
29290        } && test -s conftest$ac_exeext &&
29291        $as_test_x conftest$ac_exeext; then
29292   ol_cv_db_db4=yes
29293 else
29294   echo "$as_me: failed program was:" >&5
29295 sed 's/^/| /' conftest.$ac_ext >&5
29296
29297         ol_cv_db_db4=no
29298 fi
29299
29300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29301       conftest$ac_exeext conftest.$ac_ext
29302
29303         LIBS="$ol_LIBS"
29304
29305 fi
29306 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29307 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29308
29309         if test $ol_cv_db_db4 = yes ; then
29310                 ol_cv_lib_db=-ldb4
29311         fi
29312 fi
29313
29314         if test $ol_cv_lib_db = no ; then
29315         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29316 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29317 if test "${ol_cv_db_db+set}" = set; then
29318   echo $ECHO_N "(cached) $ECHO_C" >&6
29319 else
29320
29321         ol_DB_LIB=-ldb
29322         ol_LIBS=$LIBS
29323         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29324
29325         cat >conftest.$ac_ext <<_ACEOF
29326 /* confdefs.h.  */
29327 _ACEOF
29328 cat confdefs.h >>conftest.$ac_ext
29329 cat >>conftest.$ac_ext <<_ACEOF
29330 /* end confdefs.h.  */
29331
29332 #ifdef HAVE_DB_185_H
29333 # include <db_185.h>
29334 #else
29335 # include <db.h>
29336 #endif
29337
29338 #ifndef DB_VERSION_MAJOR
29339 # define DB_VERSION_MAJOR 1
29340 #endif
29341
29342 #ifndef NULL
29343 #define NULL ((void*)0)
29344 #endif
29345
29346 int
29347 main ()
29348 {
29349
29350 #if DB_VERSION_MAJOR > 2
29351         db_env_create( NULL, 0 );
29352 #elif DB_VERSION_MAJOR > 1
29353         db_appexit( NULL );
29354 #else
29355         (void) dbopen( NULL, 0, 0, 0, NULL);
29356 #endif
29357
29358   ;
29359   return 0;
29360 }
29361 _ACEOF
29362 rm -f conftest.$ac_objext conftest$ac_exeext
29363 if { (ac_try="$ac_link"
29364 case "(($ac_try" in
29365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29366   *) ac_try_echo=$ac_try;;
29367 esac
29368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29369   (eval "$ac_link") 2>conftest.er1
29370   ac_status=$?
29371   grep -v '^ *+' conftest.er1 >conftest.err
29372   rm -f conftest.er1
29373   cat conftest.err >&5
29374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); } && {
29376          test -z "$ac_c_werror_flag" ||
29377          test ! -s conftest.err
29378        } && test -s conftest$ac_exeext &&
29379        $as_test_x conftest$ac_exeext; then
29380   ol_cv_db_db=yes
29381 else
29382   echo "$as_me: failed program was:" >&5
29383 sed 's/^/| /' conftest.$ac_ext >&5
29384
29385         ol_cv_db_db=no
29386 fi
29387
29388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29389       conftest$ac_exeext conftest.$ac_ext
29390
29391         LIBS="$ol_LIBS"
29392
29393 fi
29394 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29395 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29396
29397         if test $ol_cv_db_db = yes ; then
29398                 ol_cv_lib_db=-ldb
29399         fi
29400 fi
29401
29402 fi
29403 if test $ol_cv_lib_db = no ; then
29404         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29405 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29406 if test "${ol_cv_db_none+set}" = set; then
29407   echo $ECHO_N "(cached) $ECHO_C" >&6
29408 else
29409
29410         ol_DB_LIB=
29411         ol_LIBS=$LIBS
29412         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29413
29414         cat >conftest.$ac_ext <<_ACEOF
29415 /* confdefs.h.  */
29416 _ACEOF
29417 cat confdefs.h >>conftest.$ac_ext
29418 cat >>conftest.$ac_ext <<_ACEOF
29419 /* end confdefs.h.  */
29420
29421 #ifdef HAVE_DB_185_H
29422 # include <db_185.h>
29423 #else
29424 # include <db.h>
29425 #endif
29426
29427 #ifndef DB_VERSION_MAJOR
29428 # define DB_VERSION_MAJOR 1
29429 #endif
29430
29431 #ifndef NULL
29432 #define NULL ((void*)0)
29433 #endif
29434
29435 int
29436 main ()
29437 {
29438
29439 #if DB_VERSION_MAJOR > 2
29440         db_env_create( NULL, 0 );
29441 #elif DB_VERSION_MAJOR > 1
29442         db_appexit( NULL );
29443 #else
29444         (void) dbopen( NULL, 0, 0, 0, NULL);
29445 #endif
29446
29447   ;
29448   return 0;
29449 }
29450 _ACEOF
29451 rm -f conftest.$ac_objext conftest$ac_exeext
29452 if { (ac_try="$ac_link"
29453 case "(($ac_try" in
29454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29455   *) ac_try_echo=$ac_try;;
29456 esac
29457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29458   (eval "$ac_link") 2>conftest.er1
29459   ac_status=$?
29460   grep -v '^ *+' conftest.er1 >conftest.err
29461   rm -f conftest.er1
29462   cat conftest.err >&5
29463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29464   (exit $ac_status); } && {
29465          test -z "$ac_c_werror_flag" ||
29466          test ! -s conftest.err
29467        } && test -s conftest$ac_exeext &&
29468        $as_test_x conftest$ac_exeext; then
29469   ol_cv_db_none=yes
29470 else
29471   echo "$as_me: failed program was:" >&5
29472 sed 's/^/| /' conftest.$ac_ext >&5
29473
29474         ol_cv_db_none=no
29475 fi
29476
29477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29478       conftest$ac_exeext conftest.$ac_ext
29479
29480         LIBS="$ol_LIBS"
29481
29482 fi
29483 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29484 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29485
29486         if test $ol_cv_db_none = yes ; then
29487                 ol_cv_lib_db=yes
29488         fi
29489 fi
29490
29491
29492         if test "$ol_cv_lib_db" != no ; then
29493                 ol_cv_berkeley_db=yes
29494                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29495 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29496 if test "${ol_cv_berkeley_db_version+set}" = set; then
29497   echo $ECHO_N "(cached) $ECHO_C" >&6
29498 else
29499
29500         ol_LIBS="$LIBS"
29501         LIBS="$LTHREAD_LIBS $LIBS"
29502         if test $ol_cv_lib_db != yes ; then
29503                 LIBS="$ol_cv_lib_db $LIBS"
29504         fi
29505
29506         if test "$cross_compiling" = yes; then
29507   ol_cv_berkeley_db_version=cross
29508 else
29509   cat >conftest.$ac_ext <<_ACEOF
29510 /* confdefs.h.  */
29511 _ACEOF
29512 cat confdefs.h >>conftest.$ac_ext
29513 cat >>conftest.$ac_ext <<_ACEOF
29514 /* end confdefs.h.  */
29515
29516 #ifdef HAVE_DB_185_H
29517         choke me;
29518 #else
29519 #include <db.h>
29520 #endif
29521 #ifndef DB_VERSION_MAJOR
29522 # define DB_VERSION_MAJOR 1
29523 #endif
29524 #ifndef NULL
29525 #define NULL ((void *)0)
29526 #endif
29527 main()
29528 {
29529 #if DB_VERSION_MAJOR > 1
29530         char *version;
29531         int major, minor, patch;
29532
29533         version = db_version( &major, &minor, &patch );
29534
29535         if( major != DB_VERSION_MAJOR ||
29536                 minor != DB_VERSION_MINOR ||
29537                 patch != DB_VERSION_PATCH )
29538         {
29539                 printf("Berkeley DB version mismatch\n"
29540                         "\theader: %s\n\tlibrary: %s\n",
29541                         DB_VERSION_STRING, version);
29542                 return 1;
29543         }
29544 #endif
29545
29546         return 0;
29547 }
29548 _ACEOF
29549 rm -f conftest$ac_exeext
29550 if { (ac_try="$ac_link"
29551 case "(($ac_try" in
29552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29553   *) ac_try_echo=$ac_try;;
29554 esac
29555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29556   (eval "$ac_link") 2>&5
29557   ac_status=$?
29558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29559   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29560   { (case "(($ac_try" in
29561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29562   *) ac_try_echo=$ac_try;;
29563 esac
29564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29565   (eval "$ac_try") 2>&5
29566   ac_status=$?
29567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29568   (exit $ac_status); }; }; then
29569   ol_cv_berkeley_db_version=yes
29570 else
29571   echo "$as_me: program exited with status $ac_status" >&5
29572 echo "$as_me: failed program was:" >&5
29573 sed 's/^/| /' conftest.$ac_ext >&5
29574
29575 ( exit $ac_status )
29576 ol_cv_berkeley_db_version=no
29577 fi
29578 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29579 fi
29580
29581
29582
29583         LIBS="$ol_LIBS"
29584
29585 fi
29586 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29587 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29588
29589         if test $ol_cv_berkeley_db_version = no ; then
29590                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29591 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29592    { (exit 1); exit 1; }; }
29593         fi
29594
29595                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29596 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29597 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29598   echo $ECHO_N "(cached) $ECHO_C" >&6
29599 else
29600
29601         ol_LIBS="$LIBS"
29602         LIBS="$LTHREAD_LIBS $LIBS"
29603         if test $ol_cv_lib_db != yes ; then
29604                 LIBS="$ol_cv_lib_db $LIBS"
29605         fi
29606
29607         if test "$cross_compiling" = yes; then
29608   ol_cv_berkeley_db_thread=cross
29609 else
29610   cat >conftest.$ac_ext <<_ACEOF
29611 /* confdefs.h.  */
29612 _ACEOF
29613 cat confdefs.h >>conftest.$ac_ext
29614 cat >>conftest.$ac_ext <<_ACEOF
29615 /* end confdefs.h.  */
29616
29617 #ifdef HAVE_DB_185_H
29618         choke me;
29619 #else
29620 #include <db.h>
29621 #endif
29622 #ifndef NULL
29623 #define NULL ((void *)0)
29624 #endif
29625 main()
29626 {
29627         int rc;
29628         u_int32_t flags = DB_CREATE |
29629 #ifdef DB_PRIVATE
29630                 DB_PRIVATE |
29631 #endif
29632                 DB_THREAD;
29633
29634 #if DB_VERSION_MAJOR > 2
29635         DB_ENV *env = NULL;
29636
29637         rc = db_env_create( &env, 0 );
29638
29639         flags |= DB_INIT_MPOOL;
29640 #ifdef DB_MPOOL_PRIVATE
29641         flags |= DB_MPOOL_PRIVATE;
29642 #endif
29643
29644         if( rc ) {
29645                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29646                 return rc;
29647         }
29648
29649 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29650         rc = (env->open)( env, NULL, flags, 0 );
29651 #else
29652         rc = (env->open)( env, NULL, NULL, flags, 0 );
29653 #endif
29654
29655         if ( rc == 0 ) {
29656                 rc = env->close( env, 0 );
29657         }
29658
29659         if( rc ) {
29660                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29661                 return rc;
29662         }
29663
29664 #else
29665         DB_ENV env;
29666         memset( &env, '\0', sizeof(env) );
29667
29668         rc = db_appinit( NULL, NULL, &env, flags );
29669
29670         if( rc == 0 ) {
29671                 db_appexit( &env );
29672         }
29673
29674         unlink("__db_mpool.share");
29675         unlink("__db_lock.share");
29676 #endif
29677
29678         return rc;
29679 }
29680 _ACEOF
29681 rm -f conftest$ac_exeext
29682 if { (ac_try="$ac_link"
29683 case "(($ac_try" in
29684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29685   *) ac_try_echo=$ac_try;;
29686 esac
29687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29688   (eval "$ac_link") 2>&5
29689   ac_status=$?
29690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29691   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29692   { (case "(($ac_try" in
29693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29694   *) ac_try_echo=$ac_try;;
29695 esac
29696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29697   (eval "$ac_try") 2>&5
29698   ac_status=$?
29699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29700   (exit $ac_status); }; }; then
29701   ol_cv_berkeley_db_thread=yes
29702 else
29703   echo "$as_me: program exited with status $ac_status" >&5
29704 echo "$as_me: failed program was:" >&5
29705 sed 's/^/| /' conftest.$ac_ext >&5
29706
29707 ( exit $ac_status )
29708 ol_cv_berkeley_db_thread=no
29709 fi
29710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29711 fi
29712
29713
29714
29715         LIBS="$ol_LIBS"
29716
29717 fi
29718 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29719 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29720
29721         if test $ol_cv_berkeley_db_thread != no ; then
29722
29723 cat >>confdefs.h <<\_ACEOF
29724 #define HAVE_BERKELEY_DB_THREAD 1
29725 _ACEOF
29726
29727         fi
29728
29729         fi
29730 fi
29731
29732
29733         if test $ol_cv_berkeley_db = no ; then
29734                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29735 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29736    { (exit 1); exit 1; }; }
29737         fi
29738
29739
29740 cat >>confdefs.h <<\_ACEOF
29741 #define HAVE_BERKELEY_DB 1
29742 _ACEOF
29743
29744
29745                         if test $ol_cv_lib_db != yes ; then
29746                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29747         fi
29748
29749         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29750
29751         ol_link_bdb=yes
29752 fi
29753
29754
29755 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29756         BUILD_LIBS_DYNAMIC=shared
29757
29758 cat >>confdefs.h <<\_ACEOF
29759 #define LDAP_LIBS_DYNAMIC 1
29760 _ACEOF
29761
29762         LTSTATIC=""
29763 else
29764         BUILD_LIBS_DYNAMIC=static
29765         LTSTATIC="-static"
29766 fi
29767
29768 if test $ol_enable_wrappers != no ; then
29769
29770 for ac_header in tcpd.h
29771 do
29772 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29774   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29777   echo $ECHO_N "(cached) $ECHO_C" >&6
29778 fi
29779 ac_res=`eval echo '${'$as_ac_Header'}'`
29780                { echo "$as_me:$LINENO: result: $ac_res" >&5
29781 echo "${ECHO_T}$ac_res" >&6; }
29782 else
29783   # Is the header compilable?
29784 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29785 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29786 cat >conftest.$ac_ext <<_ACEOF
29787 /* confdefs.h.  */
29788 _ACEOF
29789 cat confdefs.h >>conftest.$ac_ext
29790 cat >>conftest.$ac_ext <<_ACEOF
29791 /* end confdefs.h.  */
29792 $ac_includes_default
29793 #include <$ac_header>
29794 _ACEOF
29795 rm -f conftest.$ac_objext
29796 if { (ac_try="$ac_compile"
29797 case "(($ac_try" in
29798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29799   *) ac_try_echo=$ac_try;;
29800 esac
29801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29802   (eval "$ac_compile") 2>conftest.er1
29803   ac_status=$?
29804   grep -v '^ *+' conftest.er1 >conftest.err
29805   rm -f conftest.er1
29806   cat conftest.err >&5
29807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29808   (exit $ac_status); } && {
29809          test -z "$ac_c_werror_flag" ||
29810          test ! -s conftest.err
29811        } && test -s conftest.$ac_objext; then
29812   ac_header_compiler=yes
29813 else
29814   echo "$as_me: failed program was:" >&5
29815 sed 's/^/| /' conftest.$ac_ext >&5
29816
29817         ac_header_compiler=no
29818 fi
29819
29820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29821 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29822 echo "${ECHO_T}$ac_header_compiler" >&6; }
29823
29824 # Is the header present?
29825 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29827 cat >conftest.$ac_ext <<_ACEOF
29828 /* confdefs.h.  */
29829 _ACEOF
29830 cat confdefs.h >>conftest.$ac_ext
29831 cat >>conftest.$ac_ext <<_ACEOF
29832 /* end confdefs.h.  */
29833 #include <$ac_header>
29834 _ACEOF
29835 if { (ac_try="$ac_cpp conftest.$ac_ext"
29836 case "(($ac_try" in
29837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29838   *) ac_try_echo=$ac_try;;
29839 esac
29840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29841   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29842   ac_status=$?
29843   grep -v '^ *+' conftest.er1 >conftest.err
29844   rm -f conftest.er1
29845   cat conftest.err >&5
29846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29847   (exit $ac_status); } >/dev/null && {
29848          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29849          test ! -s conftest.err
29850        }; then
29851   ac_header_preproc=yes
29852 else
29853   echo "$as_me: failed program was:" >&5
29854 sed 's/^/| /' conftest.$ac_ext >&5
29855
29856   ac_header_preproc=no
29857 fi
29858
29859 rm -f conftest.err conftest.$ac_ext
29860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29861 echo "${ECHO_T}$ac_header_preproc" >&6; }
29862
29863 # So?  What about this header?
29864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29865   yes:no: )
29866     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29868     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29870     ac_header_preproc=yes
29871     ;;
29872   no:yes:* )
29873     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29875     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29876 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29877     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29879     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29880 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29881     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29883     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29885     ( cat <<\_ASBOX
29886 ## --------------------------------------------- ##
29887 ## Report this to <http://www.openldap.org/its/> ##
29888 ## --------------------------------------------- ##
29889 _ASBOX
29890      ) | sed "s/^/$as_me: WARNING:     /" >&2
29891     ;;
29892 esac
29893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29896   echo $ECHO_N "(cached) $ECHO_C" >&6
29897 else
29898   eval "$as_ac_Header=\$ac_header_preproc"
29899 fi
29900 ac_res=`eval echo '${'$as_ac_Header'}'`
29901                { echo "$as_me:$LINENO: result: $ac_res" >&5
29902 echo "${ECHO_T}$ac_res" >&6; }
29903
29904 fi
29905 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29906   cat >>confdefs.h <<_ACEOF
29907 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29908 _ACEOF
29909
29910                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29911 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29912                 save_LIBS="$LIBS"
29913                 LIBS="$LIBS -lwrap"
29914                 cat >conftest.$ac_ext <<_ACEOF
29915 /* confdefs.h.  */
29916 _ACEOF
29917 cat confdefs.h >>conftest.$ac_ext
29918 cat >>conftest.$ac_ext <<_ACEOF
29919 /* end confdefs.h.  */
29920
29921 #include <tcpd.h>
29922 int allow_severity = 0;
29923 int deny_severity  = 0;
29924
29925 struct request_info *req;
29926
29927 int
29928 main ()
29929 {
29930
29931 hosts_access(req)
29932
29933   ;
29934   return 0;
29935 }
29936 _ACEOF
29937 rm -f conftest.$ac_objext conftest$ac_exeext
29938 if { (ac_try="$ac_link"
29939 case "(($ac_try" in
29940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29941   *) ac_try_echo=$ac_try;;
29942 esac
29943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29944   (eval "$ac_link") 2>conftest.er1
29945   ac_status=$?
29946   grep -v '^ *+' conftest.er1 >conftest.err
29947   rm -f conftest.er1
29948   cat conftest.err >&5
29949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29950   (exit $ac_status); } && {
29951          test -z "$ac_c_werror_flag" ||
29952          test ! -s conftest.err
29953        } && test -s conftest$ac_exeext &&
29954        $as_test_x conftest$ac_exeext; then
29955   { echo "$as_me:$LINENO: result: -lwrap" >&5
29956 echo "${ECHO_T}-lwrap" >&6; }
29957                 have_wrappers=yes
29958                 LIBS="$save_LIBS"
29959 else
29960   echo "$as_me: failed program was:" >&5
29961 sed 's/^/| /' conftest.$ac_ext >&5
29962
29963
29964                                 LIBS="$LIBS -lnsl"
29965                 cat >conftest.$ac_ext <<_ACEOF
29966 /* confdefs.h.  */
29967 _ACEOF
29968 cat confdefs.h >>conftest.$ac_ext
29969 cat >>conftest.$ac_ext <<_ACEOF
29970 /* end confdefs.h.  */
29971
29972 #include <tcpd.h>
29973 int allow_severity = 0;
29974 int deny_severity  = 0;
29975
29976 struct request_info *req;
29977
29978 int
29979 main ()
29980 {
29981
29982 hosts_access(req)
29983
29984   ;
29985   return 0;
29986 }
29987 _ACEOF
29988 rm -f conftest.$ac_objext conftest$ac_exeext
29989 if { (ac_try="$ac_link"
29990 case "(($ac_try" in
29991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29992   *) ac_try_echo=$ac_try;;
29993 esac
29994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29995   (eval "$ac_link") 2>conftest.er1
29996   ac_status=$?
29997   grep -v '^ *+' conftest.er1 >conftest.err
29998   rm -f conftest.er1
29999   cat conftest.err >&5
30000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30001   (exit $ac_status); } && {
30002          test -z "$ac_c_werror_flag" ||
30003          test ! -s conftest.err
30004        } && test -s conftest$ac_exeext &&
30005        $as_test_x conftest$ac_exeext; then
30006   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
30007 echo "${ECHO_T}-lwrap -lnsl" >&6; }
30008                 have_wrappers=yes
30009                 LIBS="$save_LIBS -lnsl"
30010 else
30011   echo "$as_me: failed program was:" >&5
30012 sed 's/^/| /' conftest.$ac_ext >&5
30013
30014
30015                 { echo "$as_me:$LINENO: result: no" >&5
30016 echo "${ECHO_T}no" >&6; }
30017                 have_wrappers=no
30018                 LIBS=$save_LIBS
30019 fi
30020
30021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30022       conftest$ac_exeext conftest.$ac_ext
30023 fi
30024
30025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30026       conftest$ac_exeext conftest.$ac_ext
30027 else
30028   have_wrappers=no
30029 fi
30030
30031 done
30032
30033
30034         if test $have_wrappers = yes ; then
30035
30036 cat >>confdefs.h <<\_ACEOF
30037 #define HAVE_TCPD 1
30038 _ACEOF
30039
30040                 WRAP_LIBS="-lwrap"
30041         elif test $ol_enable_wrappers = yes ; then
30042                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
30043 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
30044    { (exit 1); exit 1; }; }
30045         else
30046                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
30047 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
30048                 WRAP_LIBS=""
30049         fi
30050 fi
30051
30052 if test $ol_enable_syslog != no ; then
30053         { echo "$as_me:$LINENO: checking for openlog" >&5
30054 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
30055 if test "${ac_cv_func_openlog+set}" = set; then
30056   echo $ECHO_N "(cached) $ECHO_C" >&6
30057 else
30058   cat >conftest.$ac_ext <<_ACEOF
30059 /* confdefs.h.  */
30060 _ACEOF
30061 cat confdefs.h >>conftest.$ac_ext
30062 cat >>conftest.$ac_ext <<_ACEOF
30063 /* end confdefs.h.  */
30064 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30066 #define openlog innocuous_openlog
30067
30068 /* System header to define __stub macros and hopefully few prototypes,
30069     which can conflict with char openlog (); below.
30070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30071     <limits.h> exists even on freestanding compilers.  */
30072
30073 #ifdef __STDC__
30074 # include <limits.h>
30075 #else
30076 # include <assert.h>
30077 #endif
30078
30079 #undef openlog
30080
30081 /* Override any GCC internal prototype to avoid an error.
30082    Use char because int might match the return type of a GCC
30083    builtin and then its argument prototype would still apply.  */
30084 #ifdef __cplusplus
30085 extern "C"
30086 #endif
30087 char openlog ();
30088 /* The GNU C library defines this for functions which it implements
30089     to always fail with ENOSYS.  Some functions are actually named
30090     something starting with __ and the normal name is an alias.  */
30091 #if defined __stub_openlog || defined __stub___openlog
30092 choke me
30093 #endif
30094
30095 int
30096 main ()
30097 {
30098 return openlog ();
30099   ;
30100   return 0;
30101 }
30102 _ACEOF
30103 rm -f conftest.$ac_objext conftest$ac_exeext
30104 if { (ac_try="$ac_link"
30105 case "(($ac_try" in
30106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30107   *) ac_try_echo=$ac_try;;
30108 esac
30109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30110   (eval "$ac_link") 2>conftest.er1
30111   ac_status=$?
30112   grep -v '^ *+' conftest.er1 >conftest.err
30113   rm -f conftest.er1
30114   cat conftest.err >&5
30115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30116   (exit $ac_status); } && {
30117          test -z "$ac_c_werror_flag" ||
30118          test ! -s conftest.err
30119        } && test -s conftest$ac_exeext &&
30120        $as_test_x conftest$ac_exeext; then
30121   ac_cv_func_openlog=yes
30122 else
30123   echo "$as_me: failed program was:" >&5
30124 sed 's/^/| /' conftest.$ac_ext >&5
30125
30126         ac_cv_func_openlog=no
30127 fi
30128
30129 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30130       conftest$ac_exeext conftest.$ac_ext
30131 fi
30132 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30133 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30134
30135         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30136                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30137 echo "$as_me: error: could not find syslog" >&2;}
30138    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30139         fi
30140         ol_enable_syslog=$ac_cv_func_openlog
30141 fi
30142
30143 ol_link_sql=no
30144 if test $ol_enable_sql != no ; then
30145
30146
30147 for ac_header in sql.h sqlext.h
30148 do
30149 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30151   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30152 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30154   echo $ECHO_N "(cached) $ECHO_C" >&6
30155 fi
30156 ac_res=`eval echo '${'$as_ac_Header'}'`
30157                { echo "$as_me:$LINENO: result: $ac_res" >&5
30158 echo "${ECHO_T}$ac_res" >&6; }
30159 else
30160   # Is the header compilable?
30161 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30162 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30163 cat >conftest.$ac_ext <<_ACEOF
30164 /* confdefs.h.  */
30165 _ACEOF
30166 cat confdefs.h >>conftest.$ac_ext
30167 cat >>conftest.$ac_ext <<_ACEOF
30168 /* end confdefs.h.  */
30169 $ac_includes_default
30170 #include <$ac_header>
30171 _ACEOF
30172 rm -f conftest.$ac_objext
30173 if { (ac_try="$ac_compile"
30174 case "(($ac_try" in
30175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30176   *) ac_try_echo=$ac_try;;
30177 esac
30178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30179   (eval "$ac_compile") 2>conftest.er1
30180   ac_status=$?
30181   grep -v '^ *+' conftest.er1 >conftest.err
30182   rm -f conftest.er1
30183   cat conftest.err >&5
30184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30185   (exit $ac_status); } && {
30186          test -z "$ac_c_werror_flag" ||
30187          test ! -s conftest.err
30188        } && test -s conftest.$ac_objext; then
30189   ac_header_compiler=yes
30190 else
30191   echo "$as_me: failed program was:" >&5
30192 sed 's/^/| /' conftest.$ac_ext >&5
30193
30194         ac_header_compiler=no
30195 fi
30196
30197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30199 echo "${ECHO_T}$ac_header_compiler" >&6; }
30200
30201 # Is the header present?
30202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30204 cat >conftest.$ac_ext <<_ACEOF
30205 /* confdefs.h.  */
30206 _ACEOF
30207 cat confdefs.h >>conftest.$ac_ext
30208 cat >>conftest.$ac_ext <<_ACEOF
30209 /* end confdefs.h.  */
30210 #include <$ac_header>
30211 _ACEOF
30212 if { (ac_try="$ac_cpp conftest.$ac_ext"
30213 case "(($ac_try" in
30214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215   *) ac_try_echo=$ac_try;;
30216 esac
30217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30218   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30219   ac_status=$?
30220   grep -v '^ *+' conftest.er1 >conftest.err
30221   rm -f conftest.er1
30222   cat conftest.err >&5
30223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30224   (exit $ac_status); } >/dev/null && {
30225          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30226          test ! -s conftest.err
30227        }; then
30228   ac_header_preproc=yes
30229 else
30230   echo "$as_me: failed program was:" >&5
30231 sed 's/^/| /' conftest.$ac_ext >&5
30232
30233   ac_header_preproc=no
30234 fi
30235
30236 rm -f conftest.err conftest.$ac_ext
30237 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30238 echo "${ECHO_T}$ac_header_preproc" >&6; }
30239
30240 # So?  What about this header?
30241 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30242   yes:no: )
30243     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30244 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30245     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30246 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30247     ac_header_preproc=yes
30248     ;;
30249   no:yes:* )
30250     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30251 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30252     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30253 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30254     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30255 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30256     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30257 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30258     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30259 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30260     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30261 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30262     ( cat <<\_ASBOX
30263 ## --------------------------------------------- ##
30264 ## Report this to <http://www.openldap.org/its/> ##
30265 ## --------------------------------------------- ##
30266 _ASBOX
30267      ) | sed "s/^/$as_me: WARNING:     /" >&2
30268     ;;
30269 esac
30270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30273   echo $ECHO_N "(cached) $ECHO_C" >&6
30274 else
30275   eval "$as_ac_Header=\$ac_header_preproc"
30276 fi
30277 ac_res=`eval echo '${'$as_ac_Header'}'`
30278                { echo "$as_me:$LINENO: result: $ac_res" >&5
30279 echo "${ECHO_T}$ac_res" >&6; }
30280
30281 fi
30282 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30283   cat >>confdefs.h <<_ACEOF
30284 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30285 _ACEOF
30286
30287 else
30288
30289                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30290 echo "$as_me: error: could not locate SQL headers" >&2;}
30291    { (exit 1); exit 1; }; }
30292
30293 fi
30294
30295 done
30296
30297
30298         sql_LIBS="$LIBS"
30299         LIBS="$LTHREAD_LIBS"
30300
30301         if test $ol_with_odbc = auto ; then
30302                 ol_with_odbc="iodbc unixodbc odbc32"
30303         fi
30304
30305         for odbc in $ol_with_odbc ; do
30306                 if test $ol_link_sql = no ; then
30307                         case $odbc in
30308                         iodbc)
30309                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30310 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30311 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30312   echo $ECHO_N "(cached) $ECHO_C" >&6
30313 else
30314   ac_check_lib_save_LIBS=$LIBS
30315 LIBS="-liodbc  $LIBS"
30316 cat >conftest.$ac_ext <<_ACEOF
30317 /* confdefs.h.  */
30318 _ACEOF
30319 cat confdefs.h >>conftest.$ac_ext
30320 cat >>conftest.$ac_ext <<_ACEOF
30321 /* end confdefs.h.  */
30322
30323 /* Override any GCC internal prototype to avoid an error.
30324    Use char because int might match the return type of a GCC
30325    builtin and then its argument prototype would still apply.  */
30326 #ifdef __cplusplus
30327 extern "C"
30328 #endif
30329 char SQLDriverConnect ();
30330 int
30331 main ()
30332 {
30333 return SQLDriverConnect ();
30334   ;
30335   return 0;
30336 }
30337 _ACEOF
30338 rm -f conftest.$ac_objext conftest$ac_exeext
30339 if { (ac_try="$ac_link"
30340 case "(($ac_try" in
30341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30342   *) ac_try_echo=$ac_try;;
30343 esac
30344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30345   (eval "$ac_link") 2>conftest.er1
30346   ac_status=$?
30347   grep -v '^ *+' conftest.er1 >conftest.err
30348   rm -f conftest.er1
30349   cat conftest.err >&5
30350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30351   (exit $ac_status); } && {
30352          test -z "$ac_c_werror_flag" ||
30353          test ! -s conftest.err
30354        } && test -s conftest$ac_exeext &&
30355        $as_test_x conftest$ac_exeext; then
30356   ac_cv_lib_iodbc_SQLDriverConnect=yes
30357 else
30358   echo "$as_me: failed program was:" >&5
30359 sed 's/^/| /' conftest.$ac_ext >&5
30360
30361         ac_cv_lib_iodbc_SQLDriverConnect=no
30362 fi
30363
30364 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30365       conftest$ac_exeext conftest.$ac_ext
30366 LIBS=$ac_check_lib_save_LIBS
30367 fi
30368 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30369 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30370 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30371   have_iodbc=yes
30372 else
30373   have_iodbc=no
30374 fi
30375
30376                                 if test $have_iodbc = yes ; then
30377                                         ol_link_sql="-liodbc"
30378                                 fi
30379                                 ;;
30380
30381                         unixodbc)
30382                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30383 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30384 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30385   echo $ECHO_N "(cached) $ECHO_C" >&6
30386 else
30387   ac_check_lib_save_LIBS=$LIBS
30388 LIBS="-lodbc  $LIBS"
30389 cat >conftest.$ac_ext <<_ACEOF
30390 /* confdefs.h.  */
30391 _ACEOF
30392 cat confdefs.h >>conftest.$ac_ext
30393 cat >>conftest.$ac_ext <<_ACEOF
30394 /* end confdefs.h.  */
30395
30396 /* Override any GCC internal prototype to avoid an error.
30397    Use char because int might match the return type of a GCC
30398    builtin and then its argument prototype would still apply.  */
30399 #ifdef __cplusplus
30400 extern "C"
30401 #endif
30402 char SQLDriverConnect ();
30403 int
30404 main ()
30405 {
30406 return SQLDriverConnect ();
30407   ;
30408   return 0;
30409 }
30410 _ACEOF
30411 rm -f conftest.$ac_objext conftest$ac_exeext
30412 if { (ac_try="$ac_link"
30413 case "(($ac_try" in
30414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30415   *) ac_try_echo=$ac_try;;
30416 esac
30417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30418   (eval "$ac_link") 2>conftest.er1
30419   ac_status=$?
30420   grep -v '^ *+' conftest.er1 >conftest.err
30421   rm -f conftest.er1
30422   cat conftest.err >&5
30423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30424   (exit $ac_status); } && {
30425          test -z "$ac_c_werror_flag" ||
30426          test ! -s conftest.err
30427        } && test -s conftest$ac_exeext &&
30428        $as_test_x conftest$ac_exeext; then
30429   ac_cv_lib_odbc_SQLDriverConnect=yes
30430 else
30431   echo "$as_me: failed program was:" >&5
30432 sed 's/^/| /' conftest.$ac_ext >&5
30433
30434         ac_cv_lib_odbc_SQLDriverConnect=no
30435 fi
30436
30437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30438       conftest$ac_exeext conftest.$ac_ext
30439 LIBS=$ac_check_lib_save_LIBS
30440 fi
30441 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30442 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30443 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30444   have_odbc=yes
30445 else
30446   have_odbc=no
30447 fi
30448
30449                                 if test $have_odbc = yes ; then
30450                                         ol_link_sql="-lodbc"
30451                                 fi
30452                                 ;;
30453
30454                         odbc32)
30455                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30456 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30457 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30458   echo $ECHO_N "(cached) $ECHO_C" >&6
30459 else
30460   ac_check_lib_save_LIBS=$LIBS
30461 LIBS="-lodbc32  $LIBS"
30462 cat >conftest.$ac_ext <<_ACEOF
30463 /* confdefs.h.  */
30464 _ACEOF
30465 cat confdefs.h >>conftest.$ac_ext
30466 cat >>conftest.$ac_ext <<_ACEOF
30467 /* end confdefs.h.  */
30468
30469 /* Override any GCC internal prototype to avoid an error.
30470    Use char because int might match the return type of a GCC
30471    builtin and then its argument prototype would still apply.  */
30472 #ifdef __cplusplus
30473 extern "C"
30474 #endif
30475 char SQLDriverConnect ();
30476 int
30477 main ()
30478 {
30479 return SQLDriverConnect ();
30480   ;
30481   return 0;
30482 }
30483 _ACEOF
30484 rm -f conftest.$ac_objext conftest$ac_exeext
30485 if { (ac_try="$ac_link"
30486 case "(($ac_try" in
30487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30488   *) ac_try_echo=$ac_try;;
30489 esac
30490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30491   (eval "$ac_link") 2>conftest.er1
30492   ac_status=$?
30493   grep -v '^ *+' conftest.er1 >conftest.err
30494   rm -f conftest.er1
30495   cat conftest.err >&5
30496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30497   (exit $ac_status); } && {
30498          test -z "$ac_c_werror_flag" ||
30499          test ! -s conftest.err
30500        } && test -s conftest$ac_exeext &&
30501        $as_test_x conftest$ac_exeext; then
30502   ac_cv_lib_odbc32_SQLDriverConnect=yes
30503 else
30504   echo "$as_me: failed program was:" >&5
30505 sed 's/^/| /' conftest.$ac_ext >&5
30506
30507         ac_cv_lib_odbc32_SQLDriverConnect=no
30508 fi
30509
30510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30511       conftest$ac_exeext conftest.$ac_ext
30512 LIBS=$ac_check_lib_save_LIBS
30513 fi
30514 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30515 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30516 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30517   have_odbc32=yes
30518 else
30519   have_odbc32=no
30520 fi
30521
30522                                 if test $have_odbc32 = yes ; then
30523                                         ol_link_sql="-lodbc32"
30524                                 fi
30525                                 ;;
30526
30527                         *)
30528                                 { { echo "$as_me:$LINENO: error: unknown ODBC library" >&5
30529 echo "$as_me: error: unknown ODBC library" >&2;}
30530    { (exit 1); exit 1; }; }
30531                                 ;;
30532                         esac
30533                 fi
30534         done
30535
30536         LIBS="$sql_LIBS"
30537
30538         if test $ol_link_sql != no ; then
30539                 SLAPD_SQL_LIBS="$ol_link_sql"
30540
30541         elif test $ol_enable_sql != auto ; then
30542                 { { echo "$as_me:$LINENO: error: could not locate suitable ODBC library" >&5
30543 echo "$as_me: error: could not locate suitable ODBC library" >&2;}
30544    { (exit 1); exit 1; }; }
30545         fi
30546 fi
30547
30548 ol_link_ndb=no
30549 if test $ol_enable_ndb != no ; then
30550         # Extract the first word of "mysql_config", so it can be a program name with args.
30551 set dummy mysql_config; ac_word=$2
30552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30554 if test "${ac_cv_prog_MYSQL+set}" = set; then
30555   echo $ECHO_N "(cached) $ECHO_C" >&6
30556 else
30557   if test -n "$MYSQL"; then
30558   ac_cv_prog_MYSQL="$MYSQL" # Let the user override the test.
30559 else
30560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30561 for as_dir in $PATH
30562 do
30563   IFS=$as_save_IFS
30564   test -z "$as_dir" && as_dir=.
30565   for ac_exec_ext in '' $ac_executable_extensions; do
30566   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30567     ac_cv_prog_MYSQL="yes"
30568     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30569     break 2
30570   fi
30571 done
30572 done
30573 IFS=$as_save_IFS
30574
30575 fi
30576 fi
30577 MYSQL=$ac_cv_prog_MYSQL
30578 if test -n "$MYSQL"; then
30579   { echo "$as_me:$LINENO: result: $MYSQL" >&5
30580 echo "${ECHO_T}$MYSQL" >&6; }
30581 else
30582   { echo "$as_me:$LINENO: result: no" >&5
30583 echo "${ECHO_T}no" >&6; }
30584 fi
30585
30586
30587         if test "$MYSQL" != yes ; then
30588                 { { echo "$as_me:$LINENO: error: could not locate mysql_config" >&5
30589 echo "$as_me: error: could not locate mysql_config" >&2;}
30590    { (exit 1); exit 1; }; }
30591         fi
30592
30593         SQL_INC=`mysql_config --include`
30594         SLAPD_NDB_INCS="$SQL_INC $SQL_INC/storage/ndb $SQL_INC/storage/ndb/ndbapi"
30595
30596         save_CPPFLAGS="$CPPFLAGS"
30597         CPPFLAGS="$SLAPD_NDB_INCS"
30598         { echo "$as_me:$LINENO: checking for NdbApi.hpp" >&5
30599 echo $ECHO_N "checking for NdbApi.hpp... $ECHO_C" >&6; }
30600         cat >conftest.$ac_ext <<_ACEOF
30601 /* confdefs.h.  */
30602 _ACEOF
30603 cat confdefs.h >>conftest.$ac_ext
30604 cat >>conftest.$ac_ext <<_ACEOF
30605 /* end confdefs.h.  */
30606 #include <NdbApi.hpp>
30607 _ACEOF
30608 if { (ac_try="$ac_cpp conftest.$ac_ext"
30609 case "(($ac_try" in
30610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30611   *) ac_try_echo=$ac_try;;
30612 esac
30613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30614   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30615   ac_status=$?
30616   grep -v '^ *+' conftest.er1 >conftest.err
30617   rm -f conftest.er1
30618   cat conftest.err >&5
30619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30620   (exit $ac_status); } >/dev/null && {
30621          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30622          test ! -s conftest.err
30623        }; then
30624   { echo "$as_me:$LINENO: result: yes" >&5
30625 echo "${ECHO_T}yes" >&6; }
30626 else
30627   echo "$as_me: failed program was:" >&5
30628 sed 's/^/| /' conftest.$ac_ext >&5
30629
30630   { { echo "$as_me:$LINENO: error: could not locate NdbApi headers" >&5
30631 echo "$as_me: error: could not locate NdbApi headers" >&2;}
30632    { (exit 1); exit 1; }; }
30633
30634 fi
30635
30636 rm -f conftest.err conftest.$ac_ext
30637         CPPFLAGS="$save_CPPFLAGS"
30638
30639         SQL_LIB=`mysql_config --libs_r`
30640         SLAPD_NDB_LIBS="$SQL_LIB -lndbclient -lstdc++"
30641
30642         save_LDFLAGS="$LDFLAGS"
30643         save_LIBS="$LIBS"
30644         LDFLAGS="$SQL_LIB"
30645         { echo "$as_me:$LINENO: checking for ndb_init in -lndbclient" >&5
30646 echo $ECHO_N "checking for ndb_init in -lndbclient... $ECHO_C" >&6; }
30647 if test "${ac_cv_lib_ndbclient_ndb_init+set}" = set; then
30648   echo $ECHO_N "(cached) $ECHO_C" >&6
30649 else
30650   ac_check_lib_save_LIBS=$LIBS
30651 LIBS="-lndbclient -lstdc++ $LIBS"
30652 cat >conftest.$ac_ext <<_ACEOF
30653 /* confdefs.h.  */
30654 _ACEOF
30655 cat confdefs.h >>conftest.$ac_ext
30656 cat >>conftest.$ac_ext <<_ACEOF
30657 /* end confdefs.h.  */
30658
30659 /* Override any GCC internal prototype to avoid an error.
30660    Use char because int might match the return type of a GCC
30661    builtin and then its argument prototype would still apply.  */
30662 #ifdef __cplusplus
30663 extern "C"
30664 #endif
30665 char ndb_init ();
30666 int
30667 main ()
30668 {
30669 return ndb_init ();
30670   ;
30671   return 0;
30672 }
30673 _ACEOF
30674 rm -f conftest.$ac_objext conftest$ac_exeext
30675 if { (ac_try="$ac_link"
30676 case "(($ac_try" in
30677   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30678   *) ac_try_echo=$ac_try;;
30679 esac
30680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30681   (eval "$ac_link") 2>conftest.er1
30682   ac_status=$?
30683   grep -v '^ *+' conftest.er1 >conftest.err
30684   rm -f conftest.er1
30685   cat conftest.err >&5
30686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30687   (exit $ac_status); } && {
30688          test -z "$ac_c_werror_flag" ||
30689          test ! -s conftest.err
30690        } && test -s conftest$ac_exeext &&
30691        $as_test_x conftest$ac_exeext; then
30692   ac_cv_lib_ndbclient_ndb_init=yes
30693 else
30694   echo "$as_me: failed program was:" >&5
30695 sed 's/^/| /' conftest.$ac_ext >&5
30696
30697         ac_cv_lib_ndbclient_ndb_init=no
30698 fi
30699
30700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30701       conftest$ac_exeext conftest.$ac_ext
30702 LIBS=$ac_check_lib_save_LIBS
30703 fi
30704 { echo "$as_me:$LINENO: result: $ac_cv_lib_ndbclient_ndb_init" >&5
30705 echo "${ECHO_T}$ac_cv_lib_ndbclient_ndb_init" >&6; }
30706 if test $ac_cv_lib_ndbclient_ndb_init = yes; then
30707   : ok
30708 else
30709
30710                 { { echo "$as_me:$LINENO: error: could not locate ndbclient library" >&5
30711 echo "$as_me: error: could not locate ndbclient library" >&2;}
30712    { (exit 1); exit 1; }; }
30713
30714 fi
30715
30716         LIBS="$save_LIBS"
30717         LDFLAGS="$save_LDFLAGS"
30718
30719         if test "$ol_enable_ndb" = yes ; then
30720                 SLAPD_LIBS="$SLAPD_LIBS \$(SLAPD_NDB_LIBS)"
30721         fi
30722 fi
30723
30724 ol_icu=no
30725
30726 for ac_header in unicode/utypes.h
30727 do
30728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30730   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30733   echo $ECHO_N "(cached) $ECHO_C" >&6
30734 fi
30735 ac_res=`eval echo '${'$as_ac_Header'}'`
30736                { echo "$as_me:$LINENO: result: $ac_res" >&5
30737 echo "${ECHO_T}$ac_res" >&6; }
30738 else
30739   # Is the header compilable?
30740 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30741 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30742 cat >conftest.$ac_ext <<_ACEOF
30743 /* confdefs.h.  */
30744 _ACEOF
30745 cat confdefs.h >>conftest.$ac_ext
30746 cat >>conftest.$ac_ext <<_ACEOF
30747 /* end confdefs.h.  */
30748 $ac_includes_default
30749 #include <$ac_header>
30750 _ACEOF
30751 rm -f conftest.$ac_objext
30752 if { (ac_try="$ac_compile"
30753 case "(($ac_try" in
30754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30755   *) ac_try_echo=$ac_try;;
30756 esac
30757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30758   (eval "$ac_compile") 2>conftest.er1
30759   ac_status=$?
30760   grep -v '^ *+' conftest.er1 >conftest.err
30761   rm -f conftest.er1
30762   cat conftest.err >&5
30763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30764   (exit $ac_status); } && {
30765          test -z "$ac_c_werror_flag" ||
30766          test ! -s conftest.err
30767        } && test -s conftest.$ac_objext; then
30768   ac_header_compiler=yes
30769 else
30770   echo "$as_me: failed program was:" >&5
30771 sed 's/^/| /' conftest.$ac_ext >&5
30772
30773         ac_header_compiler=no
30774 fi
30775
30776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30778 echo "${ECHO_T}$ac_header_compiler" >&6; }
30779
30780 # Is the header present?
30781 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30782 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30783 cat >conftest.$ac_ext <<_ACEOF
30784 /* confdefs.h.  */
30785 _ACEOF
30786 cat confdefs.h >>conftest.$ac_ext
30787 cat >>conftest.$ac_ext <<_ACEOF
30788 /* end confdefs.h.  */
30789 #include <$ac_header>
30790 _ACEOF
30791 if { (ac_try="$ac_cpp conftest.$ac_ext"
30792 case "(($ac_try" in
30793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30794   *) ac_try_echo=$ac_try;;
30795 esac
30796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30798   ac_status=$?
30799   grep -v '^ *+' conftest.er1 >conftest.err
30800   rm -f conftest.er1
30801   cat conftest.err >&5
30802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30803   (exit $ac_status); } >/dev/null && {
30804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30805          test ! -s conftest.err
30806        }; then
30807   ac_header_preproc=yes
30808 else
30809   echo "$as_me: failed program was:" >&5
30810 sed 's/^/| /' conftest.$ac_ext >&5
30811
30812   ac_header_preproc=no
30813 fi
30814
30815 rm -f conftest.err conftest.$ac_ext
30816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30817 echo "${ECHO_T}$ac_header_preproc" >&6; }
30818
30819 # So?  What about this header?
30820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30821   yes:no: )
30822     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30824     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30826     ac_header_preproc=yes
30827     ;;
30828   no:yes:* )
30829     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30831     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30832 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30833     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30835     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30836 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30837     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30839     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30841     ( cat <<\_ASBOX
30842 ## --------------------------------------------- ##
30843 ## Report this to <http://www.openldap.org/its/> ##
30844 ## --------------------------------------------- ##
30845 _ASBOX
30846      ) | sed "s/^/$as_me: WARNING:     /" >&2
30847     ;;
30848 esac
30849 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30852   echo $ECHO_N "(cached) $ECHO_C" >&6
30853 else
30854   eval "$as_ac_Header=\$ac_header_preproc"
30855 fi
30856 ac_res=`eval echo '${'$as_ac_Header'}'`
30857                { echo "$as_me:$LINENO: result: $ac_res" >&5
30858 echo "${ECHO_T}$ac_res" >&6; }
30859
30860 fi
30861 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30862   cat >>confdefs.h <<_ACEOF
30863 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30864 _ACEOF
30865
30866 fi
30867
30868 done
30869
30870 if test $ac_cv_header_unicode_utypes_h = yes ; then
30871                 OL_ICULIBS="-licuuc -licudata"
30872
30873         { echo "$as_me:$LINENO: checking for ICU libraries" >&5
30874 echo $ECHO_N "checking for ICU libraries... $ECHO_C" >&6; }
30875 if test "${ol_cv_lib_icu+set}" = set; then
30876   echo $ECHO_N "(cached) $ECHO_C" >&6
30877 else
30878
30879                 ol_LIBS="$LIBS"
30880                 LIBS="$OL_ICULIBS $LIBS"
30881                 cat >conftest.$ac_ext <<_ACEOF
30882 /* confdefs.h.  */
30883 _ACEOF
30884 cat confdefs.h >>conftest.$ac_ext
30885 cat >>conftest.$ac_ext <<_ACEOF
30886 /* end confdefs.h.  */
30887
30888 #include <unicode/utypes.h>
30889
30890 int
30891 main ()
30892 {
30893
30894 (void) u_errorName(0);
30895
30896   ;
30897   return 0;
30898 }
30899 _ACEOF
30900 rm -f conftest.$ac_objext conftest$ac_exeext
30901 if { (ac_try="$ac_link"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_link") 2>conftest.er1
30908   ac_status=$?
30909   grep -v '^ *+' conftest.er1 >conftest.err
30910   rm -f conftest.er1
30911   cat conftest.err >&5
30912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30913   (exit $ac_status); } && {
30914          test -z "$ac_c_werror_flag" ||
30915          test ! -s conftest.err
30916        } && test -s conftest$ac_exeext &&
30917        $as_test_x conftest$ac_exeext; then
30918   ol_cv_lib_icu=yes
30919 else
30920   echo "$as_me: failed program was:" >&5
30921 sed 's/^/| /' conftest.$ac_ext >&5
30922
30923         ol_cv_lib_icu=no
30924 fi
30925
30926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30927       conftest$ac_exeext conftest.$ac_ext
30928                 LIBS="$ol_LIBS"
30929
30930 fi
30931 { echo "$as_me:$LINENO: result: $ol_cv_lib_icu" >&5
30932 echo "${ECHO_T}$ol_cv_lib_icu" >&6; }
30933
30934         if test $ol_cv_lib_icu != no ; then
30935                 ol_icu="$OL_ICULIBS"
30936
30937 cat >>confdefs.h <<\_ACEOF
30938 #define HAVE_ICU 1
30939 _ACEOF
30940
30941         fi
30942 fi
30943
30944 if test "$ol_icu" = no ; then
30945         { echo "$as_me:$LINENO: WARNING: ICU not available" >&5
30946 echo "$as_me: WARNING: ICU not available" >&2;}
30947 else
30948         ICU_LIBS="$ol_icu"
30949 fi
30950 WITH_SASL=no
30951 ol_link_sasl=no
30952 ol_link_spasswd=no
30953 if test $ol_with_cyrus_sasl != no ; then
30954
30955
30956 for ac_header in sasl/sasl.h sasl.h
30957 do
30958 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30960   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30963   echo $ECHO_N "(cached) $ECHO_C" >&6
30964 fi
30965 ac_res=`eval echo '${'$as_ac_Header'}'`
30966                { echo "$as_me:$LINENO: result: $ac_res" >&5
30967 echo "${ECHO_T}$ac_res" >&6; }
30968 else
30969   # Is the header compilable?
30970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30972 cat >conftest.$ac_ext <<_ACEOF
30973 /* confdefs.h.  */
30974 _ACEOF
30975 cat confdefs.h >>conftest.$ac_ext
30976 cat >>conftest.$ac_ext <<_ACEOF
30977 /* end confdefs.h.  */
30978 $ac_includes_default
30979 #include <$ac_header>
30980 _ACEOF
30981 rm -f conftest.$ac_objext
30982 if { (ac_try="$ac_compile"
30983 case "(($ac_try" in
30984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985   *) ac_try_echo=$ac_try;;
30986 esac
30987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30988   (eval "$ac_compile") 2>conftest.er1
30989   ac_status=$?
30990   grep -v '^ *+' conftest.er1 >conftest.err
30991   rm -f conftest.er1
30992   cat conftest.err >&5
30993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30994   (exit $ac_status); } && {
30995          test -z "$ac_c_werror_flag" ||
30996          test ! -s conftest.err
30997        } && test -s conftest.$ac_objext; then
30998   ac_header_compiler=yes
30999 else
31000   echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31002
31003         ac_header_compiler=no
31004 fi
31005
31006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31008 echo "${ECHO_T}$ac_header_compiler" >&6; }
31009
31010 # Is the header present?
31011 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31013 cat >conftest.$ac_ext <<_ACEOF
31014 /* confdefs.h.  */
31015 _ACEOF
31016 cat confdefs.h >>conftest.$ac_ext
31017 cat >>conftest.$ac_ext <<_ACEOF
31018 /* end confdefs.h.  */
31019 #include <$ac_header>
31020 _ACEOF
31021 if { (ac_try="$ac_cpp conftest.$ac_ext"
31022 case "(($ac_try" in
31023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31024   *) ac_try_echo=$ac_try;;
31025 esac
31026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31027   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31028   ac_status=$?
31029   grep -v '^ *+' conftest.er1 >conftest.err
31030   rm -f conftest.er1
31031   cat conftest.err >&5
31032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31033   (exit $ac_status); } >/dev/null && {
31034          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31035          test ! -s conftest.err
31036        }; then
31037   ac_header_preproc=yes
31038 else
31039   echo "$as_me: failed program was:" >&5
31040 sed 's/^/| /' conftest.$ac_ext >&5
31041
31042   ac_header_preproc=no
31043 fi
31044
31045 rm -f conftest.err conftest.$ac_ext
31046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31047 echo "${ECHO_T}$ac_header_preproc" >&6; }
31048
31049 # So?  What about this header?
31050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31051   yes:no: )
31052     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31054     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31056     ac_header_preproc=yes
31057     ;;
31058   no:yes:* )
31059     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31061     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31062 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31063     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31065     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31066 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31067     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31069     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31071     ( cat <<\_ASBOX
31072 ## --------------------------------------------- ##
31073 ## Report this to <http://www.openldap.org/its/> ##
31074 ## --------------------------------------------- ##
31075 _ASBOX
31076      ) | sed "s/^/$as_me: WARNING:     /" >&2
31077     ;;
31078 esac
31079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
31080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31082   echo $ECHO_N "(cached) $ECHO_C" >&6
31083 else
31084   eval "$as_ac_Header=\$ac_header_preproc"
31085 fi
31086 ac_res=`eval echo '${'$as_ac_Header'}'`
31087                { echo "$as_me:$LINENO: result: $ac_res" >&5
31088 echo "${ECHO_T}$ac_res" >&6; }
31089
31090 fi
31091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31092   cat >>confdefs.h <<_ACEOF
31093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31094 _ACEOF
31095
31096 fi
31097
31098 done
31099
31100
31101         if test $ac_cv_header_sasl_sasl_h = yes ||
31102            test $ac_cv_header_sasl_h = yes; then
31103                 { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl2" >&5
31104 echo $ECHO_N "checking for sasl_client_init in -lsasl2... $ECHO_C" >&6; }
31105 if test "${ac_cv_lib_sasl2_sasl_client_init+set}" = set; then
31106   echo $ECHO_N "(cached) $ECHO_C" >&6
31107 else
31108   ac_check_lib_save_LIBS=$LIBS
31109 LIBS="-lsasl2  $LIBS"
31110 cat >conftest.$ac_ext <<_ACEOF
31111 /* confdefs.h.  */
31112 _ACEOF
31113 cat confdefs.h >>conftest.$ac_ext
31114 cat >>conftest.$ac_ext <<_ACEOF
31115 /* end confdefs.h.  */
31116
31117 /* Override any GCC internal prototype to avoid an error.
31118    Use char because int might match the return type of a GCC
31119    builtin and then its argument prototype would still apply.  */
31120 #ifdef __cplusplus
31121 extern "C"
31122 #endif
31123 char sasl_client_init ();
31124 int
31125 main ()
31126 {
31127 return sasl_client_init ();
31128   ;
31129   return 0;
31130 }
31131 _ACEOF
31132 rm -f conftest.$ac_objext conftest$ac_exeext
31133 if { (ac_try="$ac_link"
31134 case "(($ac_try" in
31135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31136   *) ac_try_echo=$ac_try;;
31137 esac
31138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31139   (eval "$ac_link") 2>conftest.er1
31140   ac_status=$?
31141   grep -v '^ *+' conftest.er1 >conftest.err
31142   rm -f conftest.er1
31143   cat conftest.err >&5
31144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31145   (exit $ac_status); } && {
31146          test -z "$ac_c_werror_flag" ||
31147          test ! -s conftest.err
31148        } && test -s conftest$ac_exeext &&
31149        $as_test_x conftest$ac_exeext; then
31150   ac_cv_lib_sasl2_sasl_client_init=yes
31151 else
31152   echo "$as_me: failed program was:" >&5
31153 sed 's/^/| /' conftest.$ac_ext >&5
31154
31155         ac_cv_lib_sasl2_sasl_client_init=no
31156 fi
31157
31158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31159       conftest$ac_exeext conftest.$ac_ext
31160 LIBS=$ac_check_lib_save_LIBS
31161 fi
31162 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl2_sasl_client_init" >&5
31163 echo "${ECHO_T}$ac_cv_lib_sasl2_sasl_client_init" >&6; }
31164 if test $ac_cv_lib_sasl2_sasl_client_init = yes; then
31165   ol_link_sasl="-lsasl2"
31166 else
31167   { echo "$as_me:$LINENO: checking for sasl_client_init in -lsasl" >&5
31168 echo $ECHO_N "checking for sasl_client_init in -lsasl... $ECHO_C" >&6; }
31169 if test "${ac_cv_lib_sasl_sasl_client_init+set}" = set; then
31170   echo $ECHO_N "(cached) $ECHO_C" >&6
31171 else
31172   ac_check_lib_save_LIBS=$LIBS
31173 LIBS="-lsasl  $LIBS"
31174 cat >conftest.$ac_ext <<_ACEOF
31175 /* confdefs.h.  */
31176 _ACEOF
31177 cat confdefs.h >>conftest.$ac_ext
31178 cat >>conftest.$ac_ext <<_ACEOF
31179 /* end confdefs.h.  */
31180
31181 /* Override any GCC internal prototype to avoid an error.
31182    Use char because int might match the return type of a GCC
31183    builtin and then its argument prototype would still apply.  */
31184 #ifdef __cplusplus
31185 extern "C"
31186 #endif
31187 char sasl_client_init ();
31188 int
31189 main ()
31190 {
31191 return sasl_client_init ();
31192   ;
31193   return 0;
31194 }
31195 _ACEOF
31196 rm -f conftest.$ac_objext conftest$ac_exeext
31197 if { (ac_try="$ac_link"
31198 case "(($ac_try" in
31199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31200   *) ac_try_echo=$ac_try;;
31201 esac
31202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31203   (eval "$ac_link") 2>conftest.er1
31204   ac_status=$?
31205   grep -v '^ *+' conftest.er1 >conftest.err
31206   rm -f conftest.er1
31207   cat conftest.err >&5
31208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31209   (exit $ac_status); } && {
31210          test -z "$ac_c_werror_flag" ||
31211          test ! -s conftest.err
31212        } && test -s conftest$ac_exeext &&
31213        $as_test_x conftest$ac_exeext; then
31214   ac_cv_lib_sasl_sasl_client_init=yes
31215 else
31216   echo "$as_me: failed program was:" >&5
31217 sed 's/^/| /' conftest.$ac_ext >&5
31218
31219         ac_cv_lib_sasl_sasl_client_init=no
31220 fi
31221
31222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31223       conftest$ac_exeext conftest.$ac_ext
31224 LIBS=$ac_check_lib_save_LIBS
31225 fi
31226 { echo "$as_me:$LINENO: result: $ac_cv_lib_sasl_sasl_client_init" >&5
31227 echo "${ECHO_T}$ac_cv_lib_sasl_sasl_client_init" >&6; }
31228 if test $ac_cv_lib_sasl_sasl_client_init = yes; then
31229   ol_link_sasl="-lsasl"
31230 fi
31231
31232 fi
31233
31234         fi
31235
31236         if test $ol_link_sasl = no ; then
31237                 if test $ol_with_cyrus_sasl != auto ; then
31238                         { { echo "$as_me:$LINENO: error: Could not locate Cyrus SASL" >&5
31239 echo "$as_me: error: Could not locate Cyrus SASL" >&2;}
31240    { (exit 1); exit 1; }; }
31241                 else
31242                         { echo "$as_me:$LINENO: WARNING: Could not locate Cyrus SASL" >&5
31243 echo "$as_me: WARNING: Could not locate Cyrus SASL" >&2;}
31244                         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31245 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31246                         if test $ol_link_tls = no ; then
31247                                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31248 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31249                         fi
31250                 fi
31251         else
31252                 { echo "$as_me:$LINENO: checking Cyrus SASL library version" >&5
31253 echo $ECHO_N "checking Cyrus SASL library version... $ECHO_C" >&6; }
31254 if test "${ol_cv_sasl_compat+set}" = set; then
31255   echo $ECHO_N "(cached) $ECHO_C" >&6
31256 else
31257
31258         cat >conftest.$ac_ext <<_ACEOF
31259 /* confdefs.h.  */
31260 _ACEOF
31261 cat confdefs.h >>conftest.$ac_ext
31262 cat >>conftest.$ac_ext <<_ACEOF
31263 /* end confdefs.h.  */
31264
31265 #ifdef HAVE_SASL_SASL_H
31266 #include <sasl/sasl.h>
31267 #else
31268 #include <sasl.h>
31269 #endif
31270
31271 /* Require 2.1.15+ */
31272 #if SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR > 1
31273         char *__sasl_compat = "2.2+ or better okay (we guess)";
31274 #elif SASL_VERSION_MAJOR == 2  && SASL_VERSION_MINOR == 1 \
31275         && SASL_VERSION_STEP >=15
31276         char *__sasl_compat = "2.1.15+ or better okay";
31277 #endif
31278
31279 _ACEOF
31280 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31281   $EGREP "__sasl_compat" >/dev/null 2>&1; then
31282   ol_cv_sasl_compat=yes
31283 else
31284   ol_cv_sasl_compat=no
31285 fi
31286 rm -f conftest*
31287
31288 fi
31289 { echo "$as_me:$LINENO: result: $ol_cv_sasl_compat" >&5
31290 echo "${ECHO_T}$ol_cv_sasl_compat" >&6; }
31291
31292                 if test $ol_cv_sasl_compat = no ; then
31293                         ol_link_sasl=no
31294                         { { echo "$as_me:$LINENO: error: Cyrus SASL library located but is incompatible" >&5
31295 echo "$as_me: error: Cyrus SASL library located but is incompatible" >&2;}
31296    { (exit 1); exit 1; }; }
31297                 fi
31298
31299
31300 cat >>confdefs.h <<\_ACEOF
31301 #define HAVE_CYRUS_SASL 1
31302 _ACEOF
31303
31304                 SASL_LIBS="$ol_link_sasl"
31305                 if test $ol_enable_spasswd != no ; then
31306                         ol_link_spasswd=yes
31307                 fi
31308
31309                 ac_save_LIBS="$LIBS"
31310                 LIBS="$LIBS $ol_link_sasl"
31311                 { echo "$as_me:$LINENO: checking for sasl_version" >&5
31312 echo $ECHO_N "checking for sasl_version... $ECHO_C" >&6; }
31313 if test "${ac_cv_func_sasl_version+set}" = set; then
31314   echo $ECHO_N "(cached) $ECHO_C" >&6
31315 else
31316   cat >conftest.$ac_ext <<_ACEOF
31317 /* confdefs.h.  */
31318 _ACEOF
31319 cat confdefs.h >>conftest.$ac_ext
31320 cat >>conftest.$ac_ext <<_ACEOF
31321 /* end confdefs.h.  */
31322 /* Define sasl_version to an innocuous variant, in case <limits.h> declares sasl_version.
31323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31324 #define sasl_version innocuous_sasl_version
31325
31326 /* System header to define __stub macros and hopefully few prototypes,
31327     which can conflict with char sasl_version (); below.
31328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31329     <limits.h> exists even on freestanding compilers.  */
31330
31331 #ifdef __STDC__
31332 # include <limits.h>
31333 #else
31334 # include <assert.h>
31335 #endif
31336
31337 #undef sasl_version
31338
31339 /* Override any GCC internal prototype to avoid an error.
31340    Use char because int might match the return type of a GCC
31341    builtin and then its argument prototype would still apply.  */
31342 #ifdef __cplusplus
31343 extern "C"
31344 #endif
31345 char sasl_version ();
31346 /* The GNU C library defines this for functions which it implements
31347     to always fail with ENOSYS.  Some functions are actually named
31348     something starting with __ and the normal name is an alias.  */
31349 #if defined __stub_sasl_version || defined __stub___sasl_version
31350 choke me
31351 #endif
31352
31353 int
31354 main ()
31355 {
31356 return sasl_version ();
31357   ;
31358   return 0;
31359 }
31360 _ACEOF
31361 rm -f conftest.$ac_objext conftest$ac_exeext
31362 if { (ac_try="$ac_link"
31363 case "(($ac_try" in
31364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31365   *) ac_try_echo=$ac_try;;
31366 esac
31367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31368   (eval "$ac_link") 2>conftest.er1
31369   ac_status=$?
31370   grep -v '^ *+' conftest.er1 >conftest.err
31371   rm -f conftest.er1
31372   cat conftest.err >&5
31373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31374   (exit $ac_status); } && {
31375          test -z "$ac_c_werror_flag" ||
31376          test ! -s conftest.err
31377        } && test -s conftest$ac_exeext &&
31378        $as_test_x conftest$ac_exeext; then
31379   ac_cv_func_sasl_version=yes
31380 else
31381   echo "$as_me: failed program was:" >&5
31382 sed 's/^/| /' conftest.$ac_ext >&5
31383
31384         ac_cv_func_sasl_version=no
31385 fi
31386
31387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31388       conftest$ac_exeext conftest.$ac_ext
31389 fi
31390 { echo "$as_me:$LINENO: result: $ac_cv_func_sasl_version" >&5
31391 echo "${ECHO_T}$ac_cv_func_sasl_version" >&6; }
31392 if test $ac_cv_func_sasl_version = yes; then
31393
31394 cat >>confdefs.h <<\_ACEOF
31395 #define HAVE_SASL_VERSION 1
31396 _ACEOF
31397
31398 fi
31399
31400                 LIBS="$ac_save_LIBS"
31401
31402                 WITH_SASL=yes
31403         fi
31404
31405 else
31406         { echo "$as_me:$LINENO: WARNING: SASL authentication not supported!" >&5
31407 echo "$as_me: WARNING: SASL authentication not supported!" >&2;}
31408         if test $ol_link_tls = no ; then
31409                 { echo "$as_me:$LINENO: WARNING: Strong authentication not supported!" >&5
31410 echo "$as_me: WARNING: Strong authentication not supported!" >&2;}
31411         fi
31412 fi
31413
31414 if test $cross_compiling != yes && test "$ac_cv_mingw32" != yes ; then
31415         dev=no
31416         if test -r /dev/urandom ; then
31417                 dev="/dev/urandom";
31418         elif test -r /idev/urandom ; then
31419                 dev="/idev/urandom";
31420         elif test -r /dev/srandom ; then
31421                 dev="/dev/srandom";
31422         elif test -r /dev/random ; then
31423                 dev="/dev/random";
31424         elif test -r /idev/random ; then
31425                 dev="/idev/random";
31426         fi
31427
31428         if test $dev != no ; then
31429
31430 cat >>confdefs.h <<_ACEOF
31431 #define URANDOM_DEVICE "$dev"
31432 _ACEOF
31433
31434         fi
31435 fi
31436
31437 ol_link_fetch=no
31438 if test $ol_with_fetch != no ; then
31439         ol_LIBS=$LIBS
31440 LIBS="-lfetch -lcom_err $LIBS"
31441 { echo "$as_me:$LINENO: checking fetch(3) library" >&5
31442 echo $ECHO_N "checking fetch(3) library... $ECHO_C" >&6; }
31443 if test "${ol_cv_lib_fetch+set}" = set; then
31444   echo $ECHO_N "(cached) $ECHO_C" >&6
31445 else
31446
31447         cat >conftest.$ac_ext <<_ACEOF
31448 /* confdefs.h.  */
31449 _ACEOF
31450 cat confdefs.h >>conftest.$ac_ext
31451 cat >>conftest.$ac_ext <<_ACEOF
31452 /* end confdefs.h.  */
31453
31454 #ifdef HAVE_SYS_PARAM_H
31455 #include <sys/param.h>
31456 #endif
31457 #include <stdio.h>
31458 #include <fetch.h>
31459 int
31460 main ()
31461 {
31462 struct url *u = fetchParseURL("file:///");
31463   ;
31464   return 0;
31465 }
31466 _ACEOF
31467 rm -f conftest.$ac_objext conftest$ac_exeext
31468 if { (ac_try="$ac_link"
31469 case "(($ac_try" in
31470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31471   *) ac_try_echo=$ac_try;;
31472 esac
31473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31474   (eval "$ac_link") 2>conftest.er1
31475   ac_status=$?
31476   grep -v '^ *+' conftest.er1 >conftest.err
31477   rm -f conftest.er1
31478   cat conftest.err >&5
31479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31480   (exit $ac_status); } && {
31481          test -z "$ac_c_werror_flag" ||
31482          test ! -s conftest.err
31483        } && test -s conftest$ac_exeext &&
31484        $as_test_x conftest$ac_exeext; then
31485   ol_cv_lib_fetch=yes
31486 else
31487   echo "$as_me: failed program was:" >&5
31488 sed 's/^/| /' conftest.$ac_ext >&5
31489
31490         ol_cv_lib_fetch=no
31491 fi
31492
31493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31494       conftest$ac_exeext conftest.$ac_ext
31495 fi
31496 { echo "$as_me:$LINENO: result: $ol_cv_lib_fetch" >&5
31497 echo "${ECHO_T}$ol_cv_lib_fetch" >&6; }
31498 LIBS=$ol_LIBS
31499 if test $ol_cv_lib_fetch != no ; then
31500         ol_link_fetch="-lfetch -lcom_err"
31501
31502 cat >>confdefs.h <<\_ACEOF
31503 #define HAVE_FETCH 1
31504 _ACEOF
31505
31506 fi
31507
31508
31509         if test $ol_cv_lib_fetch != no ; then
31510                 LUTIL_LIBS="$LUTIL_LIBS $ol_link_fetch"
31511                 ol_link_fetch=freebsd
31512
31513         elif test $ol_with_fetch != auto ; then
31514                 { { echo "$as_me:$LINENO: error: no suitable API for --with-fetch=$ol_with_fetch" >&5
31515 echo "$as_me: error: no suitable API for --with-fetch=$ol_with_fetch" >&2;}
31516    { (exit 1); exit 1; }; }
31517         fi
31518 fi
31519
31520 if test $ol_enable_crypt != no ; then
31521         save_LIBS="$LIBS"
31522         LIBS="$TLS_LIBS $LIBS"
31523
31524         { echo "$as_me:$LINENO: checking for crypt" >&5
31525 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
31526 if test "${ac_cv_func_crypt+set}" = set; then
31527   echo $ECHO_N "(cached) $ECHO_C" >&6
31528 else
31529   cat >conftest.$ac_ext <<_ACEOF
31530 /* confdefs.h.  */
31531 _ACEOF
31532 cat confdefs.h >>conftest.$ac_ext
31533 cat >>conftest.$ac_ext <<_ACEOF
31534 /* end confdefs.h.  */
31535 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
31536    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31537 #define crypt innocuous_crypt
31538
31539 /* System header to define __stub macros and hopefully few prototypes,
31540     which can conflict with char crypt (); below.
31541     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31542     <limits.h> exists even on freestanding compilers.  */
31543
31544 #ifdef __STDC__
31545 # include <limits.h>
31546 #else
31547 # include <assert.h>
31548 #endif
31549
31550 #undef crypt
31551
31552 /* Override any GCC internal prototype to avoid an error.
31553    Use char because int might match the return type of a GCC
31554    builtin and then its argument prototype would still apply.  */
31555 #ifdef __cplusplus
31556 extern "C"
31557 #endif
31558 char crypt ();
31559 /* The GNU C library defines this for functions which it implements
31560     to always fail with ENOSYS.  Some functions are actually named
31561     something starting with __ and the normal name is an alias.  */
31562 #if defined __stub_crypt || defined __stub___crypt
31563 choke me
31564 #endif
31565
31566 int
31567 main ()
31568 {
31569 return crypt ();
31570   ;
31571   return 0;
31572 }
31573 _ACEOF
31574 rm -f conftest.$ac_objext conftest$ac_exeext
31575 if { (ac_try="$ac_link"
31576 case "(($ac_try" in
31577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31578   *) ac_try_echo=$ac_try;;
31579 esac
31580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31581   (eval "$ac_link") 2>conftest.er1
31582   ac_status=$?
31583   grep -v '^ *+' conftest.er1 >conftest.err
31584   rm -f conftest.er1
31585   cat conftest.err >&5
31586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31587   (exit $ac_status); } && {
31588          test -z "$ac_c_werror_flag" ||
31589          test ! -s conftest.err
31590        } && test -s conftest$ac_exeext &&
31591        $as_test_x conftest$ac_exeext; then
31592   ac_cv_func_crypt=yes
31593 else
31594   echo "$as_me: failed program was:" >&5
31595 sed 's/^/| /' conftest.$ac_ext >&5
31596
31597         ac_cv_func_crypt=no
31598 fi
31599
31600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31601       conftest$ac_exeext conftest.$ac_ext
31602 fi
31603 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
31604 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
31605 if test $ac_cv_func_crypt = yes; then
31606   have_crypt=yes
31607 else
31608
31609                 LIBS="$save_LIBS"
31610                 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
31611 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
31612 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
31613   echo $ECHO_N "(cached) $ECHO_C" >&6
31614 else
31615   ac_check_lib_save_LIBS=$LIBS
31616 LIBS="-lcrypt  $LIBS"
31617 cat >conftest.$ac_ext <<_ACEOF
31618 /* confdefs.h.  */
31619 _ACEOF
31620 cat confdefs.h >>conftest.$ac_ext
31621 cat >>conftest.$ac_ext <<_ACEOF
31622 /* end confdefs.h.  */
31623
31624 /* Override any GCC internal prototype to avoid an error.
31625    Use char because int might match the return type of a GCC
31626    builtin and then its argument prototype would still apply.  */
31627 #ifdef __cplusplus
31628 extern "C"
31629 #endif
31630 char crypt ();
31631 int
31632 main ()
31633 {
31634 return crypt ();
31635   ;
31636   return 0;
31637 }
31638 _ACEOF
31639 rm -f conftest.$ac_objext conftest$ac_exeext
31640 if { (ac_try="$ac_link"
31641 case "(($ac_try" in
31642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31643   *) ac_try_echo=$ac_try;;
31644 esac
31645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31646   (eval "$ac_link") 2>conftest.er1
31647   ac_status=$?
31648   grep -v '^ *+' conftest.er1 >conftest.err
31649   rm -f conftest.er1
31650   cat conftest.err >&5
31651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31652   (exit $ac_status); } && {
31653          test -z "$ac_c_werror_flag" ||
31654          test ! -s conftest.err
31655        } && test -s conftest$ac_exeext &&
31656        $as_test_x conftest$ac_exeext; then
31657   ac_cv_lib_crypt_crypt=yes
31658 else
31659   echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31661
31662         ac_cv_lib_crypt_crypt=no
31663 fi
31664
31665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31666       conftest$ac_exeext conftest.$ac_ext
31667 LIBS=$ac_check_lib_save_LIBS
31668 fi
31669 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
31670 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
31671 if test $ac_cv_lib_crypt_crypt = yes; then
31672   LUTIL_LIBS="$LUTIL_LIBS -lcrypt"
31673                         have_crypt=yes
31674 else
31675   have_crypt=no
31676 fi
31677
31678 fi
31679
31680
31681         LIBS="$save_LIBS"
31682
31683         if test $have_crypt = yes ; then
31684
31685 cat >>confdefs.h <<\_ACEOF
31686 #define HAVE_CRYPT 1
31687 _ACEOF
31688
31689         else
31690                 { echo "$as_me:$LINENO: WARNING: could not find crypt" >&5
31691 echo "$as_me: WARNING: could not find crypt" >&2;}
31692                 if test $ol_enable_crypt = yes ; then
31693                         { { echo "$as_me:$LINENO: error: could not find crypt, select appropriate options or disable" >&5
31694 echo "$as_me: error: could not find crypt, select appropriate options or disable" >&2;}
31695    { (exit 1); exit 1; }; }
31696                 fi
31697
31698                 { echo "$as_me:$LINENO: WARNING: disabling crypt support" >&5
31699 echo "$as_me: WARNING: disabling crypt support" >&2;}
31700                 ol_enable_crypt=no
31701         fi
31702 fi
31703
31704 if test $ol_enable_proctitle != no ; then
31705         { echo "$as_me:$LINENO: checking for setproctitle" >&5
31706 echo $ECHO_N "checking for setproctitle... $ECHO_C" >&6; }
31707 if test "${ac_cv_func_setproctitle+set}" = set; then
31708   echo $ECHO_N "(cached) $ECHO_C" >&6
31709 else
31710   cat >conftest.$ac_ext <<_ACEOF
31711 /* confdefs.h.  */
31712 _ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h.  */
31716 /* Define setproctitle to an innocuous variant, in case <limits.h> declares setproctitle.
31717    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31718 #define setproctitle innocuous_setproctitle
31719
31720 /* System header to define __stub macros and hopefully few prototypes,
31721     which can conflict with char setproctitle (); below.
31722     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31723     <limits.h> exists even on freestanding compilers.  */
31724
31725 #ifdef __STDC__
31726 # include <limits.h>
31727 #else
31728 # include <assert.h>
31729 #endif
31730
31731 #undef setproctitle
31732
31733 /* Override any GCC internal prototype to avoid an error.
31734    Use char because int might match the return type of a GCC
31735    builtin and then its argument prototype would still apply.  */
31736 #ifdef __cplusplus
31737 extern "C"
31738 #endif
31739 char setproctitle ();
31740 /* The GNU C library defines this for functions which it implements
31741     to always fail with ENOSYS.  Some functions are actually named
31742     something starting with __ and the normal name is an alias.  */
31743 #if defined __stub_setproctitle || defined __stub___setproctitle
31744 choke me
31745 #endif
31746
31747 int
31748 main ()
31749 {
31750 return setproctitle ();
31751   ;
31752   return 0;
31753 }
31754 _ACEOF
31755 rm -f conftest.$ac_objext conftest$ac_exeext
31756 if { (ac_try="$ac_link"
31757 case "(($ac_try" in
31758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759   *) ac_try_echo=$ac_try;;
31760 esac
31761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31762   (eval "$ac_link") 2>conftest.er1
31763   ac_status=$?
31764   grep -v '^ *+' conftest.er1 >conftest.err
31765   rm -f conftest.er1
31766   cat conftest.err >&5
31767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31768   (exit $ac_status); } && {
31769          test -z "$ac_c_werror_flag" ||
31770          test ! -s conftest.err
31771        } && test -s conftest$ac_exeext &&
31772        $as_test_x conftest$ac_exeext; then
31773   ac_cv_func_setproctitle=yes
31774 else
31775   echo "$as_me: failed program was:" >&5
31776 sed 's/^/| /' conftest.$ac_ext >&5
31777
31778         ac_cv_func_setproctitle=no
31779 fi
31780
31781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31782       conftest$ac_exeext conftest.$ac_ext
31783 fi
31784 { echo "$as_me:$LINENO: result: $ac_cv_func_setproctitle" >&5
31785 echo "${ECHO_T}$ac_cv_func_setproctitle" >&6; }
31786 if test $ac_cv_func_setproctitle = yes; then
31787   have_setproctitle=yes
31788 else
31789
31790                 { echo "$as_me:$LINENO: checking for setproctitle in -lutil" >&5
31791 echo $ECHO_N "checking for setproctitle in -lutil... $ECHO_C" >&6; }
31792 if test "${ac_cv_lib_util_setproctitle+set}" = set; then
31793   echo $ECHO_N "(cached) $ECHO_C" >&6
31794 else
31795   ac_check_lib_save_LIBS=$LIBS
31796 LIBS="-lutil  $LIBS"
31797 cat >conftest.$ac_ext <<_ACEOF
31798 /* confdefs.h.  */
31799 _ACEOF
31800 cat confdefs.h >>conftest.$ac_ext
31801 cat >>conftest.$ac_ext <<_ACEOF
31802 /* end confdefs.h.  */
31803
31804 /* Override any GCC internal prototype to avoid an error.
31805    Use char because int might match the return type of a GCC
31806    builtin and then its argument prototype would still apply.  */
31807 #ifdef __cplusplus
31808 extern "C"
31809 #endif
31810 char setproctitle ();
31811 int
31812 main ()
31813 {
31814 return setproctitle ();
31815   ;
31816   return 0;
31817 }
31818 _ACEOF
31819 rm -f conftest.$ac_objext conftest$ac_exeext
31820 if { (ac_try="$ac_link"
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_link") 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_exeext &&
31836        $as_test_x conftest$ac_exeext; then
31837   ac_cv_lib_util_setproctitle=yes
31838 else
31839   echo "$as_me: failed program was:" >&5
31840 sed 's/^/| /' conftest.$ac_ext >&5
31841
31842         ac_cv_lib_util_setproctitle=no
31843 fi
31844
31845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31846       conftest$ac_exeext conftest.$ac_ext
31847 LIBS=$ac_check_lib_save_LIBS
31848 fi
31849 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_setproctitle" >&5
31850 echo "${ECHO_T}$ac_cv_lib_util_setproctitle" >&6; }
31851 if test $ac_cv_lib_util_setproctitle = yes; then
31852   have_setproctitle=yes
31853                         LUTIL_LIBS="$LUTIL_LIBS -lutil"
31854 else
31855   have_setproctitle=no
31856                         case " $LIBOBJS " in
31857   *" setproctitle.$ac_objext "* ) ;;
31858   *) LIBOBJS="$LIBOBJS setproctitle.$ac_objext"
31859  ;;
31860 esac
31861
31862                         LIBSRCS="$LIBSRCS setproctitle.c"
31863 fi
31864
31865 fi
31866
31867
31868         if test $have_setproctitle = yes ; then
31869
31870 cat >>confdefs.h <<\_ACEOF
31871 #define HAVE_SETPROCTITLE 1
31872 _ACEOF
31873
31874         fi
31875 fi
31876
31877 if test $ol_enable_slp != no ; then
31878
31879 for ac_header in slp.h
31880 do
31881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31883   { echo "$as_me:$LINENO: checking for $ac_header" >&5
31884 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
31885 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31886   echo $ECHO_N "(cached) $ECHO_C" >&6
31887 fi
31888 ac_res=`eval echo '${'$as_ac_Header'}'`
31889                { echo "$as_me:$LINENO: result: $ac_res" >&5
31890 echo "${ECHO_T}$ac_res" >&6; }
31891 else
31892   # Is the header compilable?
31893 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
31894 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
31895 cat >conftest.$ac_ext <<_ACEOF
31896 /* confdefs.h.  */
31897 _ACEOF
31898 cat confdefs.h >>conftest.$ac_ext
31899 cat >>conftest.$ac_ext <<_ACEOF
31900 /* end confdefs.h.  */
31901 $ac_includes_default
31902 #include <$ac_header>
31903 _ACEOF
31904 rm -f conftest.$ac_objext
31905 if { (ac_try="$ac_compile"
31906 case "(($ac_try" in
31907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31908   *) ac_try_echo=$ac_try;;
31909 esac
31910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31911   (eval "$ac_compile") 2>conftest.er1
31912   ac_status=$?
31913   grep -v '^ *+' conftest.er1 >conftest.err
31914   rm -f conftest.er1
31915   cat conftest.err >&5
31916   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31917   (exit $ac_status); } && {
31918          test -z "$ac_c_werror_flag" ||
31919          test ! -s conftest.err
31920        } && test -s conftest.$ac_objext; then
31921   ac_header_compiler=yes
31922 else
31923   echo "$as_me: failed program was:" >&5
31924 sed 's/^/| /' conftest.$ac_ext >&5
31925
31926         ac_header_compiler=no
31927 fi
31928
31929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31930 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31931 echo "${ECHO_T}$ac_header_compiler" >&6; }
31932
31933 # Is the header present?
31934 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
31935 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
31936 cat >conftest.$ac_ext <<_ACEOF
31937 /* confdefs.h.  */
31938 _ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h.  */
31942 #include <$ac_header>
31943 _ACEOF
31944 if { (ac_try="$ac_cpp conftest.$ac_ext"
31945 case "(($ac_try" in
31946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31947   *) ac_try_echo=$ac_try;;
31948 esac
31949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31950   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31951   ac_status=$?
31952   grep -v '^ *+' conftest.er1 >conftest.err
31953   rm -f conftest.er1
31954   cat conftest.err >&5
31955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31956   (exit $ac_status); } >/dev/null && {
31957          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31958          test ! -s conftest.err
31959        }; then
31960   ac_header_preproc=yes
31961 else
31962   echo "$as_me: failed program was:" >&5
31963 sed 's/^/| /' conftest.$ac_ext >&5
31964
31965   ac_header_preproc=no
31966 fi
31967
31968 rm -f conftest.err conftest.$ac_ext
31969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31970 echo "${ECHO_T}$ac_header_preproc" >&6; }
31971
31972 # So?  What about this header?
31973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31974   yes:no: )
31975     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31977     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31979     ac_header_preproc=yes
31980     ;;
31981   no:yes:* )
31982     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31984     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31985 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31986     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31988     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31989 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31990     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31992     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31994     ( cat <<\_ASBOX
31995 ## --------------------------------------------- ##
31996 ## Report this to <http://www.openldap.org/its/> ##
31997 ## --------------------------------------------- ##
31998 _ASBOX
31999      ) | sed "s/^/$as_me: WARNING:     /" >&2
32000     ;;
32001 esac
32002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
32003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
32004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
32005   echo $ECHO_N "(cached) $ECHO_C" >&6
32006 else
32007   eval "$as_ac_Header=\$ac_header_preproc"
32008 fi
32009 ac_res=`eval echo '${'$as_ac_Header'}'`
32010                { echo "$as_me:$LINENO: result: $ac_res" >&5
32011 echo "${ECHO_T}$ac_res" >&6; }
32012
32013 fi
32014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
32015   cat >>confdefs.h <<_ACEOF
32016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
32017 _ACEOF
32018
32019 fi
32020
32021 done
32022
32023
32024         if test $ac_cv_header_slp_h = yes ; then
32025                 { echo "$as_me:$LINENO: checking for SLPOpen in -lslp" >&5
32026 echo $ECHO_N "checking for SLPOpen in -lslp... $ECHO_C" >&6; }
32027 if test "${ac_cv_lib_slp_SLPOpen+set}" = set; then
32028   echo $ECHO_N "(cached) $ECHO_C" >&6
32029 else
32030   ac_check_lib_save_LIBS=$LIBS
32031 LIBS="-lslp  $LIBS"
32032 cat >conftest.$ac_ext <<_ACEOF
32033 /* confdefs.h.  */
32034 _ACEOF
32035 cat confdefs.h >>conftest.$ac_ext
32036 cat >>conftest.$ac_ext <<_ACEOF
32037 /* end confdefs.h.  */
32038
32039 /* Override any GCC internal prototype to avoid an error.
32040    Use char because int might match the return type of a GCC
32041    builtin and then its argument prototype would still apply.  */
32042 #ifdef __cplusplus
32043 extern "C"
32044 #endif
32045 char SLPOpen ();
32046 int
32047 main ()
32048 {
32049 return SLPOpen ();
32050   ;
32051   return 0;
32052 }
32053 _ACEOF
32054 rm -f conftest.$ac_objext conftest$ac_exeext
32055 if { (ac_try="$ac_link"
32056 case "(($ac_try" in
32057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32058   *) ac_try_echo=$ac_try;;
32059 esac
32060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32061   (eval "$ac_link") 2>conftest.er1
32062   ac_status=$?
32063   grep -v '^ *+' conftest.er1 >conftest.err
32064   rm -f conftest.er1
32065   cat conftest.err >&5
32066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32067   (exit $ac_status); } && {
32068          test -z "$ac_c_werror_flag" ||
32069          test ! -s conftest.err
32070        } && test -s conftest$ac_exeext &&
32071        $as_test_x conftest$ac_exeext; then
32072   ac_cv_lib_slp_SLPOpen=yes
32073 else
32074   echo "$as_me: failed program was:" >&5
32075 sed 's/^/| /' conftest.$ac_ext >&5
32076
32077         ac_cv_lib_slp_SLPOpen=no
32078 fi
32079
32080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32081       conftest$ac_exeext conftest.$ac_ext
32082 LIBS=$ac_check_lib_save_LIBS
32083 fi
32084 { echo "$as_me:$LINENO: result: $ac_cv_lib_slp_SLPOpen" >&5
32085 echo "${ECHO_T}$ac_cv_lib_slp_SLPOpen" >&6; }
32086 if test $ac_cv_lib_slp_SLPOpen = yes; then
32087   have_slp=yes
32088 else
32089   have_slp=no
32090 fi
32091
32092                 if test $have_slp = yes ; then
32093
32094 cat >>confdefs.h <<\_ACEOF
32095 #define HAVE_SLP 1
32096 _ACEOF
32097
32098                         SLAPD_SLP_LIBS=-lslp
32099                 fi
32100
32101         elif test $ol_enable_slp = yes ; then
32102                 { { echo "$as_me:$LINENO: error: SLP not found" >&5
32103 echo "$as_me: error: SLP not found" >&2;}
32104    { (exit 1); exit 1; }; }
32105         fi
32106 fi
32107
32108
32109 { echo "$as_me:$LINENO: checking for mode_t" >&5
32110 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
32111 if test "${ac_cv_type_mode_t+set}" = set; then
32112   echo $ECHO_N "(cached) $ECHO_C" >&6
32113 else
32114   cat >conftest.$ac_ext <<_ACEOF
32115 /* confdefs.h.  */
32116 _ACEOF
32117 cat confdefs.h >>conftest.$ac_ext
32118 cat >>conftest.$ac_ext <<_ACEOF
32119 /* end confdefs.h.  */
32120 $ac_includes_default
32121 typedef mode_t ac__type_new_;
32122 int
32123 main ()
32124 {
32125 if ((ac__type_new_ *) 0)
32126   return 0;
32127 if (sizeof (ac__type_new_))
32128   return 0;
32129   ;
32130   return 0;
32131 }
32132 _ACEOF
32133 rm -f conftest.$ac_objext
32134 if { (ac_try="$ac_compile"
32135 case "(($ac_try" in
32136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32137   *) ac_try_echo=$ac_try;;
32138 esac
32139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32140   (eval "$ac_compile") 2>conftest.er1
32141   ac_status=$?
32142   grep -v '^ *+' conftest.er1 >conftest.err
32143   rm -f conftest.er1
32144   cat conftest.err >&5
32145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32146   (exit $ac_status); } && {
32147          test -z "$ac_c_werror_flag" ||
32148          test ! -s conftest.err
32149        } && test -s conftest.$ac_objext; then
32150   ac_cv_type_mode_t=yes
32151 else
32152   echo "$as_me: failed program was:" >&5
32153 sed 's/^/| /' conftest.$ac_ext >&5
32154
32155         ac_cv_type_mode_t=no
32156 fi
32157
32158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32159 fi
32160 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
32161 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
32162 if test $ac_cv_type_mode_t = yes; then
32163   :
32164 else
32165
32166 cat >>confdefs.h <<_ACEOF
32167 #define mode_t int
32168 _ACEOF
32169
32170 fi
32171
32172 { echo "$as_me:$LINENO: checking for off_t" >&5
32173 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
32174 if test "${ac_cv_type_off_t+set}" = set; then
32175   echo $ECHO_N "(cached) $ECHO_C" >&6
32176 else
32177   cat >conftest.$ac_ext <<_ACEOF
32178 /* confdefs.h.  */
32179 _ACEOF
32180 cat confdefs.h >>conftest.$ac_ext
32181 cat >>conftest.$ac_ext <<_ACEOF
32182 /* end confdefs.h.  */
32183 $ac_includes_default
32184 typedef off_t ac__type_new_;
32185 int
32186 main ()
32187 {
32188 if ((ac__type_new_ *) 0)
32189   return 0;
32190 if (sizeof (ac__type_new_))
32191   return 0;
32192   ;
32193   return 0;
32194 }
32195 _ACEOF
32196 rm -f conftest.$ac_objext
32197 if { (ac_try="$ac_compile"
32198 case "(($ac_try" in
32199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32200   *) ac_try_echo=$ac_try;;
32201 esac
32202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32203   (eval "$ac_compile") 2>conftest.er1
32204   ac_status=$?
32205   grep -v '^ *+' conftest.er1 >conftest.err
32206   rm -f conftest.er1
32207   cat conftest.err >&5
32208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32209   (exit $ac_status); } && {
32210          test -z "$ac_c_werror_flag" ||
32211          test ! -s conftest.err
32212        } && test -s conftest.$ac_objext; then
32213   ac_cv_type_off_t=yes
32214 else
32215   echo "$as_me: failed program was:" >&5
32216 sed 's/^/| /' conftest.$ac_ext >&5
32217
32218         ac_cv_type_off_t=no
32219 fi
32220
32221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32222 fi
32223 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
32224 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
32225 if test $ac_cv_type_off_t = yes; then
32226   :
32227 else
32228
32229 cat >>confdefs.h <<_ACEOF
32230 #define off_t long
32231 _ACEOF
32232
32233 fi
32234
32235 { echo "$as_me:$LINENO: checking for pid_t" >&5
32236 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
32237 if test "${ac_cv_type_pid_t+set}" = set; then
32238   echo $ECHO_N "(cached) $ECHO_C" >&6
32239 else
32240   cat >conftest.$ac_ext <<_ACEOF
32241 /* confdefs.h.  */
32242 _ACEOF
32243 cat confdefs.h >>conftest.$ac_ext
32244 cat >>conftest.$ac_ext <<_ACEOF
32245 /* end confdefs.h.  */
32246 $ac_includes_default
32247 typedef pid_t ac__type_new_;
32248 int
32249 main ()
32250 {
32251 if ((ac__type_new_ *) 0)
32252   return 0;
32253 if (sizeof (ac__type_new_))
32254   return 0;
32255   ;
32256   return 0;
32257 }
32258 _ACEOF
32259 rm -f conftest.$ac_objext
32260 if { (ac_try="$ac_compile"
32261 case "(($ac_try" in
32262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32263   *) ac_try_echo=$ac_try;;
32264 esac
32265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32266   (eval "$ac_compile") 2>conftest.er1
32267   ac_status=$?
32268   grep -v '^ *+' conftest.er1 >conftest.err
32269   rm -f conftest.er1
32270   cat conftest.err >&5
32271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32272   (exit $ac_status); } && {
32273          test -z "$ac_c_werror_flag" ||
32274          test ! -s conftest.err
32275        } && test -s conftest.$ac_objext; then
32276   ac_cv_type_pid_t=yes
32277 else
32278   echo "$as_me: failed program was:" >&5
32279 sed 's/^/| /' conftest.$ac_ext >&5
32280
32281         ac_cv_type_pid_t=no
32282 fi
32283
32284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32285 fi
32286 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
32287 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
32288 if test $ac_cv_type_pid_t = yes; then
32289   :
32290 else
32291
32292 cat >>confdefs.h <<_ACEOF
32293 #define pid_t int
32294 _ACEOF
32295
32296 fi
32297
32298 { echo "$as_me:$LINENO: checking for ssize_t" >&5
32299 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
32300 if test "${ac_cv_type_ssize_t+set}" = set; then
32301   echo $ECHO_N "(cached) $ECHO_C" >&6
32302 else
32303   cat >conftest.$ac_ext <<_ACEOF
32304 /* confdefs.h.  */
32305 _ACEOF
32306 cat confdefs.h >>conftest.$ac_ext
32307 cat >>conftest.$ac_ext <<_ACEOF
32308 /* end confdefs.h.  */
32309 $ac_includes_default
32310 typedef ssize_t ac__type_new_;
32311 int
32312 main ()
32313 {
32314 if ((ac__type_new_ *) 0)
32315   return 0;
32316 if (sizeof (ac__type_new_))
32317   return 0;
32318   ;
32319   return 0;
32320 }
32321 _ACEOF
32322 rm -f conftest.$ac_objext
32323 if { (ac_try="$ac_compile"
32324 case "(($ac_try" in
32325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32326   *) ac_try_echo=$ac_try;;
32327 esac
32328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32329   (eval "$ac_compile") 2>conftest.er1
32330   ac_status=$?
32331   grep -v '^ *+' conftest.er1 >conftest.err
32332   rm -f conftest.er1
32333   cat conftest.err >&5
32334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32335   (exit $ac_status); } && {
32336          test -z "$ac_c_werror_flag" ||
32337          test ! -s conftest.err
32338        } && test -s conftest.$ac_objext; then
32339   ac_cv_type_ssize_t=yes
32340 else
32341   echo "$as_me: failed program was:" >&5
32342 sed 's/^/| /' conftest.$ac_ext >&5
32343
32344         ac_cv_type_ssize_t=no
32345 fi
32346
32347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32348 fi
32349 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
32350 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
32351 if test $ac_cv_type_ssize_t = yes; then
32352   :
32353 else
32354
32355 cat >>confdefs.h <<_ACEOF
32356 #define ssize_t signed int
32357 _ACEOF
32358
32359 fi
32360
32361 { echo "$as_me:$LINENO: checking for caddr_t" >&5
32362 echo $ECHO_N "checking for caddr_t... $ECHO_C" >&6; }
32363 if test "${ac_cv_type_caddr_t+set}" = set; then
32364   echo $ECHO_N "(cached) $ECHO_C" >&6
32365 else
32366   cat >conftest.$ac_ext <<_ACEOF
32367 /* confdefs.h.  */
32368 _ACEOF
32369 cat confdefs.h >>conftest.$ac_ext
32370 cat >>conftest.$ac_ext <<_ACEOF
32371 /* end confdefs.h.  */
32372 $ac_includes_default
32373 typedef caddr_t ac__type_new_;
32374 int
32375 main ()
32376 {
32377 if ((ac__type_new_ *) 0)
32378   return 0;
32379 if (sizeof (ac__type_new_))
32380   return 0;
32381   ;
32382   return 0;
32383 }
32384 _ACEOF
32385 rm -f conftest.$ac_objext
32386 if { (ac_try="$ac_compile"
32387 case "(($ac_try" in
32388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32389   *) ac_try_echo=$ac_try;;
32390 esac
32391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32392   (eval "$ac_compile") 2>conftest.er1
32393   ac_status=$?
32394   grep -v '^ *+' conftest.er1 >conftest.err
32395   rm -f conftest.er1
32396   cat conftest.err >&5
32397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32398   (exit $ac_status); } && {
32399          test -z "$ac_c_werror_flag" ||
32400          test ! -s conftest.err
32401        } && test -s conftest.$ac_objext; then
32402   ac_cv_type_caddr_t=yes
32403 else
32404   echo "$as_me: failed program was:" >&5
32405 sed 's/^/| /' conftest.$ac_ext >&5
32406
32407         ac_cv_type_caddr_t=no
32408 fi
32409
32410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32411 fi
32412 { echo "$as_me:$LINENO: result: $ac_cv_type_caddr_t" >&5
32413 echo "${ECHO_T}$ac_cv_type_caddr_t" >&6; }
32414 if test $ac_cv_type_caddr_t = yes; then
32415   :
32416 else
32417
32418 cat >>confdefs.h <<_ACEOF
32419 #define caddr_t char *
32420 _ACEOF
32421
32422 fi
32423
32424 { echo "$as_me:$LINENO: checking for size_t" >&5
32425 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
32426 if test "${ac_cv_type_size_t+set}" = set; then
32427   echo $ECHO_N "(cached) $ECHO_C" >&6
32428 else
32429   cat >conftest.$ac_ext <<_ACEOF
32430 /* confdefs.h.  */
32431 _ACEOF
32432 cat confdefs.h >>conftest.$ac_ext
32433 cat >>conftest.$ac_ext <<_ACEOF
32434 /* end confdefs.h.  */
32435 $ac_includes_default
32436 typedef size_t ac__type_new_;
32437 int
32438 main ()
32439 {
32440 if ((ac__type_new_ *) 0)
32441   return 0;
32442 if (sizeof (ac__type_new_))
32443   return 0;
32444   ;
32445   return 0;
32446 }
32447 _ACEOF
32448 rm -f conftest.$ac_objext
32449 if { (ac_try="$ac_compile"
32450 case "(($ac_try" in
32451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32452   *) ac_try_echo=$ac_try;;
32453 esac
32454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32455   (eval "$ac_compile") 2>conftest.er1
32456   ac_status=$?
32457   grep -v '^ *+' conftest.er1 >conftest.err
32458   rm -f conftest.er1
32459   cat conftest.err >&5
32460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32461   (exit $ac_status); } && {
32462          test -z "$ac_c_werror_flag" ||
32463          test ! -s conftest.err
32464        } && test -s conftest.$ac_objext; then
32465   ac_cv_type_size_t=yes
32466 else
32467   echo "$as_me: failed program was:" >&5
32468 sed 's/^/| /' conftest.$ac_ext >&5
32469
32470         ac_cv_type_size_t=no
32471 fi
32472
32473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32474 fi
32475 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
32476 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
32477 if test $ac_cv_type_size_t = yes; then
32478   :
32479 else
32480
32481 cat >>confdefs.h <<_ACEOF
32482 #define size_t unsigned
32483 _ACEOF
32484
32485 fi
32486
32487
32488 { echo "$as_me:$LINENO: checking for long long" >&5
32489 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
32490 if test "${ac_cv_type_long_long+set}" = set; then
32491   echo $ECHO_N "(cached) $ECHO_C" >&6
32492 else
32493   cat >conftest.$ac_ext <<_ACEOF
32494 /* confdefs.h.  */
32495 _ACEOF
32496 cat confdefs.h >>conftest.$ac_ext
32497 cat >>conftest.$ac_ext <<_ACEOF
32498 /* end confdefs.h.  */
32499 $ac_includes_default
32500 typedef long long ac__type_new_;
32501 int
32502 main ()
32503 {
32504 if ((ac__type_new_ *) 0)
32505   return 0;
32506 if (sizeof (ac__type_new_))
32507   return 0;
32508   ;
32509   return 0;
32510 }
32511 _ACEOF
32512 rm -f conftest.$ac_objext
32513 if { (ac_try="$ac_compile"
32514 case "(($ac_try" in
32515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32516   *) ac_try_echo=$ac_try;;
32517 esac
32518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32519   (eval "$ac_compile") 2>conftest.er1
32520   ac_status=$?
32521   grep -v '^ *+' conftest.er1 >conftest.err
32522   rm -f conftest.er1
32523   cat conftest.err >&5
32524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32525   (exit $ac_status); } && {
32526          test -z "$ac_c_werror_flag" ||
32527          test ! -s conftest.err
32528        } && test -s conftest.$ac_objext; then
32529   ac_cv_type_long_long=yes
32530 else
32531   echo "$as_me: failed program was:" >&5
32532 sed 's/^/| /' conftest.$ac_ext >&5
32533
32534         ac_cv_type_long_long=no
32535 fi
32536
32537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32538 fi
32539 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
32540 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
32541 if test $ac_cv_type_long_long = yes; then
32542
32543 cat >>confdefs.h <<_ACEOF
32544 #define HAVE_LONG_LONG 1
32545 _ACEOF
32546
32547
32548 fi
32549
32550 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
32551 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
32552 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
32553   echo $ECHO_N "(cached) $ECHO_C" >&6
32554 else
32555   cat >conftest.$ac_ext <<_ACEOF
32556 /* confdefs.h.  */
32557 _ACEOF
32558 cat confdefs.h >>conftest.$ac_ext
32559 cat >>conftest.$ac_ext <<_ACEOF
32560 /* end confdefs.h.  */
32561 $ac_includes_default
32562 typedef ptrdiff_t ac__type_new_;
32563 int
32564 main ()
32565 {
32566 if ((ac__type_new_ *) 0)
32567   return 0;
32568 if (sizeof (ac__type_new_))
32569   return 0;
32570   ;
32571   return 0;
32572 }
32573 _ACEOF
32574 rm -f conftest.$ac_objext
32575 if { (ac_try="$ac_compile"
32576 case "(($ac_try" in
32577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32578   *) ac_try_echo=$ac_try;;
32579 esac
32580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32581   (eval "$ac_compile") 2>conftest.er1
32582   ac_status=$?
32583   grep -v '^ *+' conftest.er1 >conftest.err
32584   rm -f conftest.er1
32585   cat conftest.err >&5
32586   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32587   (exit $ac_status); } && {
32588          test -z "$ac_c_werror_flag" ||
32589          test ! -s conftest.err
32590        } && test -s conftest.$ac_objext; then
32591   ac_cv_type_ptrdiff_t=yes
32592 else
32593   echo "$as_me: failed program was:" >&5
32594 sed 's/^/| /' conftest.$ac_ext >&5
32595
32596         ac_cv_type_ptrdiff_t=no
32597 fi
32598
32599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32600 fi
32601 { echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
32602 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
32603 if test $ac_cv_type_ptrdiff_t = yes; then
32604
32605 cat >>confdefs.h <<_ACEOF
32606 #define HAVE_PTRDIFF_T 1
32607 _ACEOF
32608
32609
32610 fi
32611
32612
32613
32614 { echo "$as_me:$LINENO: checking for socklen_t" >&5
32615 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
32616 if test "${ac_cv_type_socklen_t+set}" = set; then
32617   echo $ECHO_N "(cached) $ECHO_C" >&6
32618 else
32619   cat >conftest.$ac_ext <<_ACEOF
32620 /* confdefs.h.  */
32621 _ACEOF
32622 cat confdefs.h >>conftest.$ac_ext
32623 cat >>conftest.$ac_ext <<_ACEOF
32624 /* end confdefs.h.  */
32625 $ac_includes_default
32626 #ifdef HAVE_SYS_SOCKET_H
32627 #include <sys/socket.h>
32628 #endif
32629
32630 typedef socklen_t ac__type_new_;
32631 int
32632 main ()
32633 {
32634 if ((ac__type_new_ *) 0)
32635   return 0;
32636 if (sizeof (ac__type_new_))
32637   return 0;
32638   ;
32639   return 0;
32640 }
32641 _ACEOF
32642 rm -f conftest.$ac_objext
32643 if { (ac_try="$ac_compile"
32644 case "(($ac_try" in
32645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32646   *) ac_try_echo=$ac_try;;
32647 esac
32648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32649   (eval "$ac_compile") 2>conftest.er1
32650   ac_status=$?
32651   grep -v '^ *+' conftest.er1 >conftest.err
32652   rm -f conftest.er1
32653   cat conftest.err >&5
32654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32655   (exit $ac_status); } && {
32656          test -z "$ac_c_werror_flag" ||
32657          test ! -s conftest.err
32658        } && test -s conftest.$ac_objext; then
32659   ac_cv_type_socklen_t=yes
32660 else
32661   echo "$as_me: failed program was:" >&5
32662 sed 's/^/| /' conftest.$ac_ext >&5
32663
32664         ac_cv_type_socklen_t=no
32665 fi
32666
32667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32668 fi
32669 { echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
32670 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6; }
32671
32672
32673 { echo "$as_me:$LINENO: checking the type of arg 3 to accept()" >&5
32674 echo $ECHO_N "checking the type of arg 3 to accept()... $ECHO_C" >&6; }
32675 if test "${ol_cv_type_ber_socklen_t+set}" = set; then
32676   echo $ECHO_N "(cached) $ECHO_C" >&6
32677 else
32678
32679         set socklen_t int unsigned "unsigned long" long size_t
32680         test "$ac_cv_type_socklen_t" = yes || shift
32681         ol_cv_type_ber_socklen_t=$1 guessing="guessing "
32682         for lentype in "$@" ; do for addrtype in "struct sockaddr" void ; do
32683                 cat >conftest.$ac_ext <<_ACEOF
32684 /* confdefs.h.  */
32685 _ACEOF
32686 cat confdefs.h >>conftest.$ac_ext
32687 cat >>conftest.$ac_ext <<_ACEOF
32688 /* end confdefs.h.  */
32689 $ac_includes_default
32690 #ifdef HAVE_SYS_SOCKET_H
32691 #include <sys/socket.h>
32692 #endif
32693 extern int accept(int s, $addrtype *ap, $lentype *lp);
32694
32695 int
32696 main ()
32697 {
32698
32699 accept(0, (struct sockaddr *) 0, ($lentype *) 0);
32700
32701   ;
32702   return 0;
32703 }
32704 _ACEOF
32705 rm -f conftest.$ac_objext
32706 if { (ac_try="$ac_compile"
32707 case "(($ac_try" in
32708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32709   *) ac_try_echo=$ac_try;;
32710 esac
32711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32712   (eval "$ac_compile") 2>conftest.er1
32713   ac_status=$?
32714   grep -v '^ *+' conftest.er1 >conftest.err
32715   rm -f conftest.er1
32716   cat conftest.err >&5
32717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32718   (exit $ac_status); } && {
32719          test -z "$ac_c_werror_flag" ||
32720          test ! -s conftest.err
32721        } && test -s conftest.$ac_objext; then
32722   ol_cv_type_ber_socklen_t=$lentype guessing= ; break 2
32723 else
32724   echo "$as_me: failed program was:" >&5
32725 sed 's/^/| /' conftest.$ac_ext >&5
32726
32727
32728 fi
32729
32730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32731         done ; done
32732 fi
32733
32734 { echo "$as_me:$LINENO: result: $guessing$ol_cv_type_ber_socklen_t *" >&5
32735 echo "${ECHO_T}$guessing$ol_cv_type_ber_socklen_t *" >&6; }
32736
32737 cat >>confdefs.h <<_ACEOF
32738 #define ber_socklen_t $ol_cv_type_ber_socklen_t
32739 _ACEOF
32740
32741
32742 if test "$ac_cv_type_socklen_t" != yes; then
32743
32744 cat >>confdefs.h <<_ACEOF
32745 #define socklen_t $ol_cv_type_ber_socklen_t
32746 _ACEOF
32747
32748 fi
32749
32750
32751 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
32752 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
32753 if test "${ac_cv_type_signal+set}" = set; then
32754   echo $ECHO_N "(cached) $ECHO_C" >&6
32755 else
32756   cat >conftest.$ac_ext <<_ACEOF
32757 /* confdefs.h.  */
32758 _ACEOF
32759 cat confdefs.h >>conftest.$ac_ext
32760 cat >>conftest.$ac_ext <<_ACEOF
32761 /* end confdefs.h.  */
32762 #include <sys/types.h>
32763 #include <signal.h>
32764
32765 int
32766 main ()
32767 {
32768 return *(signal (0, 0)) (0) == 1;
32769   ;
32770   return 0;
32771 }
32772 _ACEOF
32773 rm -f conftest.$ac_objext
32774 if { (ac_try="$ac_compile"
32775 case "(($ac_try" in
32776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32777   *) ac_try_echo=$ac_try;;
32778 esac
32779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32780   (eval "$ac_compile") 2>conftest.er1
32781   ac_status=$?
32782   grep -v '^ *+' conftest.er1 >conftest.err
32783   rm -f conftest.er1
32784   cat conftest.err >&5
32785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32786   (exit $ac_status); } && {
32787          test -z "$ac_c_werror_flag" ||
32788          test ! -s conftest.err
32789        } && test -s conftest.$ac_objext; then
32790   ac_cv_type_signal=int
32791 else
32792   echo "$as_me: failed program was:" >&5
32793 sed 's/^/| /' conftest.$ac_ext >&5
32794
32795         ac_cv_type_signal=void
32796 fi
32797
32798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32799 fi
32800 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
32801 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
32802
32803 cat >>confdefs.h <<_ACEOF
32804 #define RETSIGTYPE $ac_cv_type_signal
32805 _ACEOF
32806
32807
32808
32809 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
32810 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
32811 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
32812   echo $ECHO_N "(cached) $ECHO_C" >&6
32813 else
32814   cat >conftest.$ac_ext <<_ACEOF
32815 /* confdefs.h.  */
32816 _ACEOF
32817 cat confdefs.h >>conftest.$ac_ext
32818 cat >>conftest.$ac_ext <<_ACEOF
32819 /* end confdefs.h.  */
32820 $ac_includes_default
32821 #include <signal.h>
32822
32823
32824 typedef sig_atomic_t ac__type_new_;
32825 int
32826 main ()
32827 {
32828 if ((ac__type_new_ *) 0)
32829   return 0;
32830 if (sizeof (ac__type_new_))
32831   return 0;
32832   ;
32833   return 0;
32834 }
32835 _ACEOF
32836 rm -f conftest.$ac_objext
32837 if { (ac_try="$ac_compile"
32838 case "(($ac_try" in
32839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32840   *) ac_try_echo=$ac_try;;
32841 esac
32842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32843   (eval "$ac_compile") 2>conftest.er1
32844   ac_status=$?
32845   grep -v '^ *+' conftest.er1 >conftest.err
32846   rm -f conftest.er1
32847   cat conftest.err >&5
32848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32849   (exit $ac_status); } && {
32850          test -z "$ac_c_werror_flag" ||
32851          test ! -s conftest.err
32852        } && test -s conftest.$ac_objext; then
32853   ac_cv_type_sig_atomic_t=yes
32854 else
32855   echo "$as_me: failed program was:" >&5
32856 sed 's/^/| /' conftest.$ac_ext >&5
32857
32858         ac_cv_type_sig_atomic_t=no
32859 fi
32860
32861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32862 fi
32863 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
32864 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
32865 if test $ac_cv_type_sig_atomic_t = yes; then
32866   :
32867 else
32868
32869 cat >>confdefs.h <<_ACEOF
32870 #define sig_atomic_t int
32871 _ACEOF
32872
32873 fi
32874
32875
32876 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
32877 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
32878 if test "${ac_cv_type_uid_t+set}" = set; then
32879   echo $ECHO_N "(cached) $ECHO_C" >&6
32880 else
32881   cat >conftest.$ac_ext <<_ACEOF
32882 /* confdefs.h.  */
32883 _ACEOF
32884 cat confdefs.h >>conftest.$ac_ext
32885 cat >>conftest.$ac_ext <<_ACEOF
32886 /* end confdefs.h.  */
32887 #include <sys/types.h>
32888
32889 _ACEOF
32890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32891   $EGREP "uid_t" >/dev/null 2>&1; then
32892   ac_cv_type_uid_t=yes
32893 else
32894   ac_cv_type_uid_t=no
32895 fi
32896 rm -f conftest*
32897
32898 fi
32899 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
32900 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
32901 if test $ac_cv_type_uid_t = no; then
32902
32903 cat >>confdefs.h <<\_ACEOF
32904 #define uid_t int
32905 _ACEOF
32906
32907
32908 cat >>confdefs.h <<\_ACEOF
32909 #define gid_t int
32910 _ACEOF
32911
32912 fi
32913
32914
32915 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
32916 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
32917 if test "${ac_cv_header_time+set}" = set; then
32918   echo $ECHO_N "(cached) $ECHO_C" >&6
32919 else
32920   cat >conftest.$ac_ext <<_ACEOF
32921 /* confdefs.h.  */
32922 _ACEOF
32923 cat confdefs.h >>conftest.$ac_ext
32924 cat >>conftest.$ac_ext <<_ACEOF
32925 /* end confdefs.h.  */
32926 #include <sys/types.h>
32927 #include <sys/time.h>
32928 #include <time.h>
32929
32930 int
32931 main ()
32932 {
32933 if ((struct tm *) 0)
32934 return 0;
32935   ;
32936   return 0;
32937 }
32938 _ACEOF
32939 rm -f conftest.$ac_objext
32940 if { (ac_try="$ac_compile"
32941 case "(($ac_try" in
32942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32943   *) ac_try_echo=$ac_try;;
32944 esac
32945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32946   (eval "$ac_compile") 2>conftest.er1
32947   ac_status=$?
32948   grep -v '^ *+' conftest.er1 >conftest.err
32949   rm -f conftest.er1
32950   cat conftest.err >&5
32951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32952   (exit $ac_status); } && {
32953          test -z "$ac_c_werror_flag" ||
32954          test ! -s conftest.err
32955        } && test -s conftest.$ac_objext; then
32956   ac_cv_header_time=yes
32957 else
32958   echo "$as_me: failed program was:" >&5
32959 sed 's/^/| /' conftest.$ac_ext >&5
32960
32961         ac_cv_header_time=no
32962 fi
32963
32964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32965 fi
32966 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
32967 echo "${ECHO_T}$ac_cv_header_time" >&6; }
32968 if test $ac_cv_header_time = yes; then
32969
32970 cat >>confdefs.h <<\_ACEOF
32971 #define TIME_WITH_SYS_TIME 1
32972 _ACEOF
32973
32974 fi
32975
32976 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
32977 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
32978 if test "${ac_cv_struct_tm+set}" = set; then
32979   echo $ECHO_N "(cached) $ECHO_C" >&6
32980 else
32981   cat >conftest.$ac_ext <<_ACEOF
32982 /* confdefs.h.  */
32983 _ACEOF
32984 cat confdefs.h >>conftest.$ac_ext
32985 cat >>conftest.$ac_ext <<_ACEOF
32986 /* end confdefs.h.  */
32987 #include <sys/types.h>
32988 #include <time.h>
32989
32990 int
32991 main ()
32992 {
32993 struct tm tm;
32994                                      int *p = &tm.tm_sec;
32995                                      return !p;
32996   ;
32997   return 0;
32998 }
32999 _ACEOF
33000 rm -f conftest.$ac_objext
33001 if { (ac_try="$ac_compile"
33002 case "(($ac_try" in
33003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33004   *) ac_try_echo=$ac_try;;
33005 esac
33006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33007   (eval "$ac_compile") 2>conftest.er1
33008   ac_status=$?
33009   grep -v '^ *+' conftest.er1 >conftest.err
33010   rm -f conftest.er1
33011   cat conftest.err >&5
33012   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33013   (exit $ac_status); } && {
33014          test -z "$ac_c_werror_flag" ||
33015          test ! -s conftest.err
33016        } && test -s conftest.$ac_objext; then
33017   ac_cv_struct_tm=time.h
33018 else
33019   echo "$as_me: failed program was:" >&5
33020 sed 's/^/| /' conftest.$ac_ext >&5
33021
33022         ac_cv_struct_tm=sys/time.h
33023 fi
33024
33025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33026 fi
33027 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
33028 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
33029 if test $ac_cv_struct_tm = sys/time.h; then
33030
33031 cat >>confdefs.h <<\_ACEOF
33032 #define TM_IN_SYS_TIME 1
33033 _ACEOF
33034
33035 fi
33036
33037 { echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
33038 echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6; }
33039 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
33040   echo $ECHO_N "(cached) $ECHO_C" >&6
33041 else
33042   cat >conftest.$ac_ext <<_ACEOF
33043 /* confdefs.h.  */
33044 _ACEOF
33045 cat confdefs.h >>conftest.$ac_ext
33046 cat >>conftest.$ac_ext <<_ACEOF
33047 /* end confdefs.h.  */
33048 $ac_includes_default
33049 int
33050 main ()
33051 {
33052 static struct stat ac_aggr;
33053 if (ac_aggr.st_blksize)
33054 return 0;
33055   ;
33056   return 0;
33057 }
33058 _ACEOF
33059 rm -f conftest.$ac_objext
33060 if { (ac_try="$ac_compile"
33061 case "(($ac_try" in
33062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33063   *) ac_try_echo=$ac_try;;
33064 esac
33065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33066   (eval "$ac_compile") 2>conftest.er1
33067   ac_status=$?
33068   grep -v '^ *+' conftest.er1 >conftest.err
33069   rm -f conftest.er1
33070   cat conftest.err >&5
33071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33072   (exit $ac_status); } && {
33073          test -z "$ac_c_werror_flag" ||
33074          test ! -s conftest.err
33075        } && test -s conftest.$ac_objext; then
33076   ac_cv_member_struct_stat_st_blksize=yes
33077 else
33078   echo "$as_me: failed program was:" >&5
33079 sed 's/^/| /' conftest.$ac_ext >&5
33080
33081         cat >conftest.$ac_ext <<_ACEOF
33082 /* confdefs.h.  */
33083 _ACEOF
33084 cat confdefs.h >>conftest.$ac_ext
33085 cat >>conftest.$ac_ext <<_ACEOF
33086 /* end confdefs.h.  */
33087 $ac_includes_default
33088 int
33089 main ()
33090 {
33091 static struct stat ac_aggr;
33092 if (sizeof ac_aggr.st_blksize)
33093 return 0;
33094   ;
33095   return 0;
33096 }
33097 _ACEOF
33098 rm -f conftest.$ac_objext
33099 if { (ac_try="$ac_compile"
33100 case "(($ac_try" in
33101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33102   *) ac_try_echo=$ac_try;;
33103 esac
33104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33105   (eval "$ac_compile") 2>conftest.er1
33106   ac_status=$?
33107   grep -v '^ *+' conftest.er1 >conftest.err
33108   rm -f conftest.er1
33109   cat conftest.err >&5
33110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33111   (exit $ac_status); } && {
33112          test -z "$ac_c_werror_flag" ||
33113          test ! -s conftest.err
33114        } && test -s conftest.$ac_objext; then
33115   ac_cv_member_struct_stat_st_blksize=yes
33116 else
33117   echo "$as_me: failed program was:" >&5
33118 sed 's/^/| /' conftest.$ac_ext >&5
33119
33120         ac_cv_member_struct_stat_st_blksize=no
33121 fi
33122
33123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33124 fi
33125
33126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33127 fi
33128 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
33129 echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6; }
33130 if test $ac_cv_member_struct_stat_st_blksize = yes; then
33131
33132 cat >>confdefs.h <<_ACEOF
33133 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
33134 _ACEOF
33135
33136
33137 fi
33138
33139 { echo "$as_me:$LINENO: checking for struct passwd.pw_gecos" >&5
33140 echo $ECHO_N "checking for struct passwd.pw_gecos... $ECHO_C" >&6; }
33141 if test "${ac_cv_member_struct_passwd_pw_gecos+set}" = set; then
33142   echo $ECHO_N "(cached) $ECHO_C" >&6
33143 else
33144   cat >conftest.$ac_ext <<_ACEOF
33145 /* confdefs.h.  */
33146 _ACEOF
33147 cat confdefs.h >>conftest.$ac_ext
33148 cat >>conftest.$ac_ext <<_ACEOF
33149 /* end confdefs.h.  */
33150 $ac_includes_default
33151 #include <pwd.h>
33152
33153 int
33154 main ()
33155 {
33156 static struct passwd ac_aggr;
33157 if (ac_aggr.pw_gecos)
33158 return 0;
33159   ;
33160   return 0;
33161 }
33162 _ACEOF
33163 rm -f conftest.$ac_objext
33164 if { (ac_try="$ac_compile"
33165 case "(($ac_try" in
33166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33167   *) ac_try_echo=$ac_try;;
33168 esac
33169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33170   (eval "$ac_compile") 2>conftest.er1
33171   ac_status=$?
33172   grep -v '^ *+' conftest.er1 >conftest.err
33173   rm -f conftest.er1
33174   cat conftest.err >&5
33175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33176   (exit $ac_status); } && {
33177          test -z "$ac_c_werror_flag" ||
33178          test ! -s conftest.err
33179        } && test -s conftest.$ac_objext; then
33180   ac_cv_member_struct_passwd_pw_gecos=yes
33181 else
33182   echo "$as_me: failed program was:" >&5
33183 sed 's/^/| /' conftest.$ac_ext >&5
33184
33185         cat >conftest.$ac_ext <<_ACEOF
33186 /* confdefs.h.  */
33187 _ACEOF
33188 cat confdefs.h >>conftest.$ac_ext
33189 cat >>conftest.$ac_ext <<_ACEOF
33190 /* end confdefs.h.  */
33191 $ac_includes_default
33192 #include <pwd.h>
33193
33194 int
33195 main ()
33196 {
33197 static struct passwd ac_aggr;
33198 if (sizeof ac_aggr.pw_gecos)
33199 return 0;
33200   ;
33201   return 0;
33202 }
33203 _ACEOF
33204 rm -f conftest.$ac_objext
33205 if { (ac_try="$ac_compile"
33206 case "(($ac_try" in
33207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33208   *) ac_try_echo=$ac_try;;
33209 esac
33210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33211   (eval "$ac_compile") 2>conftest.er1
33212   ac_status=$?
33213   grep -v '^ *+' conftest.er1 >conftest.err
33214   rm -f conftest.er1
33215   cat conftest.err >&5
33216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33217   (exit $ac_status); } && {
33218          test -z "$ac_c_werror_flag" ||
33219          test ! -s conftest.err
33220        } && test -s conftest.$ac_objext; then
33221   ac_cv_member_struct_passwd_pw_gecos=yes
33222 else
33223   echo "$as_me: failed program was:" >&5
33224 sed 's/^/| /' conftest.$ac_ext >&5
33225
33226         ac_cv_member_struct_passwd_pw_gecos=no
33227 fi
33228
33229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33230 fi
33231
33232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33233 fi
33234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_gecos" >&5
33235 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_gecos" >&6; }
33236 if test $ac_cv_member_struct_passwd_pw_gecos = yes; then
33237
33238 cat >>confdefs.h <<_ACEOF
33239 #define HAVE_STRUCT_PASSWD_PW_GECOS 1
33240 _ACEOF
33241
33242
33243 fi
33244
33245 { echo "$as_me:$LINENO: checking for struct passwd.pw_passwd" >&5
33246 echo $ECHO_N "checking for struct passwd.pw_passwd... $ECHO_C" >&6; }
33247 if test "${ac_cv_member_struct_passwd_pw_passwd+set}" = set; then
33248   echo $ECHO_N "(cached) $ECHO_C" >&6
33249 else
33250   cat >conftest.$ac_ext <<_ACEOF
33251 /* confdefs.h.  */
33252 _ACEOF
33253 cat confdefs.h >>conftest.$ac_ext
33254 cat >>conftest.$ac_ext <<_ACEOF
33255 /* end confdefs.h.  */
33256 $ac_includes_default
33257 #include <pwd.h>
33258
33259 int
33260 main ()
33261 {
33262 static struct passwd ac_aggr;
33263 if (ac_aggr.pw_passwd)
33264 return 0;
33265   ;
33266   return 0;
33267 }
33268 _ACEOF
33269 rm -f conftest.$ac_objext
33270 if { (ac_try="$ac_compile"
33271 case "(($ac_try" in
33272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273   *) ac_try_echo=$ac_try;;
33274 esac
33275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33276   (eval "$ac_compile") 2>conftest.er1
33277   ac_status=$?
33278   grep -v '^ *+' conftest.er1 >conftest.err
33279   rm -f conftest.er1
33280   cat conftest.err >&5
33281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33282   (exit $ac_status); } && {
33283          test -z "$ac_c_werror_flag" ||
33284          test ! -s conftest.err
33285        } && test -s conftest.$ac_objext; then
33286   ac_cv_member_struct_passwd_pw_passwd=yes
33287 else
33288   echo "$as_me: failed program was:" >&5
33289 sed 's/^/| /' conftest.$ac_ext >&5
33290
33291         cat >conftest.$ac_ext <<_ACEOF
33292 /* confdefs.h.  */
33293 _ACEOF
33294 cat confdefs.h >>conftest.$ac_ext
33295 cat >>conftest.$ac_ext <<_ACEOF
33296 /* end confdefs.h.  */
33297 $ac_includes_default
33298 #include <pwd.h>
33299
33300 int
33301 main ()
33302 {
33303 static struct passwd ac_aggr;
33304 if (sizeof ac_aggr.pw_passwd)
33305 return 0;
33306   ;
33307   return 0;
33308 }
33309 _ACEOF
33310 rm -f conftest.$ac_objext
33311 if { (ac_try="$ac_compile"
33312 case "(($ac_try" in
33313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33314   *) ac_try_echo=$ac_try;;
33315 esac
33316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33317   (eval "$ac_compile") 2>conftest.er1
33318   ac_status=$?
33319   grep -v '^ *+' conftest.er1 >conftest.err
33320   rm -f conftest.er1
33321   cat conftest.err >&5
33322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33323   (exit $ac_status); } && {
33324          test -z "$ac_c_werror_flag" ||
33325          test ! -s conftest.err
33326        } && test -s conftest.$ac_objext; then
33327   ac_cv_member_struct_passwd_pw_passwd=yes
33328 else
33329   echo "$as_me: failed program was:" >&5
33330 sed 's/^/| /' conftest.$ac_ext >&5
33331
33332         ac_cv_member_struct_passwd_pw_passwd=no
33333 fi
33334
33335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33336 fi
33337
33338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33339 fi
33340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_passwd_pw_passwd" >&5
33341 echo "${ECHO_T}$ac_cv_member_struct_passwd_pw_passwd" >&6; }
33342 if test $ac_cv_member_struct_passwd_pw_passwd = yes; then
33343
33344 cat >>confdefs.h <<_ACEOF
33345 #define HAVE_STRUCT_PASSWD_PW_PASSWD 1
33346 _ACEOF
33347
33348
33349 fi
33350
33351
33352 { echo "$as_me:$LINENO: checking if toupper() requires islower()" >&5
33353 echo $ECHO_N "checking if toupper() requires islower()... $ECHO_C" >&6; }
33354 if test "${ol_cv_c_upper_lower+set}" = set; then
33355   echo $ECHO_N "(cached) $ECHO_C" >&6
33356 else
33357
33358         if test "$cross_compiling" = yes; then
33359   ol_cv_c_upper_lower=safe
33360 else
33361   cat >conftest.$ac_ext <<_ACEOF
33362 /* confdefs.h.  */
33363 _ACEOF
33364 cat confdefs.h >>conftest.$ac_ext
33365 cat >>conftest.$ac_ext <<_ACEOF
33366 /* end confdefs.h.  */
33367
33368 #include <ctype.h>
33369 main()
33370 {
33371         if ('C' == toupper('C'))
33372                 exit(0);
33373         else
33374                 exit(1);
33375 }
33376 _ACEOF
33377 rm -f conftest$ac_exeext
33378 if { (ac_try="$ac_link"
33379 case "(($ac_try" in
33380   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33381   *) ac_try_echo=$ac_try;;
33382 esac
33383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33384   (eval "$ac_link") 2>&5
33385   ac_status=$?
33386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33387   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33388   { (case "(($ac_try" in
33389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33390   *) ac_try_echo=$ac_try;;
33391 esac
33392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33393   (eval "$ac_try") 2>&5
33394   ac_status=$?
33395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33396   (exit $ac_status); }; }; then
33397   ol_cv_c_upper_lower=no
33398 else
33399   echo "$as_me: program exited with status $ac_status" >&5
33400 echo "$as_me: failed program was:" >&5
33401 sed 's/^/| /' conftest.$ac_ext >&5
33402
33403 ( exit $ac_status )
33404 ol_cv_c_upper_lower=yes
33405 fi
33406 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33407 fi
33408
33409
33410 fi
33411 { echo "$as_me:$LINENO: result: $ol_cv_c_upper_lower" >&5
33412 echo "${ECHO_T}$ol_cv_c_upper_lower" >&6; }
33413 if test $ol_cv_c_upper_lower != no ; then
33414
33415 cat >>confdefs.h <<\_ACEOF
33416 #define C_UPPER_LOWER 1
33417 _ACEOF
33418
33419 fi
33420
33421 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
33422 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
33423 if test "${ac_cv_c_const+set}" = set; then
33424   echo $ECHO_N "(cached) $ECHO_C" >&6
33425 else
33426   cat >conftest.$ac_ext <<_ACEOF
33427 /* confdefs.h.  */
33428 _ACEOF
33429 cat confdefs.h >>conftest.$ac_ext
33430 cat >>conftest.$ac_ext <<_ACEOF
33431 /* end confdefs.h.  */
33432
33433 int
33434 main ()
33435 {
33436 /* FIXME: Include the comments suggested by Paul. */
33437 #ifndef __cplusplus
33438   /* Ultrix mips cc rejects this.  */
33439   typedef int charset[2];
33440   const charset cs;
33441   /* SunOS 4.1.1 cc rejects this.  */
33442   char const *const *pcpcc;
33443   char **ppc;
33444   /* NEC SVR4.0.2 mips cc rejects this.  */
33445   struct point {int x, y;};
33446   static struct point const zero = {0,0};
33447   /* AIX XL C 1.02.0.0 rejects this.
33448      It does not let you subtract one const X* pointer from another in
33449      an arm of an if-expression whose if-part is not a constant
33450      expression */
33451   const char *g = "string";
33452   pcpcc = &g + (g ? g-g : 0);
33453   /* HPUX 7.0 cc rejects these. */
33454   ++pcpcc;
33455   ppc = (char**) pcpcc;
33456   pcpcc = (char const *const *) ppc;
33457   { /* SCO 3.2v4 cc rejects this.  */
33458     char *t;
33459     char const *s = 0 ? (char *) 0 : (char const *) 0;
33460
33461     *t++ = 0;
33462     if (s) return 0;
33463   }
33464   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
33465     int x[] = {25, 17};
33466     const int *foo = &x[0];
33467     ++foo;
33468   }
33469   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33470     typedef const int *iptr;
33471     iptr p = 0;
33472     ++p;
33473   }
33474   { /* AIX XL C 1.02.0.0 rejects this saying
33475        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33476     struct s { int j; const int *ap[3]; };
33477     struct s *b; b->j = 5;
33478   }
33479   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33480     const int foo = 10;
33481     if (!foo) return 0;
33482   }
33483   return !cs[0] && !zero.x;
33484 #endif
33485
33486   ;
33487   return 0;
33488 }
33489 _ACEOF
33490 rm -f conftest.$ac_objext
33491 if { (ac_try="$ac_compile"
33492 case "(($ac_try" in
33493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33494   *) ac_try_echo=$ac_try;;
33495 esac
33496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33497   (eval "$ac_compile") 2>conftest.er1
33498   ac_status=$?
33499   grep -v '^ *+' conftest.er1 >conftest.err
33500   rm -f conftest.er1
33501   cat conftest.err >&5
33502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33503   (exit $ac_status); } && {
33504          test -z "$ac_c_werror_flag" ||
33505          test ! -s conftest.err
33506        } && test -s conftest.$ac_objext; then
33507   ac_cv_c_const=yes
33508 else
33509   echo "$as_me: failed program was:" >&5
33510 sed 's/^/| /' conftest.$ac_ext >&5
33511
33512         ac_cv_c_const=no
33513 fi
33514
33515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33516 fi
33517 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
33518 echo "${ECHO_T}$ac_cv_c_const" >&6; }
33519 if test $ac_cv_c_const = no; then
33520
33521 cat >>confdefs.h <<\_ACEOF
33522 #define const
33523 _ACEOF
33524
33525 fi
33526
33527 { echo "$as_me:$LINENO: checking if compiler understands volatile" >&5
33528 echo $ECHO_N "checking if compiler understands volatile... $ECHO_C" >&6; }
33529 if test "${ol_cv_c_volatile+set}" = set; then
33530   echo $ECHO_N "(cached) $ECHO_C" >&6
33531 else
33532   cat >conftest.$ac_ext <<_ACEOF
33533 /* confdefs.h.  */
33534 _ACEOF
33535 cat confdefs.h >>conftest.$ac_ext
33536 cat >>conftest.$ac_ext <<_ACEOF
33537 /* end confdefs.h.  */
33538 int x, y, z;
33539 int
33540 main ()
33541 {
33542 volatile int a; int * volatile b = x ? &y : &z;
33543       /* Older MIPS compilers (eg., in Ultrix 4.2) don't like *b = 0 */
33544       *b = 0;
33545   ;
33546   return 0;
33547 }
33548 _ACEOF
33549 rm -f conftest.$ac_objext
33550 if { (ac_try="$ac_compile"
33551 case "(($ac_try" in
33552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33553   *) ac_try_echo=$ac_try;;
33554 esac
33555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33556   (eval "$ac_compile") 2>conftest.er1
33557   ac_status=$?
33558   grep -v '^ *+' conftest.er1 >conftest.err
33559   rm -f conftest.er1
33560   cat conftest.err >&5
33561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33562   (exit $ac_status); } && {
33563          test -z "$ac_c_werror_flag" ||
33564          test ! -s conftest.err
33565        } && test -s conftest.$ac_objext; then
33566   ol_cv_c_volatile=yes
33567 else
33568   echo "$as_me: failed program was:" >&5
33569 sed 's/^/| /' conftest.$ac_ext >&5
33570
33571         ol_cv_c_volatile=no
33572 fi
33573
33574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33575 fi
33576 { echo "$as_me:$LINENO: result: $ol_cv_c_volatile" >&5
33577 echo "${ECHO_T}$ol_cv_c_volatile" >&6; }
33578   if test $ol_cv_c_volatile = yes; then
33579     :
33580   else
33581
33582 cat >>confdefs.h <<\_ACEOF
33583 #define volatile
33584 _ACEOF
33585
33586   fi
33587
33588
33589 if test $cross_compiling = yes ; then
33590         { echo "$as_me:$LINENO: WARNING: Crossing compiling... all bets are off!" >&5
33591 echo "$as_me: WARNING: Crossing compiling... all bets are off!" >&2;}
33592
33593 cat >>confdefs.h <<\_ACEOF
33594 #define CROSS_COMPILING 1
33595 _ACEOF
33596
33597 else
33598         { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
33599 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
33600 if test "${ac_cv_c_bigendian+set}" = set; then
33601   echo $ECHO_N "(cached) $ECHO_C" >&6
33602 else
33603   # See if sys/param.h defines the BYTE_ORDER macro.
33604 cat >conftest.$ac_ext <<_ACEOF
33605 /* confdefs.h.  */
33606 _ACEOF
33607 cat confdefs.h >>conftest.$ac_ext
33608 cat >>conftest.$ac_ext <<_ACEOF
33609 /* end confdefs.h.  */
33610 #include <sys/types.h>
33611 #include <sys/param.h>
33612
33613 int
33614 main ()
33615 {
33616 #if  ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
33617         && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
33618  bogus endian macros
33619 #endif
33620
33621   ;
33622   return 0;
33623 }
33624 _ACEOF
33625 rm -f conftest.$ac_objext
33626 if { (ac_try="$ac_compile"
33627 case "(($ac_try" in
33628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33629   *) ac_try_echo=$ac_try;;
33630 esac
33631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33632   (eval "$ac_compile") 2>conftest.er1
33633   ac_status=$?
33634   grep -v '^ *+' conftest.er1 >conftest.err
33635   rm -f conftest.er1
33636   cat conftest.err >&5
33637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33638   (exit $ac_status); } && {
33639          test -z "$ac_c_werror_flag" ||
33640          test ! -s conftest.err
33641        } && test -s conftest.$ac_objext; then
33642   # It does; now see whether it defined to BIG_ENDIAN or not.
33643 cat >conftest.$ac_ext <<_ACEOF
33644 /* confdefs.h.  */
33645 _ACEOF
33646 cat confdefs.h >>conftest.$ac_ext
33647 cat >>conftest.$ac_ext <<_ACEOF
33648 /* end confdefs.h.  */
33649 #include <sys/types.h>
33650 #include <sys/param.h>
33651
33652 int
33653 main ()
33654 {
33655 #if BYTE_ORDER != BIG_ENDIAN
33656  not big endian
33657 #endif
33658
33659   ;
33660   return 0;
33661 }
33662 _ACEOF
33663 rm -f conftest.$ac_objext
33664 if { (ac_try="$ac_compile"
33665 case "(($ac_try" in
33666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33667   *) ac_try_echo=$ac_try;;
33668 esac
33669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33670   (eval "$ac_compile") 2>conftest.er1
33671   ac_status=$?
33672   grep -v '^ *+' conftest.er1 >conftest.err
33673   rm -f conftest.er1
33674   cat conftest.err >&5
33675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33676   (exit $ac_status); } && {
33677          test -z "$ac_c_werror_flag" ||
33678          test ! -s conftest.err
33679        } && test -s conftest.$ac_objext; then
33680   ac_cv_c_bigendian=yes
33681 else
33682   echo "$as_me: failed program was:" >&5
33683 sed 's/^/| /' conftest.$ac_ext >&5
33684
33685         ac_cv_c_bigendian=no
33686 fi
33687
33688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33689 else
33690   echo "$as_me: failed program was:" >&5
33691 sed 's/^/| /' conftest.$ac_ext >&5
33692
33693         # It does not; compile a test program.
33694 if test "$cross_compiling" = yes; then
33695   # try to guess the endianness by grepping values into an object file
33696   ac_cv_c_bigendian=unknown
33697   cat >conftest.$ac_ext <<_ACEOF
33698 /* confdefs.h.  */
33699 _ACEOF
33700 cat confdefs.h >>conftest.$ac_ext
33701 cat >>conftest.$ac_ext <<_ACEOF
33702 /* end confdefs.h.  */
33703 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
33704 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
33705 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
33706 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
33707 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
33708 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
33709 int
33710 main ()
33711 {
33712  _ascii (); _ebcdic ();
33713   ;
33714   return 0;
33715 }
33716 _ACEOF
33717 rm -f conftest.$ac_objext
33718 if { (ac_try="$ac_compile"
33719 case "(($ac_try" in
33720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33721   *) ac_try_echo=$ac_try;;
33722 esac
33723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33724   (eval "$ac_compile") 2>conftest.er1
33725   ac_status=$?
33726   grep -v '^ *+' conftest.er1 >conftest.err
33727   rm -f conftest.er1
33728   cat conftest.err >&5
33729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33730   (exit $ac_status); } && {
33731          test -z "$ac_c_werror_flag" ||
33732          test ! -s conftest.err
33733        } && test -s conftest.$ac_objext; then
33734   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
33735   ac_cv_c_bigendian=yes
33736 fi
33737 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
33738   if test "$ac_cv_c_bigendian" = unknown; then
33739     ac_cv_c_bigendian=no
33740   else
33741     # finding both strings is unlikely to happen, but who knows?
33742     ac_cv_c_bigendian=unknown
33743   fi
33744 fi
33745 else
33746   echo "$as_me: failed program was:" >&5
33747 sed 's/^/| /' conftest.$ac_ext >&5
33748
33749
33750 fi
33751
33752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33753 else
33754   cat >conftest.$ac_ext <<_ACEOF
33755 /* confdefs.h.  */
33756 _ACEOF
33757 cat confdefs.h >>conftest.$ac_ext
33758 cat >>conftest.$ac_ext <<_ACEOF
33759 /* end confdefs.h.  */
33760 $ac_includes_default
33761 int
33762 main ()
33763 {
33764
33765   /* Are we little or big endian?  From Harbison&Steele.  */
33766   union
33767   {
33768     long int l;
33769     char c[sizeof (long int)];
33770   } u;
33771   u.l = 1;
33772   return u.c[sizeof (long int) - 1] == 1;
33773
33774   ;
33775   return 0;
33776 }
33777 _ACEOF
33778 rm -f conftest$ac_exeext
33779 if { (ac_try="$ac_link"
33780 case "(($ac_try" in
33781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33782   *) ac_try_echo=$ac_try;;
33783 esac
33784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33785   (eval "$ac_link") 2>&5
33786   ac_status=$?
33787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33788   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33789   { (case "(($ac_try" in
33790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33791   *) ac_try_echo=$ac_try;;
33792 esac
33793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33794   (eval "$ac_try") 2>&5
33795   ac_status=$?
33796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33797   (exit $ac_status); }; }; then
33798   ac_cv_c_bigendian=no
33799 else
33800   echo "$as_me: program exited with status $ac_status" >&5
33801 echo "$as_me: failed program was:" >&5
33802 sed 's/^/| /' conftest.$ac_ext >&5
33803
33804 ( exit $ac_status )
33805 ac_cv_c_bigendian=yes
33806 fi
33807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33808 fi
33809
33810
33811 fi
33812
33813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33814 fi
33815 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
33816 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
33817 case $ac_cv_c_bigendian in
33818   yes)
33819
33820 cat >>confdefs.h <<\_ACEOF
33821 #define WORDS_BIGENDIAN 1
33822 _ACEOF
33823  ;;
33824   no)
33825      ;;
33826   *)
33827     { { echo "$as_me:$LINENO: error: unknown endianness
33828 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
33829 echo "$as_me: error: unknown endianness
33830 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
33831    { (exit 1); exit 1; }; } ;;
33832 esac
33833
33834 fi
33835
33836 { echo "$as_me:$LINENO: checking for short" >&5
33837 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
33838 if test "${ac_cv_type_short+set}" = set; then
33839   echo $ECHO_N "(cached) $ECHO_C" >&6
33840 else
33841   cat >conftest.$ac_ext <<_ACEOF
33842 /* confdefs.h.  */
33843 _ACEOF
33844 cat confdefs.h >>conftest.$ac_ext
33845 cat >>conftest.$ac_ext <<_ACEOF
33846 /* end confdefs.h.  */
33847 $ac_includes_default
33848 typedef short ac__type_new_;
33849 int
33850 main ()
33851 {
33852 if ((ac__type_new_ *) 0)
33853   return 0;
33854 if (sizeof (ac__type_new_))
33855   return 0;
33856   ;
33857   return 0;
33858 }
33859 _ACEOF
33860 rm -f conftest.$ac_objext
33861 if { (ac_try="$ac_compile"
33862 case "(($ac_try" in
33863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33864   *) ac_try_echo=$ac_try;;
33865 esac
33866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33867   (eval "$ac_compile") 2>conftest.er1
33868   ac_status=$?
33869   grep -v '^ *+' conftest.er1 >conftest.err
33870   rm -f conftest.er1
33871   cat conftest.err >&5
33872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33873   (exit $ac_status); } && {
33874          test -z "$ac_c_werror_flag" ||
33875          test ! -s conftest.err
33876        } && test -s conftest.$ac_objext; then
33877   ac_cv_type_short=yes
33878 else
33879   echo "$as_me: failed program was:" >&5
33880 sed 's/^/| /' conftest.$ac_ext >&5
33881
33882         ac_cv_type_short=no
33883 fi
33884
33885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33886 fi
33887 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
33888 echo "${ECHO_T}$ac_cv_type_short" >&6; }
33889
33890 # The cast to long int works around a bug in the HP C Compiler
33891 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
33892 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
33893 # This bug is HP SR number 8606223364.
33894 { echo "$as_me:$LINENO: checking size of short" >&5
33895 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
33896 if test "${ac_cv_sizeof_short+set}" = set; then
33897   echo $ECHO_N "(cached) $ECHO_C" >&6
33898 else
33899   if test "$cross_compiling" = yes; then
33900   # Depending upon the size, compute the lo and hi bounds.
33901 cat >conftest.$ac_ext <<_ACEOF
33902 /* confdefs.h.  */
33903 _ACEOF
33904 cat confdefs.h >>conftest.$ac_ext
33905 cat >>conftest.$ac_ext <<_ACEOF
33906 /* end confdefs.h.  */
33907 $ac_includes_default
33908    typedef short ac__type_sizeof_;
33909 int
33910 main ()
33911 {
33912 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
33913 test_array [0] = 0
33914
33915   ;
33916   return 0;
33917 }
33918 _ACEOF
33919 rm -f conftest.$ac_objext
33920 if { (ac_try="$ac_compile"
33921 case "(($ac_try" in
33922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33923   *) ac_try_echo=$ac_try;;
33924 esac
33925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33926   (eval "$ac_compile") 2>conftest.er1
33927   ac_status=$?
33928   grep -v '^ *+' conftest.er1 >conftest.err
33929   rm -f conftest.er1
33930   cat conftest.err >&5
33931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33932   (exit $ac_status); } && {
33933          test -z "$ac_c_werror_flag" ||
33934          test ! -s conftest.err
33935        } && test -s conftest.$ac_objext; then
33936   ac_lo=0 ac_mid=0
33937   while :; do
33938     cat >conftest.$ac_ext <<_ACEOF
33939 /* confdefs.h.  */
33940 _ACEOF
33941 cat confdefs.h >>conftest.$ac_ext
33942 cat >>conftest.$ac_ext <<_ACEOF
33943 /* end confdefs.h.  */
33944 $ac_includes_default
33945    typedef short ac__type_sizeof_;
33946 int
33947 main ()
33948 {
33949 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
33950 test_array [0] = 0
33951
33952   ;
33953   return 0;
33954 }
33955 _ACEOF
33956 rm -f conftest.$ac_objext
33957 if { (ac_try="$ac_compile"
33958 case "(($ac_try" in
33959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33960   *) ac_try_echo=$ac_try;;
33961 esac
33962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33963   (eval "$ac_compile") 2>conftest.er1
33964   ac_status=$?
33965   grep -v '^ *+' conftest.er1 >conftest.err
33966   rm -f conftest.er1
33967   cat conftest.err >&5
33968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33969   (exit $ac_status); } && {
33970          test -z "$ac_c_werror_flag" ||
33971          test ! -s conftest.err
33972        } && test -s conftest.$ac_objext; then
33973   ac_hi=$ac_mid; break
33974 else
33975   echo "$as_me: failed program was:" >&5
33976 sed 's/^/| /' conftest.$ac_ext >&5
33977
33978         ac_lo=`expr $ac_mid + 1`
33979                         if test $ac_lo -le $ac_mid; then
33980                           ac_lo= ac_hi=
33981                           break
33982                         fi
33983                         ac_mid=`expr 2 '*' $ac_mid + 1`
33984 fi
33985
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33987   done
33988 else
33989   echo "$as_me: failed program was:" >&5
33990 sed 's/^/| /' conftest.$ac_ext >&5
33991
33992         cat >conftest.$ac_ext <<_ACEOF
33993 /* confdefs.h.  */
33994 _ACEOF
33995 cat confdefs.h >>conftest.$ac_ext
33996 cat >>conftest.$ac_ext <<_ACEOF
33997 /* end confdefs.h.  */
33998 $ac_includes_default
33999    typedef short ac__type_sizeof_;
34000 int
34001 main ()
34002 {
34003 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34004 test_array [0] = 0
34005
34006   ;
34007   return 0;
34008 }
34009 _ACEOF
34010 rm -f conftest.$ac_objext
34011 if { (ac_try="$ac_compile"
34012 case "(($ac_try" in
34013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34014   *) ac_try_echo=$ac_try;;
34015 esac
34016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34017   (eval "$ac_compile") 2>conftest.er1
34018   ac_status=$?
34019   grep -v '^ *+' conftest.er1 >conftest.err
34020   rm -f conftest.er1
34021   cat conftest.err >&5
34022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34023   (exit $ac_status); } && {
34024          test -z "$ac_c_werror_flag" ||
34025          test ! -s conftest.err
34026        } && test -s conftest.$ac_objext; then
34027   ac_hi=-1 ac_mid=-1
34028   while :; do
34029     cat >conftest.$ac_ext <<_ACEOF
34030 /* confdefs.h.  */
34031 _ACEOF
34032 cat confdefs.h >>conftest.$ac_ext
34033 cat >>conftest.$ac_ext <<_ACEOF
34034 /* end confdefs.h.  */
34035 $ac_includes_default
34036    typedef short ac__type_sizeof_;
34037 int
34038 main ()
34039 {
34040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34041 test_array [0] = 0
34042
34043   ;
34044   return 0;
34045 }
34046 _ACEOF
34047 rm -f conftest.$ac_objext
34048 if { (ac_try="$ac_compile"
34049 case "(($ac_try" in
34050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34051   *) ac_try_echo=$ac_try;;
34052 esac
34053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34054   (eval "$ac_compile") 2>conftest.er1
34055   ac_status=$?
34056   grep -v '^ *+' conftest.er1 >conftest.err
34057   rm -f conftest.er1
34058   cat conftest.err >&5
34059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060   (exit $ac_status); } && {
34061          test -z "$ac_c_werror_flag" ||
34062          test ! -s conftest.err
34063        } && test -s conftest.$ac_objext; then
34064   ac_lo=$ac_mid; break
34065 else
34066   echo "$as_me: failed program was:" >&5
34067 sed 's/^/| /' conftest.$ac_ext >&5
34068
34069         ac_hi=`expr '(' $ac_mid ')' - 1`
34070                         if test $ac_mid -le $ac_hi; then
34071                           ac_lo= ac_hi=
34072                           break
34073                         fi
34074                         ac_mid=`expr 2 '*' $ac_mid`
34075 fi
34076
34077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34078   done
34079 else
34080   echo "$as_me: failed program was:" >&5
34081 sed 's/^/| /' conftest.$ac_ext >&5
34082
34083         ac_lo= ac_hi=
34084 fi
34085
34086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34087 fi
34088
34089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34090 # Binary search between lo and hi bounds.
34091 while test "x$ac_lo" != "x$ac_hi"; do
34092   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34093   cat >conftest.$ac_ext <<_ACEOF
34094 /* confdefs.h.  */
34095 _ACEOF
34096 cat confdefs.h >>conftest.$ac_ext
34097 cat >>conftest.$ac_ext <<_ACEOF
34098 /* end confdefs.h.  */
34099 $ac_includes_default
34100    typedef short ac__type_sizeof_;
34101 int
34102 main ()
34103 {
34104 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34105 test_array [0] = 0
34106
34107   ;
34108   return 0;
34109 }
34110 _ACEOF
34111 rm -f conftest.$ac_objext
34112 if { (ac_try="$ac_compile"
34113 case "(($ac_try" in
34114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34115   *) ac_try_echo=$ac_try;;
34116 esac
34117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34118   (eval "$ac_compile") 2>conftest.er1
34119   ac_status=$?
34120   grep -v '^ *+' conftest.er1 >conftest.err
34121   rm -f conftest.er1
34122   cat conftest.err >&5
34123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34124   (exit $ac_status); } && {
34125          test -z "$ac_c_werror_flag" ||
34126          test ! -s conftest.err
34127        } && test -s conftest.$ac_objext; then
34128   ac_hi=$ac_mid
34129 else
34130   echo "$as_me: failed program was:" >&5
34131 sed 's/^/| /' conftest.$ac_ext >&5
34132
34133         ac_lo=`expr '(' $ac_mid ')' + 1`
34134 fi
34135
34136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34137 done
34138 case $ac_lo in
34139 ?*) ac_cv_sizeof_short=$ac_lo;;
34140 '') if test "$ac_cv_type_short" = yes; then
34141      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34142 See \`config.log' for more details." >&5
34143 echo "$as_me: error: cannot compute sizeof (short)
34144 See \`config.log' for more details." >&2;}
34145    { (exit 77); exit 77; }; }
34146    else
34147      ac_cv_sizeof_short=0
34148    fi ;;
34149 esac
34150 else
34151   cat >conftest.$ac_ext <<_ACEOF
34152 /* confdefs.h.  */
34153 _ACEOF
34154 cat confdefs.h >>conftest.$ac_ext
34155 cat >>conftest.$ac_ext <<_ACEOF
34156 /* end confdefs.h.  */
34157 $ac_includes_default
34158    typedef short ac__type_sizeof_;
34159 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34160 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34161 #include <stdio.h>
34162 #include <stdlib.h>
34163 int
34164 main ()
34165 {
34166
34167   FILE *f = fopen ("conftest.val", "w");
34168   if (! f)
34169     return 1;
34170   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34171     {
34172       long int i = longval ();
34173       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34174         return 1;
34175       fprintf (f, "%ld\n", i);
34176     }
34177   else
34178     {
34179       unsigned long int i = ulongval ();
34180       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34181         return 1;
34182       fprintf (f, "%lu\n", i);
34183     }
34184   return ferror (f) || fclose (f) != 0;
34185
34186   ;
34187   return 0;
34188 }
34189 _ACEOF
34190 rm -f conftest$ac_exeext
34191 if { (ac_try="$ac_link"
34192 case "(($ac_try" in
34193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34194   *) ac_try_echo=$ac_try;;
34195 esac
34196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34197   (eval "$ac_link") 2>&5
34198   ac_status=$?
34199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34200   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34201   { (case "(($ac_try" in
34202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34203   *) ac_try_echo=$ac_try;;
34204 esac
34205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34206   (eval "$ac_try") 2>&5
34207   ac_status=$?
34208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34209   (exit $ac_status); }; }; then
34210   ac_cv_sizeof_short=`cat conftest.val`
34211 else
34212   echo "$as_me: program exited with status $ac_status" >&5
34213 echo "$as_me: failed program was:" >&5
34214 sed 's/^/| /' conftest.$ac_ext >&5
34215
34216 ( exit $ac_status )
34217 if test "$ac_cv_type_short" = yes; then
34218      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
34219 See \`config.log' for more details." >&5
34220 echo "$as_me: error: cannot compute sizeof (short)
34221 See \`config.log' for more details." >&2;}
34222    { (exit 77); exit 77; }; }
34223    else
34224      ac_cv_sizeof_short=0
34225    fi
34226 fi
34227 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34228 fi
34229 rm -f conftest.val
34230 fi
34231 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
34232 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
34233
34234
34235
34236 cat >>confdefs.h <<_ACEOF
34237 #define SIZEOF_SHORT $ac_cv_sizeof_short
34238 _ACEOF
34239
34240
34241 { echo "$as_me:$LINENO: checking for int" >&5
34242 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
34243 if test "${ac_cv_type_int+set}" = set; then
34244   echo $ECHO_N "(cached) $ECHO_C" >&6
34245 else
34246   cat >conftest.$ac_ext <<_ACEOF
34247 /* confdefs.h.  */
34248 _ACEOF
34249 cat confdefs.h >>conftest.$ac_ext
34250 cat >>conftest.$ac_ext <<_ACEOF
34251 /* end confdefs.h.  */
34252 $ac_includes_default
34253 typedef int ac__type_new_;
34254 int
34255 main ()
34256 {
34257 if ((ac__type_new_ *) 0)
34258   return 0;
34259 if (sizeof (ac__type_new_))
34260   return 0;
34261   ;
34262   return 0;
34263 }
34264 _ACEOF
34265 rm -f conftest.$ac_objext
34266 if { (ac_try="$ac_compile"
34267 case "(($ac_try" in
34268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34269   *) ac_try_echo=$ac_try;;
34270 esac
34271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34272   (eval "$ac_compile") 2>conftest.er1
34273   ac_status=$?
34274   grep -v '^ *+' conftest.er1 >conftest.err
34275   rm -f conftest.er1
34276   cat conftest.err >&5
34277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34278   (exit $ac_status); } && {
34279          test -z "$ac_c_werror_flag" ||
34280          test ! -s conftest.err
34281        } && test -s conftest.$ac_objext; then
34282   ac_cv_type_int=yes
34283 else
34284   echo "$as_me: failed program was:" >&5
34285 sed 's/^/| /' conftest.$ac_ext >&5
34286
34287         ac_cv_type_int=no
34288 fi
34289
34290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34291 fi
34292 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
34293 echo "${ECHO_T}$ac_cv_type_int" >&6; }
34294
34295 # The cast to long int works around a bug in the HP C Compiler
34296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34298 # This bug is HP SR number 8606223364.
34299 { echo "$as_me:$LINENO: checking size of int" >&5
34300 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
34301 if test "${ac_cv_sizeof_int+set}" = set; then
34302   echo $ECHO_N "(cached) $ECHO_C" >&6
34303 else
34304   if test "$cross_compiling" = yes; then
34305   # Depending upon the size, compute the lo and hi bounds.
34306 cat >conftest.$ac_ext <<_ACEOF
34307 /* confdefs.h.  */
34308 _ACEOF
34309 cat confdefs.h >>conftest.$ac_ext
34310 cat >>conftest.$ac_ext <<_ACEOF
34311 /* end confdefs.h.  */
34312 $ac_includes_default
34313    typedef int ac__type_sizeof_;
34314 int
34315 main ()
34316 {
34317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34318 test_array [0] = 0
34319
34320   ;
34321   return 0;
34322 }
34323 _ACEOF
34324 rm -f conftest.$ac_objext
34325 if { (ac_try="$ac_compile"
34326 case "(($ac_try" in
34327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34328   *) ac_try_echo=$ac_try;;
34329 esac
34330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34331   (eval "$ac_compile") 2>conftest.er1
34332   ac_status=$?
34333   grep -v '^ *+' conftest.er1 >conftest.err
34334   rm -f conftest.er1
34335   cat conftest.err >&5
34336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34337   (exit $ac_status); } && {
34338          test -z "$ac_c_werror_flag" ||
34339          test ! -s conftest.err
34340        } && test -s conftest.$ac_objext; then
34341   ac_lo=0 ac_mid=0
34342   while :; do
34343     cat >conftest.$ac_ext <<_ACEOF
34344 /* confdefs.h.  */
34345 _ACEOF
34346 cat confdefs.h >>conftest.$ac_ext
34347 cat >>conftest.$ac_ext <<_ACEOF
34348 /* end confdefs.h.  */
34349 $ac_includes_default
34350    typedef int ac__type_sizeof_;
34351 int
34352 main ()
34353 {
34354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34355 test_array [0] = 0
34356
34357   ;
34358   return 0;
34359 }
34360 _ACEOF
34361 rm -f conftest.$ac_objext
34362 if { (ac_try="$ac_compile"
34363 case "(($ac_try" in
34364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34365   *) ac_try_echo=$ac_try;;
34366 esac
34367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34368   (eval "$ac_compile") 2>conftest.er1
34369   ac_status=$?
34370   grep -v '^ *+' conftest.er1 >conftest.err
34371   rm -f conftest.er1
34372   cat conftest.err >&5
34373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34374   (exit $ac_status); } && {
34375          test -z "$ac_c_werror_flag" ||
34376          test ! -s conftest.err
34377        } && test -s conftest.$ac_objext; then
34378   ac_hi=$ac_mid; break
34379 else
34380   echo "$as_me: failed program was:" >&5
34381 sed 's/^/| /' conftest.$ac_ext >&5
34382
34383         ac_lo=`expr $ac_mid + 1`
34384                         if test $ac_lo -le $ac_mid; then
34385                           ac_lo= ac_hi=
34386                           break
34387                         fi
34388                         ac_mid=`expr 2 '*' $ac_mid + 1`
34389 fi
34390
34391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34392   done
34393 else
34394   echo "$as_me: failed program was:" >&5
34395 sed 's/^/| /' conftest.$ac_ext >&5
34396
34397         cat >conftest.$ac_ext <<_ACEOF
34398 /* confdefs.h.  */
34399 _ACEOF
34400 cat confdefs.h >>conftest.$ac_ext
34401 cat >>conftest.$ac_ext <<_ACEOF
34402 /* end confdefs.h.  */
34403 $ac_includes_default
34404    typedef int ac__type_sizeof_;
34405 int
34406 main ()
34407 {
34408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34409 test_array [0] = 0
34410
34411   ;
34412   return 0;
34413 }
34414 _ACEOF
34415 rm -f conftest.$ac_objext
34416 if { (ac_try="$ac_compile"
34417 case "(($ac_try" in
34418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34419   *) ac_try_echo=$ac_try;;
34420 esac
34421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34422   (eval "$ac_compile") 2>conftest.er1
34423   ac_status=$?
34424   grep -v '^ *+' conftest.er1 >conftest.err
34425   rm -f conftest.er1
34426   cat conftest.err >&5
34427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34428   (exit $ac_status); } && {
34429          test -z "$ac_c_werror_flag" ||
34430          test ! -s conftest.err
34431        } && test -s conftest.$ac_objext; then
34432   ac_hi=-1 ac_mid=-1
34433   while :; do
34434     cat >conftest.$ac_ext <<_ACEOF
34435 /* confdefs.h.  */
34436 _ACEOF
34437 cat confdefs.h >>conftest.$ac_ext
34438 cat >>conftest.$ac_ext <<_ACEOF
34439 /* end confdefs.h.  */
34440 $ac_includes_default
34441    typedef int ac__type_sizeof_;
34442 int
34443 main ()
34444 {
34445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34446 test_array [0] = 0
34447
34448   ;
34449   return 0;
34450 }
34451 _ACEOF
34452 rm -f conftest.$ac_objext
34453 if { (ac_try="$ac_compile"
34454 case "(($ac_try" in
34455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34456   *) ac_try_echo=$ac_try;;
34457 esac
34458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34459   (eval "$ac_compile") 2>conftest.er1
34460   ac_status=$?
34461   grep -v '^ *+' conftest.er1 >conftest.err
34462   rm -f conftest.er1
34463   cat conftest.err >&5
34464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34465   (exit $ac_status); } && {
34466          test -z "$ac_c_werror_flag" ||
34467          test ! -s conftest.err
34468        } && test -s conftest.$ac_objext; then
34469   ac_lo=$ac_mid; break
34470 else
34471   echo "$as_me: failed program was:" >&5
34472 sed 's/^/| /' conftest.$ac_ext >&5
34473
34474         ac_hi=`expr '(' $ac_mid ')' - 1`
34475                         if test $ac_mid -le $ac_hi; then
34476                           ac_lo= ac_hi=
34477                           break
34478                         fi
34479                         ac_mid=`expr 2 '*' $ac_mid`
34480 fi
34481
34482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34483   done
34484 else
34485   echo "$as_me: failed program was:" >&5
34486 sed 's/^/| /' conftest.$ac_ext >&5
34487
34488         ac_lo= ac_hi=
34489 fi
34490
34491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34492 fi
34493
34494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34495 # Binary search between lo and hi bounds.
34496 while test "x$ac_lo" != "x$ac_hi"; do
34497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34498   cat >conftest.$ac_ext <<_ACEOF
34499 /* confdefs.h.  */
34500 _ACEOF
34501 cat confdefs.h >>conftest.$ac_ext
34502 cat >>conftest.$ac_ext <<_ACEOF
34503 /* end confdefs.h.  */
34504 $ac_includes_default
34505    typedef int ac__type_sizeof_;
34506 int
34507 main ()
34508 {
34509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34510 test_array [0] = 0
34511
34512   ;
34513   return 0;
34514 }
34515 _ACEOF
34516 rm -f conftest.$ac_objext
34517 if { (ac_try="$ac_compile"
34518 case "(($ac_try" in
34519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34520   *) ac_try_echo=$ac_try;;
34521 esac
34522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34523   (eval "$ac_compile") 2>conftest.er1
34524   ac_status=$?
34525   grep -v '^ *+' conftest.er1 >conftest.err
34526   rm -f conftest.er1
34527   cat conftest.err >&5
34528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34529   (exit $ac_status); } && {
34530          test -z "$ac_c_werror_flag" ||
34531          test ! -s conftest.err
34532        } && test -s conftest.$ac_objext; then
34533   ac_hi=$ac_mid
34534 else
34535   echo "$as_me: failed program was:" >&5
34536 sed 's/^/| /' conftest.$ac_ext >&5
34537
34538         ac_lo=`expr '(' $ac_mid ')' + 1`
34539 fi
34540
34541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34542 done
34543 case $ac_lo in
34544 ?*) ac_cv_sizeof_int=$ac_lo;;
34545 '') if test "$ac_cv_type_int" = yes; then
34546      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34547 See \`config.log' for more details." >&5
34548 echo "$as_me: error: cannot compute sizeof (int)
34549 See \`config.log' for more details." >&2;}
34550    { (exit 77); exit 77; }; }
34551    else
34552      ac_cv_sizeof_int=0
34553    fi ;;
34554 esac
34555 else
34556   cat >conftest.$ac_ext <<_ACEOF
34557 /* confdefs.h.  */
34558 _ACEOF
34559 cat confdefs.h >>conftest.$ac_ext
34560 cat >>conftest.$ac_ext <<_ACEOF
34561 /* end confdefs.h.  */
34562 $ac_includes_default
34563    typedef int ac__type_sizeof_;
34564 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34565 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34566 #include <stdio.h>
34567 #include <stdlib.h>
34568 int
34569 main ()
34570 {
34571
34572   FILE *f = fopen ("conftest.val", "w");
34573   if (! f)
34574     return 1;
34575   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34576     {
34577       long int i = longval ();
34578       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34579         return 1;
34580       fprintf (f, "%ld\n", i);
34581     }
34582   else
34583     {
34584       unsigned long int i = ulongval ();
34585       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34586         return 1;
34587       fprintf (f, "%lu\n", i);
34588     }
34589   return ferror (f) || fclose (f) != 0;
34590
34591   ;
34592   return 0;
34593 }
34594 _ACEOF
34595 rm -f conftest$ac_exeext
34596 if { (ac_try="$ac_link"
34597 case "(($ac_try" in
34598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34599   *) ac_try_echo=$ac_try;;
34600 esac
34601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34602   (eval "$ac_link") 2>&5
34603   ac_status=$?
34604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34606   { (case "(($ac_try" in
34607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34608   *) ac_try_echo=$ac_try;;
34609 esac
34610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34611   (eval "$ac_try") 2>&5
34612   ac_status=$?
34613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34614   (exit $ac_status); }; }; then
34615   ac_cv_sizeof_int=`cat conftest.val`
34616 else
34617   echo "$as_me: program exited with status $ac_status" >&5
34618 echo "$as_me: failed program was:" >&5
34619 sed 's/^/| /' conftest.$ac_ext >&5
34620
34621 ( exit $ac_status )
34622 if test "$ac_cv_type_int" = yes; then
34623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
34624 See \`config.log' for more details." >&5
34625 echo "$as_me: error: cannot compute sizeof (int)
34626 See \`config.log' for more details." >&2;}
34627    { (exit 77); exit 77; }; }
34628    else
34629      ac_cv_sizeof_int=0
34630    fi
34631 fi
34632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34633 fi
34634 rm -f conftest.val
34635 fi
34636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
34637 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
34638
34639
34640
34641 cat >>confdefs.h <<_ACEOF
34642 #define SIZEOF_INT $ac_cv_sizeof_int
34643 _ACEOF
34644
34645
34646 { echo "$as_me:$LINENO: checking for long" >&5
34647 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
34648 if test "${ac_cv_type_long+set}" = set; then
34649   echo $ECHO_N "(cached) $ECHO_C" >&6
34650 else
34651   cat >conftest.$ac_ext <<_ACEOF
34652 /* confdefs.h.  */
34653 _ACEOF
34654 cat confdefs.h >>conftest.$ac_ext
34655 cat >>conftest.$ac_ext <<_ACEOF
34656 /* end confdefs.h.  */
34657 $ac_includes_default
34658 typedef long ac__type_new_;
34659 int
34660 main ()
34661 {
34662 if ((ac__type_new_ *) 0)
34663   return 0;
34664 if (sizeof (ac__type_new_))
34665   return 0;
34666   ;
34667   return 0;
34668 }
34669 _ACEOF
34670 rm -f conftest.$ac_objext
34671 if { (ac_try="$ac_compile"
34672 case "(($ac_try" in
34673   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34674   *) ac_try_echo=$ac_try;;
34675 esac
34676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34677   (eval "$ac_compile") 2>conftest.er1
34678   ac_status=$?
34679   grep -v '^ *+' conftest.er1 >conftest.err
34680   rm -f conftest.er1
34681   cat conftest.err >&5
34682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34683   (exit $ac_status); } && {
34684          test -z "$ac_c_werror_flag" ||
34685          test ! -s conftest.err
34686        } && test -s conftest.$ac_objext; then
34687   ac_cv_type_long=yes
34688 else
34689   echo "$as_me: failed program was:" >&5
34690 sed 's/^/| /' conftest.$ac_ext >&5
34691
34692         ac_cv_type_long=no
34693 fi
34694
34695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34696 fi
34697 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
34698 echo "${ECHO_T}$ac_cv_type_long" >&6; }
34699
34700 # The cast to long int works around a bug in the HP C Compiler
34701 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
34702 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
34703 # This bug is HP SR number 8606223364.
34704 { echo "$as_me:$LINENO: checking size of long" >&5
34705 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
34706 if test "${ac_cv_sizeof_long+set}" = set; then
34707   echo $ECHO_N "(cached) $ECHO_C" >&6
34708 else
34709   if test "$cross_compiling" = yes; then
34710   # Depending upon the size, compute the lo and hi bounds.
34711 cat >conftest.$ac_ext <<_ACEOF
34712 /* confdefs.h.  */
34713 _ACEOF
34714 cat confdefs.h >>conftest.$ac_ext
34715 cat >>conftest.$ac_ext <<_ACEOF
34716 /* end confdefs.h.  */
34717 $ac_includes_default
34718    typedef long ac__type_sizeof_;
34719 int
34720 main ()
34721 {
34722 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
34723 test_array [0] = 0
34724
34725   ;
34726   return 0;
34727 }
34728 _ACEOF
34729 rm -f conftest.$ac_objext
34730 if { (ac_try="$ac_compile"
34731 case "(($ac_try" in
34732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34733   *) ac_try_echo=$ac_try;;
34734 esac
34735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34736   (eval "$ac_compile") 2>conftest.er1
34737   ac_status=$?
34738   grep -v '^ *+' conftest.er1 >conftest.err
34739   rm -f conftest.er1
34740   cat conftest.err >&5
34741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34742   (exit $ac_status); } && {
34743          test -z "$ac_c_werror_flag" ||
34744          test ! -s conftest.err
34745        } && test -s conftest.$ac_objext; then
34746   ac_lo=0 ac_mid=0
34747   while :; do
34748     cat >conftest.$ac_ext <<_ACEOF
34749 /* confdefs.h.  */
34750 _ACEOF
34751 cat confdefs.h >>conftest.$ac_ext
34752 cat >>conftest.$ac_ext <<_ACEOF
34753 /* end confdefs.h.  */
34754 $ac_includes_default
34755    typedef long ac__type_sizeof_;
34756 int
34757 main ()
34758 {
34759 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34760 test_array [0] = 0
34761
34762   ;
34763   return 0;
34764 }
34765 _ACEOF
34766 rm -f conftest.$ac_objext
34767 if { (ac_try="$ac_compile"
34768 case "(($ac_try" in
34769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34770   *) ac_try_echo=$ac_try;;
34771 esac
34772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34773   (eval "$ac_compile") 2>conftest.er1
34774   ac_status=$?
34775   grep -v '^ *+' conftest.er1 >conftest.err
34776   rm -f conftest.er1
34777   cat conftest.err >&5
34778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34779   (exit $ac_status); } && {
34780          test -z "$ac_c_werror_flag" ||
34781          test ! -s conftest.err
34782        } && test -s conftest.$ac_objext; then
34783   ac_hi=$ac_mid; break
34784 else
34785   echo "$as_me: failed program was:" >&5
34786 sed 's/^/| /' conftest.$ac_ext >&5
34787
34788         ac_lo=`expr $ac_mid + 1`
34789                         if test $ac_lo -le $ac_mid; then
34790                           ac_lo= ac_hi=
34791                           break
34792                         fi
34793                         ac_mid=`expr 2 '*' $ac_mid + 1`
34794 fi
34795
34796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34797   done
34798 else
34799   echo "$as_me: failed program was:" >&5
34800 sed 's/^/| /' conftest.$ac_ext >&5
34801
34802         cat >conftest.$ac_ext <<_ACEOF
34803 /* confdefs.h.  */
34804 _ACEOF
34805 cat confdefs.h >>conftest.$ac_ext
34806 cat >>conftest.$ac_ext <<_ACEOF
34807 /* end confdefs.h.  */
34808 $ac_includes_default
34809    typedef long ac__type_sizeof_;
34810 int
34811 main ()
34812 {
34813 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
34814 test_array [0] = 0
34815
34816   ;
34817   return 0;
34818 }
34819 _ACEOF
34820 rm -f conftest.$ac_objext
34821 if { (ac_try="$ac_compile"
34822 case "(($ac_try" in
34823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34824   *) ac_try_echo=$ac_try;;
34825 esac
34826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34827   (eval "$ac_compile") 2>conftest.er1
34828   ac_status=$?
34829   grep -v '^ *+' conftest.er1 >conftest.err
34830   rm -f conftest.er1
34831   cat conftest.err >&5
34832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34833   (exit $ac_status); } && {
34834          test -z "$ac_c_werror_flag" ||
34835          test ! -s conftest.err
34836        } && test -s conftest.$ac_objext; then
34837   ac_hi=-1 ac_mid=-1
34838   while :; do
34839     cat >conftest.$ac_ext <<_ACEOF
34840 /* confdefs.h.  */
34841 _ACEOF
34842 cat confdefs.h >>conftest.$ac_ext
34843 cat >>conftest.$ac_ext <<_ACEOF
34844 /* end confdefs.h.  */
34845 $ac_includes_default
34846    typedef long ac__type_sizeof_;
34847 int
34848 main ()
34849 {
34850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
34851 test_array [0] = 0
34852
34853   ;
34854   return 0;
34855 }
34856 _ACEOF
34857 rm -f conftest.$ac_objext
34858 if { (ac_try="$ac_compile"
34859 case "(($ac_try" in
34860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34861   *) ac_try_echo=$ac_try;;
34862 esac
34863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34864   (eval "$ac_compile") 2>conftest.er1
34865   ac_status=$?
34866   grep -v '^ *+' conftest.er1 >conftest.err
34867   rm -f conftest.er1
34868   cat conftest.err >&5
34869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34870   (exit $ac_status); } && {
34871          test -z "$ac_c_werror_flag" ||
34872          test ! -s conftest.err
34873        } && test -s conftest.$ac_objext; then
34874   ac_lo=$ac_mid; break
34875 else
34876   echo "$as_me: failed program was:" >&5
34877 sed 's/^/| /' conftest.$ac_ext >&5
34878
34879         ac_hi=`expr '(' $ac_mid ')' - 1`
34880                         if test $ac_mid -le $ac_hi; then
34881                           ac_lo= ac_hi=
34882                           break
34883                         fi
34884                         ac_mid=`expr 2 '*' $ac_mid`
34885 fi
34886
34887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34888   done
34889 else
34890   echo "$as_me: failed program was:" >&5
34891 sed 's/^/| /' conftest.$ac_ext >&5
34892
34893         ac_lo= ac_hi=
34894 fi
34895
34896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34897 fi
34898
34899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34900 # Binary search between lo and hi bounds.
34901 while test "x$ac_lo" != "x$ac_hi"; do
34902   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
34903   cat >conftest.$ac_ext <<_ACEOF
34904 /* confdefs.h.  */
34905 _ACEOF
34906 cat confdefs.h >>conftest.$ac_ext
34907 cat >>conftest.$ac_ext <<_ACEOF
34908 /* end confdefs.h.  */
34909 $ac_includes_default
34910    typedef long ac__type_sizeof_;
34911 int
34912 main ()
34913 {
34914 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
34915 test_array [0] = 0
34916
34917   ;
34918   return 0;
34919 }
34920 _ACEOF
34921 rm -f conftest.$ac_objext
34922 if { (ac_try="$ac_compile"
34923 case "(($ac_try" in
34924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34925   *) ac_try_echo=$ac_try;;
34926 esac
34927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34928   (eval "$ac_compile") 2>conftest.er1
34929   ac_status=$?
34930   grep -v '^ *+' conftest.er1 >conftest.err
34931   rm -f conftest.er1
34932   cat conftest.err >&5
34933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34934   (exit $ac_status); } && {
34935          test -z "$ac_c_werror_flag" ||
34936          test ! -s conftest.err
34937        } && test -s conftest.$ac_objext; then
34938   ac_hi=$ac_mid
34939 else
34940   echo "$as_me: failed program was:" >&5
34941 sed 's/^/| /' conftest.$ac_ext >&5
34942
34943         ac_lo=`expr '(' $ac_mid ')' + 1`
34944 fi
34945
34946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34947 done
34948 case $ac_lo in
34949 ?*) ac_cv_sizeof_long=$ac_lo;;
34950 '') if test "$ac_cv_type_long" = yes; then
34951      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
34952 See \`config.log' for more details." >&5
34953 echo "$as_me: error: cannot compute sizeof (long)
34954 See \`config.log' for more details." >&2;}
34955    { (exit 77); exit 77; }; }
34956    else
34957      ac_cv_sizeof_long=0
34958    fi ;;
34959 esac
34960 else
34961   cat >conftest.$ac_ext <<_ACEOF
34962 /* confdefs.h.  */
34963 _ACEOF
34964 cat confdefs.h >>conftest.$ac_ext
34965 cat >>conftest.$ac_ext <<_ACEOF
34966 /* end confdefs.h.  */
34967 $ac_includes_default
34968    typedef long ac__type_sizeof_;
34969 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
34970 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
34971 #include <stdio.h>
34972 #include <stdlib.h>
34973 int
34974 main ()
34975 {
34976
34977   FILE *f = fopen ("conftest.val", "w");
34978   if (! f)
34979     return 1;
34980   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
34981     {
34982       long int i = longval ();
34983       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34984         return 1;
34985       fprintf (f, "%ld\n", i);
34986     }
34987   else
34988     {
34989       unsigned long int i = ulongval ();
34990       if (i != ((long int) (sizeof (ac__type_sizeof_))))
34991         return 1;
34992       fprintf (f, "%lu\n", i);
34993     }
34994   return ferror (f) || fclose (f) != 0;
34995
34996   ;
34997   return 0;
34998 }
34999 _ACEOF
35000 rm -f conftest$ac_exeext
35001 if { (ac_try="$ac_link"
35002 case "(($ac_try" in
35003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35004   *) ac_try_echo=$ac_try;;
35005 esac
35006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35007   (eval "$ac_link") 2>&5
35008   ac_status=$?
35009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35010   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35011   { (case "(($ac_try" in
35012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35013   *) ac_try_echo=$ac_try;;
35014 esac
35015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35016   (eval "$ac_try") 2>&5
35017   ac_status=$?
35018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35019   (exit $ac_status); }; }; then
35020   ac_cv_sizeof_long=`cat conftest.val`
35021 else
35022   echo "$as_me: program exited with status $ac_status" >&5
35023 echo "$as_me: failed program was:" >&5
35024 sed 's/^/| /' conftest.$ac_ext >&5
35025
35026 ( exit $ac_status )
35027 if test "$ac_cv_type_long" = yes; then
35028      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
35029 See \`config.log' for more details." >&5
35030 echo "$as_me: error: cannot compute sizeof (long)
35031 See \`config.log' for more details." >&2;}
35032    { (exit 77); exit 77; }; }
35033    else
35034      ac_cv_sizeof_long=0
35035    fi
35036 fi
35037 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35038 fi
35039 rm -f conftest.val
35040 fi
35041 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
35042 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
35043
35044
35045
35046 cat >>confdefs.h <<_ACEOF
35047 #define SIZEOF_LONG $ac_cv_sizeof_long
35048 _ACEOF
35049
35050
35051 { echo "$as_me:$LINENO: checking for long long" >&5
35052 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
35053 if test "${ac_cv_type_long_long+set}" = set; then
35054   echo $ECHO_N "(cached) $ECHO_C" >&6
35055 else
35056   cat >conftest.$ac_ext <<_ACEOF
35057 /* confdefs.h.  */
35058 _ACEOF
35059 cat confdefs.h >>conftest.$ac_ext
35060 cat >>conftest.$ac_ext <<_ACEOF
35061 /* end confdefs.h.  */
35062 $ac_includes_default
35063 typedef long long ac__type_new_;
35064 int
35065 main ()
35066 {
35067 if ((ac__type_new_ *) 0)
35068   return 0;
35069 if (sizeof (ac__type_new_))
35070   return 0;
35071   ;
35072   return 0;
35073 }
35074 _ACEOF
35075 rm -f conftest.$ac_objext
35076 if { (ac_try="$ac_compile"
35077 case "(($ac_try" in
35078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35079   *) ac_try_echo=$ac_try;;
35080 esac
35081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35082   (eval "$ac_compile") 2>conftest.er1
35083   ac_status=$?
35084   grep -v '^ *+' conftest.er1 >conftest.err
35085   rm -f conftest.er1
35086   cat conftest.err >&5
35087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35088   (exit $ac_status); } && {
35089          test -z "$ac_c_werror_flag" ||
35090          test ! -s conftest.err
35091        } && test -s conftest.$ac_objext; then
35092   ac_cv_type_long_long=yes
35093 else
35094   echo "$as_me: failed program was:" >&5
35095 sed 's/^/| /' conftest.$ac_ext >&5
35096
35097         ac_cv_type_long_long=no
35098 fi
35099
35100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35101 fi
35102 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
35103 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
35104
35105 # The cast to long int works around a bug in the HP C Compiler
35106 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35107 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35108 # This bug is HP SR number 8606223364.
35109 { echo "$as_me:$LINENO: checking size of long long" >&5
35110 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
35111 if test "${ac_cv_sizeof_long_long+set}" = set; then
35112   echo $ECHO_N "(cached) $ECHO_C" >&6
35113 else
35114   if test "$cross_compiling" = yes; then
35115   # Depending upon the size, compute the lo and hi bounds.
35116 cat >conftest.$ac_ext <<_ACEOF
35117 /* confdefs.h.  */
35118 _ACEOF
35119 cat confdefs.h >>conftest.$ac_ext
35120 cat >>conftest.$ac_ext <<_ACEOF
35121 /* end confdefs.h.  */
35122 $ac_includes_default
35123    typedef long long ac__type_sizeof_;
35124 int
35125 main ()
35126 {
35127 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35128 test_array [0] = 0
35129
35130   ;
35131   return 0;
35132 }
35133 _ACEOF
35134 rm -f conftest.$ac_objext
35135 if { (ac_try="$ac_compile"
35136 case "(($ac_try" in
35137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35138   *) ac_try_echo=$ac_try;;
35139 esac
35140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35141   (eval "$ac_compile") 2>conftest.er1
35142   ac_status=$?
35143   grep -v '^ *+' conftest.er1 >conftest.err
35144   rm -f conftest.er1
35145   cat conftest.err >&5
35146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35147   (exit $ac_status); } && {
35148          test -z "$ac_c_werror_flag" ||
35149          test ! -s conftest.err
35150        } && test -s conftest.$ac_objext; then
35151   ac_lo=0 ac_mid=0
35152   while :; do
35153     cat >conftest.$ac_ext <<_ACEOF
35154 /* confdefs.h.  */
35155 _ACEOF
35156 cat confdefs.h >>conftest.$ac_ext
35157 cat >>conftest.$ac_ext <<_ACEOF
35158 /* end confdefs.h.  */
35159 $ac_includes_default
35160    typedef long long ac__type_sizeof_;
35161 int
35162 main ()
35163 {
35164 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35165 test_array [0] = 0
35166
35167   ;
35168   return 0;
35169 }
35170 _ACEOF
35171 rm -f conftest.$ac_objext
35172 if { (ac_try="$ac_compile"
35173 case "(($ac_try" in
35174   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35175   *) ac_try_echo=$ac_try;;
35176 esac
35177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35178   (eval "$ac_compile") 2>conftest.er1
35179   ac_status=$?
35180   grep -v '^ *+' conftest.er1 >conftest.err
35181   rm -f conftest.er1
35182   cat conftest.err >&5
35183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35184   (exit $ac_status); } && {
35185          test -z "$ac_c_werror_flag" ||
35186          test ! -s conftest.err
35187        } && test -s conftest.$ac_objext; then
35188   ac_hi=$ac_mid; break
35189 else
35190   echo "$as_me: failed program was:" >&5
35191 sed 's/^/| /' conftest.$ac_ext >&5
35192
35193         ac_lo=`expr $ac_mid + 1`
35194                         if test $ac_lo -le $ac_mid; then
35195                           ac_lo= ac_hi=
35196                           break
35197                         fi
35198                         ac_mid=`expr 2 '*' $ac_mid + 1`
35199 fi
35200
35201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35202   done
35203 else
35204   echo "$as_me: failed program was:" >&5
35205 sed 's/^/| /' conftest.$ac_ext >&5
35206
35207         cat >conftest.$ac_ext <<_ACEOF
35208 /* confdefs.h.  */
35209 _ACEOF
35210 cat confdefs.h >>conftest.$ac_ext
35211 cat >>conftest.$ac_ext <<_ACEOF
35212 /* end confdefs.h.  */
35213 $ac_includes_default
35214    typedef long long ac__type_sizeof_;
35215 int
35216 main ()
35217 {
35218 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35219 test_array [0] = 0
35220
35221   ;
35222   return 0;
35223 }
35224 _ACEOF
35225 rm -f conftest.$ac_objext
35226 if { (ac_try="$ac_compile"
35227 case "(($ac_try" in
35228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35229   *) ac_try_echo=$ac_try;;
35230 esac
35231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35232   (eval "$ac_compile") 2>conftest.er1
35233   ac_status=$?
35234   grep -v '^ *+' conftest.er1 >conftest.err
35235   rm -f conftest.er1
35236   cat conftest.err >&5
35237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35238   (exit $ac_status); } && {
35239          test -z "$ac_c_werror_flag" ||
35240          test ! -s conftest.err
35241        } && test -s conftest.$ac_objext; then
35242   ac_hi=-1 ac_mid=-1
35243   while :; do
35244     cat >conftest.$ac_ext <<_ACEOF
35245 /* confdefs.h.  */
35246 _ACEOF
35247 cat confdefs.h >>conftest.$ac_ext
35248 cat >>conftest.$ac_ext <<_ACEOF
35249 /* end confdefs.h.  */
35250 $ac_includes_default
35251    typedef long long ac__type_sizeof_;
35252 int
35253 main ()
35254 {
35255 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35256 test_array [0] = 0
35257
35258   ;
35259   return 0;
35260 }
35261 _ACEOF
35262 rm -f conftest.$ac_objext
35263 if { (ac_try="$ac_compile"
35264 case "(($ac_try" in
35265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35266   *) ac_try_echo=$ac_try;;
35267 esac
35268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35269   (eval "$ac_compile") 2>conftest.er1
35270   ac_status=$?
35271   grep -v '^ *+' conftest.er1 >conftest.err
35272   rm -f conftest.er1
35273   cat conftest.err >&5
35274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35275   (exit $ac_status); } && {
35276          test -z "$ac_c_werror_flag" ||
35277          test ! -s conftest.err
35278        } && test -s conftest.$ac_objext; then
35279   ac_lo=$ac_mid; break
35280 else
35281   echo "$as_me: failed program was:" >&5
35282 sed 's/^/| /' conftest.$ac_ext >&5
35283
35284         ac_hi=`expr '(' $ac_mid ')' - 1`
35285                         if test $ac_mid -le $ac_hi; then
35286                           ac_lo= ac_hi=
35287                           break
35288                         fi
35289                         ac_mid=`expr 2 '*' $ac_mid`
35290 fi
35291
35292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35293   done
35294 else
35295   echo "$as_me: failed program was:" >&5
35296 sed 's/^/| /' conftest.$ac_ext >&5
35297
35298         ac_lo= ac_hi=
35299 fi
35300
35301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35302 fi
35303
35304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35305 # Binary search between lo and hi bounds.
35306 while test "x$ac_lo" != "x$ac_hi"; do
35307   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35308   cat >conftest.$ac_ext <<_ACEOF
35309 /* confdefs.h.  */
35310 _ACEOF
35311 cat confdefs.h >>conftest.$ac_ext
35312 cat >>conftest.$ac_ext <<_ACEOF
35313 /* end confdefs.h.  */
35314 $ac_includes_default
35315    typedef long long ac__type_sizeof_;
35316 int
35317 main ()
35318 {
35319 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35320 test_array [0] = 0
35321
35322   ;
35323   return 0;
35324 }
35325 _ACEOF
35326 rm -f conftest.$ac_objext
35327 if { (ac_try="$ac_compile"
35328 case "(($ac_try" in
35329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35330   *) ac_try_echo=$ac_try;;
35331 esac
35332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35333   (eval "$ac_compile") 2>conftest.er1
35334   ac_status=$?
35335   grep -v '^ *+' conftest.er1 >conftest.err
35336   rm -f conftest.er1
35337   cat conftest.err >&5
35338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35339   (exit $ac_status); } && {
35340          test -z "$ac_c_werror_flag" ||
35341          test ! -s conftest.err
35342        } && test -s conftest.$ac_objext; then
35343   ac_hi=$ac_mid
35344 else
35345   echo "$as_me: failed program was:" >&5
35346 sed 's/^/| /' conftest.$ac_ext >&5
35347
35348         ac_lo=`expr '(' $ac_mid ')' + 1`
35349 fi
35350
35351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35352 done
35353 case $ac_lo in
35354 ?*) ac_cv_sizeof_long_long=$ac_lo;;
35355 '') if test "$ac_cv_type_long_long" = yes; then
35356      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35357 See \`config.log' for more details." >&5
35358 echo "$as_me: error: cannot compute sizeof (long long)
35359 See \`config.log' for more details." >&2;}
35360    { (exit 77); exit 77; }; }
35361    else
35362      ac_cv_sizeof_long_long=0
35363    fi ;;
35364 esac
35365 else
35366   cat >conftest.$ac_ext <<_ACEOF
35367 /* confdefs.h.  */
35368 _ACEOF
35369 cat confdefs.h >>conftest.$ac_ext
35370 cat >>conftest.$ac_ext <<_ACEOF
35371 /* end confdefs.h.  */
35372 $ac_includes_default
35373    typedef long long ac__type_sizeof_;
35374 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35375 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35376 #include <stdio.h>
35377 #include <stdlib.h>
35378 int
35379 main ()
35380 {
35381
35382   FILE *f = fopen ("conftest.val", "w");
35383   if (! f)
35384     return 1;
35385   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35386     {
35387       long int i = longval ();
35388       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35389         return 1;
35390       fprintf (f, "%ld\n", i);
35391     }
35392   else
35393     {
35394       unsigned long int i = ulongval ();
35395       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35396         return 1;
35397       fprintf (f, "%lu\n", i);
35398     }
35399   return ferror (f) || fclose (f) != 0;
35400
35401   ;
35402   return 0;
35403 }
35404 _ACEOF
35405 rm -f conftest$ac_exeext
35406 if { (ac_try="$ac_link"
35407 case "(($ac_try" in
35408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35409   *) ac_try_echo=$ac_try;;
35410 esac
35411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35412   (eval "$ac_link") 2>&5
35413   ac_status=$?
35414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35415   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35416   { (case "(($ac_try" in
35417   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35418   *) ac_try_echo=$ac_try;;
35419 esac
35420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35421   (eval "$ac_try") 2>&5
35422   ac_status=$?
35423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35424   (exit $ac_status); }; }; then
35425   ac_cv_sizeof_long_long=`cat conftest.val`
35426 else
35427   echo "$as_me: program exited with status $ac_status" >&5
35428 echo "$as_me: failed program was:" >&5
35429 sed 's/^/| /' conftest.$ac_ext >&5
35430
35431 ( exit $ac_status )
35432 if test "$ac_cv_type_long_long" = yes; then
35433      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
35434 See \`config.log' for more details." >&5
35435 echo "$as_me: error: cannot compute sizeof (long long)
35436 See \`config.log' for more details." >&2;}
35437    { (exit 77); exit 77; }; }
35438    else
35439      ac_cv_sizeof_long_long=0
35440    fi
35441 fi
35442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35443 fi
35444 rm -f conftest.val
35445 fi
35446 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
35447 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
35448
35449
35450
35451 cat >>confdefs.h <<_ACEOF
35452 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
35453 _ACEOF
35454
35455
35456 { echo "$as_me:$LINENO: checking for wchar_t" >&5
35457 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
35458 if test "${ac_cv_type_wchar_t+set}" = set; then
35459   echo $ECHO_N "(cached) $ECHO_C" >&6
35460 else
35461   cat >conftest.$ac_ext <<_ACEOF
35462 /* confdefs.h.  */
35463 _ACEOF
35464 cat confdefs.h >>conftest.$ac_ext
35465 cat >>conftest.$ac_ext <<_ACEOF
35466 /* end confdefs.h.  */
35467 $ac_includes_default
35468 typedef wchar_t ac__type_new_;
35469 int
35470 main ()
35471 {
35472 if ((ac__type_new_ *) 0)
35473   return 0;
35474 if (sizeof (ac__type_new_))
35475   return 0;
35476   ;
35477   return 0;
35478 }
35479 _ACEOF
35480 rm -f conftest.$ac_objext
35481 if { (ac_try="$ac_compile"
35482 case "(($ac_try" in
35483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35484   *) ac_try_echo=$ac_try;;
35485 esac
35486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35487   (eval "$ac_compile") 2>conftest.er1
35488   ac_status=$?
35489   grep -v '^ *+' conftest.er1 >conftest.err
35490   rm -f conftest.er1
35491   cat conftest.err >&5
35492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35493   (exit $ac_status); } && {
35494          test -z "$ac_c_werror_flag" ||
35495          test ! -s conftest.err
35496        } && test -s conftest.$ac_objext; then
35497   ac_cv_type_wchar_t=yes
35498 else
35499   echo "$as_me: failed program was:" >&5
35500 sed 's/^/| /' conftest.$ac_ext >&5
35501
35502         ac_cv_type_wchar_t=no
35503 fi
35504
35505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35506 fi
35507 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
35508 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
35509
35510 # The cast to long int works around a bug in the HP C Compiler
35511 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
35512 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
35513 # This bug is HP SR number 8606223364.
35514 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
35515 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
35516 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
35517   echo $ECHO_N "(cached) $ECHO_C" >&6
35518 else
35519   if test "$cross_compiling" = yes; then
35520   # Depending upon the size, compute the lo and hi bounds.
35521 cat >conftest.$ac_ext <<_ACEOF
35522 /* confdefs.h.  */
35523 _ACEOF
35524 cat confdefs.h >>conftest.$ac_ext
35525 cat >>conftest.$ac_ext <<_ACEOF
35526 /* end confdefs.h.  */
35527 $ac_includes_default
35528    typedef wchar_t ac__type_sizeof_;
35529 int
35530 main ()
35531 {
35532 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
35533 test_array [0] = 0
35534
35535   ;
35536   return 0;
35537 }
35538 _ACEOF
35539 rm -f conftest.$ac_objext
35540 if { (ac_try="$ac_compile"
35541 case "(($ac_try" in
35542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35543   *) ac_try_echo=$ac_try;;
35544 esac
35545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35546   (eval "$ac_compile") 2>conftest.er1
35547   ac_status=$?
35548   grep -v '^ *+' conftest.er1 >conftest.err
35549   rm -f conftest.er1
35550   cat conftest.err >&5
35551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35552   (exit $ac_status); } && {
35553          test -z "$ac_c_werror_flag" ||
35554          test ! -s conftest.err
35555        } && test -s conftest.$ac_objext; then
35556   ac_lo=0 ac_mid=0
35557   while :; do
35558     cat >conftest.$ac_ext <<_ACEOF
35559 /* confdefs.h.  */
35560 _ACEOF
35561 cat confdefs.h >>conftest.$ac_ext
35562 cat >>conftest.$ac_ext <<_ACEOF
35563 /* end confdefs.h.  */
35564 $ac_includes_default
35565    typedef wchar_t ac__type_sizeof_;
35566 int
35567 main ()
35568 {
35569 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35570 test_array [0] = 0
35571
35572   ;
35573   return 0;
35574 }
35575 _ACEOF
35576 rm -f conftest.$ac_objext
35577 if { (ac_try="$ac_compile"
35578 case "(($ac_try" in
35579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35580   *) ac_try_echo=$ac_try;;
35581 esac
35582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35583   (eval "$ac_compile") 2>conftest.er1
35584   ac_status=$?
35585   grep -v '^ *+' conftest.er1 >conftest.err
35586   rm -f conftest.er1
35587   cat conftest.err >&5
35588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35589   (exit $ac_status); } && {
35590          test -z "$ac_c_werror_flag" ||
35591          test ! -s conftest.err
35592        } && test -s conftest.$ac_objext; then
35593   ac_hi=$ac_mid; break
35594 else
35595   echo "$as_me: failed program was:" >&5
35596 sed 's/^/| /' conftest.$ac_ext >&5
35597
35598         ac_lo=`expr $ac_mid + 1`
35599                         if test $ac_lo -le $ac_mid; then
35600                           ac_lo= ac_hi=
35601                           break
35602                         fi
35603                         ac_mid=`expr 2 '*' $ac_mid + 1`
35604 fi
35605
35606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35607   done
35608 else
35609   echo "$as_me: failed program was:" >&5
35610 sed 's/^/| /' conftest.$ac_ext >&5
35611
35612         cat >conftest.$ac_ext <<_ACEOF
35613 /* confdefs.h.  */
35614 _ACEOF
35615 cat confdefs.h >>conftest.$ac_ext
35616 cat >>conftest.$ac_ext <<_ACEOF
35617 /* end confdefs.h.  */
35618 $ac_includes_default
35619    typedef wchar_t ac__type_sizeof_;
35620 int
35621 main ()
35622 {
35623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
35624 test_array [0] = 0
35625
35626   ;
35627   return 0;
35628 }
35629 _ACEOF
35630 rm -f conftest.$ac_objext
35631 if { (ac_try="$ac_compile"
35632 case "(($ac_try" in
35633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35634   *) ac_try_echo=$ac_try;;
35635 esac
35636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35637   (eval "$ac_compile") 2>conftest.er1
35638   ac_status=$?
35639   grep -v '^ *+' conftest.er1 >conftest.err
35640   rm -f conftest.er1
35641   cat conftest.err >&5
35642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643   (exit $ac_status); } && {
35644          test -z "$ac_c_werror_flag" ||
35645          test ! -s conftest.err
35646        } && test -s conftest.$ac_objext; then
35647   ac_hi=-1 ac_mid=-1
35648   while :; do
35649     cat >conftest.$ac_ext <<_ACEOF
35650 /* confdefs.h.  */
35651 _ACEOF
35652 cat confdefs.h >>conftest.$ac_ext
35653 cat >>conftest.$ac_ext <<_ACEOF
35654 /* end confdefs.h.  */
35655 $ac_includes_default
35656    typedef wchar_t ac__type_sizeof_;
35657 int
35658 main ()
35659 {
35660 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
35661 test_array [0] = 0
35662
35663   ;
35664   return 0;
35665 }
35666 _ACEOF
35667 rm -f conftest.$ac_objext
35668 if { (ac_try="$ac_compile"
35669 case "(($ac_try" in
35670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35671   *) ac_try_echo=$ac_try;;
35672 esac
35673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35674   (eval "$ac_compile") 2>conftest.er1
35675   ac_status=$?
35676   grep -v '^ *+' conftest.er1 >conftest.err
35677   rm -f conftest.er1
35678   cat conftest.err >&5
35679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35680   (exit $ac_status); } && {
35681          test -z "$ac_c_werror_flag" ||
35682          test ! -s conftest.err
35683        } && test -s conftest.$ac_objext; then
35684   ac_lo=$ac_mid; break
35685 else
35686   echo "$as_me: failed program was:" >&5
35687 sed 's/^/| /' conftest.$ac_ext >&5
35688
35689         ac_hi=`expr '(' $ac_mid ')' - 1`
35690                         if test $ac_mid -le $ac_hi; then
35691                           ac_lo= ac_hi=
35692                           break
35693                         fi
35694                         ac_mid=`expr 2 '*' $ac_mid`
35695 fi
35696
35697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35698   done
35699 else
35700   echo "$as_me: failed program was:" >&5
35701 sed 's/^/| /' conftest.$ac_ext >&5
35702
35703         ac_lo= ac_hi=
35704 fi
35705
35706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35707 fi
35708
35709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35710 # Binary search between lo and hi bounds.
35711 while test "x$ac_lo" != "x$ac_hi"; do
35712   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
35713   cat >conftest.$ac_ext <<_ACEOF
35714 /* confdefs.h.  */
35715 _ACEOF
35716 cat confdefs.h >>conftest.$ac_ext
35717 cat >>conftest.$ac_ext <<_ACEOF
35718 /* end confdefs.h.  */
35719 $ac_includes_default
35720    typedef wchar_t ac__type_sizeof_;
35721 int
35722 main ()
35723 {
35724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
35725 test_array [0] = 0
35726
35727   ;
35728   return 0;
35729 }
35730 _ACEOF
35731 rm -f conftest.$ac_objext
35732 if { (ac_try="$ac_compile"
35733 case "(($ac_try" in
35734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35735   *) ac_try_echo=$ac_try;;
35736 esac
35737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35738   (eval "$ac_compile") 2>conftest.er1
35739   ac_status=$?
35740   grep -v '^ *+' conftest.er1 >conftest.err
35741   rm -f conftest.er1
35742   cat conftest.err >&5
35743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35744   (exit $ac_status); } && {
35745          test -z "$ac_c_werror_flag" ||
35746          test ! -s conftest.err
35747        } && test -s conftest.$ac_objext; then
35748   ac_hi=$ac_mid
35749 else
35750   echo "$as_me: failed program was:" >&5
35751 sed 's/^/| /' conftest.$ac_ext >&5
35752
35753         ac_lo=`expr '(' $ac_mid ')' + 1`
35754 fi
35755
35756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35757 done
35758 case $ac_lo in
35759 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
35760 '') if test "$ac_cv_type_wchar_t" = yes; then
35761      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35762 See \`config.log' for more details." >&5
35763 echo "$as_me: error: cannot compute sizeof (wchar_t)
35764 See \`config.log' for more details." >&2;}
35765    { (exit 77); exit 77; }; }
35766    else
35767      ac_cv_sizeof_wchar_t=0
35768    fi ;;
35769 esac
35770 else
35771   cat >conftest.$ac_ext <<_ACEOF
35772 /* confdefs.h.  */
35773 _ACEOF
35774 cat confdefs.h >>conftest.$ac_ext
35775 cat >>conftest.$ac_ext <<_ACEOF
35776 /* end confdefs.h.  */
35777 $ac_includes_default
35778    typedef wchar_t ac__type_sizeof_;
35779 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
35780 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
35781 #include <stdio.h>
35782 #include <stdlib.h>
35783 int
35784 main ()
35785 {
35786
35787   FILE *f = fopen ("conftest.val", "w");
35788   if (! f)
35789     return 1;
35790   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
35791     {
35792       long int i = longval ();
35793       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35794         return 1;
35795       fprintf (f, "%ld\n", i);
35796     }
35797   else
35798     {
35799       unsigned long int i = ulongval ();
35800       if (i != ((long int) (sizeof (ac__type_sizeof_))))
35801         return 1;
35802       fprintf (f, "%lu\n", i);
35803     }
35804   return ferror (f) || fclose (f) != 0;
35805
35806   ;
35807   return 0;
35808 }
35809 _ACEOF
35810 rm -f conftest$ac_exeext
35811 if { (ac_try="$ac_link"
35812 case "(($ac_try" in
35813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35814   *) ac_try_echo=$ac_try;;
35815 esac
35816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35817   (eval "$ac_link") 2>&5
35818   ac_status=$?
35819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35820   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35821   { (case "(($ac_try" in
35822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35823   *) ac_try_echo=$ac_try;;
35824 esac
35825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35826   (eval "$ac_try") 2>&5
35827   ac_status=$?
35828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35829   (exit $ac_status); }; }; then
35830   ac_cv_sizeof_wchar_t=`cat conftest.val`
35831 else
35832   echo "$as_me: program exited with status $ac_status" >&5
35833 echo "$as_me: failed program was:" >&5
35834 sed 's/^/| /' conftest.$ac_ext >&5
35835
35836 ( exit $ac_status )
35837 if test "$ac_cv_type_wchar_t" = yes; then
35838      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
35839 See \`config.log' for more details." >&5
35840 echo "$as_me: error: cannot compute sizeof (wchar_t)
35841 See \`config.log' for more details." >&2;}
35842    { (exit 77); exit 77; }; }
35843    else
35844      ac_cv_sizeof_wchar_t=0
35845    fi
35846 fi
35847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35848 fi
35849 rm -f conftest.val
35850 fi
35851 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
35852 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
35853
35854
35855
35856 cat >>confdefs.h <<_ACEOF
35857 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
35858 _ACEOF
35859
35860
35861
35862 if test "$ac_cv_sizeof_int" -lt 4 ; then
35863         { echo "$as_me:$LINENO: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&5
35864 echo "$as_me: WARNING: OpenLDAP requires 'int' to be 32 bits or greater." >&2;}
35865
35866
35867 cat >>confdefs.h <<\_ACEOF
35868 #define LBER_INT_T long
35869 _ACEOF
35870
35871 else
35872
35873 cat >>confdefs.h <<\_ACEOF
35874 #define LBER_INT_T int
35875 _ACEOF
35876
35877 fi
35878
35879
35880 cat >>confdefs.h <<\_ACEOF
35881 #define LBER_LEN_T long
35882 _ACEOF
35883
35884
35885 cat >>confdefs.h <<\_ACEOF
35886 #define LBER_SOCKET_T int
35887 _ACEOF
35888
35889
35890 cat >>confdefs.h <<\_ACEOF
35891 #define LBER_TAG_T long
35892 _ACEOF
35893
35894
35895 if test $ol_with_mp = longlong || test $ol_with_mp = auto ; then
35896         if test $ac_cv_sizeof_long_long -gt 4 ; then
35897                 ol_with_mp=longlong
35898
35899 cat >>confdefs.h <<\_ACEOF
35900 #define USE_MP_LONG_LONG 1
35901 _ACEOF
35902
35903         elif test $ol_with_mp = longlong ; then
35904                 { { echo "$as_me:$LINENO: error: long long unusable for multiple precision" >&5
35905 echo "$as_me: error: long long unusable for multiple precision" >&2;}
35906    { (exit 1); exit 1; }; }
35907         fi
35908 fi
35909 if test $ol_with_mp = long || test $ol_with_mp = auto ; then
35910         if test $ac_cv_sizeof_long -gt 4 ; then
35911                 ol_with_mp=long
35912
35913 cat >>confdefs.h <<\_ACEOF
35914 #define USE_MP_LONG 1
35915 _ACEOF
35916
35917         elif test $ol_with_mp = long ; then
35918                 { { echo "$as_me:$LINENO: error: long unusable for multiple precision" >&5
35919 echo "$as_me: error: long unusable for multiple precision" >&2;}
35920    { (exit 1); exit 1; }; }
35921         fi
35922 fi
35923 if test $ol_with_mp = bignum || test $ol_with_mp = auto ; then
35924
35925 for ac_header in openssl/bn.h
35926 do
35927 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35929   { echo "$as_me:$LINENO: checking for $ac_header" >&5
35930 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35931 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35932   echo $ECHO_N "(cached) $ECHO_C" >&6
35933 fi
35934 ac_res=`eval echo '${'$as_ac_Header'}'`
35935                { echo "$as_me:$LINENO: result: $ac_res" >&5
35936 echo "${ECHO_T}$ac_res" >&6; }
35937 else
35938   # Is the header compilable?
35939 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
35940 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
35941 cat >conftest.$ac_ext <<_ACEOF
35942 /* confdefs.h.  */
35943 _ACEOF
35944 cat confdefs.h >>conftest.$ac_ext
35945 cat >>conftest.$ac_ext <<_ACEOF
35946 /* end confdefs.h.  */
35947 $ac_includes_default
35948 #include <$ac_header>
35949 _ACEOF
35950 rm -f conftest.$ac_objext
35951 if { (ac_try="$ac_compile"
35952 case "(($ac_try" in
35953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35954   *) ac_try_echo=$ac_try;;
35955 esac
35956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35957   (eval "$ac_compile") 2>conftest.er1
35958   ac_status=$?
35959   grep -v '^ *+' conftest.er1 >conftest.err
35960   rm -f conftest.er1
35961   cat conftest.err >&5
35962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35963   (exit $ac_status); } && {
35964          test -z "$ac_c_werror_flag" ||
35965          test ! -s conftest.err
35966        } && test -s conftest.$ac_objext; then
35967   ac_header_compiler=yes
35968 else
35969   echo "$as_me: failed program was:" >&5
35970 sed 's/^/| /' conftest.$ac_ext >&5
35971
35972         ac_header_compiler=no
35973 fi
35974
35975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35977 echo "${ECHO_T}$ac_header_compiler" >&6; }
35978
35979 # Is the header present?
35980 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
35981 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
35982 cat >conftest.$ac_ext <<_ACEOF
35983 /* confdefs.h.  */
35984 _ACEOF
35985 cat confdefs.h >>conftest.$ac_ext
35986 cat >>conftest.$ac_ext <<_ACEOF
35987 /* end confdefs.h.  */
35988 #include <$ac_header>
35989 _ACEOF
35990 if { (ac_try="$ac_cpp conftest.$ac_ext"
35991 case "(($ac_try" in
35992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35993   *) ac_try_echo=$ac_try;;
35994 esac
35995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35996   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35997   ac_status=$?
35998   grep -v '^ *+' conftest.er1 >conftest.err
35999   rm -f conftest.er1
36000   cat conftest.err >&5
36001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36002   (exit $ac_status); } >/dev/null && {
36003          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36004          test ! -s conftest.err
36005        }; then
36006   ac_header_preproc=yes
36007 else
36008   echo "$as_me: failed program was:" >&5
36009 sed 's/^/| /' conftest.$ac_ext >&5
36010
36011   ac_header_preproc=no
36012 fi
36013
36014 rm -f conftest.err conftest.$ac_ext
36015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36016 echo "${ECHO_T}$ac_header_preproc" >&6; }
36017
36018 # So?  What about this header?
36019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36020   yes:no: )
36021     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36022 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36023     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36024 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36025     ac_header_preproc=yes
36026     ;;
36027   no:yes:* )
36028     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36029 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36030     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36031 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36032     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36033 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36034     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36035 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36036     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36037 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36038     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36039 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36040     ( cat <<\_ASBOX
36041 ## --------------------------------------------- ##
36042 ## Report this to <http://www.openldap.org/its/> ##
36043 ## --------------------------------------------- ##
36044 _ASBOX
36045      ) | sed "s/^/$as_me: WARNING:     /" >&2
36046     ;;
36047 esac
36048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36051   echo $ECHO_N "(cached) $ECHO_C" >&6
36052 else
36053   eval "$as_ac_Header=\$ac_header_preproc"
36054 fi
36055 ac_res=`eval echo '${'$as_ac_Header'}'`
36056                { echo "$as_me:$LINENO: result: $ac_res" >&5
36057 echo "${ECHO_T}$ac_res" >&6; }
36058
36059 fi
36060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36061   cat >>confdefs.h <<_ACEOF
36062 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36063 _ACEOF
36064
36065 fi
36066
36067 done
36068
36069
36070 for ac_header in openssl/crypto.h
36071 do
36072 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36073 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36074   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36075 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36077   echo $ECHO_N "(cached) $ECHO_C" >&6
36078 fi
36079 ac_res=`eval echo '${'$as_ac_Header'}'`
36080                { echo "$as_me:$LINENO: result: $ac_res" >&5
36081 echo "${ECHO_T}$ac_res" >&6; }
36082 else
36083   # Is the header compilable?
36084 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36085 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36086 cat >conftest.$ac_ext <<_ACEOF
36087 /* confdefs.h.  */
36088 _ACEOF
36089 cat confdefs.h >>conftest.$ac_ext
36090 cat >>conftest.$ac_ext <<_ACEOF
36091 /* end confdefs.h.  */
36092 $ac_includes_default
36093 #include <$ac_header>
36094 _ACEOF
36095 rm -f conftest.$ac_objext
36096 if { (ac_try="$ac_compile"
36097 case "(($ac_try" in
36098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36099   *) ac_try_echo=$ac_try;;
36100 esac
36101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36102   (eval "$ac_compile") 2>conftest.er1
36103   ac_status=$?
36104   grep -v '^ *+' conftest.er1 >conftest.err
36105   rm -f conftest.er1
36106   cat conftest.err >&5
36107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36108   (exit $ac_status); } && {
36109          test -z "$ac_c_werror_flag" ||
36110          test ! -s conftest.err
36111        } && test -s conftest.$ac_objext; then
36112   ac_header_compiler=yes
36113 else
36114   echo "$as_me: failed program was:" >&5
36115 sed 's/^/| /' conftest.$ac_ext >&5
36116
36117         ac_header_compiler=no
36118 fi
36119
36120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36121 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36122 echo "${ECHO_T}$ac_header_compiler" >&6; }
36123
36124 # Is the header present?
36125 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36127 cat >conftest.$ac_ext <<_ACEOF
36128 /* confdefs.h.  */
36129 _ACEOF
36130 cat confdefs.h >>conftest.$ac_ext
36131 cat >>conftest.$ac_ext <<_ACEOF
36132 /* end confdefs.h.  */
36133 #include <$ac_header>
36134 _ACEOF
36135 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
36148          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36149          test ! -s conftest.err
36150        }; then
36151   ac_header_preproc=yes
36152 else
36153   echo "$as_me: failed program was:" >&5
36154 sed 's/^/| /' conftest.$ac_ext >&5
36155
36156   ac_header_preproc=no
36157 fi
36158
36159 rm -f conftest.err conftest.$ac_ext
36160 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36161 echo "${ECHO_T}$ac_header_preproc" >&6; }
36162
36163 # So?  What about this header?
36164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36165   yes:no: )
36166     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36167 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36170     ac_header_preproc=yes
36171     ;;
36172   no:yes:* )
36173     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36174 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36175     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36176 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36177     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36178 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36179     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36180 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36181     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36183     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36184 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36185     ( cat <<\_ASBOX
36186 ## --------------------------------------------- ##
36187 ## Report this to <http://www.openldap.org/its/> ##
36188 ## --------------------------------------------- ##
36189 _ASBOX
36190      ) | sed "s/^/$as_me: WARNING:     /" >&2
36191     ;;
36192 esac
36193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36196   echo $ECHO_N "(cached) $ECHO_C" >&6
36197 else
36198   eval "$as_ac_Header=\$ac_header_preproc"
36199 fi
36200 ac_res=`eval echo '${'$as_ac_Header'}'`
36201                { echo "$as_me:$LINENO: result: $ac_res" >&5
36202 echo "${ECHO_T}$ac_res" >&6; }
36203
36204 fi
36205 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36206   cat >>confdefs.h <<_ACEOF
36207 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36208 _ACEOF
36209
36210 fi
36211
36212 done
36213
36214         if test "$ac_cv_header_openssl_bn_h" = "yes" &&
36215                 test "$ac_cv_header_openssl_crypto_h" = "yes" &&
36216                 test "$ol_with_tls" = "found" ; then
36217                 ol_with_mp=bignum
36218
36219 cat >>confdefs.h <<\_ACEOF
36220 #define USE_MP_BIGNUM 1
36221 _ACEOF
36222
36223         elif test $ol_with_mp = bignum ; then
36224                 { { echo "$as_me:$LINENO: error: bignum not available" >&5
36225 echo "$as_me: error: bignum not available" >&2;}
36226    { (exit 1); exit 1; }; }
36227         fi
36228 fi
36229 if test $ol_with_mp = gmp || test $ol_with_mp = auto ; then
36230
36231 for ac_header in gmp.h
36232 do
36233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
36234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36235   { echo "$as_me:$LINENO: checking for $ac_header" >&5
36236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36238   echo $ECHO_N "(cached) $ECHO_C" >&6
36239 fi
36240 ac_res=`eval echo '${'$as_ac_Header'}'`
36241                { echo "$as_me:$LINENO: result: $ac_res" >&5
36242 echo "${ECHO_T}$ac_res" >&6; }
36243 else
36244   # Is the header compilable?
36245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
36246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
36247 cat >conftest.$ac_ext <<_ACEOF
36248 /* confdefs.h.  */
36249 _ACEOF
36250 cat confdefs.h >>conftest.$ac_ext
36251 cat >>conftest.$ac_ext <<_ACEOF
36252 /* end confdefs.h.  */
36253 $ac_includes_default
36254 #include <$ac_header>
36255 _ACEOF
36256 rm -f conftest.$ac_objext
36257 if { (ac_try="$ac_compile"
36258 case "(($ac_try" in
36259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36260   *) ac_try_echo=$ac_try;;
36261 esac
36262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36263   (eval "$ac_compile") 2>conftest.er1
36264   ac_status=$?
36265   grep -v '^ *+' conftest.er1 >conftest.err
36266   rm -f conftest.er1
36267   cat conftest.err >&5
36268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36269   (exit $ac_status); } && {
36270          test -z "$ac_c_werror_flag" ||
36271          test ! -s conftest.err
36272        } && test -s conftest.$ac_objext; then
36273   ac_header_compiler=yes
36274 else
36275   echo "$as_me: failed program was:" >&5
36276 sed 's/^/| /' conftest.$ac_ext >&5
36277
36278         ac_header_compiler=no
36279 fi
36280
36281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36283 echo "${ECHO_T}$ac_header_compiler" >&6; }
36284
36285 # Is the header present?
36286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
36287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
36288 cat >conftest.$ac_ext <<_ACEOF
36289 /* confdefs.h.  */
36290 _ACEOF
36291 cat confdefs.h >>conftest.$ac_ext
36292 cat >>conftest.$ac_ext <<_ACEOF
36293 /* end confdefs.h.  */
36294 #include <$ac_header>
36295 _ACEOF
36296 if { (ac_try="$ac_cpp conftest.$ac_ext"
36297 case "(($ac_try" in
36298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36299   *) ac_try_echo=$ac_try;;
36300 esac
36301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36303   ac_status=$?
36304   grep -v '^ *+' conftest.er1 >conftest.err
36305   rm -f conftest.er1
36306   cat conftest.err >&5
36307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36308   (exit $ac_status); } >/dev/null && {
36309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36310          test ! -s conftest.err
36311        }; then
36312   ac_header_preproc=yes
36313 else
36314   echo "$as_me: failed program was:" >&5
36315 sed 's/^/| /' conftest.$ac_ext >&5
36316
36317   ac_header_preproc=no
36318 fi
36319
36320 rm -f conftest.err conftest.$ac_ext
36321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36322 echo "${ECHO_T}$ac_header_preproc" >&6; }
36323
36324 # So?  What about this header?
36325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36326   yes:no: )
36327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36331     ac_header_preproc=yes
36332     ;;
36333   no:yes:* )
36334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36346     ( cat <<\_ASBOX
36347 ## --------------------------------------------- ##
36348 ## Report this to <http://www.openldap.org/its/> ##
36349 ## --------------------------------------------- ##
36350 _ASBOX
36351      ) | sed "s/^/$as_me: WARNING:     /" >&2
36352     ;;
36353 esac
36354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
36355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
36356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36357   echo $ECHO_N "(cached) $ECHO_C" >&6
36358 else
36359   eval "$as_ac_Header=\$ac_header_preproc"
36360 fi
36361 ac_res=`eval echo '${'$as_ac_Header'}'`
36362                { echo "$as_me:$LINENO: result: $ac_res" >&5
36363 echo "${ECHO_T}$ac_res" >&6; }
36364
36365 fi
36366 if test `eval echo '${'$as_ac_Header'}'` = yes; then
36367   cat >>confdefs.h <<_ACEOF
36368 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
36369 _ACEOF
36370
36371 fi
36372
36373 done
36374
36375
36376 { echo "$as_me:$LINENO: checking for __gmpz_add_ui in -lgmp" >&5
36377 echo $ECHO_N "checking for __gmpz_add_ui in -lgmp... $ECHO_C" >&6; }
36378 if test "${ac_cv_lib_gmp___gmpz_add_ui+set}" = set; then
36379   echo $ECHO_N "(cached) $ECHO_C" >&6
36380 else
36381   ac_check_lib_save_LIBS=$LIBS
36382 LIBS="-lgmp  $LIBS"
36383 cat >conftest.$ac_ext <<_ACEOF
36384 /* confdefs.h.  */
36385 _ACEOF
36386 cat confdefs.h >>conftest.$ac_ext
36387 cat >>conftest.$ac_ext <<_ACEOF
36388 /* end confdefs.h.  */
36389
36390 /* Override any GCC internal prototype to avoid an error.
36391    Use char because int might match the return type of a GCC
36392    builtin and then its argument prototype would still apply.  */
36393 #ifdef __cplusplus
36394 extern "C"
36395 #endif
36396 char __gmpz_add_ui ();
36397 int
36398 main ()
36399 {
36400 return __gmpz_add_ui ();
36401   ;
36402   return 0;
36403 }
36404 _ACEOF
36405 rm -f conftest.$ac_objext conftest$ac_exeext
36406 if { (ac_try="$ac_link"
36407 case "(($ac_try" in
36408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36409   *) ac_try_echo=$ac_try;;
36410 esac
36411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36412   (eval "$ac_link") 2>conftest.er1
36413   ac_status=$?
36414   grep -v '^ *+' conftest.er1 >conftest.err
36415   rm -f conftest.er1
36416   cat conftest.err >&5
36417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418   (exit $ac_status); } && {
36419          test -z "$ac_c_werror_flag" ||
36420          test ! -s conftest.err
36421        } && test -s conftest$ac_exeext &&
36422        $as_test_x conftest$ac_exeext; then
36423   ac_cv_lib_gmp___gmpz_add_ui=yes
36424 else
36425   echo "$as_me: failed program was:" >&5
36426 sed 's/^/| /' conftest.$ac_ext >&5
36427
36428         ac_cv_lib_gmp___gmpz_add_ui=no
36429 fi
36430
36431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36432       conftest$ac_exeext conftest.$ac_ext
36433 LIBS=$ac_check_lib_save_LIBS
36434 fi
36435 { echo "$as_me:$LINENO: result: $ac_cv_lib_gmp___gmpz_add_ui" >&5
36436 echo "${ECHO_T}$ac_cv_lib_gmp___gmpz_add_ui" >&6; }
36437 if test $ac_cv_lib_gmp___gmpz_add_ui = yes; then
36438   cat >>confdefs.h <<_ACEOF
36439 #define HAVE_LIBGMP 1
36440 _ACEOF
36441
36442   LIBS="-lgmp $LIBS"
36443
36444 fi
36445
36446         if test $ac_cv_header_gmp_h = yes && test $ac_cv_lib_gmp___gmpz_add_ui = yes ; then
36447
36448 cat >>confdefs.h <<\_ACEOF
36449 #define USE_MP_GMP 1
36450 _ACEOF
36451
36452                 ol_with_mp=gmp
36453         elif test $ol_with_mp = gmp ; then
36454                 { { echo "$as_me:$LINENO: error: gmp not available" >&5
36455 echo "$as_me: error: gmp not available" >&2;}
36456    { (exit 1); exit 1; }; }
36457         fi
36458 fi
36459 if test $ol_with_mp = auto ; then
36460         ol_with_mp=no
36461 fi
36462
36463 { echo "$as_me:$LINENO: checking for working memcmp" >&5
36464 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
36465 if test "${ac_cv_func_memcmp_working+set}" = set; then
36466   echo $ECHO_N "(cached) $ECHO_C" >&6
36467 else
36468   if test "$cross_compiling" = yes; then
36469   ac_cv_func_memcmp_working=no
36470 else
36471   cat >conftest.$ac_ext <<_ACEOF
36472 /* confdefs.h.  */
36473 _ACEOF
36474 cat confdefs.h >>conftest.$ac_ext
36475 cat >>conftest.$ac_ext <<_ACEOF
36476 /* end confdefs.h.  */
36477 $ac_includes_default
36478 int
36479 main ()
36480 {
36481
36482   /* Some versions of memcmp are not 8-bit clean.  */
36483   char c0 = '\100', c1 = '\200', c2 = '\201';
36484   if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
36485     return 1;
36486
36487   /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
36488      or more and with at least one buffer not starting on a 4-byte boundary.
36489      William Lewis provided this test program.   */
36490   {
36491     char foo[21];
36492     char bar[21];
36493     int i;
36494     for (i = 0; i < 4; i++)
36495       {
36496         char *a = foo + i;
36497         char *b = bar + i;
36498         strcpy (a, "--------01111111");
36499         strcpy (b, "--------10000000");
36500         if (memcmp (a, b, 16) >= 0)
36501           return 1;
36502       }
36503     return 0;
36504   }
36505
36506   ;
36507   return 0;
36508 }
36509 _ACEOF
36510 rm -f conftest$ac_exeext
36511 if { (ac_try="$ac_link"
36512 case "(($ac_try" in
36513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36514   *) ac_try_echo=$ac_try;;
36515 esac
36516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36517   (eval "$ac_link") 2>&5
36518   ac_status=$?
36519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36521   { (case "(($ac_try" in
36522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36523   *) ac_try_echo=$ac_try;;
36524 esac
36525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36526   (eval "$ac_try") 2>&5
36527   ac_status=$?
36528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36529   (exit $ac_status); }; }; then
36530   ac_cv_func_memcmp_working=yes
36531 else
36532   echo "$as_me: program exited with status $ac_status" >&5
36533 echo "$as_me: failed program was:" >&5
36534 sed 's/^/| /' conftest.$ac_ext >&5
36535
36536 ( exit $ac_status )
36537 ac_cv_func_memcmp_working=no
36538 fi
36539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36540 fi
36541
36542
36543 fi
36544 { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
36545 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
36546 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
36547   *" memcmp.$ac_objext "* ) ;;
36548   *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
36549  ;;
36550 esac
36551
36552
36553
36554 if test $ac_cv_func_memcmp_working = no ; then
36555
36556 cat >>confdefs.h <<\_ACEOF
36557 #define NEED_MEMCMP_REPLACEMENT 1
36558 _ACEOF
36559
36560 fi
36561
36562
36563 for ac_func in strftime
36564 do
36565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36569   echo $ECHO_N "(cached) $ECHO_C" >&6
36570 else
36571   cat >conftest.$ac_ext <<_ACEOF
36572 /* confdefs.h.  */
36573 _ACEOF
36574 cat confdefs.h >>conftest.$ac_ext
36575 cat >>conftest.$ac_ext <<_ACEOF
36576 /* end confdefs.h.  */
36577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36578    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36579 #define $ac_func innocuous_$ac_func
36580
36581 /* System header to define __stub macros and hopefully few prototypes,
36582     which can conflict with char $ac_func (); below.
36583     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36584     <limits.h> exists even on freestanding compilers.  */
36585
36586 #ifdef __STDC__
36587 # include <limits.h>
36588 #else
36589 # include <assert.h>
36590 #endif
36591
36592 #undef $ac_func
36593
36594 /* Override any GCC internal prototype to avoid an error.
36595    Use char because int might match the return type of a GCC
36596    builtin and then its argument prototype would still apply.  */
36597 #ifdef __cplusplus
36598 extern "C"
36599 #endif
36600 char $ac_func ();
36601 /* The GNU C library defines this for functions which it implements
36602     to always fail with ENOSYS.  Some functions are actually named
36603     something starting with __ and the normal name is an alias.  */
36604 #if defined __stub_$ac_func || defined __stub___$ac_func
36605 choke me
36606 #endif
36607
36608 int
36609 main ()
36610 {
36611 return $ac_func ();
36612   ;
36613   return 0;
36614 }
36615 _ACEOF
36616 rm -f conftest.$ac_objext conftest$ac_exeext
36617 if { (ac_try="$ac_link"
36618 case "(($ac_try" in
36619   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36620   *) ac_try_echo=$ac_try;;
36621 esac
36622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36623   (eval "$ac_link") 2>conftest.er1
36624   ac_status=$?
36625   grep -v '^ *+' conftest.er1 >conftest.err
36626   rm -f conftest.er1
36627   cat conftest.err >&5
36628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36629   (exit $ac_status); } && {
36630          test -z "$ac_c_werror_flag" ||
36631          test ! -s conftest.err
36632        } && test -s conftest$ac_exeext &&
36633        $as_test_x conftest$ac_exeext; then
36634   eval "$as_ac_var=yes"
36635 else
36636   echo "$as_me: failed program was:" >&5
36637 sed 's/^/| /' conftest.$ac_ext >&5
36638
36639         eval "$as_ac_var=no"
36640 fi
36641
36642 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36643       conftest$ac_exeext conftest.$ac_ext
36644 fi
36645 ac_res=`eval echo '${'$as_ac_var'}'`
36646                { echo "$as_me:$LINENO: result: $ac_res" >&5
36647 echo "${ECHO_T}$ac_res" >&6; }
36648 if test `eval echo '${'$as_ac_var'}'` = yes; then
36649   cat >>confdefs.h <<_ACEOF
36650 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
36651 _ACEOF
36652
36653 else
36654   # strftime is in -lintl on SCO UNIX.
36655 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
36656 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
36657 if test "${ac_cv_lib_intl_strftime+set}" = set; then
36658   echo $ECHO_N "(cached) $ECHO_C" >&6
36659 else
36660   ac_check_lib_save_LIBS=$LIBS
36661 LIBS="-lintl  $LIBS"
36662 cat >conftest.$ac_ext <<_ACEOF
36663 /* confdefs.h.  */
36664 _ACEOF
36665 cat confdefs.h >>conftest.$ac_ext
36666 cat >>conftest.$ac_ext <<_ACEOF
36667 /* end confdefs.h.  */
36668
36669 /* Override any GCC internal prototype to avoid an error.
36670    Use char because int might match the return type of a GCC
36671    builtin and then its argument prototype would still apply.  */
36672 #ifdef __cplusplus
36673 extern "C"
36674 #endif
36675 char strftime ();
36676 int
36677 main ()
36678 {
36679 return strftime ();
36680   ;
36681   return 0;
36682 }
36683 _ACEOF
36684 rm -f conftest.$ac_objext conftest$ac_exeext
36685 if { (ac_try="$ac_link"
36686 case "(($ac_try" in
36687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36688   *) ac_try_echo=$ac_try;;
36689 esac
36690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36691   (eval "$ac_link") 2>conftest.er1
36692   ac_status=$?
36693   grep -v '^ *+' conftest.er1 >conftest.err
36694   rm -f conftest.er1
36695   cat conftest.err >&5
36696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697   (exit $ac_status); } && {
36698          test -z "$ac_c_werror_flag" ||
36699          test ! -s conftest.err
36700        } && test -s conftest$ac_exeext &&
36701        $as_test_x conftest$ac_exeext; then
36702   ac_cv_lib_intl_strftime=yes
36703 else
36704   echo "$as_me: failed program was:" >&5
36705 sed 's/^/| /' conftest.$ac_ext >&5
36706
36707         ac_cv_lib_intl_strftime=no
36708 fi
36709
36710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36711       conftest$ac_exeext conftest.$ac_ext
36712 LIBS=$ac_check_lib_save_LIBS
36713 fi
36714 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
36715 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
36716 if test $ac_cv_lib_intl_strftime = yes; then
36717   cat >>confdefs.h <<\_ACEOF
36718 #define HAVE_STRFTIME 1
36719 _ACEOF
36720
36721 LIBS="-lintl $LIBS"
36722 fi
36723
36724 fi
36725 done
36726
36727
36728 { echo "$as_me:$LINENO: checking for inet_aton()" >&5
36729 echo $ECHO_N "checking for inet_aton()... $ECHO_C" >&6; }
36730 if test "${ol_cv_func_inet_aton+set}" = set; then
36731   echo $ECHO_N "(cached) $ECHO_C" >&6
36732 else
36733   cat >conftest.$ac_ext <<_ACEOF
36734 /* confdefs.h.  */
36735 _ACEOF
36736 cat confdefs.h >>conftest.$ac_ext
36737 cat >>conftest.$ac_ext <<_ACEOF
36738 /* end confdefs.h.  */
36739
36740 #ifdef HAVE_SYS_TYPES_H
36741 #       include <sys/types.h>
36742 #endif
36743 #ifdef HAVE_SYS_SOCKET_H
36744 #       include <sys/socket.h>
36745 #       ifdef HAVE_SYS_SELECT_H
36746 #               include <sys/select.h>
36747 #       endif
36748 #       include <netinet/in.h>
36749 #       ifdef HAVE_ARPA_INET_H
36750 #               include <arpa/inet.h>
36751 #       endif
36752 #endif
36753
36754 int
36755 main ()
36756 {
36757 struct in_addr in;
36758 int rc = inet_aton( "255.255.255.255", &in );
36759   ;
36760   return 0;
36761 }
36762 _ACEOF
36763 rm -f conftest.$ac_objext conftest$ac_exeext
36764 if { (ac_try="$ac_link"
36765 case "(($ac_try" in
36766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36767   *) ac_try_echo=$ac_try;;
36768 esac
36769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36770   (eval "$ac_link") 2>conftest.er1
36771   ac_status=$?
36772   grep -v '^ *+' conftest.er1 >conftest.err
36773   rm -f conftest.er1
36774   cat conftest.err >&5
36775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36776   (exit $ac_status); } && {
36777          test -z "$ac_c_werror_flag" ||
36778          test ! -s conftest.err
36779        } && test -s conftest$ac_exeext &&
36780        $as_test_x conftest$ac_exeext; then
36781   ol_cv_func_inet_aton=yes
36782 else
36783   echo "$as_me: failed program was:" >&5
36784 sed 's/^/| /' conftest.$ac_ext >&5
36785
36786         ol_cv_func_inet_aton=no
36787 fi
36788
36789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36790       conftest$ac_exeext conftest.$ac_ext
36791 fi
36792 { echo "$as_me:$LINENO: result: $ol_cv_func_inet_aton" >&5
36793 echo "${ECHO_T}$ol_cv_func_inet_aton" >&6; }
36794   if test $ol_cv_func_inet_aton != no; then
36795
36796 cat >>confdefs.h <<\_ACEOF
36797 #define HAVE_INET_ATON 1
36798 _ACEOF
36799
36800   fi
36801
36802
36803 { echo "$as_me:$LINENO: checking for _spawnlp" >&5
36804 echo $ECHO_N "checking for _spawnlp... $ECHO_C" >&6; }
36805 if test "${ac_cv_func__spawnlp+set}" = set; then
36806   echo $ECHO_N "(cached) $ECHO_C" >&6
36807 else
36808   cat >conftest.$ac_ext <<_ACEOF
36809 /* confdefs.h.  */
36810 _ACEOF
36811 cat confdefs.h >>conftest.$ac_ext
36812 cat >>conftest.$ac_ext <<_ACEOF
36813 /* end confdefs.h.  */
36814 /* Define _spawnlp to an innocuous variant, in case <limits.h> declares _spawnlp.
36815    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36816 #define _spawnlp innocuous__spawnlp
36817
36818 /* System header to define __stub macros and hopefully few prototypes,
36819     which can conflict with char _spawnlp (); below.
36820     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36821     <limits.h> exists even on freestanding compilers.  */
36822
36823 #ifdef __STDC__
36824 # include <limits.h>
36825 #else
36826 # include <assert.h>
36827 #endif
36828
36829 #undef _spawnlp
36830
36831 /* Override any GCC internal prototype to avoid an error.
36832    Use char because int might match the return type of a GCC
36833    builtin and then its argument prototype would still apply.  */
36834 #ifdef __cplusplus
36835 extern "C"
36836 #endif
36837 char _spawnlp ();
36838 /* The GNU C library defines this for functions which it implements
36839     to always fail with ENOSYS.  Some functions are actually named
36840     something starting with __ and the normal name is an alias.  */
36841 #if defined __stub__spawnlp || defined __stub____spawnlp
36842 choke me
36843 #endif
36844
36845 int
36846 main ()
36847 {
36848 return _spawnlp ();
36849   ;
36850   return 0;
36851 }
36852 _ACEOF
36853 rm -f conftest.$ac_objext conftest$ac_exeext
36854 if { (ac_try="$ac_link"
36855 case "(($ac_try" in
36856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36857   *) ac_try_echo=$ac_try;;
36858 esac
36859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36860   (eval "$ac_link") 2>conftest.er1
36861   ac_status=$?
36862   grep -v '^ *+' conftest.er1 >conftest.err
36863   rm -f conftest.er1
36864   cat conftest.err >&5
36865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866   (exit $ac_status); } && {
36867          test -z "$ac_c_werror_flag" ||
36868          test ! -s conftest.err
36869        } && test -s conftest$ac_exeext &&
36870        $as_test_x conftest$ac_exeext; then
36871   ac_cv_func__spawnlp=yes
36872 else
36873   echo "$as_me: failed program was:" >&5
36874 sed 's/^/| /' conftest.$ac_ext >&5
36875
36876         ac_cv_func__spawnlp=no
36877 fi
36878
36879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36880       conftest$ac_exeext conftest.$ac_ext
36881 fi
36882 { echo "$as_me:$LINENO: result: $ac_cv_func__spawnlp" >&5
36883 echo "${ECHO_T}$ac_cv_func__spawnlp" >&6; }
36884 if test $ac_cv_func__spawnlp = yes; then
36885
36886 cat >>confdefs.h <<\_ACEOF
36887 #define HAVE_SPAWNLP 1
36888 _ACEOF
36889
36890 fi
36891
36892
36893 { echo "$as_me:$LINENO: checking for _snprintf" >&5
36894 echo $ECHO_N "checking for _snprintf... $ECHO_C" >&6; }
36895 if test "${ac_cv_func__snprintf+set}" = set; then
36896   echo $ECHO_N "(cached) $ECHO_C" >&6
36897 else
36898   cat >conftest.$ac_ext <<_ACEOF
36899 /* confdefs.h.  */
36900 _ACEOF
36901 cat confdefs.h >>conftest.$ac_ext
36902 cat >>conftest.$ac_ext <<_ACEOF
36903 /* end confdefs.h.  */
36904 /* Define _snprintf to an innocuous variant, in case <limits.h> declares _snprintf.
36905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36906 #define _snprintf innocuous__snprintf
36907
36908 /* System header to define __stub macros and hopefully few prototypes,
36909     which can conflict with char _snprintf (); below.
36910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36911     <limits.h> exists even on freestanding compilers.  */
36912
36913 #ifdef __STDC__
36914 # include <limits.h>
36915 #else
36916 # include <assert.h>
36917 #endif
36918
36919 #undef _snprintf
36920
36921 /* Override any GCC internal prototype to avoid an error.
36922    Use char because int might match the return type of a GCC
36923    builtin and then its argument prototype would still apply.  */
36924 #ifdef __cplusplus
36925 extern "C"
36926 #endif
36927 char _snprintf ();
36928 /* The GNU C library defines this for functions which it implements
36929     to always fail with ENOSYS.  Some functions are actually named
36930     something starting with __ and the normal name is an alias.  */
36931 #if defined __stub__snprintf || defined __stub____snprintf
36932 choke me
36933 #endif
36934
36935 int
36936 main ()
36937 {
36938 return _snprintf ();
36939   ;
36940   return 0;
36941 }
36942 _ACEOF
36943 rm -f conftest.$ac_objext conftest$ac_exeext
36944 if { (ac_try="$ac_link"
36945 case "(($ac_try" in
36946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36947   *) ac_try_echo=$ac_try;;
36948 esac
36949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36950   (eval "$ac_link") 2>conftest.er1
36951   ac_status=$?
36952   grep -v '^ *+' conftest.er1 >conftest.err
36953   rm -f conftest.er1
36954   cat conftest.err >&5
36955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36956   (exit $ac_status); } && {
36957          test -z "$ac_c_werror_flag" ||
36958          test ! -s conftest.err
36959        } && test -s conftest$ac_exeext &&
36960        $as_test_x conftest$ac_exeext; then
36961   ac_cv_func__snprintf=yes
36962 else
36963   echo "$as_me: failed program was:" >&5
36964 sed 's/^/| /' conftest.$ac_ext >&5
36965
36966         ac_cv_func__snprintf=no
36967 fi
36968
36969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36970       conftest$ac_exeext conftest.$ac_ext
36971 fi
36972 { echo "$as_me:$LINENO: result: $ac_cv_func__snprintf" >&5
36973 echo "${ECHO_T}$ac_cv_func__snprintf" >&6; }
36974 if test $ac_cv_func__snprintf = yes; then
36975   ac_cv_func_snprintf=yes
36976
36977 cat >>confdefs.h <<\_ACEOF
36978 #define snprintf _snprintf
36979 _ACEOF
36980
36981
36982 fi
36983
36984
36985
36986
36987 for ac_func in vsnprintf _vsnprintf
36988 do
36989 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
36990 { echo "$as_me:$LINENO: checking for $ac_func" >&5
36991 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
36992 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36993   echo $ECHO_N "(cached) $ECHO_C" >&6
36994 else
36995   cat >conftest.$ac_ext <<_ACEOF
36996 /* confdefs.h.  */
36997 _ACEOF
36998 cat confdefs.h >>conftest.$ac_ext
36999 cat >>conftest.$ac_ext <<_ACEOF
37000 /* end confdefs.h.  */
37001 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37002    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37003 #define $ac_func innocuous_$ac_func
37004
37005 /* System header to define __stub macros and hopefully few prototypes,
37006     which can conflict with char $ac_func (); below.
37007     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37008     <limits.h> exists even on freestanding compilers.  */
37009
37010 #ifdef __STDC__
37011 # include <limits.h>
37012 #else
37013 # include <assert.h>
37014 #endif
37015
37016 #undef $ac_func
37017
37018 /* Override any GCC internal prototype to avoid an error.
37019    Use char because int might match the return type of a GCC
37020    builtin and then its argument prototype would still apply.  */
37021 #ifdef __cplusplus
37022 extern "C"
37023 #endif
37024 char $ac_func ();
37025 /* The GNU C library defines this for functions which it implements
37026     to always fail with ENOSYS.  Some functions are actually named
37027     something starting with __ and the normal name is an alias.  */
37028 #if defined __stub_$ac_func || defined __stub___$ac_func
37029 choke me
37030 #endif
37031
37032 int
37033 main ()
37034 {
37035 return $ac_func ();
37036   ;
37037   return 0;
37038 }
37039 _ACEOF
37040 rm -f conftest.$ac_objext conftest$ac_exeext
37041 if { (ac_try="$ac_link"
37042 case "(($ac_try" in
37043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37044   *) ac_try_echo=$ac_try;;
37045 esac
37046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37047   (eval "$ac_link") 2>conftest.er1
37048   ac_status=$?
37049   grep -v '^ *+' conftest.er1 >conftest.err
37050   rm -f conftest.er1
37051   cat conftest.err >&5
37052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37053   (exit $ac_status); } && {
37054          test -z "$ac_c_werror_flag" ||
37055          test ! -s conftest.err
37056        } && test -s conftest$ac_exeext &&
37057        $as_test_x conftest$ac_exeext; then
37058   eval "$as_ac_var=yes"
37059 else
37060   echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37062
37063         eval "$as_ac_var=no"
37064 fi
37065
37066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37067       conftest$ac_exeext conftest.$ac_ext
37068 fi
37069 ac_res=`eval echo '${'$as_ac_var'}'`
37070                { echo "$as_me:$LINENO: result: $ac_res" >&5
37071 echo "${ECHO_T}$ac_res" >&6; }
37072 if test `eval echo '${'$as_ac_var'}'` = yes; then
37073   cat >>confdefs.h <<_ACEOF
37074 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37075 _ACEOF
37076
37077 fi
37078 done
37079
37080
37081 if test $ac_cv_func_vsnprintf = no -a $ac_cv_func__vsnprintf = yes ; then
37082         ac_cv_func_vsnprintf=yes
37083
37084 cat >>confdefs.h <<\_ACEOF
37085 #define vsnprintf _vsnprintf
37086 _ACEOF
37087
37088 fi
37089
37090
37091 for ac_func in vprintf
37092 do
37093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37097   echo $ECHO_N "(cached) $ECHO_C" >&6
37098 else
37099   cat >conftest.$ac_ext <<_ACEOF
37100 /* confdefs.h.  */
37101 _ACEOF
37102 cat confdefs.h >>conftest.$ac_ext
37103 cat >>conftest.$ac_ext <<_ACEOF
37104 /* end confdefs.h.  */
37105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37107 #define $ac_func innocuous_$ac_func
37108
37109 /* System header to define __stub macros and hopefully few prototypes,
37110     which can conflict with char $ac_func (); below.
37111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37112     <limits.h> exists even on freestanding compilers.  */
37113
37114 #ifdef __STDC__
37115 # include <limits.h>
37116 #else
37117 # include <assert.h>
37118 #endif
37119
37120 #undef $ac_func
37121
37122 /* Override any GCC internal prototype to avoid an error.
37123    Use char because int might match the return type of a GCC
37124    builtin and then its argument prototype would still apply.  */
37125 #ifdef __cplusplus
37126 extern "C"
37127 #endif
37128 char $ac_func ();
37129 /* The GNU C library defines this for functions which it implements
37130     to always fail with ENOSYS.  Some functions are actually named
37131     something starting with __ and the normal name is an alias.  */
37132 #if defined __stub_$ac_func || defined __stub___$ac_func
37133 choke me
37134 #endif
37135
37136 int
37137 main ()
37138 {
37139 return $ac_func ();
37140   ;
37141   return 0;
37142 }
37143 _ACEOF
37144 rm -f conftest.$ac_objext conftest$ac_exeext
37145 if { (ac_try="$ac_link"
37146 case "(($ac_try" in
37147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37148   *) ac_try_echo=$ac_try;;
37149 esac
37150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37151   (eval "$ac_link") 2>conftest.er1
37152   ac_status=$?
37153   grep -v '^ *+' conftest.er1 >conftest.err
37154   rm -f conftest.er1
37155   cat conftest.err >&5
37156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37157   (exit $ac_status); } && {
37158          test -z "$ac_c_werror_flag" ||
37159          test ! -s conftest.err
37160        } && test -s conftest$ac_exeext &&
37161        $as_test_x conftest$ac_exeext; then
37162   eval "$as_ac_var=yes"
37163 else
37164   echo "$as_me: failed program was:" >&5
37165 sed 's/^/| /' conftest.$ac_ext >&5
37166
37167         eval "$as_ac_var=no"
37168 fi
37169
37170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37171       conftest$ac_exeext conftest.$ac_ext
37172 fi
37173 ac_res=`eval echo '${'$as_ac_var'}'`
37174                { echo "$as_me:$LINENO: result: $ac_res" >&5
37175 echo "${ECHO_T}$ac_res" >&6; }
37176 if test `eval echo '${'$as_ac_var'}'` = yes; then
37177   cat >>confdefs.h <<_ACEOF
37178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37179 _ACEOF
37180
37181 { echo "$as_me:$LINENO: checking for _doprnt" >&5
37182 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
37183 if test "${ac_cv_func__doprnt+set}" = set; then
37184   echo $ECHO_N "(cached) $ECHO_C" >&6
37185 else
37186   cat >conftest.$ac_ext <<_ACEOF
37187 /* confdefs.h.  */
37188 _ACEOF
37189 cat confdefs.h >>conftest.$ac_ext
37190 cat >>conftest.$ac_ext <<_ACEOF
37191 /* end confdefs.h.  */
37192 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
37193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37194 #define _doprnt innocuous__doprnt
37195
37196 /* System header to define __stub macros and hopefully few prototypes,
37197     which can conflict with char _doprnt (); below.
37198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37199     <limits.h> exists even on freestanding compilers.  */
37200
37201 #ifdef __STDC__
37202 # include <limits.h>
37203 #else
37204 # include <assert.h>
37205 #endif
37206
37207 #undef _doprnt
37208
37209 /* Override any GCC internal prototype to avoid an error.
37210    Use char because int might match the return type of a GCC
37211    builtin and then its argument prototype would still apply.  */
37212 #ifdef __cplusplus
37213 extern "C"
37214 #endif
37215 char _doprnt ();
37216 /* The GNU C library defines this for functions which it implements
37217     to always fail with ENOSYS.  Some functions are actually named
37218     something starting with __ and the normal name is an alias.  */
37219 #if defined __stub__doprnt || defined __stub____doprnt
37220 choke me
37221 #endif
37222
37223 int
37224 main ()
37225 {
37226 return _doprnt ();
37227   ;
37228   return 0;
37229 }
37230 _ACEOF
37231 rm -f conftest.$ac_objext conftest$ac_exeext
37232 if { (ac_try="$ac_link"
37233 case "(($ac_try" in
37234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37235   *) ac_try_echo=$ac_try;;
37236 esac
37237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37238   (eval "$ac_link") 2>conftest.er1
37239   ac_status=$?
37240   grep -v '^ *+' conftest.er1 >conftest.err
37241   rm -f conftest.er1
37242   cat conftest.err >&5
37243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37244   (exit $ac_status); } && {
37245          test -z "$ac_c_werror_flag" ||
37246          test ! -s conftest.err
37247        } && test -s conftest$ac_exeext &&
37248        $as_test_x conftest$ac_exeext; then
37249   ac_cv_func__doprnt=yes
37250 else
37251   echo "$as_me: failed program was:" >&5
37252 sed 's/^/| /' conftest.$ac_ext >&5
37253
37254         ac_cv_func__doprnt=no
37255 fi
37256
37257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37258       conftest$ac_exeext conftest.$ac_ext
37259 fi
37260 { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
37261 echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
37262 if test $ac_cv_func__doprnt = yes; then
37263
37264 cat >>confdefs.h <<\_ACEOF
37265 #define HAVE_DOPRNT 1
37266 _ACEOF
37267
37268 fi
37269
37270 fi
37271 done
37272
37273
37274
37275 if test $ac_cv_func_vprintf = yes ; then
37276
37277
37278 for ac_func in snprintf vsnprintf
37279 do
37280 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37281 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37282 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37283 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37284   echo $ECHO_N "(cached) $ECHO_C" >&6
37285 else
37286   cat >conftest.$ac_ext <<_ACEOF
37287 /* confdefs.h.  */
37288 _ACEOF
37289 cat confdefs.h >>conftest.$ac_ext
37290 cat >>conftest.$ac_ext <<_ACEOF
37291 /* end confdefs.h.  */
37292 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37293    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37294 #define $ac_func innocuous_$ac_func
37295
37296 /* System header to define __stub macros and hopefully few prototypes,
37297     which can conflict with char $ac_func (); below.
37298     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37299     <limits.h> exists even on freestanding compilers.  */
37300
37301 #ifdef __STDC__
37302 # include <limits.h>
37303 #else
37304 # include <assert.h>
37305 #endif
37306
37307 #undef $ac_func
37308
37309 /* Override any GCC internal prototype to avoid an error.
37310    Use char because int might match the return type of a GCC
37311    builtin and then its argument prototype would still apply.  */
37312 #ifdef __cplusplus
37313 extern "C"
37314 #endif
37315 char $ac_func ();
37316 /* The GNU C library defines this for functions which it implements
37317     to always fail with ENOSYS.  Some functions are actually named
37318     something starting with __ and the normal name is an alias.  */
37319 #if defined __stub_$ac_func || defined __stub___$ac_func
37320 choke me
37321 #endif
37322
37323 int
37324 main ()
37325 {
37326 return $ac_func ();
37327   ;
37328   return 0;
37329 }
37330 _ACEOF
37331 rm -f conftest.$ac_objext conftest$ac_exeext
37332 if { (ac_try="$ac_link"
37333 case "(($ac_try" in
37334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37335   *) ac_try_echo=$ac_try;;
37336 esac
37337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37338   (eval "$ac_link") 2>conftest.er1
37339   ac_status=$?
37340   grep -v '^ *+' conftest.er1 >conftest.err
37341   rm -f conftest.er1
37342   cat conftest.err >&5
37343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37344   (exit $ac_status); } && {
37345          test -z "$ac_c_werror_flag" ||
37346          test ! -s conftest.err
37347        } && test -s conftest$ac_exeext &&
37348        $as_test_x conftest$ac_exeext; then
37349   eval "$as_ac_var=yes"
37350 else
37351   echo "$as_me: failed program was:" >&5
37352 sed 's/^/| /' conftest.$ac_ext >&5
37353
37354         eval "$as_ac_var=no"
37355 fi
37356
37357 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37358       conftest$ac_exeext conftest.$ac_ext
37359 fi
37360 ac_res=`eval echo '${'$as_ac_var'}'`
37361                { echo "$as_me:$LINENO: result: $ac_res" >&5
37362 echo "${ECHO_T}$ac_res" >&6; }
37363 if test `eval echo '${'$as_ac_var'}'` = yes; then
37364   cat >>confdefs.h <<_ACEOF
37365 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37366 _ACEOF
37367
37368 fi
37369 done
37370
37371 fi
37372
37373
37374
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385
37386
37387
37388
37389
37390
37391
37392
37393
37394
37395
37396
37397
37398
37399
37400
37401
37402
37403
37404
37405
37406
37407
37408
37409
37410
37411
37412
37413
37414
37415
37416
37417
37418
37419
37420
37421
37422
37423
37424
37425
37426
37427
37428
37429 for ac_func in \
37430         bcopy                   \
37431         closesocket             \
37432         chroot                  \
37433         endgrent                \
37434         endpwent                \
37435         fcntl                   \
37436         flock                   \
37437         fstat                   \
37438         getdtablesize           \
37439         geteuid                 \
37440         getgrgid                \
37441         gethostname             \
37442         getpass                 \
37443         getpassphrase           \
37444         getpwuid                \
37445         getpwnam                \
37446         getspnam                \
37447         gettimeofday            \
37448         initgroups              \
37449         inet_ntoa_b             \
37450         ioctl                   \
37451         lockf                   \
37452         memcpy                  \
37453         memmove                 \
37454         memrchr                 \
37455         mkstemp                 \
37456         mktemp                  \
37457         pipe                    \
37458         read                    \
37459         recv                    \
37460         recvfrom                \
37461         setpwfile               \
37462         setgid                  \
37463         setegid                 \
37464         setsid                  \
37465         setuid                  \
37466         seteuid                 \
37467         signal                  \
37468         strdup                  \
37469         strpbrk                 \
37470         strrchr                 \
37471         strsep                  \
37472         strstr                  \
37473         strtol                  \
37474         strtoul                 \
37475         strtoq                  \
37476         strtouq                 \
37477         strtoll                 \
37478         strspn                  \
37479         sysconf                 \
37480         waitpid                 \
37481         wait4                   \
37482         write                   \
37483         send                    \
37484         sendmsg                 \
37485         sendto                  \
37486
37487 do
37488 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37489 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37490 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37492   echo $ECHO_N "(cached) $ECHO_C" >&6
37493 else
37494   cat >conftest.$ac_ext <<_ACEOF
37495 /* confdefs.h.  */
37496 _ACEOF
37497 cat confdefs.h >>conftest.$ac_ext
37498 cat >>conftest.$ac_ext <<_ACEOF
37499 /* end confdefs.h.  */
37500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37502 #define $ac_func innocuous_$ac_func
37503
37504 /* System header to define __stub macros and hopefully few prototypes,
37505     which can conflict with char $ac_func (); below.
37506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37507     <limits.h> exists even on freestanding compilers.  */
37508
37509 #ifdef __STDC__
37510 # include <limits.h>
37511 #else
37512 # include <assert.h>
37513 #endif
37514
37515 #undef $ac_func
37516
37517 /* Override any GCC internal prototype to avoid an error.
37518    Use char because int might match the return type of a GCC
37519    builtin and then its argument prototype would still apply.  */
37520 #ifdef __cplusplus
37521 extern "C"
37522 #endif
37523 char $ac_func ();
37524 /* The GNU C library defines this for functions which it implements
37525     to always fail with ENOSYS.  Some functions are actually named
37526     something starting with __ and the normal name is an alias.  */
37527 #if defined __stub_$ac_func || defined __stub___$ac_func
37528 choke me
37529 #endif
37530
37531 int
37532 main ()
37533 {
37534 return $ac_func ();
37535   ;
37536   return 0;
37537 }
37538 _ACEOF
37539 rm -f conftest.$ac_objext conftest$ac_exeext
37540 if { (ac_try="$ac_link"
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_link") 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_exeext &&
37556        $as_test_x conftest$ac_exeext; then
37557   eval "$as_ac_var=yes"
37558 else
37559   echo "$as_me: failed program was:" >&5
37560 sed 's/^/| /' conftest.$ac_ext >&5
37561
37562         eval "$as_ac_var=no"
37563 fi
37564
37565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37566       conftest$ac_exeext conftest.$ac_ext
37567 fi
37568 ac_res=`eval echo '${'$as_ac_var'}'`
37569                { echo "$as_me:$LINENO: result: $ac_res" >&5
37570 echo "${ECHO_T}$ac_res" >&6; }
37571 if test `eval echo '${'$as_ac_var'}'` = yes; then
37572   cat >>confdefs.h <<_ACEOF
37573 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37574 _ACEOF
37575
37576 fi
37577 done
37578
37579
37580
37581
37582 for ac_func in getopt getpeereid
37583 do
37584 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37585 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37586 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37587 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37588   echo $ECHO_N "(cached) $ECHO_C" >&6
37589 else
37590   cat >conftest.$ac_ext <<_ACEOF
37591 /* confdefs.h.  */
37592 _ACEOF
37593 cat confdefs.h >>conftest.$ac_ext
37594 cat >>conftest.$ac_ext <<_ACEOF
37595 /* end confdefs.h.  */
37596 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37597    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37598 #define $ac_func innocuous_$ac_func
37599
37600 /* System header to define __stub macros and hopefully few prototypes,
37601     which can conflict with char $ac_func (); below.
37602     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37603     <limits.h> exists even on freestanding compilers.  */
37604
37605 #ifdef __STDC__
37606 # include <limits.h>
37607 #else
37608 # include <assert.h>
37609 #endif
37610
37611 #undef $ac_func
37612
37613 /* Override any GCC internal prototype to avoid an error.
37614    Use char because int might match the return type of a GCC
37615    builtin and then its argument prototype would still apply.  */
37616 #ifdef __cplusplus
37617 extern "C"
37618 #endif
37619 char $ac_func ();
37620 /* The GNU C library defines this for functions which it implements
37621     to always fail with ENOSYS.  Some functions are actually named
37622     something starting with __ and the normal name is an alias.  */
37623 #if defined __stub_$ac_func || defined __stub___$ac_func
37624 choke me
37625 #endif
37626
37627 int
37628 main ()
37629 {
37630 return $ac_func ();
37631   ;
37632   return 0;
37633 }
37634 _ACEOF
37635 rm -f conftest.$ac_objext conftest$ac_exeext
37636 if { (ac_try="$ac_link"
37637 case "(($ac_try" in
37638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37639   *) ac_try_echo=$ac_try;;
37640 esac
37641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37642   (eval "$ac_link") 2>conftest.er1
37643   ac_status=$?
37644   grep -v '^ *+' conftest.er1 >conftest.err
37645   rm -f conftest.er1
37646   cat conftest.err >&5
37647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37648   (exit $ac_status); } && {
37649          test -z "$ac_c_werror_flag" ||
37650          test ! -s conftest.err
37651        } && test -s conftest$ac_exeext &&
37652        $as_test_x conftest$ac_exeext; then
37653   eval "$as_ac_var=yes"
37654 else
37655   echo "$as_me: failed program was:" >&5
37656 sed 's/^/| /' conftest.$ac_ext >&5
37657
37658         eval "$as_ac_var=no"
37659 fi
37660
37661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37662       conftest$ac_exeext conftest.$ac_ext
37663 fi
37664 ac_res=`eval echo '${'$as_ac_var'}'`
37665                { echo "$as_me:$LINENO: result: $ac_res" >&5
37666 echo "${ECHO_T}$ac_res" >&6; }
37667 if test `eval echo '${'$as_ac_var'}'` = yes; then
37668   cat >>confdefs.h <<_ACEOF
37669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37670 _ACEOF
37671
37672 else
37673   case " $LIBOBJS " in
37674   *" $ac_func.$ac_objext "* ) ;;
37675   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
37676  ;;
37677 esac
37678
37679 fi
37680 done
37681
37682
37683
37684 if test "$ac_cv_func_getopt" != yes; then
37685         LIBSRCS="$LIBSRCS getopt.c"
37686 fi
37687
37688 if test "$ac_cv_func_getpeereid" != yes; then
37689
37690 for ac_func in getpeerucred
37691 do
37692 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37693 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37694 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37695 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37696   echo $ECHO_N "(cached) $ECHO_C" >&6
37697 else
37698   cat >conftest.$ac_ext <<_ACEOF
37699 /* confdefs.h.  */
37700 _ACEOF
37701 cat confdefs.h >>conftest.$ac_ext
37702 cat >>conftest.$ac_ext <<_ACEOF
37703 /* end confdefs.h.  */
37704 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37705    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37706 #define $ac_func innocuous_$ac_func
37707
37708 /* System header to define __stub macros and hopefully few prototypes,
37709     which can conflict with char $ac_func (); below.
37710     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37711     <limits.h> exists even on freestanding compilers.  */
37712
37713 #ifdef __STDC__
37714 # include <limits.h>
37715 #else
37716 # include <assert.h>
37717 #endif
37718
37719 #undef $ac_func
37720
37721 /* Override any GCC internal prototype to avoid an error.
37722    Use char because int might match the return type of a GCC
37723    builtin and then its argument prototype would still apply.  */
37724 #ifdef __cplusplus
37725 extern "C"
37726 #endif
37727 char $ac_func ();
37728 /* The GNU C library defines this for functions which it implements
37729     to always fail with ENOSYS.  Some functions are actually named
37730     something starting with __ and the normal name is an alias.  */
37731 #if defined __stub_$ac_func || defined __stub___$ac_func
37732 choke me
37733 #endif
37734
37735 int
37736 main ()
37737 {
37738 return $ac_func ();
37739   ;
37740   return 0;
37741 }
37742 _ACEOF
37743 rm -f conftest.$ac_objext conftest$ac_exeext
37744 if { (ac_try="$ac_link"
37745 case "(($ac_try" in
37746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37747   *) ac_try_echo=$ac_try;;
37748 esac
37749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37750   (eval "$ac_link") 2>conftest.er1
37751   ac_status=$?
37752   grep -v '^ *+' conftest.er1 >conftest.err
37753   rm -f conftest.er1
37754   cat conftest.err >&5
37755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37756   (exit $ac_status); } && {
37757          test -z "$ac_c_werror_flag" ||
37758          test ! -s conftest.err
37759        } && test -s conftest$ac_exeext &&
37760        $as_test_x conftest$ac_exeext; then
37761   eval "$as_ac_var=yes"
37762 else
37763   echo "$as_me: failed program was:" >&5
37764 sed 's/^/| /' conftest.$ac_ext >&5
37765
37766         eval "$as_ac_var=no"
37767 fi
37768
37769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37770       conftest$ac_exeext conftest.$ac_ext
37771 fi
37772 ac_res=`eval echo '${'$as_ac_var'}'`
37773                { echo "$as_me:$LINENO: result: $ac_res" >&5
37774 echo "${ECHO_T}$ac_res" >&6; }
37775 if test `eval echo '${'$as_ac_var'}'` = yes; then
37776   cat >>confdefs.h <<_ACEOF
37777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37778 _ACEOF
37779
37780 fi
37781 done
37782
37783         if test "$ac_cv_func_getpeerucred" != yes ; then
37784                 { echo "$as_me:$LINENO: checking for struct msghdr.msg_accrightslen" >&5
37785 echo $ECHO_N "checking for struct msghdr.msg_accrightslen... $ECHO_C" >&6; }
37786 if test "${ac_cv_member_struct_msghdr_msg_accrightslen+set}" = set; then
37787   echo $ECHO_N "(cached) $ECHO_C" >&6
37788 else
37789   cat >conftest.$ac_ext <<_ACEOF
37790 /* confdefs.h.  */
37791 _ACEOF
37792 cat confdefs.h >>conftest.$ac_ext
37793 cat >>conftest.$ac_ext <<_ACEOF
37794 /* end confdefs.h.  */
37795 $ac_includes_default
37796 #ifdef HAVE_SYS_SOCKET_H
37797 #include <sys/socket.h>
37798 #endif
37799
37800 int
37801 main ()
37802 {
37803 static struct msghdr ac_aggr;
37804 if (ac_aggr.msg_accrightslen)
37805 return 0;
37806   ;
37807   return 0;
37808 }
37809 _ACEOF
37810 rm -f conftest.$ac_objext
37811 if { (ac_try="$ac_compile"
37812 case "(($ac_try" in
37813   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37814   *) ac_try_echo=$ac_try;;
37815 esac
37816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37817   (eval "$ac_compile") 2>conftest.er1
37818   ac_status=$?
37819   grep -v '^ *+' conftest.er1 >conftest.err
37820   rm -f conftest.er1
37821   cat conftest.err >&5
37822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37823   (exit $ac_status); } && {
37824          test -z "$ac_c_werror_flag" ||
37825          test ! -s conftest.err
37826        } && test -s conftest.$ac_objext; then
37827   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37828 else
37829   echo "$as_me: failed program was:" >&5
37830 sed 's/^/| /' conftest.$ac_ext >&5
37831
37832         cat >conftest.$ac_ext <<_ACEOF
37833 /* confdefs.h.  */
37834 _ACEOF
37835 cat confdefs.h >>conftest.$ac_ext
37836 cat >>conftest.$ac_ext <<_ACEOF
37837 /* end confdefs.h.  */
37838 $ac_includes_default
37839 #ifdef HAVE_SYS_SOCKET_H
37840 #include <sys/socket.h>
37841 #endif
37842
37843 int
37844 main ()
37845 {
37846 static struct msghdr ac_aggr;
37847 if (sizeof ac_aggr.msg_accrightslen)
37848 return 0;
37849   ;
37850   return 0;
37851 }
37852 _ACEOF
37853 rm -f conftest.$ac_objext
37854 if { (ac_try="$ac_compile"
37855 case "(($ac_try" in
37856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37857   *) ac_try_echo=$ac_try;;
37858 esac
37859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37860   (eval "$ac_compile") 2>conftest.er1
37861   ac_status=$?
37862   grep -v '^ *+' conftest.er1 >conftest.err
37863   rm -f conftest.er1
37864   cat conftest.err >&5
37865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37866   (exit $ac_status); } && {
37867          test -z "$ac_c_werror_flag" ||
37868          test ! -s conftest.err
37869        } && test -s conftest.$ac_objext; then
37870   ac_cv_member_struct_msghdr_msg_accrightslen=yes
37871 else
37872   echo "$as_me: failed program was:" >&5
37873 sed 's/^/| /' conftest.$ac_ext >&5
37874
37875         ac_cv_member_struct_msghdr_msg_accrightslen=no
37876 fi
37877
37878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37879 fi
37880
37881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37882 fi
37883 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_accrightslen" >&5
37884 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_accrightslen" >&6; }
37885 if test $ac_cv_member_struct_msghdr_msg_accrightslen = yes; then
37886
37887 cat >>confdefs.h <<_ACEOF
37888 #define HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTSLEN 1
37889 _ACEOF
37890
37891
37892 fi
37893
37894                 if test "$ac_cv_member_struct_msghdr_msg_accrightslen" != yes; then
37895                         { echo "$as_me:$LINENO: checking for struct msghdr.msg_control" >&5
37896 echo $ECHO_N "checking for struct msghdr.msg_control... $ECHO_C" >&6; }
37897 if test "${ac_cv_member_struct_msghdr_msg_control+set}" = set; then
37898   echo $ECHO_N "(cached) $ECHO_C" >&6
37899 else
37900   cat >conftest.$ac_ext <<_ACEOF
37901 /* confdefs.h.  */
37902 _ACEOF
37903 cat confdefs.h >>conftest.$ac_ext
37904 cat >>conftest.$ac_ext <<_ACEOF
37905 /* end confdefs.h.  */
37906 $ac_includes_default
37907 #ifdef HAVE_SYS_SOCKET_H
37908 #include <sys/socket.h>
37909 #endif
37910
37911 int
37912 main ()
37913 {
37914 static struct msghdr ac_aggr;
37915 if (ac_aggr.msg_control)
37916 return 0;
37917   ;
37918   return 0;
37919 }
37920 _ACEOF
37921 rm -f conftest.$ac_objext
37922 if { (ac_try="$ac_compile"
37923 case "(($ac_try" in
37924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37925   *) ac_try_echo=$ac_try;;
37926 esac
37927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37928   (eval "$ac_compile") 2>conftest.er1
37929   ac_status=$?
37930   grep -v '^ *+' conftest.er1 >conftest.err
37931   rm -f conftest.er1
37932   cat conftest.err >&5
37933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934   (exit $ac_status); } && {
37935          test -z "$ac_c_werror_flag" ||
37936          test ! -s conftest.err
37937        } && test -s conftest.$ac_objext; then
37938   ac_cv_member_struct_msghdr_msg_control=yes
37939 else
37940   echo "$as_me: failed program was:" >&5
37941 sed 's/^/| /' conftest.$ac_ext >&5
37942
37943         cat >conftest.$ac_ext <<_ACEOF
37944 /* confdefs.h.  */
37945 _ACEOF
37946 cat confdefs.h >>conftest.$ac_ext
37947 cat >>conftest.$ac_ext <<_ACEOF
37948 /* end confdefs.h.  */
37949 $ac_includes_default
37950 #ifdef HAVE_SYS_SOCKET_H
37951 #include <sys/socket.h>
37952 #endif
37953
37954 int
37955 main ()
37956 {
37957 static struct msghdr ac_aggr;
37958 if (sizeof ac_aggr.msg_control)
37959 return 0;
37960   ;
37961   return 0;
37962 }
37963 _ACEOF
37964 rm -f conftest.$ac_objext
37965 if { (ac_try="$ac_compile"
37966 case "(($ac_try" in
37967   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37968   *) ac_try_echo=$ac_try;;
37969 esac
37970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37971   (eval "$ac_compile") 2>conftest.er1
37972   ac_status=$?
37973   grep -v '^ *+' conftest.er1 >conftest.err
37974   rm -f conftest.er1
37975   cat conftest.err >&5
37976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37977   (exit $ac_status); } && {
37978          test -z "$ac_c_werror_flag" ||
37979          test ! -s conftest.err
37980        } && test -s conftest.$ac_objext; then
37981   ac_cv_member_struct_msghdr_msg_control=yes
37982 else
37983   echo "$as_me: failed program was:" >&5
37984 sed 's/^/| /' conftest.$ac_ext >&5
37985
37986         ac_cv_member_struct_msghdr_msg_control=no
37987 fi
37988
37989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37990 fi
37991
37992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37993 fi
37994 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_msghdr_msg_control" >&5
37995 echo "${ECHO_T}$ac_cv_member_struct_msghdr_msg_control" >&6; }
37996 if test $ac_cv_member_struct_msghdr_msg_control = yes; then
37997
37998 cat >>confdefs.h <<_ACEOF
37999 #define HAVE_STRUCT_MSGHDR_MSG_CONTROL 1
38000 _ACEOF
38001
38002
38003 fi
38004
38005                 fi
38006                 { echo "$as_me:$LINENO: checking for struct stat.st_fstype" >&5
38007 echo $ECHO_N "checking for struct stat.st_fstype... $ECHO_C" >&6; }
38008 if test "${ac_cv_member_struct_stat_st_fstype+set}" = set; then
38009   echo $ECHO_N "(cached) $ECHO_C" >&6
38010 else
38011   cat >conftest.$ac_ext <<_ACEOF
38012 /* confdefs.h.  */
38013 _ACEOF
38014 cat confdefs.h >>conftest.$ac_ext
38015 cat >>conftest.$ac_ext <<_ACEOF
38016 /* end confdefs.h.  */
38017 $ac_includes_default
38018 int
38019 main ()
38020 {
38021 static struct stat ac_aggr;
38022 if (ac_aggr.st_fstype)
38023 return 0;
38024   ;
38025   return 0;
38026 }
38027 _ACEOF
38028 rm -f conftest.$ac_objext
38029 if { (ac_try="$ac_compile"
38030 case "(($ac_try" in
38031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38032   *) ac_try_echo=$ac_try;;
38033 esac
38034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38035   (eval "$ac_compile") 2>conftest.er1
38036   ac_status=$?
38037   grep -v '^ *+' conftest.er1 >conftest.err
38038   rm -f conftest.er1
38039   cat conftest.err >&5
38040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38041   (exit $ac_status); } && {
38042          test -z "$ac_c_werror_flag" ||
38043          test ! -s conftest.err
38044        } && test -s conftest.$ac_objext; then
38045   ac_cv_member_struct_stat_st_fstype=yes
38046 else
38047   echo "$as_me: failed program was:" >&5
38048 sed 's/^/| /' conftest.$ac_ext >&5
38049
38050         cat >conftest.$ac_ext <<_ACEOF
38051 /* confdefs.h.  */
38052 _ACEOF
38053 cat confdefs.h >>conftest.$ac_ext
38054 cat >>conftest.$ac_ext <<_ACEOF
38055 /* end confdefs.h.  */
38056 $ac_includes_default
38057 int
38058 main ()
38059 {
38060 static struct stat ac_aggr;
38061 if (sizeof ac_aggr.st_fstype)
38062 return 0;
38063   ;
38064   return 0;
38065 }
38066 _ACEOF
38067 rm -f conftest.$ac_objext
38068 if { (ac_try="$ac_compile"
38069 case "(($ac_try" in
38070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38071   *) ac_try_echo=$ac_try;;
38072 esac
38073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38074   (eval "$ac_compile") 2>conftest.er1
38075   ac_status=$?
38076   grep -v '^ *+' conftest.er1 >conftest.err
38077   rm -f conftest.er1
38078   cat conftest.err >&5
38079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38080   (exit $ac_status); } && {
38081          test -z "$ac_c_werror_flag" ||
38082          test ! -s conftest.err
38083        } && test -s conftest.$ac_objext; then
38084   ac_cv_member_struct_stat_st_fstype=yes
38085 else
38086   echo "$as_me: failed program was:" >&5
38087 sed 's/^/| /' conftest.$ac_ext >&5
38088
38089         ac_cv_member_struct_stat_st_fstype=no
38090 fi
38091
38092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38093 fi
38094
38095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38096 fi
38097 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_fstype" >&5
38098 echo "${ECHO_T}$ac_cv_member_struct_stat_st_fstype" >&6; }
38099 if test $ac_cv_member_struct_stat_st_fstype = yes; then
38100
38101 cat >>confdefs.h <<_ACEOF
38102 #define HAVE_STRUCT_STAT_ST_FSTYPE 1
38103 _ACEOF
38104
38105
38106 fi
38107 { echo "$as_me:$LINENO: checking for struct stat.st_vfstype" >&5
38108 echo $ECHO_N "checking for struct stat.st_vfstype... $ECHO_C" >&6; }
38109 if test "${ac_cv_member_struct_stat_st_vfstype+set}" = set; then
38110   echo $ECHO_N "(cached) $ECHO_C" >&6
38111 else
38112   cat >conftest.$ac_ext <<_ACEOF
38113 /* confdefs.h.  */
38114 _ACEOF
38115 cat confdefs.h >>conftest.$ac_ext
38116 cat >>conftest.$ac_ext <<_ACEOF
38117 /* end confdefs.h.  */
38118 $ac_includes_default
38119 int
38120 main ()
38121 {
38122 static struct stat ac_aggr;
38123 if (ac_aggr.st_vfstype)
38124 return 0;
38125   ;
38126   return 0;
38127 }
38128 _ACEOF
38129 rm -f conftest.$ac_objext
38130 if { (ac_try="$ac_compile"
38131 case "(($ac_try" in
38132   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38133   *) ac_try_echo=$ac_try;;
38134 esac
38135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38136   (eval "$ac_compile") 2>conftest.er1
38137   ac_status=$?
38138   grep -v '^ *+' conftest.er1 >conftest.err
38139   rm -f conftest.er1
38140   cat conftest.err >&5
38141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38142   (exit $ac_status); } && {
38143          test -z "$ac_c_werror_flag" ||
38144          test ! -s conftest.err
38145        } && test -s conftest.$ac_objext; then
38146   ac_cv_member_struct_stat_st_vfstype=yes
38147 else
38148   echo "$as_me: failed program was:" >&5
38149 sed 's/^/| /' conftest.$ac_ext >&5
38150
38151         cat >conftest.$ac_ext <<_ACEOF
38152 /* confdefs.h.  */
38153 _ACEOF
38154 cat confdefs.h >>conftest.$ac_ext
38155 cat >>conftest.$ac_ext <<_ACEOF
38156 /* end confdefs.h.  */
38157 $ac_includes_default
38158 int
38159 main ()
38160 {
38161 static struct stat ac_aggr;
38162 if (sizeof ac_aggr.st_vfstype)
38163 return 0;
38164   ;
38165   return 0;
38166 }
38167 _ACEOF
38168 rm -f conftest.$ac_objext
38169 if { (ac_try="$ac_compile"
38170 case "(($ac_try" in
38171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38172   *) ac_try_echo=$ac_try;;
38173 esac
38174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38175   (eval "$ac_compile") 2>conftest.er1
38176   ac_status=$?
38177   grep -v '^ *+' conftest.er1 >conftest.err
38178   rm -f conftest.er1
38179   cat conftest.err >&5
38180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181   (exit $ac_status); } && {
38182          test -z "$ac_c_werror_flag" ||
38183          test ! -s conftest.err
38184        } && test -s conftest.$ac_objext; then
38185   ac_cv_member_struct_stat_st_vfstype=yes
38186 else
38187   echo "$as_me: failed program was:" >&5
38188 sed 's/^/| /' conftest.$ac_ext >&5
38189
38190         ac_cv_member_struct_stat_st_vfstype=no
38191 fi
38192
38193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38194 fi
38195
38196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38197 fi
38198 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_vfstype" >&5
38199 echo "${ECHO_T}$ac_cv_member_struct_stat_st_vfstype" >&6; }
38200 if test $ac_cv_member_struct_stat_st_vfstype = yes; then
38201
38202 cat >>confdefs.h <<_ACEOF
38203 #define HAVE_STRUCT_STAT_ST_VFSTYPE 1
38204 _ACEOF
38205
38206
38207 fi
38208
38209                 if test "$ac_cv_member_struct_stat_st_fstype" = yes; then
38210                         cat >conftest.$ac_ext <<_ACEOF
38211 struct stat st; char *ptr=st.st_fstype;
38212 _ACEOF
38213 rm -f conftest.$ac_objext
38214 if { (ac_try="$ac_compile"
38215 case "(($ac_try" in
38216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38217   *) ac_try_echo=$ac_try;;
38218 esac
38219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38220   (eval "$ac_compile") 2>conftest.er1
38221   ac_status=$?
38222   grep -v '^ *+' conftest.er1 >conftest.err
38223   rm -f conftest.er1
38224   cat conftest.err >&5
38225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38226   (exit $ac_status); } && {
38227          test -z "$ac_c_werror_flag" ||
38228          test ! -s conftest.err
38229        } && test -s conftest.$ac_objext; then
38230
38231 cat >>confdefs.h <<\_ACEOF
38232 #define HAVE_STRUCT_STAT_ST_FSTYPE_CHAR 1
38233 _ACEOF
38234
38235 else
38236   echo "$as_me: failed program was:" >&5
38237 sed 's/^/| /' conftest.$ac_ext >&5
38238
38239
38240 cat >>confdefs.h <<\_ACEOF
38241 #define HAVE_STRUCT_STAT_ST_FSTYPE_INT 1
38242 _ACEOF
38243
38244 fi
38245
38246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38247                 fi
38248         fi
38249         LIBSRCS="$LIBSRCS getpeereid.c"
38250 fi
38251
38252 if test "$ac_cv_func_snprintf" != yes ||
38253    test "$ac_cv_func_vsnprintf" != yes; then
38254         if test "$ac_cv_func_snprintf" != yes; then
38255
38256 cat >>confdefs.h <<\_ACEOF
38257 #define snprintf ber_pvt_snprintf
38258 _ACEOF
38259
38260         fi
38261         if test "$ac_cv_func_vsnprintf" != yes; then
38262
38263 cat >>confdefs.h <<\_ACEOF
38264 #define vsnprintf ber_pvt_vsnprintf
38265 _ACEOF
38266
38267         fi
38268 fi
38269
38270
38271 if test "$ol_enable_slapi" != no ; then
38272
38273 for ac_header in ltdl.h
38274 do
38275 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38277   { echo "$as_me:$LINENO: checking for $ac_header" >&5
38278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38280   echo $ECHO_N "(cached) $ECHO_C" >&6
38281 fi
38282 ac_res=`eval echo '${'$as_ac_Header'}'`
38283                { echo "$as_me:$LINENO: result: $ac_res" >&5
38284 echo "${ECHO_T}$ac_res" >&6; }
38285 else
38286   # Is the header compilable?
38287 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
38288 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
38289 cat >conftest.$ac_ext <<_ACEOF
38290 /* confdefs.h.  */
38291 _ACEOF
38292 cat confdefs.h >>conftest.$ac_ext
38293 cat >>conftest.$ac_ext <<_ACEOF
38294 /* end confdefs.h.  */
38295 $ac_includes_default
38296 #include <$ac_header>
38297 _ACEOF
38298 rm -f conftest.$ac_objext
38299 if { (ac_try="$ac_compile"
38300 case "(($ac_try" in
38301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38302   *) ac_try_echo=$ac_try;;
38303 esac
38304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38305   (eval "$ac_compile") 2>conftest.er1
38306   ac_status=$?
38307   grep -v '^ *+' conftest.er1 >conftest.err
38308   rm -f conftest.er1
38309   cat conftest.err >&5
38310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38311   (exit $ac_status); } && {
38312          test -z "$ac_c_werror_flag" ||
38313          test ! -s conftest.err
38314        } && test -s conftest.$ac_objext; then
38315   ac_header_compiler=yes
38316 else
38317   echo "$as_me: failed program was:" >&5
38318 sed 's/^/| /' conftest.$ac_ext >&5
38319
38320         ac_header_compiler=no
38321 fi
38322
38323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
38325 echo "${ECHO_T}$ac_header_compiler" >&6; }
38326
38327 # Is the header present?
38328 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
38329 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
38330 cat >conftest.$ac_ext <<_ACEOF
38331 /* confdefs.h.  */
38332 _ACEOF
38333 cat confdefs.h >>conftest.$ac_ext
38334 cat >>conftest.$ac_ext <<_ACEOF
38335 /* end confdefs.h.  */
38336 #include <$ac_header>
38337 _ACEOF
38338 if { (ac_try="$ac_cpp conftest.$ac_ext"
38339 case "(($ac_try" in
38340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38341   *) ac_try_echo=$ac_try;;
38342 esac
38343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38344   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
38345   ac_status=$?
38346   grep -v '^ *+' conftest.er1 >conftest.err
38347   rm -f conftest.er1
38348   cat conftest.err >&5
38349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38350   (exit $ac_status); } >/dev/null && {
38351          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
38352          test ! -s conftest.err
38353        }; then
38354   ac_header_preproc=yes
38355 else
38356   echo "$as_me: failed program was:" >&5
38357 sed 's/^/| /' conftest.$ac_ext >&5
38358
38359   ac_header_preproc=no
38360 fi
38361
38362 rm -f conftest.err conftest.$ac_ext
38363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
38364 echo "${ECHO_T}$ac_header_preproc" >&6; }
38365
38366 # So?  What about this header?
38367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
38368   yes:no: )
38369     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
38370 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
38371     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
38372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
38373     ac_header_preproc=yes
38374     ;;
38375   no:yes:* )
38376     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
38377 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
38378     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
38379 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
38380     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
38381 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
38382     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
38383 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
38384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
38385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
38386     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
38387 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
38388     ( cat <<\_ASBOX
38389 ## --------------------------------------------- ##
38390 ## Report this to <http://www.openldap.org/its/> ##
38391 ## --------------------------------------------- ##
38392 _ASBOX
38393      ) | sed "s/^/$as_me: WARNING:     /" >&2
38394     ;;
38395 esac
38396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38398 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38399   echo $ECHO_N "(cached) $ECHO_C" >&6
38400 else
38401   eval "$as_ac_Header=\$ac_header_preproc"
38402 fi
38403 ac_res=`eval echo '${'$as_ac_Header'}'`
38404                { echo "$as_me:$LINENO: result: $ac_res" >&5
38405 echo "${ECHO_T}$ac_res" >&6; }
38406
38407 fi
38408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38409   cat >>confdefs.h <<_ACEOF
38410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38411 _ACEOF
38412
38413 fi
38414
38415 done
38416
38417
38418         if test $ac_cv_header_ltdl_h != yes ; then
38419                 { { echo "$as_me:$LINENO: error: could not locate <ltdl.h>" >&5
38420 echo "$as_me: error: could not locate <ltdl.h>" >&2;}
38421    { (exit 1); exit 1; }; }
38422         fi
38423         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
38424 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
38425 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
38426   echo $ECHO_N "(cached) $ECHO_C" >&6
38427 else
38428   ac_check_lib_save_LIBS=$LIBS
38429 LIBS="-lltdl  $LIBS"
38430 cat >conftest.$ac_ext <<_ACEOF
38431 /* confdefs.h.  */
38432 _ACEOF
38433 cat confdefs.h >>conftest.$ac_ext
38434 cat >>conftest.$ac_ext <<_ACEOF
38435 /* end confdefs.h.  */
38436
38437 /* Override any GCC internal prototype to avoid an error.
38438    Use char because int might match the return type of a GCC
38439    builtin and then its argument prototype would still apply.  */
38440 #ifdef __cplusplus
38441 extern "C"
38442 #endif
38443 char lt_dlinit ();
38444 int
38445 main ()
38446 {
38447 return lt_dlinit ();
38448   ;
38449   return 0;
38450 }
38451 _ACEOF
38452 rm -f conftest.$ac_objext conftest$ac_exeext
38453 if { (ac_try="$ac_link"
38454 case "(($ac_try" in
38455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38456   *) ac_try_echo=$ac_try;;
38457 esac
38458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38459   (eval "$ac_link") 2>conftest.er1
38460   ac_status=$?
38461   grep -v '^ *+' conftest.er1 >conftest.err
38462   rm -f conftest.er1
38463   cat conftest.err >&5
38464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38465   (exit $ac_status); } && {
38466          test -z "$ac_c_werror_flag" ||
38467          test ! -s conftest.err
38468        } && test -s conftest$ac_exeext &&
38469        $as_test_x conftest$ac_exeext; then
38470   ac_cv_lib_ltdl_lt_dlinit=yes
38471 else
38472   echo "$as_me: failed program was:" >&5
38473 sed 's/^/| /' conftest.$ac_ext >&5
38474
38475         ac_cv_lib_ltdl_lt_dlinit=no
38476 fi
38477
38478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38479       conftest$ac_exeext conftest.$ac_ext
38480 LIBS=$ac_check_lib_save_LIBS
38481 fi
38482 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
38483 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
38484 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
38485
38486                 SLAPI_LIBS=-lltdl
38487                 LIBSLAPI=libslapi.a
38488                 LIBSLAPITOOLS=../libslapi.a
38489
38490 cat >>confdefs.h <<\_ACEOF
38491 #define HAVE_LIBLTDL 1
38492 _ACEOF
38493
38494
38495 else
38496   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38497 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38498    { (exit 1); exit 1; }; }
38499 fi
38500
38501
38502
38503 cat >>confdefs.h <<\_ACEOF
38504 #define LDAP_SLAPI 1
38505 _ACEOF
38506
38507 fi
38508
38509 if test "$ol_enable_debug" != no ; then
38510         if test "$ol_enable_debug" = traditional; then
38511
38512 cat >>confdefs.h <<\_ACEOF
38513 #define OLD_DEBUG 1
38514 _ACEOF
38515
38516         fi
38517
38518 cat >>confdefs.h <<\_ACEOF
38519 #define LDAP_DEBUG 1
38520 _ACEOF
38521
38522 fi
38523 if test "$ol_enable_syslog" = yes ; then
38524
38525 cat >>confdefs.h <<\_ACEOF
38526 #define LDAP_SYSLOG 1
38527 _ACEOF
38528
38529 fi
38530 if test "$ol_enable_proctitle" != no ; then
38531
38532 cat >>confdefs.h <<\_ACEOF
38533 #define LDAP_PROCTITLE 1
38534 _ACEOF
38535
38536 fi
38537 if test "$ol_enable_referrals" != no ; then
38538
38539 cat >>confdefs.h <<\_ACEOF
38540 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38541 _ACEOF
38542
38543 fi
38544 if test "$ol_enable_local" != no; then
38545
38546 cat >>confdefs.h <<\_ACEOF
38547 #define LDAP_PF_LOCAL 1
38548 _ACEOF
38549
38550 fi
38551 if test "$ol_link_ipv6" != no; then
38552
38553 cat >>confdefs.h <<\_ACEOF
38554 #define LDAP_PF_INET6 1
38555 _ACEOF
38556
38557 fi
38558 if test "$ol_enable_cleartext" != no ; then
38559
38560 cat >>confdefs.h <<\_ACEOF
38561 #define SLAPD_CLEARTEXT 1
38562 _ACEOF
38563
38564 fi
38565 if test "$ol_enable_crypt" != no ; then
38566
38567 cat >>confdefs.h <<\_ACEOF
38568 #define SLAPD_CRYPT 1
38569 _ACEOF
38570
38571 fi
38572 if test "$ol_link_spasswd" != no ; then
38573
38574 cat >>confdefs.h <<\_ACEOF
38575 #define SLAPD_SPASSWD 1
38576 _ACEOF
38577
38578 fi
38579 if test "$ol_enable_rlookups" != no ; then
38580
38581 cat >>confdefs.h <<\_ACEOF
38582 #define SLAPD_RLOOKUPS 1
38583 _ACEOF
38584
38585 fi
38586 if test "$ol_enable_aci" != no ; then
38587         if test $ol_enable_dynacl = no ; then
38588                 ol_enable_dynacl=yes
38589                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38590 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38591         fi
38592         if test "$ol_enable_aci" = mod ; then
38593                 MFLAG=SLAPD_MOD_DYNAMIC
38594                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38595 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38596    { (exit 1); exit 1; }; }
38597         else
38598                 MFLAG=SLAPD_MOD_STATIC
38599         fi
38600         WITH_ACI_ENABLED=$ol_enable_aci
38601
38602 cat >>confdefs.h <<_ACEOF
38603 #define SLAPD_ACI_ENABLED $MFLAG
38604 _ACEOF
38605
38606 else
38607         WITH_ACI_ENABLED=no
38608 fi
38609 if test "$ol_enable_dynacl" != no ; then
38610
38611 cat >>confdefs.h <<\_ACEOF
38612 #define SLAP_DYNACL 1
38613 _ACEOF
38614
38615 fi
38616
38617 if test "$ol_link_modules" != no ; then
38618
38619 cat >>confdefs.h <<\_ACEOF
38620 #define SLAPD_MODULES 1
38621 _ACEOF
38622
38623         BUILD_SLAPD=yes
38624         SLAPD_MODULES_LDFLAGS="-dlopen self"
38625 fi
38626
38627
38628 cat >>confdefs.h <<\_ACEOF
38629 #define SLAPD_MOD_STATIC 1
38630 _ACEOF
38631
38632
38633 cat >>confdefs.h <<\_ACEOF
38634 #define SLAPD_MOD_DYNAMIC 2
38635 _ACEOF
38636
38637
38638 if test "$ol_enable_monitor" != no ; then
38639         BUILD_SLAPD=yes
38640         BUILD_MONITOR=$ol_enable_monitor
38641         if test "$ol_enable_monitor" = mod ; then
38642                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38643                 MFLAG=SLAPD_MOD_DYNAMIC
38644         else
38645                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38646                 MFLAG=SLAPD_MOD_STATIC
38647         fi
38648
38649 cat >>confdefs.h <<_ACEOF
38650 #define SLAPD_MONITOR $MFLAG
38651 _ACEOF
38652
38653 fi
38654
38655 if test "$ol_enable_bdb" != no ; then
38656         BUILD_SLAPD=yes
38657         BUILD_BDB=$ol_enable_bdb
38658         if test "$ol_enable_bdb" = mod ; then
38659                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38660                 MFLAG=SLAPD_MOD_DYNAMIC
38661         else
38662                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38663                 MFLAG=SLAPD_MOD_STATIC
38664         fi
38665
38666 cat >>confdefs.h <<_ACEOF
38667 #define SLAPD_BDB $MFLAG
38668 _ACEOF
38669
38670 fi
38671
38672 if test "$ol_enable_dnssrv" != no ; then
38673         BUILD_SLAPD=yes
38674         BUILD_DNSSRV=$ol_enable_dnssrv
38675         if test "$ol_enable_dnssrv" = mod ; then
38676                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38677                 MFLAG=SLAPD_MOD_DYNAMIC
38678         else
38679                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38680                 MFLAG=SLAPD_MOD_STATIC
38681         fi
38682
38683 cat >>confdefs.h <<_ACEOF
38684 #define SLAPD_DNSSRV $MFLAG
38685 _ACEOF
38686
38687 fi
38688
38689 if test "$ol_enable_hdb" != no ; then
38690         BUILD_SLAPD=yes
38691         BUILD_HDB=$ol_enable_hdb
38692         if test "$ol_enable_hdb" = mod ; then
38693                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38694                 MFLAG=SLAPD_MOD_DYNAMIC
38695         else
38696                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38697                 MFLAG=SLAPD_MOD_STATIC
38698         fi
38699
38700 cat >>confdefs.h <<_ACEOF
38701 #define SLAPD_HDB $MFLAG
38702 _ACEOF
38703
38704 fi
38705
38706 if test "$ol_enable_ldap" != no ; then
38707         BUILD_SLAPD=yes
38708         BUILD_LDAP=$ol_enable_ldap
38709         if test "$ol_enable_ldap" = mod ; then
38710                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38711                 MFLAG=SLAPD_MOD_DYNAMIC
38712         else
38713                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38714                 MFLAG=SLAPD_MOD_STATIC
38715         fi
38716
38717 cat >>confdefs.h <<_ACEOF
38718 #define SLAPD_LDAP $MFLAG
38719 _ACEOF
38720
38721 fi
38722
38723 if test "$ol_enable_meta" != no ; then
38724         BUILD_SLAPD=yes
38725         BUILD_META=$ol_enable_meta
38726         BUILD_REWRITE=yes
38727         if test "$ol_enable_meta" = mod ; then
38728                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38729                 MFLAG=SLAPD_MOD_DYNAMIC
38730         else
38731                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38732                 MFLAG=SLAPD_MOD_STATIC
38733         fi
38734
38735 cat >>confdefs.h <<_ACEOF
38736 #define SLAPD_META $MFLAG
38737 _ACEOF
38738
38739 fi
38740
38741 if test "$ol_enable_ndb" != no ; then
38742         BUILD_SLAPD=yes
38743         BUILD_NDB=$ol_enable_ndb
38744         if test "$ol_enable_ndb" = mod ; then
38745                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38746                 MFLAG=SLAPD_MOD_DYNAMIC
38747         else
38748                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38749                 MFLAG=SLAPD_MOD_STATIC
38750         fi
38751
38752 cat >>confdefs.h <<_ACEOF
38753 #define SLAPD_NDB $MFLAG
38754 _ACEOF
38755
38756 fi
38757
38758 if test "$ol_enable_null" != no ; then
38759         BUILD_SLAPD=yes
38760         BUILD_NULL=$ol_enable_null
38761         if test "$ol_enable_null" = mod ; then
38762                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38763                 MFLAG=SLAPD_MOD_DYNAMIC
38764         else
38765                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38766                 MFLAG=SLAPD_MOD_STATIC
38767         fi
38768
38769 cat >>confdefs.h <<_ACEOF
38770 #define SLAPD_NULL $MFLAG
38771 _ACEOF
38772
38773 fi
38774
38775 if test "$ol_enable_passwd" != no ; then
38776         BUILD_SLAPD=yes
38777         BUILD_PASSWD=$ol_enable_passwd
38778         if test "$ol_enable_passwd" = mod ; then
38779                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38780                 MFLAG=SLAPD_MOD_DYNAMIC
38781         else
38782                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38783                 MFLAG=SLAPD_MOD_STATIC
38784         fi
38785
38786 cat >>confdefs.h <<_ACEOF
38787 #define SLAPD_PASSWD $MFLAG
38788 _ACEOF
38789
38790 fi
38791
38792 if test "$ol_link_perl" != no ; then
38793         BUILD_SLAPD=yes
38794         BUILD_PERL=$ol_enable_perl
38795         if test "$ol_enable_perl" = mod ; then
38796                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38797                 MFLAG=SLAPD_MOD_DYNAMIC
38798         else
38799                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38800                 MFLAG=SLAPD_MOD_STATIC
38801         fi
38802
38803 cat >>confdefs.h <<_ACEOF
38804 #define SLAPD_PERL $MFLAG
38805 _ACEOF
38806
38807 fi
38808
38809 if test "$ol_enable_relay" != no ; then
38810         BUILD_SLAPD=yes
38811         BUILD_RELAY=$ol_enable_relay
38812         if test "$ol_enable_relay" = mod ; then
38813                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38814                 MFLAG=SLAPD_MOD_DYNAMIC
38815         else
38816                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38817                 MFLAG=SLAPD_MOD_STATIC
38818         fi
38819
38820 cat >>confdefs.h <<_ACEOF
38821 #define SLAPD_RELAY $MFLAG
38822 _ACEOF
38823
38824 fi
38825
38826 if test "$ol_enable_shell" != no ; then
38827         if test "$ol_link_threads" != no ; then
38828                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38829 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38830         fi
38831         BUILD_SLAPD=yes
38832         BUILD_SHELL=$ol_enable_shell
38833         if test "$ol_enable_shell" = mod ; then
38834                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38835                 MFLAG=SLAPD_MOD_DYNAMIC
38836         else
38837                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38838                 MFLAG=SLAPD_MOD_STATIC
38839         fi
38840
38841 cat >>confdefs.h <<_ACEOF
38842 #define SLAPD_SHELL $MFLAG
38843 _ACEOF
38844
38845 fi
38846
38847 if test "$ol_enable_sock" != no ; then
38848         BUILD_SLAPD=yes
38849         BUILD_SOCK=$ol_enable_sock
38850         if test "$ol_enable_sock" = mod ; then
38851                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38852                 MFLAG=SLAPD_MOD_DYNAMIC
38853         else
38854                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38855                 MFLAG=SLAPD_MOD_STATIC
38856         fi
38857
38858 cat >>confdefs.h <<_ACEOF
38859 #define SLAPD_SOCK $MFLAG
38860 _ACEOF
38861
38862 fi
38863
38864 if test "$ol_link_sql" != no ; then
38865         BUILD_SLAPD=yes
38866         BUILD_SQL=$ol_enable_sql
38867         if test "$ol_enable_sql" = mod; then
38868                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38869                 MFLAG=SLAPD_MOD_DYNAMIC
38870         else
38871                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38872                 MFLAG=SLAPD_MOD_STATIC
38873         fi
38874
38875 cat >>confdefs.h <<_ACEOF
38876 #define SLAPD_SQL $MFLAG
38877 _ACEOF
38878
38879 fi
38880
38881 if test "$ol_enable_accesslog" != no ; then
38882         BUILD_ACCESSLOG=$ol_enable_accesslog
38883         if test "$ol_enable_accesslog" = mod ; then
38884                 MFLAG=SLAPD_MOD_DYNAMIC
38885                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38886         else
38887                 MFLAG=SLAPD_MOD_STATIC
38888                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38889         fi
38890
38891 cat >>confdefs.h <<_ACEOF
38892 #define SLAPD_OVER_ACCESSLOG $MFLAG
38893 _ACEOF
38894
38895 fi
38896
38897 if test "$ol_enable_auditlog" != no ; then
38898         BUILD_AUDITLOG=$ol_enable_auditlog
38899         if test "$ol_enable_auditlog" = mod ; then
38900                 MFLAG=SLAPD_MOD_DYNAMIC
38901                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38902         else
38903                 MFLAG=SLAPD_MOD_STATIC
38904                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38905         fi
38906
38907 cat >>confdefs.h <<_ACEOF
38908 #define SLAPD_OVER_AUDITLOG $MFLAG
38909 _ACEOF
38910
38911 fi
38912
38913 if test "$ol_enable_collect" != no ; then
38914         BUILD_COLLECT=$ol_enable_collect
38915         if test "$ol_enable_collect" = mod ; then
38916                 MFLAG=SLAPD_MOD_DYNAMIC
38917                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38918         else
38919                 MFLAG=SLAPD_MOD_STATIC
38920                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38921         fi
38922
38923 cat >>confdefs.h <<_ACEOF
38924 #define SLAPD_OVER_COLLECT $MFLAG
38925 _ACEOF
38926
38927 fi
38928
38929 if test "$ol_enable_constraint" != no ; then
38930         BUILD_CONSTRAINT=$ol_enable_constraint
38931         if test "$ol_enable_constraint" = mod ; then
38932                 MFLAG=SLAPD_MOD_DYNAMIC
38933                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38934         else
38935                 MFLAG=SLAPD_MOD_STATIC
38936                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38937         fi
38938
38939 cat >>confdefs.h <<_ACEOF
38940 #define SLAPD_OVER_CONSTRAINT $MFLAG
38941 _ACEOF
38942
38943 fi
38944
38945 if test "$ol_enable_dds" != no ; then
38946         BUILD_DDS=$ol_enable_dds
38947         if test "$ol_enable_dds" = mod ; then
38948                 MFLAG=SLAPD_MOD_DYNAMIC
38949                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38950         else
38951                 MFLAG=SLAPD_MOD_STATIC
38952                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38953         fi
38954
38955 cat >>confdefs.h <<_ACEOF
38956 #define SLAPD_OVER_DDS $MFLAG
38957 _ACEOF
38958
38959 fi
38960
38961 if test "$ol_enable_deref" != no ; then
38962         BUILD_DDS=$ol_enable_deref
38963         if test "$ol_enable_deref" = mod ; then
38964                 MFLAG=SLAPD_MOD_DYNAMIC
38965                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38966         else
38967                 MFLAG=SLAPD_MOD_STATIC
38968                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38969         fi
38970
38971 cat >>confdefs.h <<_ACEOF
38972 #define SLAPD_OVER_DEREF $MFLAG
38973 _ACEOF
38974
38975 fi
38976
38977 if test "$ol_enable_dyngroup" != no ; then
38978         BUILD_DYNGROUP=$ol_enable_dyngroup
38979         if test "$ol_enable_dyngroup" = mod ; then
38980                 MFLAG=SLAPD_MOD_DYNAMIC
38981                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38982         else
38983                 MFLAG=SLAPD_MOD_STATIC
38984                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38985         fi
38986
38987 cat >>confdefs.h <<_ACEOF
38988 #define SLAPD_OVER_DYNGROUP $MFLAG
38989 _ACEOF
38990
38991 fi
38992
38993 if test "$ol_enable_dynlist" != no ; then
38994         BUILD_DYNLIST=$ol_enable_dynlist
38995         if test "$ol_enable_dynlist" = mod ; then
38996                 MFLAG=SLAPD_MOD_DYNAMIC
38997                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38998         else
38999                 MFLAG=SLAPD_MOD_STATIC
39000                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39001         fi
39002
39003 cat >>confdefs.h <<_ACEOF
39004 #define SLAPD_OVER_DYNLIST $MFLAG
39005 _ACEOF
39006
39007 fi
39008
39009 if test "$ol_enable_memberof" != no ; then
39010         BUILD_MEMBEROF=$ol_enable_memberof
39011         if test "$ol_enable_memberof" = mod ; then
39012                 MFLAG=SLAPD_MOD_DYNAMIC
39013                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39014         else
39015                 MFLAG=SLAPD_MOD_STATIC
39016                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39017         fi
39018
39019 cat >>confdefs.h <<_ACEOF
39020 #define SLAPD_OVER_MEMBEROF $MFLAG
39021 _ACEOF
39022
39023 fi
39024
39025 if test "$ol_enable_ppolicy" != no ; then
39026         BUILD_PPOLICY=$ol_enable_ppolicy
39027         if test "$ol_enable_ppolicy" = mod ; then
39028                 MFLAG=SLAPD_MOD_DYNAMIC
39029                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39030         else
39031                 MFLAG=SLAPD_MOD_STATIC
39032                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39033         fi
39034
39035 cat >>confdefs.h <<_ACEOF
39036 #define SLAPD_OVER_PPOLICY $MFLAG
39037 _ACEOF
39038
39039 fi
39040
39041 if test "$ol_enable_proxycache" != no ; then
39042         BUILD_PROXYCACHE=$ol_enable_proxycache
39043         if test "$ol_enable_proxycache" = mod ; then
39044                 MFLAG=SLAPD_MOD_DYNAMIC
39045                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39046         else
39047                 MFLAG=SLAPD_MOD_STATIC
39048                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39049         fi
39050
39051 cat >>confdefs.h <<_ACEOF
39052 #define SLAPD_OVER_PROXYCACHE $MFLAG
39053 _ACEOF
39054
39055 fi
39056
39057 if test "$ol_enable_refint" != no ; then
39058         BUILD_REFINT=$ol_enable_refint
39059         if test "$ol_enable_refint" = mod ; then
39060                 MFLAG=SLAPD_MOD_DYNAMIC
39061                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39062         else
39063                 MFLAG=SLAPD_MOD_STATIC
39064                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39065         fi
39066
39067 cat >>confdefs.h <<_ACEOF
39068 #define SLAPD_OVER_REFINT $MFLAG
39069 _ACEOF
39070
39071 fi
39072
39073 if test "$ol_enable_retcode" != no ; then
39074         BUILD_RETCODE=$ol_enable_retcode
39075         if test "$ol_enable_retcode" = mod ; then
39076                 MFLAG=SLAPD_MOD_DYNAMIC
39077                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39078         else
39079                 MFLAG=SLAPD_MOD_STATIC
39080                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39081         fi
39082
39083 cat >>confdefs.h <<_ACEOF
39084 #define SLAPD_OVER_RETCODE $MFLAG
39085 _ACEOF
39086
39087 fi
39088
39089 if test "$ol_enable_rwm" != no ; then
39090         BUILD_REWRITE=yes
39091         BUILD_RWM=$ol_enable_rwm
39092         if test "$ol_enable_rwm" = mod ; then
39093                 MFLAG=SLAPD_MOD_DYNAMIC
39094                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39095         else
39096                 MFLAG=SLAPD_MOD_STATIC
39097                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39098         fi
39099
39100 cat >>confdefs.h <<_ACEOF
39101 #define SLAPD_OVER_RWM $MFLAG
39102 _ACEOF
39103
39104 fi
39105
39106 if test "$ol_enable_seqmod" != no ; then
39107         BUILD_SEQMOD=$ol_enable_seqmod
39108         if test "$ol_enable_seqmod" = mod ; then
39109                 MFLAG=SLAPD_MOD_DYNAMIC
39110                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39111         else
39112                 MFLAG=SLAPD_MOD_STATIC
39113                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39114         fi
39115
39116 cat >>confdefs.h <<_ACEOF
39117 #define SLAPD_OVER_SEQMOD $MFLAG
39118 _ACEOF
39119
39120 fi
39121
39122 if test "$ol_enable_syncprov" != no ; then
39123         BUILD_SYNCPROV=$ol_enable_syncprov
39124         if test "$ol_enable_syncprov" = mod ; then
39125                 MFLAG=SLAPD_MOD_DYNAMIC
39126                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39127         else
39128                 MFLAG=SLAPD_MOD_STATIC
39129                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39130         fi
39131
39132 cat >>confdefs.h <<_ACEOF
39133 #define SLAPD_OVER_SYNCPROV $MFLAG
39134 _ACEOF
39135
39136 fi
39137
39138 if test "$ol_enable_translucent" != no ; then
39139         BUILD_TRANSLUCENT=$ol_enable_translucent
39140         if test "$ol_enable_translucent" = mod ; then
39141                 MFLAG=SLAPD_MOD_DYNAMIC
39142                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39143         else
39144                 MFLAG=SLAPD_MOD_STATIC
39145                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39146         fi
39147
39148 cat >>confdefs.h <<_ACEOF
39149 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39150 _ACEOF
39151
39152 fi
39153
39154 if test "$ol_enable_unique" != no ; then
39155         BUILD_UNIQUE=$ol_enable_unique
39156         if test "$ol_enable_unique" = mod ; then
39157                 MFLAG=SLAPD_MOD_DYNAMIC
39158                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39159         else
39160                 MFLAG=SLAPD_MOD_STATIC
39161                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39162         fi
39163
39164 cat >>confdefs.h <<_ACEOF
39165 #define SLAPD_OVER_UNIQUE $MFLAG
39166 _ACEOF
39167
39168 fi
39169
39170 if test "$ol_enable_valsort" != no ; then
39171         BUILD_VALSORT=$ol_enable_valsort
39172         if test "$ol_enable_valsort" = mod ; then
39173                 MFLAG=SLAPD_MOD_DYNAMIC
39174                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39175         else
39176                 MFLAG=SLAPD_MOD_STATIC
39177                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39178         fi
39179
39180 cat >>confdefs.h <<_ACEOF
39181 #define SLAPD_OVER_VALSORT $MFLAG
39182 _ACEOF
39183
39184 fi
39185
39186 if test "$ol_enable_rewrite" != no ; then
39187
39188 cat >>confdefs.h <<\_ACEOF
39189 #define ENABLE_REWRITE 1
39190 _ACEOF
39191
39192         BUILD_REWRITE=yes
39193 fi
39194
39195 if test "$ol_enable_slapi" != no ; then
39196
39197 cat >>confdefs.h <<\_ACEOF
39198 #define ENABLE_SLAPI 1
39199 _ACEOF
39200
39201         BUILD_SLAPI=yes
39202         SLAPD_SLAPI_DEPEND=libslapi.a
39203 fi
39204
39205
39206
39207 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39208         PLAT=NT
39209         SLAPD_MODULES_LDFLAGS=
39210 else
39211         PLAT=UNIX
39212 fi
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224
39225
39226
39227
39228
39229
39230
39231
39232
39233
39234
39235
39236
39237
39238
39239
39240
39241
39242
39243
39244
39245
39246
39247
39248
39249
39250
39251
39252
39253
39254
39255
39256
39257
39258
39259
39260
39261
39262
39263
39264
39265
39266
39267
39268
39269
39270
39271
39272
39273
39274
39275
39276
39277
39278
39279
39280
39281
39282
39283
39284
39285
39286
39287
39288
39289
39290
39291
39292
39293
39294
39295
39296
39297
39298
39299
39300
39301
39302
39303 # Check whether --with-xxinstall was given.
39304 if test "${with_xxinstall+set}" = set; then
39305   withval=$with_xxinstall;
39306 fi
39307
39308
39309
39310 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"
39311
39312
39313 ac_config_commands="$ac_config_commands default"
39314
39315
39316
39317 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39318 # Let make expand exec_prefix.
39319 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39320
39321 DEFS=-DHAVE_CONFIG_H
39322
39323 ac_libobjs=
39324 ac_ltlibobjs=
39325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39326   # 1. Remove the extension, and $U if already installed.
39327   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39328   ac_i=`echo "$ac_i" | sed "$ac_script"`
39329   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39330   #    will be set to the directory where LIBOBJS objects are built.
39331   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39332   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39333 done
39334 LIBOBJS=$ac_libobjs
39335
39336 LTLIBOBJS=$ac_ltlibobjs
39337
39338
39339 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39340   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39341 Usually this means the macro was only invoked conditionally." >&5
39342 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39343 Usually this means the macro was only invoked conditionally." >&2;}
39344    { (exit 1); exit 1; }; }
39345 fi
39346 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39347   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39348 Usually this means the macro was only invoked conditionally." >&5
39349 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39350 Usually this means the macro was only invoked conditionally." >&2;}
39351    { (exit 1); exit 1; }; }
39352 fi
39353 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39354   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39355 Usually this means the macro was only invoked conditionally." >&5
39356 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39357 Usually this means the macro was only invoked conditionally." >&2;}
39358    { (exit 1); exit 1; }; }
39359 fi
39360
39361 : ${CONFIG_STATUS=./config.status}
39362 ac_clean_files_save=$ac_clean_files
39363 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39364 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39365 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39366 cat >$CONFIG_STATUS <<_ACEOF
39367 #! $SHELL
39368 # Generated by $as_me.
39369 # Run this file to recreate the current configuration.
39370 # Compiler output produced by configure, useful for debugging
39371 # configure, is in config.log if it exists.
39372
39373 debug=false
39374 ac_cs_recheck=false
39375 ac_cs_silent=false
39376 SHELL=\${CONFIG_SHELL-$SHELL}
39377 _ACEOF
39378
39379 cat >>$CONFIG_STATUS <<\_ACEOF
39380 ## --------------------- ##
39381 ## M4sh Initialization.  ##
39382 ## --------------------- ##
39383
39384 # Be more Bourne compatible
39385 DUALCASE=1; export DUALCASE # for MKS sh
39386 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39387   emulate sh
39388   NULLCMD=:
39389   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39390   # is contrary to our usage.  Disable this feature.
39391   alias -g '${1+"$@"}'='"$@"'
39392   setopt NO_GLOB_SUBST
39393 else
39394   case `(set -o) 2>/dev/null` in
39395   *posix*) set -o posix ;;
39396 esac
39397
39398 fi
39399
39400
39401
39402
39403 # PATH needs CR
39404 # Avoid depending upon Character Ranges.
39405 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39406 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39407 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39408 as_cr_digits='0123456789'
39409 as_cr_alnum=$as_cr_Letters$as_cr_digits
39410
39411 # The user is always right.
39412 if test "${PATH_SEPARATOR+set}" != set; then
39413   echo "#! /bin/sh" >conf$$.sh
39414   echo  "exit 0"   >>conf$$.sh
39415   chmod +x conf$$.sh
39416   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39417     PATH_SEPARATOR=';'
39418   else
39419     PATH_SEPARATOR=:
39420   fi
39421   rm -f conf$$.sh
39422 fi
39423
39424 # Support unset when possible.
39425 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39426   as_unset=unset
39427 else
39428   as_unset=false
39429 fi
39430
39431
39432 # IFS
39433 # We need space, tab and new line, in precisely that order.  Quoting is
39434 # there to prevent editors from complaining about space-tab.
39435 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39436 # splitting by setting IFS to empty value.)
39437 as_nl='
39438 '
39439 IFS=" ""        $as_nl"
39440
39441 # Find who we are.  Look in the path if we contain no directory separator.
39442 case $0 in
39443   *[\\/]* ) as_myself=$0 ;;
39444   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39445 for as_dir in $PATH
39446 do
39447   IFS=$as_save_IFS
39448   test -z "$as_dir" && as_dir=.
39449   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39450 done
39451 IFS=$as_save_IFS
39452
39453      ;;
39454 esac
39455 # We did not find ourselves, most probably we were run as `sh COMMAND'
39456 # in which case we are not to be found in the path.
39457 if test "x$as_myself" = x; then
39458   as_myself=$0
39459 fi
39460 if test ! -f "$as_myself"; then
39461   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39462   { (exit 1); exit 1; }
39463 fi
39464
39465 # Work around bugs in pre-3.0 UWIN ksh.
39466 for as_var in ENV MAIL MAILPATH
39467 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39468 done
39469 PS1='$ '
39470 PS2='> '
39471 PS4='+ '
39472
39473 # NLS nuisances.
39474 for as_var in \
39475   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39476   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39477   LC_TELEPHONE LC_TIME
39478 do
39479   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39480     eval $as_var=C; export $as_var
39481   else
39482     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39483   fi
39484 done
39485
39486 # Required to use basename.
39487 if expr a : '\(a\)' >/dev/null 2>&1 &&
39488    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39489   as_expr=expr
39490 else
39491   as_expr=false
39492 fi
39493
39494 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39495   as_basename=basename
39496 else
39497   as_basename=false
39498 fi
39499
39500
39501 # Name of the executable.
39502 as_me=`$as_basename -- "$0" ||
39503 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39504          X"$0" : 'X\(//\)$' \| \
39505          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39506 echo X/"$0" |
39507     sed '/^.*\/\([^/][^/]*\)\/*$/{
39508             s//\1/
39509             q
39510           }
39511           /^X\/\(\/\/\)$/{
39512             s//\1/
39513             q
39514           }
39515           /^X\/\(\/\).*/{
39516             s//\1/
39517             q
39518           }
39519           s/.*/./; q'`
39520
39521 # CDPATH.
39522 $as_unset CDPATH
39523
39524
39525
39526   as_lineno_1=$LINENO
39527   as_lineno_2=$LINENO
39528   test "x$as_lineno_1" != "x$as_lineno_2" &&
39529   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39530
39531   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39532   # uniformly replaced by the line number.  The first 'sed' inserts a
39533   # line-number line after each line using $LINENO; the second 'sed'
39534   # does the real work.  The second script uses 'N' to pair each
39535   # line-number line with the line containing $LINENO, and appends
39536   # trailing '-' during substitution so that $LINENO is not a special
39537   # case at line end.
39538   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39539   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39540   # E. McMahon (1931-1989) for sed's syntax.  :-)
39541   sed -n '
39542     p
39543     /[$]LINENO/=
39544   ' <$as_myself |
39545     sed '
39546       s/[$]LINENO.*/&-/
39547       t lineno
39548       b
39549       :lineno
39550       N
39551       :loop
39552       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39553       t loop
39554       s/-\n.*//
39555     ' >$as_me.lineno &&
39556   chmod +x "$as_me.lineno" ||
39557     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39558    { (exit 1); exit 1; }; }
39559
39560   # Don't try to exec as it changes $[0], causing all sort of problems
39561   # (the dirname of $[0] is not the place where we might find the
39562   # original and so on.  Autoconf is especially sensitive to this).
39563   . "./$as_me.lineno"
39564   # Exit status is that of the last command.
39565   exit
39566 }
39567
39568
39569 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39570   as_dirname=dirname
39571 else
39572   as_dirname=false
39573 fi
39574
39575 ECHO_C= ECHO_N= ECHO_T=
39576 case `echo -n x` in
39577 -n*)
39578   case `echo 'x\c'` in
39579   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39580   *)   ECHO_C='\c';;
39581   esac;;
39582 *)
39583   ECHO_N='-n';;
39584 esac
39585
39586 if expr a : '\(a\)' >/dev/null 2>&1 &&
39587    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39588   as_expr=expr
39589 else
39590   as_expr=false
39591 fi
39592
39593 rm -f conf$$ conf$$.exe conf$$.file
39594 if test -d conf$$.dir; then
39595   rm -f conf$$.dir/conf$$.file
39596 else
39597   rm -f conf$$.dir
39598   mkdir conf$$.dir
39599 fi
39600 echo >conf$$.file
39601 if ln -s conf$$.file conf$$ 2>/dev/null; then
39602   as_ln_s='ln -s'
39603   # ... but there are two gotchas:
39604   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39605   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39606   # In both cases, we have to default to `cp -p'.
39607   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39608     as_ln_s='cp -p'
39609 elif ln conf$$.file conf$$ 2>/dev/null; then
39610   as_ln_s=ln
39611 else
39612   as_ln_s='cp -p'
39613 fi
39614 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39615 rmdir conf$$.dir 2>/dev/null
39616
39617 if mkdir -p . 2>/dev/null; then
39618   as_mkdir_p=:
39619 else
39620   test -d ./-p && rmdir ./-p
39621   as_mkdir_p=false
39622 fi
39623
39624 if test -x / >/dev/null 2>&1; then
39625   as_test_x='test -x'
39626 else
39627   if ls -dL / >/dev/null 2>&1; then
39628     as_ls_L_option=L
39629   else
39630     as_ls_L_option=
39631   fi
39632   as_test_x='
39633     eval sh -c '\''
39634       if test -d "$1"; then
39635         test -d "$1/.";
39636       else
39637         case $1 in
39638         -*)set "./$1";;
39639         esac;
39640         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39641         ???[sx]*):;;*)false;;esac;fi
39642     '\'' sh
39643   '
39644 fi
39645 as_executable_p=$as_test_x
39646
39647 # Sed expression to map a string onto a valid CPP name.
39648 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39649
39650 # Sed expression to map a string onto a valid variable name.
39651 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39652
39653
39654 exec 6>&1
39655
39656 # Save the log message, to keep $[0] and so on meaningful, and to
39657 # report actual input values of CONFIG_FILES etc. instead of their
39658 # values after options handling.
39659 ac_log="
39660 This file was extended by $as_me, which was
39661 generated by GNU Autoconf 2.61.  Invocation command line was
39662
39663   CONFIG_FILES    = $CONFIG_FILES
39664   CONFIG_HEADERS  = $CONFIG_HEADERS
39665   CONFIG_LINKS    = $CONFIG_LINKS
39666   CONFIG_COMMANDS = $CONFIG_COMMANDS
39667   $ $0 $@
39668
39669 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39670 "
39671
39672 _ACEOF
39673
39674 cat >>$CONFIG_STATUS <<_ACEOF
39675 # Files that config.status was made for.
39676 config_files="$ac_config_files"
39677 config_headers="$ac_config_headers"
39678 config_commands="$ac_config_commands"
39679
39680 _ACEOF
39681
39682 cat >>$CONFIG_STATUS <<\_ACEOF
39683 ac_cs_usage="\
39684 \`$as_me' instantiates files from templates according to the
39685 current configuration.
39686
39687 Usage: $0 [OPTIONS] [FILE]...
39688
39689   -h, --help       print this help, then exit
39690   -V, --version    print version number and configuration settings, then exit
39691   -q, --quiet      do not print progress messages
39692   -d, --debug      don't remove temporary files
39693       --recheck    update $as_me by reconfiguring in the same conditions
39694   --file=FILE[:TEMPLATE]
39695                    instantiate the configuration file FILE
39696   --header=FILE[:TEMPLATE]
39697                    instantiate the configuration header FILE
39698
39699 Configuration files:
39700 $config_files
39701
39702 Configuration headers:
39703 $config_headers
39704
39705 Configuration commands:
39706 $config_commands
39707
39708 Report bugs to <bug-autoconf@gnu.org>."
39709
39710 _ACEOF
39711 cat >>$CONFIG_STATUS <<_ACEOF
39712 ac_cs_version="\\
39713 config.status
39714 configured by $0, generated by GNU Autoconf 2.61,
39715   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39716
39717 Copyright (C) 2006 Free Software Foundation, Inc.
39718 This config.status script is free software; the Free Software Foundation
39719 gives unlimited permission to copy, distribute and modify it."
39720
39721 ac_pwd='$ac_pwd'
39722 srcdir='$srcdir'
39723 INSTALL='$INSTALL'
39724 _ACEOF
39725
39726 cat >>$CONFIG_STATUS <<\_ACEOF
39727 # If no file are specified by the user, then we need to provide default
39728 # value.  By we need to know if files were specified by the user.
39729 ac_need_defaults=:
39730 while test $# != 0
39731 do
39732   case $1 in
39733   --*=*)
39734     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39735     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39736     ac_shift=:
39737     ;;
39738   *)
39739     ac_option=$1
39740     ac_optarg=$2
39741     ac_shift=shift
39742     ;;
39743   esac
39744
39745   case $ac_option in
39746   # Handling of the options.
39747   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39748     ac_cs_recheck=: ;;
39749   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39750     echo "$ac_cs_version"; exit ;;
39751   --debug | --debu | --deb | --de | --d | -d )
39752     debug=: ;;
39753   --file | --fil | --fi | --f )
39754     $ac_shift
39755     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39756     ac_need_defaults=false;;
39757   --header | --heade | --head | --hea )
39758     $ac_shift
39759     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39760     ac_need_defaults=false;;
39761   --he | --h)
39762     # Conflict between --help and --header
39763     { echo "$as_me: error: ambiguous option: $1
39764 Try \`$0 --help' for more information." >&2
39765    { (exit 1); exit 1; }; };;
39766   --help | --hel | -h )
39767     echo "$ac_cs_usage"; exit ;;
39768   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39769   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39770     ac_cs_silent=: ;;
39771
39772   # This is an error.
39773   -*) { echo "$as_me: error: unrecognized option: $1
39774 Try \`$0 --help' for more information." >&2
39775    { (exit 1); exit 1; }; } ;;
39776
39777   *) ac_config_targets="$ac_config_targets $1"
39778      ac_need_defaults=false ;;
39779
39780   esac
39781   shift
39782 done
39783
39784 ac_configure_extra_args=
39785
39786 if $ac_cs_silent; then
39787   exec 6>/dev/null
39788   ac_configure_extra_args="$ac_configure_extra_args --silent"
39789 fi
39790
39791 _ACEOF
39792 cat >>$CONFIG_STATUS <<_ACEOF
39793 if \$ac_cs_recheck; then
39794   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39795   CONFIG_SHELL=$SHELL
39796   export CONFIG_SHELL
39797   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39798 fi
39799
39800 _ACEOF
39801 cat >>$CONFIG_STATUS <<\_ACEOF
39802 exec 5>>config.log
39803 {
39804   echo
39805   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39806 ## Running $as_me. ##
39807 _ASBOX
39808   echo "$ac_log"
39809 } >&5
39810
39811 _ACEOF
39812 cat >>$CONFIG_STATUS <<_ACEOF
39813 #
39814 # INIT-COMMANDS
39815 #
39816 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39817
39818 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39819 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39820
39821
39822 _ACEOF
39823
39824 cat >>$CONFIG_STATUS <<\_ACEOF
39825
39826 # Handling of arguments.
39827 for ac_config_target in $ac_config_targets
39828 do
39829   case $ac_config_target in
39830     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39831     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39832     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39833     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39834     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39835     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39836     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39837     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39838     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39839     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39840     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39841     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39842     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39843     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39844     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39845     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39846     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39847     "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" ;;
39848     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39849     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39850     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39851     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39852     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39853     "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" ;;
39854     "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" ;;
39855     "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" ;;
39856     "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" ;;
39857     "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" ;;
39858     "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" ;;
39859     "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" ;;
39860     "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" ;;
39861     "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" ;;
39862     "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" ;;
39863     "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" ;;
39864     "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" ;;
39865     "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" ;;
39866     "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" ;;
39867     "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" ;;
39868     "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" ;;
39869     "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" ;;
39870     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39871     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39872     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39873     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39874     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39875
39876   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39877 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39878    { (exit 1); exit 1; }; };;
39879   esac
39880 done
39881
39882
39883 # If the user did not use the arguments to specify the items to instantiate,
39884 # then the envvar interface is used.  Set only those that are not.
39885 # We use the long form for the default assignment because of an extremely
39886 # bizarre bug on SunOS 4.1.3.
39887 if $ac_need_defaults; then
39888   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39889   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39890   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39891 fi
39892
39893 # Have a temporary directory for convenience.  Make it in the build tree
39894 # simply because there is no reason against having it here, and in addition,
39895 # creating and moving files from /tmp can sometimes cause problems.
39896 # Hook for its removal unless debugging.
39897 # Note that there is a small window in which the directory will not be cleaned:
39898 # after its creation but before its name has been assigned to `$tmp'.
39899 $debug ||
39900 {
39901   tmp=
39902   trap 'exit_status=$?
39903   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39904 ' 0
39905   trap '{ (exit 1); exit 1; }' 1 2 13 15
39906 }
39907 # Create a (secure) tmp directory for tmp files.
39908
39909 {
39910   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39911   test -n "$tmp" && test -d "$tmp"
39912 }  ||
39913 {
39914   tmp=./conf$$-$RANDOM
39915   (umask 077 && mkdir "$tmp")
39916 } ||
39917 {
39918    echo "$me: cannot create a temporary directory in ." >&2
39919    { (exit 1); exit 1; }
39920 }
39921
39922 #
39923 # Set up the sed scripts for CONFIG_FILES section.
39924 #
39925
39926 # No need to generate the scripts if there are no CONFIG_FILES.
39927 # This happens for instance when ./config.status config.h
39928 if test -n "$CONFIG_FILES"; then
39929
39930 _ACEOF
39931
39932
39933
39934 ac_delim='%!_!# '
39935 for ac_last_try in false false false false false :; do
39936   cat >conf$$subs.sed <<_ACEOF
39937 SHELL!$SHELL$ac_delim
39938 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39939 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39940 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39941 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39942 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39943 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39944 exec_prefix!$exec_prefix$ac_delim
39945 prefix!$prefix$ac_delim
39946 program_transform_name!$program_transform_name$ac_delim
39947 bindir!$bindir$ac_delim
39948 sbindir!$sbindir$ac_delim
39949 libexecdir!$libexecdir$ac_delim
39950 datarootdir!$datarootdir$ac_delim
39951 datadir!$datadir$ac_delim
39952 sysconfdir!$sysconfdir$ac_delim
39953 sharedstatedir!$sharedstatedir$ac_delim
39954 localstatedir!$localstatedir$ac_delim
39955 includedir!$includedir$ac_delim
39956 oldincludedir!$oldincludedir$ac_delim
39957 docdir!$docdir$ac_delim
39958 infodir!$infodir$ac_delim
39959 htmldir!$htmldir$ac_delim
39960 dvidir!$dvidir$ac_delim
39961 pdfdir!$pdfdir$ac_delim
39962 psdir!$psdir$ac_delim
39963 libdir!$libdir$ac_delim
39964 localedir!$localedir$ac_delim
39965 mandir!$mandir$ac_delim
39966 DEFS!$DEFS$ac_delim
39967 ECHO_C!$ECHO_C$ac_delim
39968 ECHO_N!$ECHO_N$ac_delim
39969 ECHO_T!$ECHO_T$ac_delim
39970 LIBS!$LIBS$ac_delim
39971 build_alias!$build_alias$ac_delim
39972 host_alias!$host_alias$ac_delim
39973 target_alias!$target_alias$ac_delim
39974 build!$build$ac_delim
39975 build_cpu!$build_cpu$ac_delim
39976 build_vendor!$build_vendor$ac_delim
39977 build_os!$build_os$ac_delim
39978 host!$host$ac_delim
39979 host_cpu!$host_cpu$ac_delim
39980 host_vendor!$host_vendor$ac_delim
39981 host_os!$host_os$ac_delim
39982 target!$target$ac_delim
39983 target_cpu!$target_cpu$ac_delim
39984 target_vendor!$target_vendor$ac_delim
39985 target_os!$target_os$ac_delim
39986 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
39987 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
39988 INSTALL_DATA!$INSTALL_DATA$ac_delim
39989 CYGPATH_W!$CYGPATH_W$ac_delim
39990 PACKAGE!$PACKAGE$ac_delim
39991 VERSION!$VERSION$ac_delim
39992 ACLOCAL!$ACLOCAL$ac_delim
39993 AUTOCONF!$AUTOCONF$ac_delim
39994 AUTOMAKE!$AUTOMAKE$ac_delim
39995 AUTOHEADER!$AUTOHEADER$ac_delim
39996 MAKEINFO!$MAKEINFO$ac_delim
39997 install_sh!$install_sh$ac_delim
39998 STRIP!$STRIP$ac_delim
39999 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
40000 mkdir_p!$mkdir_p$ac_delim
40001 AWK!$AWK$ac_delim
40002 SET_MAKE!$SET_MAKE$ac_delim
40003 am__leading_dot!$am__leading_dot$ac_delim
40004 AMTAR!$AMTAR$ac_delim
40005 am__tar!$am__tar$ac_delim
40006 am__untar!$am__untar$ac_delim
40007 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
40008 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
40009 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
40010 top_builddir!$top_builddir$ac_delim
40011 ldap_subdir!$ldap_subdir$ac_delim
40012 CC!$CC$ac_delim
40013 AR!$AR$ac_delim
40014 CFLAGS!$CFLAGS$ac_delim
40015 LDFLAGS!$LDFLAGS$ac_delim
40016 CPPFLAGS!$CPPFLAGS$ac_delim
40017 ac_ct_CC!$ac_ct_CC$ac_delim
40018 EXEEXT!$EXEEXT$ac_delim
40019 OBJEXT!$OBJEXT$ac_delim
40020 DEPDIR!$DEPDIR$ac_delim
40021 am__include!$am__include$ac_delim
40022 am__quote!$am__quote$ac_delim
40023 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
40024 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
40025 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
40026 CCDEPMODE!$CCDEPMODE$ac_delim
40027 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40028 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40029 GREP!$GREP$ac_delim
40030 EGREP!$EGREP$ac_delim
40031 LN_S!$LN_S$ac_delim
40032 ECHO!$ECHO$ac_delim
40033 RANLIB!$RANLIB$ac_delim
40034 _ACEOF
40035
40036   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40037     break
40038   elif $ac_last_try; then
40039     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40040 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40041    { (exit 1); exit 1; }; }
40042   else
40043     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40044   fi
40045 done
40046
40047 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40048 if test -n "$ac_eof"; then
40049   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40050   ac_eof=`expr $ac_eof + 1`
40051 fi
40052
40053 cat >>$CONFIG_STATUS <<_ACEOF
40054 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40055 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40056 _ACEOF
40057 sed '
40058 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40059 s/^/s,@/; s/!/@,|#_!!_#|/
40060 :n
40061 t n
40062 s/'"$ac_delim"'$/,g/; t
40063 s/$/\\/; p
40064 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40065 ' >>$CONFIG_STATUS <conf$$subs.sed
40066 rm -f conf$$subs.sed
40067 cat >>$CONFIG_STATUS <<_ACEOF
40068 CEOF$ac_eof
40069 _ACEOF
40070
40071
40072 ac_delim='%!_!# '
40073 for ac_last_try in false false false false false :; do
40074   cat >conf$$subs.sed <<_ACEOF
40075 DLLTOOL!$DLLTOOL$ac_delim
40076 AS!$AS$ac_delim
40077 OBJDUMP!$OBJDUMP$ac_delim
40078 CPP!$CPP$ac_delim
40079 LIBTOOL!$LIBTOOL$ac_delim
40080 PERLBIN!$PERLBIN$ac_delim
40081 OL_MKDEP!$OL_MKDEP$ac_delim
40082 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
40083 LTSTATIC!$LTSTATIC$ac_delim
40084 MYSQL!$MYSQL$ac_delim
40085 LIBOBJS!$LIBOBJS$ac_delim
40086 LIBSRCS!$LIBSRCS$ac_delim
40087 PLAT!$PLAT$ac_delim
40088 WITH_SASL!$WITH_SASL$ac_delim
40089 WITH_TLS!$WITH_TLS$ac_delim
40090 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
40091 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
40092 BUILD_THREAD!$BUILD_THREAD$ac_delim
40093 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
40094 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
40095 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
40096 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
40097 BUILD_BDB!$BUILD_BDB$ac_delim
40098 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
40099 BUILD_HDB!$BUILD_HDB$ac_delim
40100 BUILD_LDAP!$BUILD_LDAP$ac_delim
40101 BUILD_META!$BUILD_META$ac_delim
40102 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
40103 BUILD_NDB!$BUILD_NDB$ac_delim
40104 BUILD_NULL!$BUILD_NULL$ac_delim
40105 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
40106 BUILD_RELAY!$BUILD_RELAY$ac_delim
40107 BUILD_PERL!$BUILD_PERL$ac_delim
40108 BUILD_SHELL!$BUILD_SHELL$ac_delim
40109 BUILD_SOCK!$BUILD_SOCK$ac_delim
40110 BUILD_SQL!$BUILD_SQL$ac_delim
40111 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
40112 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
40113 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
40114 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
40115 BUILD_DDS!$BUILD_DDS$ac_delim
40116 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
40117 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
40118 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
40119 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
40120 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
40121 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
40122 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
40123 BUILD_REFINT!$BUILD_REFINT$ac_delim
40124 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
40125 BUILD_RWM!$BUILD_RWM$ac_delim
40126 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
40127 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
40128 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
40129 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
40130 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
40131 LDAP_LIBS!$LDAP_LIBS$ac_delim
40132 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
40133 BDB_LIBS!$BDB_LIBS$ac_delim
40134 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
40135 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
40136 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
40137 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
40138 WRAP_LIBS!$WRAP_LIBS$ac_delim
40139 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
40140 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
40141 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
40142 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
40143 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
40144 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
40145 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
40146 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
40147 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
40148 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
40149 KRB4_LIBS!$KRB4_LIBS$ac_delim
40150 KRB5_LIBS!$KRB5_LIBS$ac_delim
40151 SASL_LIBS!$SASL_LIBS$ac_delim
40152 GSSAPI_LIBS!$GSSAPI_LIBS$ac_delim
40153 TLS_LIBS!$TLS_LIBS$ac_delim
40154 MODULES_LIBS!$MODULES_LIBS$ac_delim
40155 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
40156 LIBSLAPI!$LIBSLAPI$ac_delim
40157 LIBSLAPITOOLS!$LIBSLAPITOOLS$ac_delim
40158 AUTH_LIBS!$AUTH_LIBS$ac_delim
40159 ICU_LIBS!$ICU_LIBS$ac_delim
40160 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
40161 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
40162 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
40163 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
40164 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
40165 LTLIBOBJS!$LTLIBOBJS$ac_delim
40166 _ACEOF
40167
40168   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
40169     break
40170   elif $ac_last_try; then
40171     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40172 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40173    { (exit 1); exit 1; }; }
40174   else
40175     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40176   fi
40177 done
40178
40179 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40180 if test -n "$ac_eof"; then
40181   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40182   ac_eof=`expr $ac_eof + 1`
40183 fi
40184
40185 cat >>$CONFIG_STATUS <<_ACEOF
40186 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40187 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40188 _ACEOF
40189 sed '
40190 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40191 s/^/s,@/; s/!/@,|#_!!_#|/
40192 :n
40193 t n
40194 s/'"$ac_delim"'$/,g/; t
40195 s/$/\\/; p
40196 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40197 ' >>$CONFIG_STATUS <conf$$subs.sed
40198 rm -f conf$$subs.sed
40199 cat >>$CONFIG_STATUS <<_ACEOF
40200 :end
40201 s/|#_!!_#|//g
40202 CEOF$ac_eof
40203 _ACEOF
40204
40205
40206 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40207 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40208 # trailing colons and then remove the whole line if VPATH becomes empty
40209 # (actually we leave an empty line to preserve line numbers).
40210 if test "x$srcdir" = x.; then
40211   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40212 s/:*\$(srcdir):*/:/
40213 s/:*\${srcdir}:*/:/
40214 s/:*@srcdir@:*/:/
40215 s/^\([^=]*=[     ]*\):*/\1/
40216 s/:*$//
40217 s/^[^=]*=[       ]*$//
40218 }'
40219 fi
40220
40221 cat >>$CONFIG_STATUS <<\_ACEOF
40222 fi # test -n "$CONFIG_FILES"
40223
40224
40225 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
40226 do
40227   case $ac_tag in
40228   :[FHLC]) ac_mode=$ac_tag; continue;;
40229   esac
40230   case $ac_mode$ac_tag in
40231   :[FHL]*:*);;
40232   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40233 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40234    { (exit 1); exit 1; }; };;
40235   :[FH]-) ac_tag=-:-;;
40236   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40237   esac
40238   ac_save_IFS=$IFS
40239   IFS=:
40240   set x $ac_tag
40241   IFS=$ac_save_IFS
40242   shift
40243   ac_file=$1
40244   shift
40245
40246   case $ac_mode in
40247   :L) ac_source=$1;;
40248   :[FH])
40249     ac_file_inputs=
40250     for ac_f
40251     do
40252       case $ac_f in
40253       -) ac_f="$tmp/stdin";;
40254       *) # Look for the file first in the build tree, then in the source tree
40255          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40256          # because $ac_f cannot contain `:'.
40257          test -f "$ac_f" ||
40258            case $ac_f in
40259            [\\/$]*) false;;
40260            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40261            esac ||
40262            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40263 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40264    { (exit 1); exit 1; }; };;
40265       esac
40266       ac_file_inputs="$ac_file_inputs $ac_f"
40267     done
40268
40269     # Let's still pretend it is `configure' which instantiates (i.e., don't
40270     # use $as_me), people would be surprised to read:
40271     #    /* config.h.  Generated by config.status.  */
40272     configure_input="Generated from "`IFS=:
40273           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40274     if test x"$ac_file" != x-; then
40275       configure_input="$ac_file.  $configure_input"
40276       { echo "$as_me:$LINENO: creating $ac_file" >&5
40277 echo "$as_me: creating $ac_file" >&6;}
40278     fi
40279
40280     case $ac_tag in
40281     *:-:* | *:-) cat >"$tmp/stdin";;
40282     esac
40283     ;;
40284   esac
40285
40286   ac_dir=`$as_dirname -- "$ac_file" ||
40287 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40288          X"$ac_file" : 'X\(//\)[^/]' \| \
40289          X"$ac_file" : 'X\(//\)$' \| \
40290          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40291 echo X"$ac_file" |
40292     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40293             s//\1/
40294             q
40295           }
40296           /^X\(\/\/\)[^/].*/{
40297             s//\1/
40298             q
40299           }
40300           /^X\(\/\/\)$/{
40301             s//\1/
40302             q
40303           }
40304           /^X\(\/\).*/{
40305             s//\1/
40306             q
40307           }
40308           s/.*/./; q'`
40309   { as_dir="$ac_dir"
40310   case $as_dir in #(
40311   -*) as_dir=./$as_dir;;
40312   esac
40313   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40314     as_dirs=
40315     while :; do
40316       case $as_dir in #(
40317       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40318       *) as_qdir=$as_dir;;
40319       esac
40320       as_dirs="'$as_qdir' $as_dirs"
40321       as_dir=`$as_dirname -- "$as_dir" ||
40322 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40323          X"$as_dir" : 'X\(//\)[^/]' \| \
40324          X"$as_dir" : 'X\(//\)$' \| \
40325          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40326 echo X"$as_dir" |
40327     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40328             s//\1/
40329             q
40330           }
40331           /^X\(\/\/\)[^/].*/{
40332             s//\1/
40333             q
40334           }
40335           /^X\(\/\/\)$/{
40336             s//\1/
40337             q
40338           }
40339           /^X\(\/\).*/{
40340             s//\1/
40341             q
40342           }
40343           s/.*/./; q'`
40344       test -d "$as_dir" && break
40345     done
40346     test -z "$as_dirs" || eval "mkdir $as_dirs"
40347   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40348 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40349    { (exit 1); exit 1; }; }; }
40350   ac_builddir=.
40351
40352 case "$ac_dir" in
40353 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40354 *)
40355   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40356   # A ".." for each directory in $ac_dir_suffix.
40357   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40358   case $ac_top_builddir_sub in
40359   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40360   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40361   esac ;;
40362 esac
40363 ac_abs_top_builddir=$ac_pwd
40364 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40365 # for backward compatibility:
40366 ac_top_builddir=$ac_top_build_prefix
40367
40368 case $srcdir in
40369   .)  # We are building in place.
40370     ac_srcdir=.
40371     ac_top_srcdir=$ac_top_builddir_sub
40372     ac_abs_top_srcdir=$ac_pwd ;;
40373   [\\/]* | ?:[\\/]* )  # Absolute name.
40374     ac_srcdir=$srcdir$ac_dir_suffix;
40375     ac_top_srcdir=$srcdir
40376     ac_abs_top_srcdir=$srcdir ;;
40377   *) # Relative name.
40378     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40379     ac_top_srcdir=$ac_top_build_prefix$srcdir
40380     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40381 esac
40382 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40383
40384
40385   case $ac_mode in
40386   :F)
40387   #
40388   # CONFIG_FILE
40389   #
40390
40391   case $INSTALL in
40392   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40393   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40394   esac
40395 _ACEOF
40396
40397 cat >>$CONFIG_STATUS <<\_ACEOF
40398 # If the template does not know about datarootdir, expand it.
40399 # FIXME: This hack should be removed a few years after 2.60.
40400 ac_datarootdir_hack=; ac_datarootdir_seen=
40401
40402 case `sed -n '/datarootdir/ {
40403   p
40404   q
40405 }
40406 /@datadir@/p
40407 /@docdir@/p
40408 /@infodir@/p
40409 /@localedir@/p
40410 /@mandir@/p
40411 ' $ac_file_inputs` in
40412 *datarootdir*) ac_datarootdir_seen=yes;;
40413 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40414   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40415 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40416 _ACEOF
40417 cat >>$CONFIG_STATUS <<_ACEOF
40418   ac_datarootdir_hack='
40419   s&@datadir@&$datadir&g
40420   s&@docdir@&$docdir&g
40421   s&@infodir@&$infodir&g
40422   s&@localedir@&$localedir&g
40423   s&@mandir@&$mandir&g
40424     s&\\\${datarootdir}&$datarootdir&g' ;;
40425 esac
40426 _ACEOF
40427
40428 # Neutralize VPATH when `$srcdir' = `.'.
40429 # Shell code in configure.ac might set extrasub.
40430 # FIXME: do we really want to maintain this feature?
40431 cat >>$CONFIG_STATUS <<_ACEOF
40432   sed "$ac_vpsub
40433 $extrasub
40434 _ACEOF
40435 cat >>$CONFIG_STATUS <<\_ACEOF
40436 :t
40437 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40438 s&@configure_input@&$configure_input&;t t
40439 s&@top_builddir@&$ac_top_builddir_sub&;t t
40440 s&@srcdir@&$ac_srcdir&;t t
40441 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40442 s&@top_srcdir@&$ac_top_srcdir&;t t
40443 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40444 s&@builddir@&$ac_builddir&;t t
40445 s&@abs_builddir@&$ac_abs_builddir&;t t
40446 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40447 s&@INSTALL@&$ac_INSTALL&;t t
40448 $ac_datarootdir_hack
40449 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40450
40451 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40452   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40453   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40454   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40455 which seems to be undefined.  Please make sure it is defined." >&5
40456 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40457 which seems to be undefined.  Please make sure it is defined." >&2;}
40458
40459   rm -f "$tmp/stdin"
40460   case $ac_file in
40461   -) cat "$tmp/out"; rm -f "$tmp/out";;
40462   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40463   esac
40464  ;;
40465   :H)
40466   #
40467   # CONFIG_HEADER
40468   #
40469 _ACEOF
40470
40471 # Transform confdefs.h into a sed script `conftest.defines', that
40472 # substitutes the proper values into config.h.in to produce config.h.
40473 rm -f conftest.defines conftest.tail
40474 # First, append a space to every undef/define line, to ease matching.
40475 echo 's/$/ /' >conftest.defines
40476 # Then, protect against being on the right side of a sed subst, or in
40477 # an unquoted here document, in config.status.  If some macros were
40478 # called several times there might be several #defines for the same
40479 # symbol, which is useless.  But do not sort them, since the last
40480 # AC_DEFINE must be honored.
40481 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40482 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40483 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40484 # PARAMS is the parameter list in the macro definition--in most cases, it's
40485 # just an empty string.
40486 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40487 ac_dB='\\)[      (].*,\\1define\\2'
40488 ac_dC=' '
40489 ac_dD=' ,'
40490
40491 uniq confdefs.h |
40492   sed -n '
40493         t rset
40494         :rset
40495         s/^[     ]*#[    ]*define[       ][      ]*//
40496         t ok
40497         d
40498         :ok
40499         s/[\\&,]/\\&/g
40500         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40501         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40502   ' >>conftest.defines
40503
40504 # Remove the space that was appended to ease matching.
40505 # Then replace #undef with comments.  This is necessary, for
40506 # example, in the case of _POSIX_SOURCE, which is predefined and required
40507 # on some systems where configure will not decide to define it.
40508 # (The regexp can be short, since the line contains either #define or #undef.)
40509 echo 's/ $//
40510 s,^[     #]*u.*,/* & */,' >>conftest.defines
40511
40512 # Break up conftest.defines:
40513 ac_max_sed_lines=50
40514
40515 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40516 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40517 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40518 # et cetera.
40519 ac_in='$ac_file_inputs'
40520 ac_out='"$tmp/out1"'
40521 ac_nxt='"$tmp/out2"'
40522
40523 while :
40524 do
40525   # Write a here document:
40526     cat >>$CONFIG_STATUS <<_ACEOF
40527     # First, check the format of the line:
40528     cat >"\$tmp/defines.sed" <<\\CEOF
40529 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40530 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40531 b
40532 :def
40533 _ACEOF
40534   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40535   echo 'CEOF
40536     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40537   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40538   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40539   grep . conftest.tail >/dev/null || break
40540   rm -f conftest.defines
40541   mv conftest.tail conftest.defines
40542 done
40543 rm -f conftest.defines conftest.tail
40544
40545 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40546 cat >>$CONFIG_STATUS <<\_ACEOF
40547   if test x"$ac_file" != x-; then
40548     echo "/* $configure_input  */" >"$tmp/config.h"
40549     cat "$ac_result" >>"$tmp/config.h"
40550     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40551       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40552 echo "$as_me: $ac_file is unchanged" >&6;}
40553     else
40554       rm -f $ac_file
40555       mv "$tmp/config.h" $ac_file
40556     fi
40557   else
40558     echo "/* $configure_input  */"
40559     cat "$ac_result"
40560   fi
40561   rm -f "$tmp/out12"
40562 # Compute $ac_file's index in $config_headers.
40563 _am_stamp_count=1
40564 for _am_header in $config_headers :; do
40565   case $_am_header in
40566     $ac_file | $ac_file:* )
40567       break ;;
40568     * )
40569       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40570   esac
40571 done
40572 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40573 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40574          X$ac_file : 'X\(//\)[^/]' \| \
40575          X$ac_file : 'X\(//\)$' \| \
40576          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40577 echo X$ac_file |
40578     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40579             s//\1/
40580             q
40581           }
40582           /^X\(\/\/\)[^/].*/{
40583             s//\1/
40584             q
40585           }
40586           /^X\(\/\/\)$/{
40587             s//\1/
40588             q
40589           }
40590           /^X\(\/\).*/{
40591             s//\1/
40592             q
40593           }
40594           s/.*/./; q'`/stamp-h$_am_stamp_count
40595  ;;
40596
40597   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40598 echo "$as_me: executing $ac_file commands" >&6;}
40599  ;;
40600   esac
40601
40602
40603   case $ac_file$ac_mode in
40604     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40605   # Strip MF so we end up with the name of the file.
40606   mf=`echo "$mf" | sed -e 's/:.*$//'`
40607   # Check whether this is an Automake generated Makefile or not.
40608   # We used to match only the files named `Makefile.in', but
40609   # some people rename them; so instead we look at the file content.
40610   # Grep'ing the first line is not enough: some people post-process
40611   # each Makefile.in and add a new line on top of each file to say so.
40612   # So let's grep whole file.
40613   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
40614     dirpart=`$as_dirname -- "$mf" ||
40615 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40616          X"$mf" : 'X\(//\)[^/]' \| \
40617          X"$mf" : 'X\(//\)$' \| \
40618          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40619 echo X"$mf" |
40620     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40621             s//\1/
40622             q
40623           }
40624           /^X\(\/\/\)[^/].*/{
40625             s//\1/
40626             q
40627           }
40628           /^X\(\/\/\)$/{
40629             s//\1/
40630             q
40631           }
40632           /^X\(\/\).*/{
40633             s//\1/
40634             q
40635           }
40636           s/.*/./; q'`
40637   else
40638     continue
40639   fi
40640   # Extract the definition of DEPDIR, am__include, and am__quote
40641   # from the Makefile without running `make'.
40642   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40643   test -z "$DEPDIR" && continue
40644   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40645   test -z "am__include" && continue
40646   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40647   # When using ansi2knr, U may be empty or an underscore; expand it
40648   U=`sed -n 's/^U = //p' < "$mf"`
40649   # Find all dependency output files, they are included files with
40650   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40651   # simplest approach to changing $(DEPDIR) to its actual value in the
40652   # expansion.
40653   for file in `sed -n "
40654     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40655        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40656     # Make sure the directory exists.
40657     test -f "$dirpart/$file" && continue
40658     fdir=`$as_dirname -- "$file" ||
40659 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40660          X"$file" : 'X\(//\)[^/]' \| \
40661          X"$file" : 'X\(//\)$' \| \
40662          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40663 echo X"$file" |
40664     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40665             s//\1/
40666             q
40667           }
40668           /^X\(\/\/\)[^/].*/{
40669             s//\1/
40670             q
40671           }
40672           /^X\(\/\/\)$/{
40673             s//\1/
40674             q
40675           }
40676           /^X\(\/\).*/{
40677             s//\1/
40678             q
40679           }
40680           s/.*/./; q'`
40681     { as_dir=$dirpart/$fdir
40682   case $as_dir in #(
40683   -*) as_dir=./$as_dir;;
40684   esac
40685   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40686     as_dirs=
40687     while :; do
40688       case $as_dir in #(
40689       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40690       *) as_qdir=$as_dir;;
40691       esac
40692       as_dirs="'$as_qdir' $as_dirs"
40693       as_dir=`$as_dirname -- "$as_dir" ||
40694 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40695          X"$as_dir" : 'X\(//\)[^/]' \| \
40696          X"$as_dir" : 'X\(//\)$' \| \
40697          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40698 echo X"$as_dir" |
40699     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40700             s//\1/
40701             q
40702           }
40703           /^X\(\/\/\)[^/].*/{
40704             s//\1/
40705             q
40706           }
40707           /^X\(\/\/\)$/{
40708             s//\1/
40709             q
40710           }
40711           /^X\(\/\).*/{
40712             s//\1/
40713             q
40714           }
40715           s/.*/./; q'`
40716       test -d "$as_dir" && break
40717     done
40718     test -z "$as_dirs" || eval "mkdir $as_dirs"
40719   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40720 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40721    { (exit 1); exit 1; }; }; }
40722     # echo "creating $dirpart/$file"
40723     echo '# dummy' > "$dirpart/$file"
40724   done
40725 done
40726  ;;
40727     "default":C)
40728 chmod +x tests/run
40729 date > stamp-h
40730 BACKENDSC="servers/slapd/backends.c"
40731 echo "Making $BACKENDSC"
40732 rm -f $BACKENDSC
40733 cat > $BACKENDSC << ENDX
40734 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40735  *
40736  * Copyright 1998-2009 The OpenLDAP Foundation.
40737  * All rights reserved.
40738  *
40739  * Redistribution and use in source and binary forms, with or without
40740  * modification, are permitted only as authorized by the OpenLDAP
40741  * Public License.
40742  *
40743  * A copy of this license is available in the file LICENSE in the
40744  * top-level directory of the distribution or, alternatively, at
40745  * <http://www.OpenLDAP.org/license.html>.
40746  */
40747 /* This file is automatically generated by configure; please do not edit. */
40748
40749 #include "portable.h"
40750 #include "slap.h"
40751
40752 ENDX
40753 if test "${STATIC_BACKENDS}"; then
40754         for b in config ${STATIC_BACKENDS}; do
40755                 bb=`echo "${b}" | sed -e 's/back-//'`
40756                 cat >> $BACKENDSC << ENDX
40757 extern BI_init ${bb}_back_initialize;
40758 ENDX
40759         done
40760
40761         cat >> $BACKENDSC << ENDX
40762
40763 BackendInfo slap_binfo[] = {
40764 ENDX
40765
40766         for b in config ${STATIC_BACKENDS}; do
40767                 bb=`echo "${b}" | sed -e 's/back-//'`
40768                 echo "    Add ${bb} ..."
40769                 cat >> $BACKENDSC << ENDX
40770         { "${bb}", ${bb}_back_initialize },
40771 ENDX
40772         done
40773
40774         cat >> $BACKENDSC << ENDX
40775         { NULL, NULL },
40776 };
40777
40778 /* end of generated file */
40779 ENDX
40780 fi
40781 OVERLAYSC="servers/slapd/overlays/statover.c"
40782 echo "Making $OVERLAYSC"
40783 rm -f $OVERLAYSC
40784 cat > $OVERLAYSC << ENDX
40785 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40786  *
40787  * Copyright 1998-2009 The OpenLDAP Foundation.
40788  * All rights reserved.
40789  *
40790  * Redistribution and use in source and binary forms, with or without
40791  * modification, are permitted only as authorized by the OpenLDAP
40792  * Public License.
40793  *
40794  * A copy of this license is available in the file LICENSE in the
40795  * top-level directory of the distribution or, alternatively, at
40796  * <http://www.OpenLDAP.org/license.html>.
40797  */
40798 /* This file is automatically generated by configure; please do not edit. */
40799
40800 #include "portable.h"
40801 #include "slap.h"
40802
40803 ENDX
40804 if test "${STATIC_OVERLAYS}"; then
40805         for o in ${STATIC_OVERLAYS}; do
40806                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40807                 cat >> $OVERLAYSC << ENDX
40808 extern OV_init ${oo}_initialize;
40809 ENDX
40810         done
40811 fi
40812
40813 cat >> $OVERLAYSC << ENDX
40814
40815 OverlayInit slap_oinfo[] = {
40816 ENDX
40817
40818 if test "${STATIC_OVERLAYS}"; then
40819         for o in ${STATIC_OVERLAYS}; do
40820                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40821                 echo "    Add ${oo} ..."
40822                 cat >> $OVERLAYSC << ENDX
40823         { "${oo}", ${oo}_initialize },
40824 ENDX
40825         done
40826 fi
40827
40828         cat >> $OVERLAYSC << ENDX
40829         { NULL, NULL },
40830 };
40831
40832 /* end of generated file */
40833 ENDX
40834
40835 if test "${ol_cv_mkdep}" = no; then
40836         echo '(Do not "make depend"; we do not know how to build dependencies)'
40837 else
40838         echo 'Please run "make depend" to build dependencies'
40839 fi
40840  ;;
40841
40842   esac
40843 done # for ac_tag
40844
40845
40846 { (exit 0); exit 0; }
40847 _ACEOF
40848 chmod +x $CONFIG_STATUS
40849 ac_clean_files=$ac_clean_files_save
40850
40851
40852 # configure is writing to config.log, and then calls config.status.
40853 # config.status does its own redirection, appending to config.log.
40854 # Unfortunately, on DOS this fails, as config.log is still kept open
40855 # by configure, so config.status won't be able to write to it; its
40856 # output is simply discarded.  So we exec the FD to /dev/null,
40857 # effectively closing config.log, so it can be properly (re)opened and
40858 # appended to by config.status.  When coming back to configure, we
40859 # need to make the FD available again.
40860 if test "$no_create" != yes; then
40861   ac_cs_success=:
40862   ac_config_status_args=
40863   test "$silent" = yes &&
40864     ac_config_status_args="$ac_config_status_args --quiet"
40865   exec 5>/dev/null
40866   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40867   exec 5>>config.log
40868   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40869   # would make configure fail if this is the last instruction.
40870   $ac_cs_success || { (exit 1); exit 1; }
40871 fi
40872