]> git.sur5r.net Git - openldap/blob - configure
Don't ignore all Makefiles
[openldap] / configure
1 #! /bin/sh
2 # From configure.in OpenLDAP: pkg/ldap/configure.in,v 1.710 2011/02/17 01:56:06 hyc Exp .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.61.
5 #
6 # Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
7 # Restrictions apply, see COPYRIGHT and LICENSE files.
8 #
9 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
10 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## --------------------- ##
14 ## M4sh Initialization.  ##
15 ## --------------------- ##
16
17 # Be more Bourne compatible
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 am__isrc
825 CYGPATH_W
826 PACKAGE
827 VERSION
828 ACLOCAL
829 AUTOCONF
830 AUTOMAKE
831 AUTOHEADER
832 MAKEINFO
833 install_sh
834 STRIP
835 INSTALL_STRIP_PROGRAM
836 mkdir_p
837 AWK
838 SET_MAKE
839 am__leading_dot
840 AMTAR
841 am__tar
842 am__untar
843 OPENLDAP_LIBRELEASE
844 OPENLDAP_LIBVERSION
845 OPENLDAP_RELEASE_DATE
846 top_builddir
847 ldap_subdir
848 CC
849 AR
850 CFLAGS
851 LDFLAGS
852 CPPFLAGS
853 ac_ct_CC
854 EXEEXT
855 OBJEXT
856 DEPDIR
857 am__include
858 am__quote
859 AMDEP_TRUE
860 AMDEP_FALSE
861 AMDEPBACKSLASH
862 CCDEPMODE
863 am__fastdepCC_TRUE
864 am__fastdepCC_FALSE
865 GREP
866 EGREP
867 LN_S
868 ECHO
869 RANLIB
870 DLLTOOL
871 AS
872 OBJDUMP
873 CPP
874 LIBTOOL
875 PERLBIN
876 OL_MKDEP
877 OL_MKDEP_FLAGS
878 LTSTATIC
879 MYSQL
880 LIBOBJS
881 LIBSRCS
882 PLAT
883 WITH_SASL
884 WITH_TLS
885 WITH_MODULES_ENABLED
886 WITH_ACI_ENABLED
887 BUILD_THREAD
888 BUILD_LIBS_DYNAMIC
889 BUILD_SLAPD
890 BUILD_SLAPI
891 SLAPD_SLAPI_DEPEND
892 BUILD_BDB
893 BUILD_DNSSRV
894 BUILD_HDB
895 BUILD_LDAP
896 BUILD_META
897 BUILD_MONITOR
898 BUILD_NDB
899 BUILD_NULL
900 BUILD_PASSWD
901 BUILD_RELAY
902 BUILD_PERL
903 BUILD_SHELL
904 BUILD_SOCK
905 BUILD_SQL
906 BUILD_ACCESSLOG
907 BUILD_AUDITLOG
908 BUILD_COLLECT
909 BUILD_CONSTRAINT
910 BUILD_DDS
911 BUILD_DENYOP
912 BUILD_DEREF
913 BUILD_DYNGROUP
914 BUILD_DYNLIST
915 BUILD_LASTMOD
916 BUILD_MEMBEROF
917 BUILD_PPOLICY
918 BUILD_PROXYCACHE
919 BUILD_REFINT
920 BUILD_RETCODE
921 BUILD_RWM
922 BUILD_SEQMOD
923 BUILD_SSSVLV
924 BUILD_SYNCPROV
925 BUILD_TRANSLUCENT
926 BUILD_UNIQUE
927 BUILD_VALSORT
928 LDAP_LIBS
929 SLAPD_LIBS
930 BDB_LIBS
931 SLAPD_NDB_LIBS
932 SLAPD_NDB_INCS
933 LTHREAD_LIBS
934 LUTIL_LIBS
935 WRAP_LIBS
936 SLAPD_MODULES_CPPFLAGS
937 SLAPD_MODULES_LDFLAGS
938 SLAPD_NO_STATIC
939 SLAPD_STATIC_BACKENDS
940 SLAPD_DYNAMIC_BACKENDS
941 SLAPD_STATIC_OVERLAYS
942 SLAPD_DYNAMIC_OVERLAYS
943 PERL_CPPFLAGS
944 SLAPD_PERL_LDFLAGS
945 MOD_PERL_LDFLAGS
946 KRB4_LIBS
947 KRB5_LIBS
948 SASL_LIBS
949 TLS_LIBS
950 MODULES_LIBS
951 SLAPI_LIBS
952 LIBSLAPI
953 AUTH_LIBS
954 ICU_LIBS
955 SLAPD_SLP_LIBS
956 SLAPD_GMP_LIBS
957 SLAPD_SQL_LDFLAGS
958 SLAPD_SQL_LIBS
959 SLAPD_SQL_INCLUDES
960 LTLIBOBJS'
961 ac_subst_files=''
962       ac_precious_vars='build_alias
963 host_alias
964 target_alias
965 CC
966 CFLAGS
967 LDFLAGS
968 LIBS
969 CPPFLAGS
970 CPP'
971
972
973 # Initialize some variables set by options.
974 ac_init_help=
975 ac_init_version=false
976 # The variables have the same names as the options, with
977 # dashes changed to underlines.
978 cache_file=/dev/null
979 exec_prefix=NONE
980 no_create=
981 no_recursion=
982 prefix=NONE
983 program_prefix=NONE
984 program_suffix=NONE
985 program_transform_name=s,x,x,
986 silent=
987 site=
988 srcdir=
989 verbose=
990 x_includes=NONE
991 x_libraries=NONE
992
993 # Installation directory options.
994 # These are left unexpanded so users can "make install exec_prefix=/foo"
995 # and all the variables that are supposed to be based on exec_prefix
996 # by default will actually change.
997 # Use braces instead of parens because sh, perl, etc. also accept them.
998 # (The list follows the same order as the GNU Coding Standards.)
999 bindir='${exec_prefix}/bin'
1000 sbindir='${exec_prefix}/sbin'
1001 libexecdir='${exec_prefix}/libexec'
1002 datarootdir='${prefix}/share'
1003 datadir='${datarootdir}'
1004 sysconfdir='${prefix}/etc'
1005 sharedstatedir='${prefix}/com'
1006 localstatedir='${prefix}/var'
1007 includedir='${prefix}/include'
1008 oldincludedir='/usr/include'
1009 docdir='${datarootdir}/doc/${PACKAGE}'
1010 infodir='${datarootdir}/info'
1011 htmldir='${docdir}'
1012 dvidir='${docdir}'
1013 pdfdir='${docdir}'
1014 psdir='${docdir}'
1015 libdir='${exec_prefix}/lib'
1016 localedir='${datarootdir}/locale'
1017 mandir='${datarootdir}/man'
1018
1019 ac_prev=
1020 ac_dashdash=
1021 for ac_option
1022 do
1023   # If the previous option needs an argument, assign it.
1024   if test -n "$ac_prev"; then
1025     eval $ac_prev=\$ac_option
1026     ac_prev=
1027     continue
1028   fi
1029
1030   case $ac_option in
1031   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1032   *)    ac_optarg=yes ;;
1033   esac
1034
1035   # Accept the important Cygnus configure options, so we can diagnose typos.
1036
1037   case $ac_dashdash$ac_option in
1038   --)
1039     ac_dashdash=yes ;;
1040
1041   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1042     ac_prev=bindir ;;
1043   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1044     bindir=$ac_optarg ;;
1045
1046   -build | --build | --buil | --bui | --bu)
1047     ac_prev=build_alias ;;
1048   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1049     build_alias=$ac_optarg ;;
1050
1051   -cache-file | --cache-file | --cache-fil | --cache-fi \
1052   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1053     ac_prev=cache_file ;;
1054   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1055   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1056     cache_file=$ac_optarg ;;
1057
1058   --config-cache | -C)
1059     cache_file=config.cache ;;
1060
1061   -datadir | --datadir | --datadi | --datad)
1062     ac_prev=datadir ;;
1063   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1064     datadir=$ac_optarg ;;
1065
1066   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1067   | --dataroo | --dataro | --datar)
1068     ac_prev=datarootdir ;;
1069   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1070   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1071     datarootdir=$ac_optarg ;;
1072
1073   -disable-* | --disable-*)
1074     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1075     # Reject names that are not valid shell variable names.
1076     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1077       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1078    { (exit 1); exit 1; }; }
1079     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1080     eval enable_$ac_feature=no ;;
1081
1082   -docdir | --docdir | --docdi | --doc | --do)
1083     ac_prev=docdir ;;
1084   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1085     docdir=$ac_optarg ;;
1086
1087   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1088     ac_prev=dvidir ;;
1089   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1090     dvidir=$ac_optarg ;;
1091
1092   -enable-* | --enable-*)
1093     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1094     # Reject names that are not valid shell variable names.
1095     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1096       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1097    { (exit 1); exit 1; }; }
1098     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1099     eval enable_$ac_feature=\$ac_optarg ;;
1100
1101   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1102   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1103   | --exec | --exe | --ex)
1104     ac_prev=exec_prefix ;;
1105   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1106   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1107   | --exec=* | --exe=* | --ex=*)
1108     exec_prefix=$ac_optarg ;;
1109
1110   -gas | --gas | --ga | --g)
1111     # Obsolete; use --with-gas.
1112     with_gas=yes ;;
1113
1114   -help | --help | --hel | --he | -h)
1115     ac_init_help=long ;;
1116   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1117     ac_init_help=recursive ;;
1118   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1119     ac_init_help=short ;;
1120
1121   -host | --host | --hos | --ho)
1122     ac_prev=host_alias ;;
1123   -host=* | --host=* | --hos=* | --ho=*)
1124     host_alias=$ac_optarg ;;
1125
1126   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1127     ac_prev=htmldir ;;
1128   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1129   | --ht=*)
1130     htmldir=$ac_optarg ;;
1131
1132   -includedir | --includedir | --includedi | --included | --include \
1133   | --includ | --inclu | --incl | --inc)
1134     ac_prev=includedir ;;
1135   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1136   | --includ=* | --inclu=* | --incl=* | --inc=*)
1137     includedir=$ac_optarg ;;
1138
1139   -infodir | --infodir | --infodi | --infod | --info | --inf)
1140     ac_prev=infodir ;;
1141   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1142     infodir=$ac_optarg ;;
1143
1144   -libdir | --libdir | --libdi | --libd)
1145     ac_prev=libdir ;;
1146   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1147     libdir=$ac_optarg ;;
1148
1149   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1150   | --libexe | --libex | --libe)
1151     ac_prev=libexecdir ;;
1152   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1153   | --libexe=* | --libex=* | --libe=*)
1154     libexecdir=$ac_optarg ;;
1155
1156   -localedir | --localedir | --localedi | --localed | --locale)
1157     ac_prev=localedir ;;
1158   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1159     localedir=$ac_optarg ;;
1160
1161   -localstatedir | --localstatedir | --localstatedi | --localstated \
1162   | --localstate | --localstat | --localsta | --localst | --locals)
1163     ac_prev=localstatedir ;;
1164   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1165   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1166     localstatedir=$ac_optarg ;;
1167
1168   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1169     ac_prev=mandir ;;
1170   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1171     mandir=$ac_optarg ;;
1172
1173   -nfp | --nfp | --nf)
1174     # Obsolete; use --without-fp.
1175     with_fp=no ;;
1176
1177   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1178   | --no-cr | --no-c | -n)
1179     no_create=yes ;;
1180
1181   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1182   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1183     no_recursion=yes ;;
1184
1185   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1186   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1187   | --oldin | --oldi | --old | --ol | --o)
1188     ac_prev=oldincludedir ;;
1189   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1190   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1191   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1192     oldincludedir=$ac_optarg ;;
1193
1194   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1195     ac_prev=prefix ;;
1196   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1197     prefix=$ac_optarg ;;
1198
1199   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1200   | --program-pre | --program-pr | --program-p)
1201     ac_prev=program_prefix ;;
1202   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1203   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1204     program_prefix=$ac_optarg ;;
1205
1206   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1207   | --program-suf | --program-su | --program-s)
1208     ac_prev=program_suffix ;;
1209   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1210   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1211     program_suffix=$ac_optarg ;;
1212
1213   -program-transform-name | --program-transform-name \
1214   | --program-transform-nam | --program-transform-na \
1215   | --program-transform-n | --program-transform- \
1216   | --program-transform | --program-transfor \
1217   | --program-transfo | --program-transf \
1218   | --program-trans | --program-tran \
1219   | --progr-tra | --program-tr | --program-t)
1220     ac_prev=program_transform_name ;;
1221   -program-transform-name=* | --program-transform-name=* \
1222   | --program-transform-nam=* | --program-transform-na=* \
1223   | --program-transform-n=* | --program-transform-=* \
1224   | --program-transform=* | --program-transfor=* \
1225   | --program-transfo=* | --program-transf=* \
1226   | --program-trans=* | --program-tran=* \
1227   | --progr-tra=* | --program-tr=* | --program-t=*)
1228     program_transform_name=$ac_optarg ;;
1229
1230   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1231     ac_prev=pdfdir ;;
1232   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1233     pdfdir=$ac_optarg ;;
1234
1235   -psdir | --psdir | --psdi | --psd | --ps)
1236     ac_prev=psdir ;;
1237   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1238     psdir=$ac_optarg ;;
1239
1240   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1241   | -silent | --silent | --silen | --sile | --sil)
1242     silent=yes ;;
1243
1244   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1245     ac_prev=sbindir ;;
1246   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1247   | --sbi=* | --sb=*)
1248     sbindir=$ac_optarg ;;
1249
1250   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1251   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1252   | --sharedst | --shareds | --shared | --share | --shar \
1253   | --sha | --sh)
1254     ac_prev=sharedstatedir ;;
1255   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1256   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1257   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1258   | --sha=* | --sh=*)
1259     sharedstatedir=$ac_optarg ;;
1260
1261   -site | --site | --sit)
1262     ac_prev=site ;;
1263   -site=* | --site=* | --sit=*)
1264     site=$ac_optarg ;;
1265
1266   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1267     ac_prev=srcdir ;;
1268   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1269     srcdir=$ac_optarg ;;
1270
1271   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1272   | --syscon | --sysco | --sysc | --sys | --sy)
1273     ac_prev=sysconfdir ;;
1274   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1275   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1276     sysconfdir=$ac_optarg ;;
1277
1278   -target | --target | --targe | --targ | --tar | --ta | --t)
1279     ac_prev=target_alias ;;
1280   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1281     target_alias=$ac_optarg ;;
1282
1283   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1284     verbose=yes ;;
1285
1286   -version | --version | --versio | --versi | --vers | -V)
1287     ac_init_version=: ;;
1288
1289   -with-* | --with-*)
1290     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1291     # Reject names that are not valid shell variable names.
1292     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1293       { echo "$as_me: error: invalid package name: $ac_package" >&2
1294    { (exit 1); exit 1; }; }
1295     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1296     eval with_$ac_package=\$ac_optarg ;;
1297
1298   -without-* | --without-*)
1299     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1300     # Reject names that are not valid shell variable names.
1301     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302       { echo "$as_me: error: invalid package name: $ac_package" >&2
1303    { (exit 1); exit 1; }; }
1304     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1305     eval with_$ac_package=no ;;
1306
1307   --x)
1308     # Obsolete; use --with-x.
1309     with_x=yes ;;
1310
1311   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1312   | --x-incl | --x-inc | --x-in | --x-i)
1313     ac_prev=x_includes ;;
1314   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1315   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1316     x_includes=$ac_optarg ;;
1317
1318   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1319   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1320     ac_prev=x_libraries ;;
1321   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1322   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1323     x_libraries=$ac_optarg ;;
1324
1325   -*) { echo "$as_me: error: unrecognized option: $ac_option
1326 Try \`$0 --help' for more information." >&2
1327    { (exit 1); exit 1; }; }
1328     ;;
1329
1330   *=*)
1331     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1332     # Reject names that are not valid shell variable names.
1333     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1334       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1335    { (exit 1); exit 1; }; }
1336     eval $ac_envvar=\$ac_optarg
1337     export $ac_envvar ;;
1338
1339   *)
1340     # FIXME: should be removed in autoconf 3.0.
1341     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1342     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1343       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1344     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1345     ;;
1346
1347   esac
1348 done
1349
1350 if test -n "$ac_prev"; then
1351   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1352   { echo "$as_me: error: missing argument to $ac_option" >&2
1353    { (exit 1); exit 1; }; }
1354 fi
1355
1356 # Be sure to have absolute directory names.
1357 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1358                 datadir sysconfdir sharedstatedir localstatedir includedir \
1359                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1360                 libdir localedir mandir
1361 do
1362   eval ac_val=\$$ac_var
1363   case $ac_val in
1364     [\\/$]* | ?:[\\/]* )  continue;;
1365     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1366   esac
1367   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1368    { (exit 1); exit 1; }; }
1369 done
1370
1371 # There might be people who depend on the old broken behavior: `$host'
1372 # used to hold the argument of --host etc.
1373 # FIXME: To remove some day.
1374 build=$build_alias
1375 host=$host_alias
1376 target=$target_alias
1377
1378 # FIXME: To remove some day.
1379 if test "x$host_alias" != x; then
1380   if test "x$build_alias" = x; then
1381     cross_compiling=maybe
1382     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1383     If a cross compiler is detected then cross compile mode will be used." >&2
1384   elif test "x$build_alias" != "x$host_alias"; then
1385     cross_compiling=yes
1386   fi
1387 fi
1388
1389 ac_tool_prefix=
1390 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391
1392 test "$silent" = yes && exec 6>/dev/null
1393
1394
1395 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1396 ac_ls_di=`ls -di .` &&
1397 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1398   { echo "$as_me: error: Working directory cannot be determined" >&2
1399    { (exit 1); exit 1; }; }
1400 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1401   { echo "$as_me: error: pwd does not report name of working directory" >&2
1402    { (exit 1); exit 1; }; }
1403
1404
1405 # Find the source files, if location was not specified.
1406 if test -z "$srcdir"; then
1407   ac_srcdir_defaulted=yes
1408   # Try the directory containing this script, then the parent directory.
1409   ac_confdir=`$as_dirname -- "$0" ||
1410 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1411          X"$0" : 'X\(//\)[^/]' \| \
1412          X"$0" : 'X\(//\)$' \| \
1413          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1414 echo X"$0" |
1415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1416             s//\1/
1417             q
1418           }
1419           /^X\(\/\/\)[^/].*/{
1420             s//\1/
1421             q
1422           }
1423           /^X\(\/\/\)$/{
1424             s//\1/
1425             q
1426           }
1427           /^X\(\/\).*/{
1428             s//\1/
1429             q
1430           }
1431           s/.*/./; q'`
1432   srcdir=$ac_confdir
1433   if test ! -r "$srcdir/$ac_unique_file"; then
1434     srcdir=..
1435   fi
1436 else
1437   ac_srcdir_defaulted=no
1438 fi
1439 if test ! -r "$srcdir/$ac_unique_file"; then
1440   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1441   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1442    { (exit 1); exit 1; }; }
1443 fi
1444 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1445 ac_abs_confdir=`(
1446         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1447    { (exit 1); exit 1; }; }
1448         pwd)`
1449 # When building in place, set srcdir=.
1450 if test "$ac_abs_confdir" = "$ac_pwd"; then
1451   srcdir=.
1452 fi
1453 # Remove unnecessary trailing slashes from srcdir.
1454 # Double slashes in file names in object file debugging info
1455 # mess up M-x gdb in Emacs.
1456 case $srcdir in
1457 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1458 esac
1459 for ac_var in $ac_precious_vars; do
1460   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1461   eval ac_env_${ac_var}_value=\$${ac_var}
1462   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1463   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1464 done
1465
1466 #
1467 # Report the --help message.
1468 #
1469 if test "$ac_init_help" = "long"; then
1470   # Omit some internal or obsolete options to make the list less imposing.
1471   # This message is too long to be a string in the A/UX 3.1 sh.
1472   cat <<_ACEOF
1473 \`configure' configures this package to adapt to many kinds of systems.
1474
1475 Usage: $0 [OPTION]... [VAR=VALUE]...
1476
1477 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1478 VAR=VALUE.  See below for descriptions of some of the useful variables.
1479
1480 Defaults for the options are specified in brackets.
1481
1482 Configuration:
1483   -h, --help              display this help and exit
1484       --help=short        display options specific to this package
1485       --help=recursive    display the short help of all the included packages
1486   -V, --version           display version information and exit
1487   -q, --quiet, --silent   do not print \`checking...' messages
1488       --cache-file=FILE   cache test results in FILE [disabled]
1489   -C, --config-cache      alias for \`--cache-file=config.cache'
1490   -n, --no-create         do not create output files
1491       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1492
1493 Installation directories:
1494   --prefix=PREFIX         install architecture-independent files in PREFIX
1495                           [$ac_default_prefix]
1496   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1497                           [PREFIX]
1498
1499 By default, \`make install' will install all the files in
1500 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1501 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1502 for instance \`--prefix=\$HOME'.
1503
1504 For better control, use the options below.
1505
1506 Fine tuning of the installation directories:
1507   --bindir=DIR           user executables [EPREFIX/bin]
1508   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1509   --libexecdir=DIR       program executables [EPREFIX/libexec]
1510   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1511   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1512   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1513   --libdir=DIR           object code libraries [EPREFIX/lib]
1514   --includedir=DIR       C header files [PREFIX/include]
1515   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1516   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1517   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1518   --infodir=DIR          info documentation [DATAROOTDIR/info]
1519   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1520   --mandir=DIR           man documentation [DATAROOTDIR/man]
1521   --docdir=DIR           documentation root [DATAROOTDIR/doc/PACKAGE]
1522   --htmldir=DIR          html documentation [DOCDIR]
1523   --dvidir=DIR           dvi documentation [DOCDIR]
1524   --pdfdir=DIR           pdf documentation [DOCDIR]
1525   --psdir=DIR            ps documentation [DOCDIR]
1526 _ACEOF
1527
1528   cat <<\_ACEOF
1529
1530 Program names:
1531   --program-prefix=PREFIX            prepend PREFIX to installed program names
1532   --program-suffix=SUFFIX            append SUFFIX to installed program names
1533   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1534
1535 System types:
1536   --build=BUILD     configure for building on BUILD [guessed]
1537   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1538   --target=TARGET   configure for building compilers for TARGET [HOST]
1539 _ACEOF
1540 fi
1541
1542 if test -n "$ac_init_help"; then
1543
1544   cat <<\_ACEOF
1545
1546 Optional Features:
1547   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1548   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1549   --enable-debug          enable debugging no|yes|traditional [yes]
1550   --enable-dynamic        enable linking built binaries with dynamic libs [no]
1551   --enable-syslog         enable syslog support [auto]
1552   --enable-proctitle      enable proctitle support [yes]
1553   --enable-ipv6           enable IPv6 support [auto]
1554   --enable-local          enable AF_LOCAL (AF_UNIX) socket support [auto]
1555
1556 SLAPD (Standalone LDAP Daemon) Options:
1557   --enable-slapd          enable building slapd [yes]
1558     --enable-dynacl       enable run-time loadable ACL support (experimental) [no]
1559     --enable-aci          enable per-object ACIs (experimental) no|yes|mod [no]
1560     --enable-cleartext    enable cleartext passwords [yes]
1561     --enable-crypt        enable crypt(3) passwords [no]
1562     --enable-lmpasswd     enable LAN Manager passwords [no]
1563     --enable-spasswd      enable (Cyrus) SASL password verification [no]
1564     --enable-modules      enable dynamic module support [no]
1565     --enable-rewrite      enable DN rewriting in back-ldap and rwm overlay [auto]
1566     --enable-rlookups     enable reverse lookups of client hostnames [no]
1567     --enable-slapi        enable SLAPI support (experimental) [no]
1568     --enable-slp          enable SLPv2 support [no]
1569     --enable-wrappers     enable tcp wrapper support [no]
1570
1571 SLAPD Backend Options:
1572     --enable-backends     enable all available backends no|yes|mod
1573     --enable-bdb          enable Berkeley DB backend no|yes|mod [no]
1574     --enable-dnssrv       enable dnssrv backend no|yes|mod [no]
1575     --enable-hdb          enable Hierarchical DB backend no|yes|mod [yes]
1576     --enable-ldap         enable ldap backend no|yes|mod [no]
1577     --enable-meta         enable metadirectory backend no|yes|mod [no]
1578     --enable-monitor      enable monitor backend no|yes|mod [yes]
1579     --enable-ndb          enable MySQL NDB Cluster backend no|yes|mod [no]
1580     --enable-null         enable null backend no|yes|mod [no]
1581     --enable-passwd       enable passwd backend no|yes|mod [no]
1582     --enable-perl         enable perl backend no|yes|mod [no]
1583     --enable-relay        enable relay backend no|yes|mod [yes]
1584     --enable-shell        enable shell backend no|yes|mod [no]
1585     --enable-sock         enable sock backend no|yes|mod [no]
1586     --enable-sql          enable sql backend no|yes|mod [no]
1587
1588 SLAPD Overlay Options:
1589     --enable-overlays     enable all available overlays no|yes|mod
1590     --enable-accesslog    In-Directory Access Logging overlay no|yes|mod [no]
1591     --enable-auditlog     Audit Logging overlay no|yes|mod [no]
1592     --enable-collect      Collect overlay no|yes|mod [no]
1593     --enable-constraint   Attribute Constraint overlay no|yes|mod [no]
1594     --enable-dds          Dynamic Directory Services overlay no|yes|mod [no]
1595     --enable-deref        Dereference overlay no|yes|mod [no]
1596     --enable-dyngroup     Dynamic Group overlay no|yes|mod [no]
1597     --enable-dynlist      Dynamic List overlay no|yes|mod [no]
1598     --enable-memberof     Reverse Group Membership overlay no|yes|mod [no]
1599     --enable-ppolicy      Password Policy overlay no|yes|mod [no]
1600     --enable-proxycache   Proxy Cache overlay no|yes|mod [no]
1601     --enable-refint       Referential Integrity overlay no|yes|mod [no]
1602     --enable-retcode      Return Code testing overlay no|yes|mod [no]
1603     --enable-rwm          Rewrite/Remap overlay no|yes|mod [no]
1604     --enable-seqmod       Sequential Modify overlay no|yes|mod [no]
1605     --enable-sssvlv       ServerSideSort/VLV overlay no|yes|mod [no]
1606     --enable-syncprov     Syncrepl Provider overlay no|yes|mod [yes]
1607     --enable-translucent  Translucent Proxy overlay no|yes|mod [no]
1608     --enable-unique       Attribute Uniqueness overlay no|yes|mod [no]
1609     --enable-valsort      Value Sorting overlay no|yes|mod [no]
1610
1611 Library Generation & Linking Options
1612   --enable-static[=PKGS]  build static libraries [default=yes]
1613   --enable-shared[=PKGS]  build shared libraries [default=yes]
1614   --enable-fast-install[=PKGS]
1615                           optimize for fast installation [default=yes]
1616   --disable-dependency-tracking  speeds up one-time build
1617   --enable-dependency-tracking   do not reject slow dependency extractors
1618   --disable-libtool-lock  avoid locking (might break parallel builds)
1619
1620 Optional Packages:
1621   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1622   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1623   --with-subdir=DIR       change default subdirectory used for installs
1624   --with-cyrus-sasl       with Cyrus SASL support [auto]
1625   --with-fetch            with fetch(3) URL support [auto]
1626   --with-threads          with threads [auto]
1627   --with-tls              with TLS/SSL support auto|openssl|gnutls|moznss [auto]
1628   --with-yielding-select  with implicitly yielding select [auto]
1629   --with-mp               with multiple precision statistics auto|longlong|long|bignum|gmp [auto]
1630   --with-odbc             with specific ODBC support iodbc|unixodbc|odbc32|auto [auto]
1631   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1632   --with-pic              try to use only PIC/non-PIC objects [default=use
1633                           both]
1634   --with-tags[=TAGS]      include additional configurations [automatic]
1635
1636 See INSTALL file for further details.
1637
1638 Some influential environment variables:
1639   CC          C compiler command
1640   CFLAGS      C compiler flags
1641   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1642               nonstandard directory <lib dir>
1643   LIBS        libraries to pass to the linker, e.g. -l<library>
1644   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1645               you have headers in a nonstandard directory <include dir>
1646   CPP         C preprocessor
1647
1648 Use these variables to override the choices made by `configure' or to help
1649 it to find libraries and programs with nonstandard names/locations.
1650
1651 _ACEOF
1652 ac_status=$?
1653 fi
1654
1655 if test "$ac_init_help" = "recursive"; then
1656   # If there are subdirs, report their specific --help.
1657   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1658     test -d "$ac_dir" || continue
1659     ac_builddir=.
1660
1661 case "$ac_dir" in
1662 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1663 *)
1664   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1665   # A ".." for each directory in $ac_dir_suffix.
1666   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1667   case $ac_top_builddir_sub in
1668   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1669   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1670   esac ;;
1671 esac
1672 ac_abs_top_builddir=$ac_pwd
1673 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1674 # for backward compatibility:
1675 ac_top_builddir=$ac_top_build_prefix
1676
1677 case $srcdir in
1678   .)  # We are building in place.
1679     ac_srcdir=.
1680     ac_top_srcdir=$ac_top_builddir_sub
1681     ac_abs_top_srcdir=$ac_pwd ;;
1682   [\\/]* | ?:[\\/]* )  # Absolute name.
1683     ac_srcdir=$srcdir$ac_dir_suffix;
1684     ac_top_srcdir=$srcdir
1685     ac_abs_top_srcdir=$srcdir ;;
1686   *) # Relative name.
1687     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1688     ac_top_srcdir=$ac_top_build_prefix$srcdir
1689     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1690 esac
1691 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1692
1693     cd "$ac_dir" || { ac_status=$?; continue; }
1694     # Check for guested configure.
1695     if test -f "$ac_srcdir/configure.gnu"; then
1696       echo &&
1697       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1698     elif test -f "$ac_srcdir/configure"; then
1699       echo &&
1700       $SHELL "$ac_srcdir/configure" --help=recursive
1701     else
1702       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1703     fi || ac_status=$?
1704     cd "$ac_pwd" || { ac_status=$?; break; }
1705   done
1706 fi
1707
1708 test -n "$ac_init_help" && exit $ac_status
1709 if $ac_init_version; then
1710   cat <<\_ACEOF
1711 configure
1712 generated by GNU Autoconf 2.61
1713
1714 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1715 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1716 This configure script is free software; the Free Software Foundation
1717 gives unlimited permission to copy, distribute and modify it.
1718
1719 Copyright 1998-2011 The OpenLDAP Foundation. All rights reserved.
1720 Restrictions apply, see COPYRIGHT and LICENSE files.
1721 _ACEOF
1722   exit
1723 fi
1724 cat >config.log <<_ACEOF
1725 This file contains any messages produced by compilers while
1726 running configure, to aid debugging if configure makes a mistake.
1727
1728 It was created by $as_me, which was
1729 generated by GNU Autoconf 2.61.  Invocation command line was
1730
1731   $ $0 $@
1732
1733 _ACEOF
1734 exec 5>>config.log
1735 {
1736 cat <<_ASUNAME
1737 ## --------- ##
1738 ## Platform. ##
1739 ## --------- ##
1740
1741 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1742 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1743 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1744 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1745 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1746
1747 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1748 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1749
1750 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1751 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1752 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1753 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1754 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1755 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1756 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1757
1758 _ASUNAME
1759
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1761 for as_dir in $PATH
1762 do
1763   IFS=$as_save_IFS
1764   test -z "$as_dir" && as_dir=.
1765   echo "PATH: $as_dir"
1766 done
1767 IFS=$as_save_IFS
1768
1769 } >&5
1770
1771 cat >&5 <<_ACEOF
1772
1773
1774 ## ----------- ##
1775 ## Core tests. ##
1776 ## ----------- ##
1777
1778 _ACEOF
1779
1780
1781 # Keep a trace of the command line.
1782 # Strip out --no-create and --no-recursion so they do not pile up.
1783 # Strip out --silent because we don't want to record it for future runs.
1784 # Also quote any args containing shell meta-characters.
1785 # Make two passes to allow for proper duplicate-argument suppression.
1786 ac_configure_args=
1787 ac_configure_args0=
1788 ac_configure_args1=
1789 ac_must_keep_next=false
1790 for ac_pass in 1 2
1791 do
1792   for ac_arg
1793   do
1794     case $ac_arg in
1795     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1796     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1797     | -silent | --silent | --silen | --sile | --sil)
1798       continue ;;
1799     *\'*)
1800       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1801     esac
1802     case $ac_pass in
1803     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1804     2)
1805       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1806       if test $ac_must_keep_next = true; then
1807         ac_must_keep_next=false # Got value, back to normal.
1808       else
1809         case $ac_arg in
1810           *=* | --config-cache | -C | -disable-* | --disable-* \
1811           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1812           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1813           | -with-* | --with-* | -without-* | --without-* | --x)
1814             case "$ac_configure_args0 " in
1815               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1816             esac
1817             ;;
1818           -* ) ac_must_keep_next=true ;;
1819         esac
1820       fi
1821       ac_configure_args="$ac_configure_args '$ac_arg'"
1822       ;;
1823     esac
1824   done
1825 done
1826 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1827 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1828
1829 # When interrupted or exit'd, cleanup temporary files, and complete
1830 # config.log.  We remove comments because anyway the quotes in there
1831 # would cause problems or look ugly.
1832 # WARNING: Use '\'' to represent an apostrophe within the trap.
1833 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1834 trap 'exit_status=$?
1835   # Save into config.log some information that might help in debugging.
1836   {
1837     echo
1838
1839     cat <<\_ASBOX
1840 ## ---------------- ##
1841 ## Cache variables. ##
1842 ## ---------------- ##
1843 _ASBOX
1844     echo
1845     # The following way of writing the cache mishandles newlines in values,
1846 (
1847   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1848     eval ac_val=\$$ac_var
1849     case $ac_val in #(
1850     *${as_nl}*)
1851       case $ac_var in #(
1852       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1853 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1854       esac
1855       case $ac_var in #(
1856       _ | IFS | as_nl) ;; #(
1857       *) $as_unset $ac_var ;;
1858       esac ;;
1859     esac
1860   done
1861   (set) 2>&1 |
1862     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1863     *${as_nl}ac_space=\ *)
1864       sed -n \
1865         "s/'\''/'\''\\\\'\'''\''/g;
1866           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1867       ;; #(
1868     *)
1869       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1870       ;;
1871     esac |
1872     sort
1873 )
1874     echo
1875
1876     cat <<\_ASBOX
1877 ## ----------------- ##
1878 ## Output variables. ##
1879 ## ----------------- ##
1880 _ASBOX
1881     echo
1882     for ac_var in $ac_subst_vars
1883     do
1884       eval ac_val=\$$ac_var
1885       case $ac_val in
1886       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1887       esac
1888       echo "$ac_var='\''$ac_val'\''"
1889     done | sort
1890     echo
1891
1892     if test -n "$ac_subst_files"; then
1893       cat <<\_ASBOX
1894 ## ------------------- ##
1895 ## File substitutions. ##
1896 ## ------------------- ##
1897 _ASBOX
1898       echo
1899       for ac_var in $ac_subst_files
1900       do
1901         eval ac_val=\$$ac_var
1902         case $ac_val in
1903         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1904         esac
1905         echo "$ac_var='\''$ac_val'\''"
1906       done | sort
1907       echo
1908     fi
1909
1910     if test -s confdefs.h; then
1911       cat <<\_ASBOX
1912 ## ----------- ##
1913 ## confdefs.h. ##
1914 ## ----------- ##
1915 _ASBOX
1916       echo
1917       cat confdefs.h
1918       echo
1919     fi
1920     test "$ac_signal" != 0 &&
1921       echo "$as_me: caught signal $ac_signal"
1922     echo "$as_me: exit $exit_status"
1923   } >&5
1924   rm -f core *.core core.conftest.* &&
1925     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1926     exit $exit_status
1927 ' 0
1928 for ac_signal in 1 2 13 15; do
1929   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1930 done
1931 ac_signal=0
1932
1933 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1934 rm -f -r conftest* confdefs.h
1935
1936 # Predefined preprocessor variables.
1937
1938 cat >>confdefs.h <<_ACEOF
1939 #define PACKAGE_NAME "$PACKAGE_NAME"
1940 _ACEOF
1941
1942
1943 cat >>confdefs.h <<_ACEOF
1944 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1945 _ACEOF
1946
1947
1948 cat >>confdefs.h <<_ACEOF
1949 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1950 _ACEOF
1951
1952
1953 cat >>confdefs.h <<_ACEOF
1954 #define PACKAGE_STRING "$PACKAGE_STRING"
1955 _ACEOF
1956
1957
1958 cat >>confdefs.h <<_ACEOF
1959 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1960 _ACEOF
1961
1962
1963 # Let the site file select an alternate cache file if it wants to.
1964 # Prefer explicitly selected file to automatically selected ones.
1965 if test -n "$CONFIG_SITE"; then
1966   set x "$CONFIG_SITE"
1967 elif test "x$prefix" != xNONE; then
1968   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1969 else
1970   set x "$ac_default_prefix/share/config.site" \
1971         "$ac_default_prefix/etc/config.site"
1972 fi
1973 shift
1974 for ac_site_file
1975 do
1976   if test -r "$ac_site_file"; then
1977     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1978 echo "$as_me: loading site script $ac_site_file" >&6;}
1979     sed 's/^/| /' "$ac_site_file" >&5
1980     . "$ac_site_file"
1981   fi
1982 done
1983
1984
1985 # Check that the precious variables saved in the cache have kept the same
1986 # value.
1987 ac_cache_corrupted=false
1988 for ac_var in $ac_precious_vars; do
1989   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1990   eval ac_new_set=\$ac_env_${ac_var}_set
1991   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1992   eval ac_new_val=\$ac_env_${ac_var}_value
1993   case $ac_old_set,$ac_new_set in
1994     set,)
1995       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1996 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1997       ac_cache_corrupted=: ;;
1998     ,set)
1999       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2000 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2001       ac_cache_corrupted=: ;;
2002     ,);;
2003     *)
2004       if test "x$ac_old_val" != "x$ac_new_val"; then
2005         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2006 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2007         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2008 echo "$as_me:   former value:  $ac_old_val" >&2;}
2009         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2010 echo "$as_me:   current value: $ac_new_val" >&2;}
2011         ac_cache_corrupted=:
2012       fi;;
2013   esac
2014   # Pass precious variables to config.status.
2015   if test "$ac_new_set" = set; then
2016     case $ac_new_val in
2017     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2018     *) ac_arg=$ac_var=$ac_new_val ;;
2019     esac
2020     case " $ac_configure_args " in
2021       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2022       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2023     esac
2024   fi
2025 done
2026 if $ac_cache_corrupted; then
2027   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2028 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2029   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2030 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2031    { (exit 1); exit 1; }; }
2032 fi
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050 ac_ext=c
2051 ac_cpp='$CPP $CPPFLAGS'
2052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083 ac_aux_dir=
2084 for ac_dir in build "$srcdir"/build; do
2085   if test -f "$ac_dir/install-sh"; then
2086     ac_aux_dir=$ac_dir
2087     ac_install_sh="$ac_aux_dir/install-sh -c"
2088     break
2089   elif test -f "$ac_dir/install.sh"; then
2090     ac_aux_dir=$ac_dir
2091     ac_install_sh="$ac_aux_dir/install.sh -c"
2092     break
2093   elif test -f "$ac_dir/shtool"; then
2094     ac_aux_dir=$ac_dir
2095     ac_install_sh="$ac_aux_dir/shtool install -c"
2096     break
2097   fi
2098 done
2099 if test -z "$ac_aux_dir"; then
2100   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&5
2101 echo "$as_me: error: cannot find install-sh or install.sh in build \"$srcdir\"/build" >&2;}
2102    { (exit 1); exit 1; }; }
2103 fi
2104
2105 # These three variables are undocumented and unsupported,
2106 # and are intended to be withdrawn in a future Autoconf release.
2107 # They can cause serious problems if a builder's source tree is in a directory
2108 # whose full name contains unusual characters.
2109 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2110 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2111 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2112
2113
2114 eval `$ac_aux_dir/version.sh`
2115 if test -z "$OL_STRING"; then
2116         { { echo "$as_me:$LINENO: error: could not determine version" >&5
2117 echo "$as_me: error: could not determine version" >&2;}
2118    { (exit 1); exit 1; }; }
2119 fi
2120
2121 if test -f "$ac_aux_dir/shtool" && test ! -d $ac_aux_dir/shtool; then
2122         ac_cv_shtool="$ac_aux_dir/shtool"
2123 else
2124         { { echo "$as_me:$LINENO: error: no shtool found in $ac_aux_dir" >&5
2125 echo "$as_me: error: no shtool found in $ac_aux_dir" >&2;}
2126    { (exit 1); exit 1; }; }
2127 fi
2128
2129 SHTOOL="$ac_cv_shtool"
2130
2131 TB="" TN=""
2132 if test -t 1; then
2133         TB="`$SHTOOL echo -e '%B' 2>/dev/null`"
2134         TN="`$SHTOOL echo -e '%b' 2>/dev/null`"
2135 fi
2136
2137 OPENLDAP_REPO=""
2138 if test -d $ac_aux_dir/../.git; then
2139         OPENLDAP_REPO="(from Git clone) "
2140 elif test -d $ac_aux_dir/CVS; then
2141         OPENLDAP_REPO="(from CVS checkout) "
2142 fi
2143
2144 echo "Configuring ${TB}${OL_STRING}${TN} ${OPENLDAP_REPO}..."
2145
2146 # Make sure we can run config.sub.
2147 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2148   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2149 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2150    { (exit 1); exit 1; }; }
2151
2152 { echo "$as_me:$LINENO: checking build system type" >&5
2153 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2154 if test "${ac_cv_build+set}" = set; then
2155   echo $ECHO_N "(cached) $ECHO_C" >&6
2156 else
2157   ac_build_alias=$build_alias
2158 test "x$ac_build_alias" = x &&
2159   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2160 test "x$ac_build_alias" = x &&
2161   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2162 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2163    { (exit 1); exit 1; }; }
2164 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2165   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2166 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2167    { (exit 1); exit 1; }; }
2168
2169 fi
2170 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2171 echo "${ECHO_T}$ac_cv_build" >&6; }
2172 case $ac_cv_build in
2173 *-*-*) ;;
2174 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2175 echo "$as_me: error: invalid value of canonical build" >&2;}
2176    { (exit 1); exit 1; }; };;
2177 esac
2178 build=$ac_cv_build
2179 ac_save_IFS=$IFS; IFS='-'
2180 set x $ac_cv_build
2181 shift
2182 build_cpu=$1
2183 build_vendor=$2
2184 shift; shift
2185 # Remember, the first character of IFS is used to create $*,
2186 # except with old shells:
2187 build_os=$*
2188 IFS=$ac_save_IFS
2189 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2190
2191
2192 { echo "$as_me:$LINENO: checking host system type" >&5
2193 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2194 if test "${ac_cv_host+set}" = set; then
2195   echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197   if test "x$host_alias" = x; then
2198   ac_cv_host=$ac_cv_build
2199 else
2200   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2201     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2202 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2203    { (exit 1); exit 1; }; }
2204 fi
2205
2206 fi
2207 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2208 echo "${ECHO_T}$ac_cv_host" >&6; }
2209 case $ac_cv_host in
2210 *-*-*) ;;
2211 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2212 echo "$as_me: error: invalid value of canonical host" >&2;}
2213    { (exit 1); exit 1; }; };;
2214 esac
2215 host=$ac_cv_host
2216 ac_save_IFS=$IFS; IFS='-'
2217 set x $ac_cv_host
2218 shift
2219 host_cpu=$1
2220 host_vendor=$2
2221 shift; shift
2222 # Remember, the first character of IFS is used to create $*,
2223 # except with old shells:
2224 host_os=$*
2225 IFS=$ac_save_IFS
2226 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2227
2228
2229 { echo "$as_me:$LINENO: checking target system type" >&5
2230 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2231 if test "${ac_cv_target+set}" = set; then
2232   echo $ECHO_N "(cached) $ECHO_C" >&6
2233 else
2234   if test "x$target_alias" = x; then
2235   ac_cv_target=$ac_cv_host
2236 else
2237   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2238     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2239 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2240    { (exit 1); exit 1; }; }
2241 fi
2242
2243 fi
2244 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2245 echo "${ECHO_T}$ac_cv_target" >&6; }
2246 case $ac_cv_target in
2247 *-*-*) ;;
2248 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2249 echo "$as_me: error: invalid value of canonical target" >&2;}
2250    { (exit 1); exit 1; }; };;
2251 esac
2252 target=$ac_cv_target
2253 ac_save_IFS=$IFS; IFS='-'
2254 set x $ac_cv_target
2255 shift
2256 target_cpu=$1
2257 target_vendor=$2
2258 shift; shift
2259 # Remember, the first character of IFS is used to create $*,
2260 # except with old shells:
2261 target_os=$*
2262 IFS=$ac_save_IFS
2263 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2264
2265
2266 # The aliases save the names the user supplied, while $host etc.
2267 # will get canonicalized.
2268 test -n "$target_alias" &&
2269   test "$program_prefix$program_suffix$program_transform_name" = \
2270     NONENONEs,x,x, &&
2271   program_prefix=${target_alias}-
2272
2273 am__api_version='1.10'
2274
2275 # Find a good install program.  We prefer a C program (faster),
2276 # so one script is as good as another.  But avoid the broken or
2277 # incompatible versions:
2278 # SysV /etc/install, /usr/sbin/install
2279 # SunOS /usr/etc/install
2280 # IRIX /sbin/install
2281 # AIX /bin/install
2282 # AmigaOS /C/install, which installs bootblocks on floppy discs
2283 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2284 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2285 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2286 # OS/2's system install, which has a completely different semantic
2287 # ./install, which can be erroneously created by make from ./install.sh.
2288 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2289 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2290 if test -z "$INSTALL"; then
2291 if test "${ac_cv_path_install+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295 for as_dir in $PATH
2296 do
2297   IFS=$as_save_IFS
2298   test -z "$as_dir" && as_dir=.
2299   # Account for people who put trailing slashes in PATH elements.
2300 case $as_dir/ in
2301   ./ | .// | /cC/* | \
2302   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2303   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2304   /usr/ucb/* ) ;;
2305   *)
2306     # OSF1 and SCO ODT 3.0 have their own names for install.
2307     # Don't use installbsd from OSF since it installs stuff as root
2308     # by default.
2309     for ac_prog in ginstall scoinst install; do
2310       for ac_exec_ext in '' $ac_executable_extensions; do
2311         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2312           if test $ac_prog = install &&
2313             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2314             # AIX install.  It has an incompatible calling convention.
2315             :
2316           elif test $ac_prog = install &&
2317             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2318             # program-specific install script used by HP pwplus--don't use.
2319             :
2320           else
2321             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2322             break 3
2323           fi
2324         fi
2325       done
2326     done
2327     ;;
2328 esac
2329 done
2330 IFS=$as_save_IFS
2331
2332
2333 fi
2334   if test "${ac_cv_path_install+set}" = set; then
2335     INSTALL=$ac_cv_path_install
2336   else
2337     # As a last resort, use the slow shell script.  Don't cache a
2338     # value for INSTALL within a source directory, because that will
2339     # break other packages using the cache if that directory is
2340     # removed, or if the value is a relative name.
2341     INSTALL=$ac_install_sh
2342   fi
2343 fi
2344 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2345 echo "${ECHO_T}$INSTALL" >&6; }
2346
2347 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2348 # It thinks the first close brace ends the variable substitution.
2349 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2350
2351 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2352
2353 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2354
2355 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2356 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2357 # Just in case
2358 sleep 1
2359 echo timestamp > conftest.file
2360 # Do `set' in a subshell so we don't clobber the current shell's
2361 # arguments.  Must try -L first in case configure is actually a
2362 # symlink; some systems play weird games with the mod time of symlinks
2363 # (eg FreeBSD returns the mod time of the symlink's containing
2364 # directory).
2365 if (
2366    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2367    if test "$*" = "X"; then
2368       # -L didn't work.
2369       set X `ls -t $srcdir/configure conftest.file`
2370    fi
2371    rm -f conftest.file
2372    if test "$*" != "X $srcdir/configure conftest.file" \
2373       && test "$*" != "X conftest.file $srcdir/configure"; then
2374
2375       # If neither matched, then we have a broken ls.  This can happen
2376       # if, for instance, CONFIG_SHELL is bash and it inherits a
2377       # broken ls alias from the environment.  This has actually
2378       # happened.  Such a system could not be considered "sane".
2379       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2380 alias in your environment" >&5
2381 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2382 alias in your environment" >&2;}
2383    { (exit 1); exit 1; }; }
2384    fi
2385
2386    test "$2" = conftest.file
2387    )
2388 then
2389    # Ok.
2390    :
2391 else
2392    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2393 Check your system clock" >&5
2394 echo "$as_me: error: newly created file is older than distributed files!
2395 Check your system clock" >&2;}
2396    { (exit 1); exit 1; }; }
2397 fi
2398 { echo "$as_me:$LINENO: result: yes" >&5
2399 echo "${ECHO_T}yes" >&6; }
2400 test "$program_prefix" != NONE &&
2401   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2402 # Use a double $ so make ignores it.
2403 test "$program_suffix" != NONE &&
2404   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2405 # Double any \ or $.  echo might interpret backslashes.
2406 # By default was `s,x,x', remove it if useless.
2407 cat <<\_ACEOF >conftest.sed
2408 s/[\\$]/&&/g;s/;s,x,x,$//
2409 _ACEOF
2410 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2411 rm -f conftest.sed
2412
2413 # expand $ac_aux_dir to an absolute path
2414 am_aux_dir=`cd $ac_aux_dir && pwd`
2415
2416 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2417 # Use eval to expand $SHELL
2418 if eval "$MISSING --run true"; then
2419   am_missing_run="$MISSING --run "
2420 else
2421   am_missing_run=
2422   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2423 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2424 fi
2425
2426 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2427 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2428 if test -z "$MKDIR_P"; then
2429   if test "${ac_cv_path_mkdir+set}" = set; then
2430   echo $ECHO_N "(cached) $ECHO_C" >&6
2431 else
2432   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2434 do
2435   IFS=$as_save_IFS
2436   test -z "$as_dir" && as_dir=.
2437   for ac_prog in mkdir gmkdir; do
2438          for ac_exec_ext in '' $ac_executable_extensions; do
2439            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2440            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2441              'mkdir (GNU coreutils) '* | \
2442              'mkdir (coreutils) '* | \
2443              'mkdir (fileutils) '4.1*)
2444                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2445                break 3;;
2446            esac
2447          done
2448        done
2449 done
2450 IFS=$as_save_IFS
2451
2452 fi
2453
2454   if test "${ac_cv_path_mkdir+set}" = set; then
2455     MKDIR_P="$ac_cv_path_mkdir -p"
2456   else
2457     # As a last resort, use the slow shell script.  Don't cache a
2458     # value for MKDIR_P within a source directory, because that will
2459     # break other packages using the cache if that directory is
2460     # removed, or if the value is a relative name.
2461     test -d ./--version && rmdir ./--version
2462     MKDIR_P="$ac_install_sh -d"
2463   fi
2464 fi
2465 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2466 echo "${ECHO_T}$MKDIR_P" >&6; }
2467
2468 mkdir_p="$MKDIR_P"
2469 case $mkdir_p in
2470   [\\/$]* | ?:[\\/]*) ;;
2471   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2472 esac
2473
2474 for ac_prog in gawk mawk nawk awk
2475 do
2476   # Extract the first word of "$ac_prog", so it can be a program name with args.
2477 set dummy $ac_prog; ac_word=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_AWK+set}" = set; then
2481   echo $ECHO_N "(cached) $ECHO_C" >&6
2482 else
2483   if test -n "$AWK"; then
2484   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2485 else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487 for as_dir in $PATH
2488 do
2489   IFS=$as_save_IFS
2490   test -z "$as_dir" && as_dir=.
2491   for ac_exec_ext in '' $ac_executable_extensions; do
2492   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2493     ac_cv_prog_AWK="$ac_prog"
2494     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2495     break 2
2496   fi
2497 done
2498 done
2499 IFS=$as_save_IFS
2500
2501 fi
2502 fi
2503 AWK=$ac_cv_prog_AWK
2504 if test -n "$AWK"; then
2505   { echo "$as_me:$LINENO: result: $AWK" >&5
2506 echo "${ECHO_T}$AWK" >&6; }
2507 else
2508   { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2510 fi
2511
2512
2513   test -n "$AWK" && break
2514 done
2515
2516 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2517 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2518 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2519 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2520   echo $ECHO_N "(cached) $ECHO_C" >&6
2521 else
2522   cat >conftest.make <<\_ACEOF
2523 SHELL = /bin/sh
2524 all:
2525         @echo '@@@%%%=$(MAKE)=@@@%%%'
2526 _ACEOF
2527 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2528 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2529   *@@@%%%=?*=@@@%%%*)
2530     eval ac_cv_prog_make_${ac_make}_set=yes;;
2531   *)
2532     eval ac_cv_prog_make_${ac_make}_set=no;;
2533 esac
2534 rm -f conftest.make
2535 fi
2536 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2537   { echo "$as_me:$LINENO: result: yes" >&5
2538 echo "${ECHO_T}yes" >&6; }
2539   SET_MAKE=
2540 else
2541   { echo "$as_me:$LINENO: result: no" >&5
2542 echo "${ECHO_T}no" >&6; }
2543   SET_MAKE="MAKE=${MAKE-make}"
2544 fi
2545
2546 rm -rf .tst 2>/dev/null
2547 mkdir .tst 2>/dev/null
2548 if test -d .tst; then
2549   am__leading_dot=.
2550 else
2551   am__leading_dot=_
2552 fi
2553 rmdir .tst 2>/dev/null
2554
2555 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2556   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2557   # is not polluted with repeated "-I."
2558   am__isrc=' -I$(srcdir)'
2559   # test to see if srcdir already configured
2560   if test -f $srcdir/config.status; then
2561     { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2562 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2563    { (exit 1); exit 1; }; }
2564   fi
2565 fi
2566
2567 # test whether we have cygpath
2568 if test -z "$CYGPATH_W"; then
2569   if (cygpath --version) >/dev/null 2>/dev/null; then
2570     CYGPATH_W='cygpath -w'
2571   else
2572     CYGPATH_W=echo
2573   fi
2574 fi
2575
2576
2577 # Define the identity of the package.
2578  PACKAGE=$OL_PACKAGE
2579  VERSION=$OL_VERSION
2580
2581
2582 # Some tools Automake needs.
2583
2584 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2585
2586
2587 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2588
2589
2590 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2591
2592
2593 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2594
2595
2596 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2597
2598 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2599
2600 # Installed binaries are usually stripped using `strip' when the user
2601 # run `make install-strip'.  However `strip' might not be the right
2602 # tool to use in cross-compilation environments, therefore Automake
2603 # will honor the `STRIP' environment variable to overrule this program.
2604 if test "$cross_compiling" != no; then
2605   if test -n "$ac_tool_prefix"; then
2606   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2607 set dummy ${ac_tool_prefix}strip; ac_word=$2
2608 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2609 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2610 if test "${ac_cv_prog_STRIP+set}" = set; then
2611   echo $ECHO_N "(cached) $ECHO_C" >&6
2612 else
2613   if test -n "$STRIP"; then
2614   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2615 else
2616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2617 for as_dir in $PATH
2618 do
2619   IFS=$as_save_IFS
2620   test -z "$as_dir" && as_dir=.
2621   for ac_exec_ext in '' $ac_executable_extensions; do
2622   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2624     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2625     break 2
2626   fi
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632 fi
2633 STRIP=$ac_cv_prog_STRIP
2634 if test -n "$STRIP"; then
2635   { echo "$as_me:$LINENO: result: $STRIP" >&5
2636 echo "${ECHO_T}$STRIP" >&6; }
2637 else
2638   { echo "$as_me:$LINENO: result: no" >&5
2639 echo "${ECHO_T}no" >&6; }
2640 fi
2641
2642
2643 fi
2644 if test -z "$ac_cv_prog_STRIP"; then
2645   ac_ct_STRIP=$STRIP
2646   # Extract the first word of "strip", so it can be a program name with args.
2647 set dummy strip; ac_word=$2
2648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2650 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2651   echo $ECHO_N "(cached) $ECHO_C" >&6
2652 else
2653   if test -n "$ac_ct_STRIP"; then
2654   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2658 do
2659   IFS=$as_save_IFS
2660   test -z "$as_dir" && as_dir=.
2661   for ac_exec_ext in '' $ac_executable_extensions; do
2662   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663     ac_cv_prog_ac_ct_STRIP="strip"
2664     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2665     break 2
2666   fi
2667 done
2668 done
2669 IFS=$as_save_IFS
2670
2671 fi
2672 fi
2673 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2674 if test -n "$ac_ct_STRIP"; then
2675   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2676 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2677 else
2678   { echo "$as_me:$LINENO: result: no" >&5
2679 echo "${ECHO_T}no" >&6; }
2680 fi
2681
2682   if test "x$ac_ct_STRIP" = x; then
2683     STRIP=":"
2684   else
2685     case $cross_compiling:$ac_tool_warned in
2686 yes:)
2687 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2688 whose name does not start with the host triplet.  If you think this
2689 configuration is useful to you, please write to autoconf@gnu.org." >&5
2690 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2691 whose name does not start with the host triplet.  If you think this
2692 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2693 ac_tool_warned=yes ;;
2694 esac
2695     STRIP=$ac_ct_STRIP
2696   fi
2697 else
2698   STRIP="$ac_cv_prog_STRIP"
2699 fi
2700
2701 fi
2702 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2703
2704 # We need awk for the "check" target.  The system "awk" is bad on
2705 # some platforms.
2706 # Always define AMTAR for backward compatibility.
2707
2708 AMTAR=${AMTAR-"${am_missing_run}tar"}
2709
2710 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2711
2712
2713
2714
2715
2716 cat >>confdefs.h <<_ACEOF
2717 #define OPENLDAP_PACKAGE "$PACKAGE"
2718 _ACEOF
2719
2720
2721 cat >>confdefs.h <<_ACEOF
2722 #define OPENLDAP_VERSION "$VERSION"
2723 _ACEOF
2724
2725
2726
2727 cat >>confdefs.h <<_ACEOF
2728 #define LDAP_VENDOR_VERSION $OL_API_INC
2729 _ACEOF
2730
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define LDAP_VENDOR_VERSION_MAJOR $OL_MAJOR
2734 _ACEOF
2735
2736
2737 cat >>confdefs.h <<_ACEOF
2738 #define LDAP_VENDOR_VERSION_MINOR $OL_MINOR
2739 _ACEOF
2740
2741
2742 cat >>confdefs.h <<_ACEOF
2743 #define LDAP_VENDOR_VERSION_PATCH $OL_PATCH
2744 _ACEOF
2745
2746
2747 OPENLDAP_LIBRELEASE=$OL_API_LIB_RELEASE
2748
2749 OPENLDAP_LIBVERSION=$OL_API_LIB_VERSION
2750
2751 OPENLDAP_RELEASE_DATE="$OL_RELEASE_DATE"
2752
2753
2754
2755
2756
2757
2758
2759 ac_config_headers="$ac_config_headers include/portable.h:include/portable.hin"
2760
2761 ac_config_headers="$ac_config_headers include/ldap_features.h:include/ldap_features.hin"
2762
2763 ac_config_headers="$ac_config_headers include/lber_types.h:include/lber_types.hin"
2764
2765
2766 { echo "$as_me:$LINENO: checking configure arguments" >&5
2767 echo $ECHO_N "checking configure arguments... $ECHO_C" >&6; }
2768
2769
2770 top_builddir=`pwd`
2771
2772 ldap_subdir="/openldap"
2773
2774
2775 # Check whether --with-subdir was given.
2776 if test "${with_subdir+set}" = set; then
2777   withval=$with_subdir; case "$withval" in
2778         no) ldap_subdir=""
2779                 ;;
2780         yes)
2781                 ;;
2782         /*|\\*)
2783                 ldap_subdir="$withval"
2784                 ;;
2785         *)
2786                 ldap_subdir="/$withval"
2787                 ;;
2788 esac
2789
2790 fi
2791
2792
2793 # OpenLDAP --enable-debug
2794
2795         # Check whether --enable-debug was given.
2796 if test "${enable_debug+set}" = set; then
2797   enableval=$enable_debug;
2798         ol_arg=invalid
2799         for ol_val in no yes traditional ; 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-debug" >&5
2806 echo "$as_me: error: bad value $enableval for --enable-debug" >&2;}
2807    { (exit 1); exit 1; }; }
2808         fi
2809         ol_enable_debug="$ol_arg"
2810
2811 else
2812         ol_enable_debug=yes
2813 fi
2814
2815 # end --enable-debug
2816 # OpenLDAP --enable-dynamic
2817
2818         # Check whether --enable-dynamic was given.
2819 if test "${enable_dynamic+set}" = set; then
2820   enableval=$enable_dynamic;
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-dynamic" >&5
2829 echo "$as_me: error: bad value $enableval for --enable-dynamic" >&2;}
2830    { (exit 1); exit 1; }; }
2831         fi
2832         ol_enable_dynamic="$ol_arg"
2833
2834 else
2835         ol_enable_dynamic=no
2836 fi
2837
2838 # end --enable-dynamic
2839 # OpenLDAP --enable-syslog
2840
2841         # Check whether --enable-syslog was given.
2842 if test "${enable_syslog+set}" = set; then
2843   enableval=$enable_syslog;
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-syslog" >&5
2852 echo "$as_me: error: bad value $enableval for --enable-syslog" >&2;}
2853    { (exit 1); exit 1; }; }
2854         fi
2855         ol_enable_syslog="$ol_arg"
2856
2857 else
2858         ol_enable_syslog=auto
2859 fi
2860
2861 # end --enable-syslog
2862 # OpenLDAP --enable-proctitle
2863
2864         # Check whether --enable-proctitle was given.
2865 if test "${enable_proctitle+set}" = set; then
2866   enableval=$enable_proctitle;
2867         ol_arg=invalid
2868         for ol_val in auto yes no ; do
2869                 if test "$enableval" = "$ol_val" ; then
2870                         ol_arg="$ol_val"
2871                 fi
2872         done
2873         if test "$ol_arg" = "invalid" ; then
2874                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proctitle" >&5
2875 echo "$as_me: error: bad value $enableval for --enable-proctitle" >&2;}
2876    { (exit 1); exit 1; }; }
2877         fi
2878         ol_enable_proctitle="$ol_arg"
2879
2880 else
2881         ol_enable_proctitle=yes
2882 fi
2883
2884 # end --enable-proctitle
2885 ol_enable_referrals=${ol_enable_referrals-no}
2886 # OpenLDAP --enable-ipv6
2887
2888         # Check whether --enable-ipv6 was given.
2889 if test "${enable_ipv6+set}" = set; then
2890   enableval=$enable_ipv6;
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-ipv6" >&5
2899 echo "$as_me: error: bad value $enableval for --enable-ipv6" >&2;}
2900    { (exit 1); exit 1; }; }
2901         fi
2902         ol_enable_ipv6="$ol_arg"
2903
2904 else
2905         ol_enable_ipv6=auto
2906 fi
2907
2908 # end --enable-ipv6
2909 # OpenLDAP --enable-local
2910
2911         # Check whether --enable-local was given.
2912 if test "${enable_local+set}" = set; then
2913   enableval=$enable_local;
2914         ol_arg=invalid
2915         for ol_val in auto yes no ; do
2916                 if test "$enableval" = "$ol_val" ; then
2917                         ol_arg="$ol_val"
2918                 fi
2919         done
2920         if test "$ol_arg" = "invalid" ; then
2921                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-local" >&5
2922 echo "$as_me: error: bad value $enableval for --enable-local" >&2;}
2923    { (exit 1); exit 1; }; }
2924         fi
2925         ol_enable_local="$ol_arg"
2926
2927 else
2928         ol_enable_local=auto
2929 fi
2930
2931 # end --enable-local
2932
2933 # OpenLDAP --with-cyrus_sasl
2934
2935 # Check whether --with-cyrus_sasl was given.
2936 if test "${with_cyrus_sasl+set}" = set; then
2937   withval=$with_cyrus_sasl;
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-cyrus_sasl" >&5
2946 echo "$as_me: error: bad value $withval for --with-cyrus_sasl" >&2;}
2947    { (exit 1); exit 1; }; }
2948         fi
2949         ol_with_cyrus_sasl="$ol_arg"
2950
2951 else
2952         ol_with_cyrus_sasl="auto"
2953 fi
2954 # end --with-cyrus_sasl
2955
2956 # OpenLDAP --with-fetch
2957
2958 # Check whether --with-fetch was given.
2959 if test "${with_fetch+set}" = set; then
2960   withval=$with_fetch;
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-fetch" >&5
2969 echo "$as_me: error: bad value $withval for --with-fetch" >&2;}
2970    { (exit 1); exit 1; }; }
2971         fi
2972         ol_with_fetch="$ol_arg"
2973
2974 else
2975         ol_with_fetch="auto"
2976 fi
2977 # end --with-fetch
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 moznss 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:-no}
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         sssvlv \
3782         syncprov \
3783         translucent \
3784         unique \
3785         valsort"
3786
3787 # Check whether --enable-xxslapoverlays was given.
3788 if test "${enable_xxslapoverlays+set}" = set; then
3789   enableval=$enable_xxslapoverlays;
3790 fi
3791
3792
3793 # OpenLDAP --enable-overlays
3794
3795         # Check whether --enable-overlays was given.
3796 if test "${enable_overlays+set}" = set; then
3797   enableval=$enable_overlays;
3798         ol_arg=invalid
3799         for ol_val in no yes mod ; do
3800                 if test "$enableval" = "$ol_val" ; then
3801                         ol_arg="$ol_val"
3802                 fi
3803         done
3804         if test "$ol_arg" = "invalid" ; then
3805                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-overlays" >&5
3806 echo "$as_me: error: bad value $enableval for --enable-overlays" >&2;}
3807    { (exit 1); exit 1; }; }
3808         fi
3809         ol_enable_overlays="$ol_arg"
3810
3811 fi
3812
3813 # end --enable-overlays
3814 # OpenLDAP --enable-accesslog
3815
3816         # Check whether --enable-accesslog was given.
3817 if test "${enable_accesslog+set}" = set; then
3818   enableval=$enable_accesslog;
3819         ol_arg=invalid
3820         for ol_val in no yes mod ; do
3821                 if test "$enableval" = "$ol_val" ; then
3822                         ol_arg="$ol_val"
3823                 fi
3824         done
3825         if test "$ol_arg" = "invalid" ; then
3826                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-accesslog" >&5
3827 echo "$as_me: error: bad value $enableval for --enable-accesslog" >&2;}
3828    { (exit 1); exit 1; }; }
3829         fi
3830         ol_enable_accesslog="$ol_arg"
3831
3832 else
3833         ol_enable_accesslog=${ol_enable_overlays:-no}
3834 fi
3835
3836 # end --enable-accesslog
3837
3838 # OpenLDAP --enable-auditlog
3839
3840         # Check whether --enable-auditlog was given.
3841 if test "${enable_auditlog+set}" = set; then
3842   enableval=$enable_auditlog;
3843         ol_arg=invalid
3844         for ol_val in no yes mod ; do
3845                 if test "$enableval" = "$ol_val" ; then
3846                         ol_arg="$ol_val"
3847                 fi
3848         done
3849         if test "$ol_arg" = "invalid" ; then
3850                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-auditlog" >&5
3851 echo "$as_me: error: bad value $enableval for --enable-auditlog" >&2;}
3852    { (exit 1); exit 1; }; }
3853         fi
3854         ol_enable_auditlog="$ol_arg"
3855
3856 else
3857         ol_enable_auditlog=${ol_enable_overlays:-no}
3858 fi
3859
3860 # end --enable-auditlog
3861
3862 # OpenLDAP --enable-collect
3863
3864         # Check whether --enable-collect was given.
3865 if test "${enable_collect+set}" = set; then
3866   enableval=$enable_collect;
3867         ol_arg=invalid
3868         for ol_val in no yes mod ; do
3869                 if test "$enableval" = "$ol_val" ; then
3870                         ol_arg="$ol_val"
3871                 fi
3872         done
3873         if test "$ol_arg" = "invalid" ; then
3874                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-collect" >&5
3875 echo "$as_me: error: bad value $enableval for --enable-collect" >&2;}
3876    { (exit 1); exit 1; }; }
3877         fi
3878         ol_enable_collect="$ol_arg"
3879
3880 else
3881         ol_enable_collect=${ol_enable_overlays:-no}
3882 fi
3883
3884 # end --enable-collect
3885
3886 # OpenLDAP --enable-constraint
3887
3888         # Check whether --enable-constraint was given.
3889 if test "${enable_constraint+set}" = set; then
3890   enableval=$enable_constraint;
3891         ol_arg=invalid
3892         for ol_val in no yes mod ; do
3893                 if test "$enableval" = "$ol_val" ; then
3894                         ol_arg="$ol_val"
3895                 fi
3896         done
3897         if test "$ol_arg" = "invalid" ; then
3898                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-constraint" >&5
3899 echo "$as_me: error: bad value $enableval for --enable-constraint" >&2;}
3900    { (exit 1); exit 1; }; }
3901         fi
3902         ol_enable_constraint="$ol_arg"
3903
3904 else
3905         ol_enable_constraint=${ol_enable_overlays:-no}
3906 fi
3907
3908 # end --enable-constraint
3909
3910 # OpenLDAP --enable-dds
3911
3912         # Check whether --enable-dds was given.
3913 if test "${enable_dds+set}" = set; then
3914   enableval=$enable_dds;
3915         ol_arg=invalid
3916         for ol_val in no yes mod ; do
3917                 if test "$enableval" = "$ol_val" ; then
3918                         ol_arg="$ol_val"
3919                 fi
3920         done
3921         if test "$ol_arg" = "invalid" ; then
3922                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dds" >&5
3923 echo "$as_me: error: bad value $enableval for --enable-dds" >&2;}
3924    { (exit 1); exit 1; }; }
3925         fi
3926         ol_enable_dds="$ol_arg"
3927
3928 else
3929         ol_enable_dds=${ol_enable_overlays:-no}
3930 fi
3931
3932 # end --enable-dds
3933
3934 # OpenLDAP --enable-deref
3935
3936         # Check whether --enable-deref was given.
3937 if test "${enable_deref+set}" = set; then
3938   enableval=$enable_deref;
3939         ol_arg=invalid
3940         for ol_val in no yes mod ; do
3941                 if test "$enableval" = "$ol_val" ; then
3942                         ol_arg="$ol_val"
3943                 fi
3944         done
3945         if test "$ol_arg" = "invalid" ; then
3946                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-deref" >&5
3947 echo "$as_me: error: bad value $enableval for --enable-deref" >&2;}
3948    { (exit 1); exit 1; }; }
3949         fi
3950         ol_enable_deref="$ol_arg"
3951
3952 else
3953         ol_enable_deref=${ol_enable_overlays:-no}
3954 fi
3955
3956 # end --enable-deref
3957
3958 # OpenLDAP --enable-dyngroup
3959
3960         # Check whether --enable-dyngroup was given.
3961 if test "${enable_dyngroup+set}" = set; then
3962   enableval=$enable_dyngroup;
3963         ol_arg=invalid
3964         for ol_val in no yes mod ; do
3965                 if test "$enableval" = "$ol_val" ; then
3966                         ol_arg="$ol_val"
3967                 fi
3968         done
3969         if test "$ol_arg" = "invalid" ; then
3970                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dyngroup" >&5
3971 echo "$as_me: error: bad value $enableval for --enable-dyngroup" >&2;}
3972    { (exit 1); exit 1; }; }
3973         fi
3974         ol_enable_dyngroup="$ol_arg"
3975
3976 else
3977         ol_enable_dyngroup=${ol_enable_overlays:-no}
3978 fi
3979
3980 # end --enable-dyngroup
3981
3982 # OpenLDAP --enable-dynlist
3983
3984         # Check whether --enable-dynlist was given.
3985 if test "${enable_dynlist+set}" = set; then
3986   enableval=$enable_dynlist;
3987         ol_arg=invalid
3988         for ol_val in no yes mod ; do
3989                 if test "$enableval" = "$ol_val" ; then
3990                         ol_arg="$ol_val"
3991                 fi
3992         done
3993         if test "$ol_arg" = "invalid" ; then
3994                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-dynlist" >&5
3995 echo "$as_me: error: bad value $enableval for --enable-dynlist" >&2;}
3996    { (exit 1); exit 1; }; }
3997         fi
3998         ol_enable_dynlist="$ol_arg"
3999
4000 else
4001         ol_enable_dynlist=${ol_enable_overlays:-no}
4002 fi
4003
4004 # end --enable-dynlist
4005
4006 # OpenLDAP --enable-memberof
4007
4008         # Check whether --enable-memberof was given.
4009 if test "${enable_memberof+set}" = set; then
4010   enableval=$enable_memberof;
4011         ol_arg=invalid
4012         for ol_val in no yes mod ; do
4013                 if test "$enableval" = "$ol_val" ; then
4014                         ol_arg="$ol_val"
4015                 fi
4016         done
4017         if test "$ol_arg" = "invalid" ; then
4018                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-memberof" >&5
4019 echo "$as_me: error: bad value $enableval for --enable-memberof" >&2;}
4020    { (exit 1); exit 1; }; }
4021         fi
4022         ol_enable_memberof="$ol_arg"
4023
4024 else
4025         ol_enable_memberof=${ol_enable_overlays:-no}
4026 fi
4027
4028 # end --enable-memberof
4029
4030 # OpenLDAP --enable-ppolicy
4031
4032         # Check whether --enable-ppolicy was given.
4033 if test "${enable_ppolicy+set}" = set; then
4034   enableval=$enable_ppolicy;
4035         ol_arg=invalid
4036         for ol_val in no yes mod ; do
4037                 if test "$enableval" = "$ol_val" ; then
4038                         ol_arg="$ol_val"
4039                 fi
4040         done
4041         if test "$ol_arg" = "invalid" ; then
4042                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-ppolicy" >&5
4043 echo "$as_me: error: bad value $enableval for --enable-ppolicy" >&2;}
4044    { (exit 1); exit 1; }; }
4045         fi
4046         ol_enable_ppolicy="$ol_arg"
4047
4048 else
4049         ol_enable_ppolicy=${ol_enable_overlays:-no}
4050 fi
4051
4052 # end --enable-ppolicy
4053
4054 # OpenLDAP --enable-proxycache
4055
4056         # Check whether --enable-proxycache was given.
4057 if test "${enable_proxycache+set}" = set; then
4058   enableval=$enable_proxycache;
4059         ol_arg=invalid
4060         for ol_val in no yes mod ; do
4061                 if test "$enableval" = "$ol_val" ; then
4062                         ol_arg="$ol_val"
4063                 fi
4064         done
4065         if test "$ol_arg" = "invalid" ; then
4066                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-proxycache" >&5
4067 echo "$as_me: error: bad value $enableval for --enable-proxycache" >&2;}
4068    { (exit 1); exit 1; }; }
4069         fi
4070         ol_enable_proxycache="$ol_arg"
4071
4072 else
4073         ol_enable_proxycache=${ol_enable_overlays:-no}
4074 fi
4075
4076 # end --enable-proxycache
4077
4078 # OpenLDAP --enable-refint
4079
4080         # Check whether --enable-refint was given.
4081 if test "${enable_refint+set}" = set; then
4082   enableval=$enable_refint;
4083         ol_arg=invalid
4084         for ol_val in no yes mod ; do
4085                 if test "$enableval" = "$ol_val" ; then
4086                         ol_arg="$ol_val"
4087                 fi
4088         done
4089         if test "$ol_arg" = "invalid" ; then
4090                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-refint" >&5
4091 echo "$as_me: error: bad value $enableval for --enable-refint" >&2;}
4092    { (exit 1); exit 1; }; }
4093         fi
4094         ol_enable_refint="$ol_arg"
4095
4096 else
4097         ol_enable_refint=${ol_enable_overlays:-no}
4098 fi
4099
4100 # end --enable-refint
4101
4102 # OpenLDAP --enable-retcode
4103
4104         # Check whether --enable-retcode was given.
4105 if test "${enable_retcode+set}" = set; then
4106   enableval=$enable_retcode;
4107         ol_arg=invalid
4108         for ol_val in no yes mod ; do
4109                 if test "$enableval" = "$ol_val" ; then
4110                         ol_arg="$ol_val"
4111                 fi
4112         done
4113         if test "$ol_arg" = "invalid" ; then
4114                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-retcode" >&5
4115 echo "$as_me: error: bad value $enableval for --enable-retcode" >&2;}
4116    { (exit 1); exit 1; }; }
4117         fi
4118         ol_enable_retcode="$ol_arg"
4119
4120 else
4121         ol_enable_retcode=${ol_enable_overlays:-no}
4122 fi
4123
4124 # end --enable-retcode
4125
4126 # OpenLDAP --enable-rwm
4127
4128         # Check whether --enable-rwm was given.
4129 if test "${enable_rwm+set}" = set; then
4130   enableval=$enable_rwm;
4131         ol_arg=invalid
4132         for ol_val in no yes mod ; do
4133                 if test "$enableval" = "$ol_val" ; then
4134                         ol_arg="$ol_val"
4135                 fi
4136         done
4137         if test "$ol_arg" = "invalid" ; then
4138                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-rwm" >&5
4139 echo "$as_me: error: bad value $enableval for --enable-rwm" >&2;}
4140    { (exit 1); exit 1; }; }
4141         fi
4142         ol_enable_rwm="$ol_arg"
4143
4144 else
4145         ol_enable_rwm=${ol_enable_overlays:-no}
4146 fi
4147
4148 # end --enable-rwm
4149
4150 # OpenLDAP --enable-seqmod
4151
4152         # Check whether --enable-seqmod was given.
4153 if test "${enable_seqmod+set}" = set; then
4154   enableval=$enable_seqmod;
4155         ol_arg=invalid
4156         for ol_val in no yes mod ; do
4157                 if test "$enableval" = "$ol_val" ; then
4158                         ol_arg="$ol_val"
4159                 fi
4160         done
4161         if test "$ol_arg" = "invalid" ; then
4162                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-seqmod" >&5
4163 echo "$as_me: error: bad value $enableval for --enable-seqmod" >&2;}
4164    { (exit 1); exit 1; }; }
4165         fi
4166         ol_enable_seqmod="$ol_arg"
4167
4168 else
4169         ol_enable_seqmod=${ol_enable_overlays:-no}
4170 fi
4171
4172 # end --enable-seqmod
4173
4174 # OpenLDAP --enable-sssvlv
4175
4176         # Check whether --enable-sssvlv was given.
4177 if test "${enable_sssvlv+set}" = set; then
4178   enableval=$enable_sssvlv;
4179         ol_arg=invalid
4180         for ol_val in no yes mod ; do
4181                 if test "$enableval" = "$ol_val" ; then
4182                         ol_arg="$ol_val"
4183                 fi
4184         done
4185         if test "$ol_arg" = "invalid" ; then
4186                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-sssvlv" >&5
4187 echo "$as_me: error: bad value $enableval for --enable-sssvlv" >&2;}
4188    { (exit 1); exit 1; }; }
4189         fi
4190         ol_enable_sssvlv="$ol_arg"
4191
4192 else
4193         ol_enable_sssvlv=${ol_enable_overlays:-no}
4194 fi
4195
4196 # end --enable-sssvlv
4197
4198 # OpenLDAP --enable-syncprov
4199
4200         # Check whether --enable-syncprov was given.
4201 if test "${enable_syncprov+set}" = set; then
4202   enableval=$enable_syncprov;
4203         ol_arg=invalid
4204         for ol_val in no yes mod ; do
4205                 if test "$enableval" = "$ol_val" ; then
4206                         ol_arg="$ol_val"
4207                 fi
4208         done
4209         if test "$ol_arg" = "invalid" ; then
4210                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-syncprov" >&5
4211 echo "$as_me: error: bad value $enableval for --enable-syncprov" >&2;}
4212    { (exit 1); exit 1; }; }
4213         fi
4214         ol_enable_syncprov="$ol_arg"
4215
4216 else
4217         ol_enable_syncprov=${ol_enable_overlays:-yes}
4218 fi
4219
4220 # end --enable-syncprov
4221
4222 # OpenLDAP --enable-translucent
4223
4224         # Check whether --enable-translucent was given.
4225 if test "${enable_translucent+set}" = set; then
4226   enableval=$enable_translucent;
4227         ol_arg=invalid
4228         for ol_val in no yes mod ; do
4229                 if test "$enableval" = "$ol_val" ; then
4230                         ol_arg="$ol_val"
4231                 fi
4232         done
4233         if test "$ol_arg" = "invalid" ; then
4234                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-translucent" >&5
4235 echo "$as_me: error: bad value $enableval for --enable-translucent" >&2;}
4236    { (exit 1); exit 1; }; }
4237         fi
4238         ol_enable_translucent="$ol_arg"
4239
4240 else
4241         ol_enable_translucent=${ol_enable_overlays:-no}
4242 fi
4243
4244 # end --enable-translucent
4245
4246 # OpenLDAP --enable-unique
4247
4248         # Check whether --enable-unique was given.
4249 if test "${enable_unique+set}" = set; then
4250   enableval=$enable_unique;
4251         ol_arg=invalid
4252         for ol_val in no yes mod ; do
4253                 if test "$enableval" = "$ol_val" ; then
4254                         ol_arg="$ol_val"
4255                 fi
4256         done
4257         if test "$ol_arg" = "invalid" ; then
4258                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-unique" >&5
4259 echo "$as_me: error: bad value $enableval for --enable-unique" >&2;}
4260    { (exit 1); exit 1; }; }
4261         fi
4262         ol_enable_unique="$ol_arg"
4263
4264 else
4265         ol_enable_unique=${ol_enable_overlays:-no}
4266 fi
4267
4268 # end --enable-unique
4269
4270 # OpenLDAP --enable-valsort
4271
4272         # Check whether --enable-valsort was given.
4273 if test "${enable_valsort+set}" = set; then
4274   enableval=$enable_valsort;
4275         ol_arg=invalid
4276         for ol_val in no yes mod ; do
4277                 if test "$enableval" = "$ol_val" ; then
4278                         ol_arg="$ol_val"
4279                 fi
4280         done
4281         if test "$ol_arg" = "invalid" ; then
4282                 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-valsort" >&5
4283 echo "$as_me: error: bad value $enableval for --enable-valsort" >&2;}
4284    { (exit 1); exit 1; }; }
4285         fi
4286         ol_enable_valsort="$ol_arg"
4287
4288 else
4289         ol_enable_valsort=${ol_enable_overlays:-no}
4290 fi
4291
4292 # end --enable-valsort
4293
4294
4295 # Check whether --enable-xxliboptions was given.
4296 if test "${enable_xxliboptions+set}" = set; then
4297   enableval=$enable_xxliboptions;
4298 fi
4299
4300 # Check whether --enable-static was given.
4301 if test "${enable_static+set}" = set; then
4302   enableval=$enable_static; p=${PACKAGE-default}
4303     case $enableval in
4304     yes) enable_static=yes ;;
4305     no) enable_static=no ;;
4306     *)
4307      enable_static=no
4308       # Look at the argument we got.  We use all the common list separators.
4309       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4310       for pkg in $enableval; do
4311         IFS="$lt_save_ifs"
4312         if test "X$pkg" = "X$p"; then
4313           enable_static=yes
4314         fi
4315       done
4316       IFS="$lt_save_ifs"
4317       ;;
4318     esac
4319 else
4320   enable_static=yes
4321 fi
4322
4323
4324 # Check whether --enable-shared was given.
4325 if test "${enable_shared+set}" = set; then
4326   enableval=$enable_shared; p=${PACKAGE-default}
4327     case $enableval in
4328     yes) enable_shared=yes ;;
4329     no) enable_shared=no ;;
4330     *)
4331       enable_shared=no
4332       # Look at the argument we got.  We use all the common list separators.
4333       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4334       for pkg in $enableval; do
4335         IFS="$lt_save_ifs"
4336         if test "X$pkg" = "X$p"; then
4337           enable_shared=yes
4338         fi
4339       done
4340       IFS="$lt_save_ifs"
4341       ;;
4342     esac
4343 else
4344   enable_shared=yes
4345 fi
4346
4347
4348
4349
4350 # validate options
4351 if test $ol_enable_slapd = no ; then
4352                 if test $ol_enable_slapi = yes ; then
4353                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-slapi argument" >&5
4354 echo "$as_me: WARNING: slapd disabled, ignoring --enable-slapi argument" >&2;}
4355         fi
4356         case "$ol_enable_backends" in yes | mod)
4357                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-backends argument" >&5
4358 echo "$as_me: WARNING: slapd disabled, ignoring --enable-backends argument" >&2;}
4359         esac
4360         for i in $Backends; do
4361                 eval "ol_tmp=\$ol_enable_$i"
4362                 if test $ol_tmp != no ; then
4363                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4364 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4365                         eval "ol_enable_$i=no"
4366                 fi
4367         done
4368         if test $ol_enable_modules = yes ; then
4369                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-modules argument" >&5
4370 echo "$as_me: WARNING: slapd disabled, ignoring --enable-modules argument" >&2;}
4371         fi
4372         if test $ol_enable_wrappers = yes ; then
4373                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&5
4374 echo "$as_me: WARNING: slapd disabled, ignoring --enable-wrappers argument" >&2;}
4375         fi
4376         if test $ol_enable_rlookups = yes ; then
4377                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&5
4378 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rlookups argument" >&2;}
4379         fi
4380         if test $ol_enable_dynacl = yes ; then
4381                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&5
4382 echo "$as_me: WARNING: slapd disabled, ignoring --enable-dynacl argument" >&2;}
4383         fi
4384         if test $ol_enable_aci != no ; then
4385                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-aci argument" >&5
4386 echo "$as_me: WARNING: slapd disabled, ignoring --enable-aci argument" >&2;}
4387         fi
4388         if test $ol_enable_rewrite = yes ; then
4389                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&5
4390 echo "$as_me: WARNING: slapd disabled, ignoring --enable-rewrite argument" >&2;}
4391         fi
4392                 case "$ol_enable_overlays" in yes | mod)
4393                 { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-overlays argument" >&5
4394 echo "$as_me: WARNING: slapd disabled, ignoring --enable-overlays argument" >&2;}
4395         esac
4396         for i in $Overlays; do
4397                 eval "ol_tmp=\$ol_enable_$i"
4398                 if test $ol_tmp != no ; then
4399                         { echo "$as_me:$LINENO: WARNING: slapd disabled, ignoring --enable-$i argument" >&5
4400 echo "$as_me: WARNING: slapd disabled, ignoring --enable-$i argument" >&2;}
4401                         eval "ol_enable_$i=no"
4402                 fi
4403         done
4404
4405         # force settings to no
4406         ol_enable_slapi=no
4407
4408         ol_enable_backends=
4409         ol_enable_overlays=
4410         ol_enable_modules=no
4411         ol_enable_rlookups=no
4412         ol_enable_dynacl=no
4413         ol_enable_aci=no
4414         ol_enable_wrappers=no
4415
4416         ol_enable_rewrite=no
4417
4418 elif test $ol_enable_modules != yes &&
4419         test $ol_enable_bdb = no &&
4420         test $ol_enable_dnssrv = no &&
4421         test $ol_enable_hdb = no &&
4422         test $ol_enable_ldap = no &&
4423         test $ol_enable_meta = no &&
4424         test $ol_enable_monitor = no &&
4425         test $ol_enable_ndb = no &&
4426         test $ol_enable_null = no &&
4427         test $ol_enable_passwd = no &&
4428         test $ol_enable_perl = no &&
4429         test $ol_enable_relay = no &&
4430         test $ol_enable_shell = no &&
4431         test $ol_enable_sock = no &&
4432         test $ol_enable_sql = no ; then
4433
4434         if test $ol_enable_slapd = yes ; then
4435                 { { echo "$as_me:$LINENO: error: slapd requires a backend" >&5
4436 echo "$as_me: error: slapd requires a backend" >&2;}
4437    { (exit 1); exit 1; }; }
4438         else
4439                 { echo "$as_me:$LINENO: WARNING: skipping slapd, no backend specified" >&5
4440 echo "$as_me: WARNING: skipping slapd, no backend specified" >&2;}
4441                 ol_enable_slapd=no
4442         fi
4443 fi
4444
4445 if test $ol_enable_meta/$ol_enable_ldap = yes/no ; then
4446         { { echo "$as_me:$LINENO: error: --enable-meta requires --enable-ldap" >&5
4447 echo "$as_me: error: --enable-meta requires --enable-ldap" >&2;}
4448    { (exit 1); exit 1; }; }
4449 fi
4450
4451 if test $ol_enable_lmpasswd = yes ; then
4452         if test $ol_with_tls = no ; then
4453                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
4454 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
4455    { (exit 1); exit 1; }; }
4456         fi
4457 fi
4458
4459 if test $ol_enable_spasswd = yes ; then
4460         if test $ol_with_cyrus_sasl = no ; then
4461                 { { echo "$as_me:$LINENO: error: options require --with-cyrus-sasl" >&5
4462 echo "$as_me: error: options require --with-cyrus-sasl" >&2;}
4463    { (exit 1); exit 1; }; }
4464         fi
4465         ol_with_cyrus_sasl=yes
4466 fi
4467
4468 { echo "$as_me:$LINENO: result: done" >&5
4469 echo "${ECHO_T}done" >&6; }
4470
4471 LDAP_LIBS=
4472 BDB_LIBS=
4473 SLAPD_NDB_LIBS=
4474 SLAPD_NDB_INCS=
4475 LTHREAD_LIBS=
4476 LUTIL_LIBS=
4477
4478 SLAPD_LIBS=
4479
4480 BUILD_SLAPD=no
4481
4482 BUILD_THREAD=no
4483
4484 BUILD_SLAPI=no
4485 SLAPD_SLAPI_DEPEND=
4486
4487 BUILD_BDB=no
4488 BUILD_DNSSRV=no
4489 BUILD_HDB=no
4490 BUILD_LDAP=no
4491 BUILD_META=no
4492 BUILD_MONITOR=no
4493 BUILD_NDB=no
4494 BUILD_NULL=no
4495 BUILD_PASSWD=no
4496 BUILD_PERL=no
4497 BUILD_RELAY=no
4498 BUILD_SHELL=no
4499 BUILD_SOCK=no
4500 BUILD_SQL=no
4501
4502 BUILD_ACCESSLOG=no
4503 BUILD_AUDITLOG=no
4504 BUILD_CONSTRAINT=no
4505 BUILD_DDS=no
4506 BUILD_DENYOP=no
4507 BUILD_DEREF=no
4508 BUILD_DYNGROUP=no
4509 BUILD_DYNLIST=no
4510 BUILD_LASTMOD=no
4511 BUILD_MEMBEROF=no
4512 BUILD_PPOLICY=no
4513 BUILD_PROXYCACHE=no
4514 BUILD_REFINT=no
4515 BUILD_RETCODE=no
4516 BUILD_RWM=no
4517 BUILD_SEQMOD=no
4518 BUILD_SSSVLV=no
4519 BUILD_SYNCPROV=no
4520 BUILD_TRANSLUCENT=no
4521 BUILD_UNIQUE=no
4522 BUILD_VALSORT=no
4523
4524 SLAPD_STATIC_OVERLAYS=
4525 SLAPD_DYNAMIC_OVERLAYS=
4526
4527 SLAPD_MODULES_LDFLAGS=
4528 SLAPD_MODULES_CPPFLAGS=
4529
4530 SLAPD_STATIC_BACKENDS=back-ldif
4531 SLAPD_DYNAMIC_BACKENDS=
4532
4533 SLAPD_PERL_LDFLAGS=
4534 MOD_PERL_LDFLAGS=
4535 PERL_CPPFLAGS=
4536
4537 SLAPD_SQL_LDFLAGS=
4538 SLAPD_SQL_LIBS=
4539 SLAPD_SQL_INCLUDES=
4540
4541 KRB4_LIBS=
4542 KRB5_LIBS=
4543 SASL_LIBS=
4544 TLS_LIBS=
4545 MODULES_LIBS=
4546 SLAPI_LIBS=
4547 LIBSLAPI=
4548 AUTH_LIBS=
4549 ICU_LIBS=
4550
4551 SLAPD_SLP_LIBS=
4552 SLAPD_GMP_LIBS=
4553
4554
4555
4556 cat >>confdefs.h <<\_ACEOF
4557 #define HAVE_MKVERSION 1
4558 _ACEOF
4559
4560
4561
4562
4563 ol_aix_threads=no
4564 case "$target" in
4565 *-*-aix*)       if test -z "$CC" ; then
4566                 case "$ol_with_threads" in
4567                 auto | yes |  posix) ol_aix_threads=yes ;;
4568                 esac
4569         fi
4570 ;;
4571 esac
4572
4573 if test $ol_aix_threads = yes ; then
4574         if test -z "${CC}" ; then
4575                 for ac_prog in cc_r xlc_r cc
4576 do
4577   # Extract the first word of "$ac_prog", so it can be a program name with args.
4578 set dummy $ac_prog; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_CC+set}" = set; then
4582   echo $ECHO_N "(cached) $ECHO_C" >&6
4583 else
4584   if test -n "$CC"; then
4585   ac_cv_prog_CC="$CC" # Let the user override the test.
4586 else
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4588 for as_dir in $PATH
4589 do
4590   IFS=$as_save_IFS
4591   test -z "$as_dir" && as_dir=.
4592   for ac_exec_ext in '' $ac_executable_extensions; do
4593   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4594     ac_cv_prog_CC="$ac_prog"
4595     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4596     break 2
4597   fi
4598 done
4599 done
4600 IFS=$as_save_IFS
4601
4602 fi
4603 fi
4604 CC=$ac_cv_prog_CC
4605 if test -n "$CC"; then
4606   { echo "$as_me:$LINENO: result: $CC" >&5
4607 echo "${ECHO_T}$CC" >&6; }
4608 else
4609   { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4611 fi
4612
4613
4614   test -n "$CC" && break
4615 done
4616
4617
4618                 if test "$CC" = cc ; then
4619                                                 if test $ol_with_threads != auto ; then
4620                                 { { echo "$as_me:$LINENO: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&5
4621 echo "$as_me: error: --with-threads requires cc_r (or other suitable compiler) on AIX" >&2;}
4622    { (exit 1); exit 1; }; }
4623                         else
4624                                 { echo "$as_me:$LINENO: WARNING: disabling threads, no cc_r on AIX" >&5
4625 echo "$as_me: WARNING: disabling threads, no cc_r on AIX" >&2;}
4626                         fi
4627                         ol_with_threads=no
4628                 fi
4629         fi
4630
4631         case ${CC} in cc_r | xlc_r)
4632                 ol_with_threads=posix
4633                 ol_cv_pthread_create=yes
4634                 ;;
4635         esac
4636 fi
4637
4638 if test -z "${CC}"; then
4639         for ac_prog in cc gcc
4640 do
4641   # Extract the first word of "$ac_prog", so it can be a program name with args.
4642 set dummy $ac_prog; ac_word=$2
4643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4645 if test "${ac_cv_prog_CC+set}" = set; then
4646   echo $ECHO_N "(cached) $ECHO_C" >&6
4647 else
4648   if test -n "$CC"; then
4649   ac_cv_prog_CC="$CC" # Let the user override the test.
4650 else
4651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652 for as_dir in $PATH
4653 do
4654   IFS=$as_save_IFS
4655   test -z "$as_dir" && as_dir=.
4656   for ac_exec_ext in '' $ac_executable_extensions; do
4657   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4658     ac_cv_prog_CC="$ac_prog"
4659     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660     break 2
4661   fi
4662 done
4663 done
4664 IFS=$as_save_IFS
4665
4666 fi
4667 fi
4668 CC=$ac_cv_prog_CC
4669 if test -n "$CC"; then
4670   { echo "$as_me:$LINENO: result: $CC" >&5
4671 echo "${ECHO_T}$CC" >&6; }
4672 else
4673   { echo "$as_me:$LINENO: result: no" >&5
4674 echo "${ECHO_T}no" >&6; }
4675 fi
4676
4677
4678   test -n "$CC" && break
4679 done
4680 test -n "$CC" || CC="missing"
4681
4682
4683         if test "${CC}" = "missing" ; then
4684                 { { echo "$as_me:$LINENO: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&5
4685 echo "$as_me: error: Unable to locate cc(1) or suitable replacement.  Check PATH or set CC." >&2;}
4686    { (exit 1); exit 1; }; }
4687         fi
4688 fi
4689
4690 if test -z "${AR}"; then
4691         for ac_prog in ar gar
4692 do
4693   # Extract the first word of "$ac_prog", so it can be a program name with args.
4694 set dummy $ac_prog; ac_word=$2
4695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4697 if test "${ac_cv_prog_AR+set}" = set; then
4698   echo $ECHO_N "(cached) $ECHO_C" >&6
4699 else
4700   if test -n "$AR"; then
4701   ac_cv_prog_AR="$AR" # Let the user override the test.
4702 else
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH
4705 do
4706   IFS=$as_save_IFS
4707   test -z "$as_dir" && as_dir=.
4708   for ac_exec_ext in '' $ac_executable_extensions; do
4709   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4710     ac_cv_prog_AR="$ac_prog"
4711     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4712     break 2
4713   fi
4714 done
4715 done
4716 IFS=$as_save_IFS
4717
4718 fi
4719 fi
4720 AR=$ac_cv_prog_AR
4721 if test -n "$AR"; then
4722   { echo "$as_me:$LINENO: result: $AR" >&5
4723 echo "${ECHO_T}$AR" >&6; }
4724 else
4725   { echo "$as_me:$LINENO: result: no" >&5
4726 echo "${ECHO_T}no" >&6; }
4727 fi
4728
4729
4730   test -n "$AR" && break
4731 done
4732 test -n "$AR" || AR="missing"
4733
4734
4735         if test "${AR}" = "missing" ; then
4736                 { { echo "$as_me:$LINENO: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&5
4737 echo "$as_me: error: Unable to locate ar(1) or suitable replacement.  Check PATH or set AR." >&2;}
4738    { (exit 1); exit 1; }; }
4739         fi
4740 fi
4741
4742
4743
4744
4745
4746 # Check whether --enable-fast-install was given.
4747 if test "${enable_fast_install+set}" = set; then
4748   enableval=$enable_fast_install; p=${PACKAGE-default}
4749     case $enableval in
4750     yes) enable_fast_install=yes ;;
4751     no) enable_fast_install=no ;;
4752     *)
4753       enable_fast_install=no
4754       # Look at the argument we got.  We use all the common list separators.
4755       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4756       for pkg in $enableval; do
4757         IFS="$lt_save_ifs"
4758         if test "X$pkg" = "X$p"; then
4759           enable_fast_install=yes
4760         fi
4761       done
4762       IFS="$lt_save_ifs"
4763       ;;
4764     esac
4765 else
4766   enable_fast_install=yes
4767 fi
4768
4769
4770 DEPDIR="${am__leading_dot}deps"
4771
4772 ac_config_commands="$ac_config_commands depfiles"
4773
4774
4775 am_make=${MAKE-make}
4776 cat > confinc << 'END'
4777 am__doit:
4778         @echo done
4779 .PHONY: am__doit
4780 END
4781 # If we don't find an include directive, just comment out the code.
4782 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4783 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
4784 am__include="#"
4785 am__quote=
4786 _am_result=none
4787 # First try GNU make style include.
4788 echo "include confinc" > confmf
4789 # We grep out `Entering directory' and `Leaving directory'
4790 # messages which can occur if `w' ends up in MAKEFLAGS.
4791 # In particular we don't look at `^make:' because GNU make might
4792 # be invoked under some other name (usually "gmake"), in which
4793 # case it prints its new name instead of `make'.
4794 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4795    am__include=include
4796    am__quote=
4797    _am_result=GNU
4798 fi
4799 # Now try BSD make style include.
4800 if test "$am__include" = "#"; then
4801    echo '.include "confinc"' > confmf
4802    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4803       am__include=.include
4804       am__quote="\""
4805       _am_result=BSD
4806    fi
4807 fi
4808
4809
4810 { echo "$as_me:$LINENO: result: $_am_result" >&5
4811 echo "${ECHO_T}$_am_result" >&6; }
4812 rm -f confinc confmf
4813
4814 # Check whether --enable-dependency-tracking was given.
4815 if test "${enable_dependency_tracking+set}" = set; then
4816   enableval=$enable_dependency_tracking;
4817 fi
4818
4819 if test "x$enable_dependency_tracking" != xno; then
4820   am_depcomp="$ac_aux_dir/depcomp"
4821   AMDEPBACKSLASH='\'
4822 fi
4823  if test "x$enable_dependency_tracking" != xno; then
4824   AMDEP_TRUE=
4825   AMDEP_FALSE='#'
4826 else
4827   AMDEP_TRUE='#'
4828   AMDEP_FALSE=
4829 fi
4830
4831
4832 ac_ext=c
4833 ac_cpp='$CPP $CPPFLAGS'
4834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4837 if test -n "$ac_tool_prefix"; then
4838   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4839 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4842 if test "${ac_cv_prog_CC+set}" = set; then
4843   echo $ECHO_N "(cached) $ECHO_C" >&6
4844 else
4845   if test -n "$CC"; then
4846   ac_cv_prog_CC="$CC" # Let the user override the test.
4847 else
4848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4849 for as_dir in $PATH
4850 do
4851   IFS=$as_save_IFS
4852   test -z "$as_dir" && as_dir=.
4853   for ac_exec_ext in '' $ac_executable_extensions; do
4854   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4856     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4857     break 2
4858   fi
4859 done
4860 done
4861 IFS=$as_save_IFS
4862
4863 fi
4864 fi
4865 CC=$ac_cv_prog_CC
4866 if test -n "$CC"; then
4867   { echo "$as_me:$LINENO: result: $CC" >&5
4868 echo "${ECHO_T}$CC" >&6; }
4869 else
4870   { echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6; }
4872 fi
4873
4874
4875 fi
4876 if test -z "$ac_cv_prog_CC"; then
4877   ac_ct_CC=$CC
4878   # Extract the first word of "gcc", so it can be a program name with args.
4879 set dummy gcc; ac_word=$2
4880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4882 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4883   echo $ECHO_N "(cached) $ECHO_C" >&6
4884 else
4885   if test -n "$ac_ct_CC"; then
4886   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4887 else
4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4889 for as_dir in $PATH
4890 do
4891   IFS=$as_save_IFS
4892   test -z "$as_dir" && as_dir=.
4893   for ac_exec_ext in '' $ac_executable_extensions; do
4894   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895     ac_cv_prog_ac_ct_CC="gcc"
4896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897     break 2
4898   fi
4899 done
4900 done
4901 IFS=$as_save_IFS
4902
4903 fi
4904 fi
4905 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4906 if test -n "$ac_ct_CC"; then
4907   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4908 echo "${ECHO_T}$ac_ct_CC" >&6; }
4909 else
4910   { echo "$as_me:$LINENO: result: no" >&5
4911 echo "${ECHO_T}no" >&6; }
4912 fi
4913
4914   if test "x$ac_ct_CC" = x; then
4915     CC=""
4916   else
4917     case $cross_compiling:$ac_tool_warned in
4918 yes:)
4919 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4920 whose name does not start with the host triplet.  If you think this
4921 configuration is useful to you, please write to autoconf@gnu.org." >&5
4922 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4923 whose name does not start with the host triplet.  If you think this
4924 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4925 ac_tool_warned=yes ;;
4926 esac
4927     CC=$ac_ct_CC
4928   fi
4929 else
4930   CC="$ac_cv_prog_CC"
4931 fi
4932
4933 if test -z "$CC"; then
4934           if test -n "$ac_tool_prefix"; then
4935     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4936 set dummy ${ac_tool_prefix}cc; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_CC+set}" = set; then
4940   echo $ECHO_N "(cached) $ECHO_C" >&6
4941 else
4942   if test -n "$CC"; then
4943   ac_cv_prog_CC="$CC" # Let the user override the test.
4944 else
4945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4946 for as_dir in $PATH
4947 do
4948   IFS=$as_save_IFS
4949   test -z "$as_dir" && as_dir=.
4950   for ac_exec_ext in '' $ac_executable_extensions; do
4951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4952     ac_cv_prog_CC="${ac_tool_prefix}cc"
4953     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4954     break 2
4955   fi
4956 done
4957 done
4958 IFS=$as_save_IFS
4959
4960 fi
4961 fi
4962 CC=$ac_cv_prog_CC
4963 if test -n "$CC"; then
4964   { echo "$as_me:$LINENO: result: $CC" >&5
4965 echo "${ECHO_T}$CC" >&6; }
4966 else
4967   { echo "$as_me:$LINENO: result: no" >&5
4968 echo "${ECHO_T}no" >&6; }
4969 fi
4970
4971
4972   fi
4973 fi
4974 if test -z "$CC"; then
4975   # Extract the first word of "cc", so it can be a program name with args.
4976 set dummy cc; ac_word=$2
4977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4979 if test "${ac_cv_prog_CC+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982   if test -n "$CC"; then
4983   ac_cv_prog_CC="$CC" # Let the user override the test.
4984 else
4985   ac_prog_rejected=no
4986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987 for as_dir in $PATH
4988 do
4989   IFS=$as_save_IFS
4990   test -z "$as_dir" && as_dir=.
4991   for ac_exec_ext in '' $ac_executable_extensions; do
4992   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4994        ac_prog_rejected=yes
4995        continue
4996      fi
4997     ac_cv_prog_CC="cc"
4998     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4999     break 2
5000   fi
5001 done
5002 done
5003 IFS=$as_save_IFS
5004
5005 if test $ac_prog_rejected = yes; then
5006   # We found a bogon in the path, so make sure we never use it.
5007   set dummy $ac_cv_prog_CC
5008   shift
5009   if test $# != 0; then
5010     # We chose a different compiler from the bogus one.
5011     # However, it has the same basename, so the bogon will be chosen
5012     # first if we set CC to just the basename; use the full file name.
5013     shift
5014     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5015   fi
5016 fi
5017 fi
5018 fi
5019 CC=$ac_cv_prog_CC
5020 if test -n "$CC"; then
5021   { echo "$as_me:$LINENO: result: $CC" >&5
5022 echo "${ECHO_T}$CC" >&6; }
5023 else
5024   { echo "$as_me:$LINENO: result: no" >&5
5025 echo "${ECHO_T}no" >&6; }
5026 fi
5027
5028
5029 fi
5030 if test -z "$CC"; then
5031   if test -n "$ac_tool_prefix"; then
5032   for ac_prog in cl.exe
5033   do
5034     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5035 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_prog_CC+set}" = set; then
5039   echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041   if test -n "$CC"; then
5042   ac_cv_prog_CC="$CC" # Let the user override the test.
5043 else
5044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045 for as_dir in $PATH
5046 do
5047   IFS=$as_save_IFS
5048   test -z "$as_dir" && as_dir=.
5049   for ac_exec_ext in '' $ac_executable_extensions; do
5050   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5051     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5052     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5053     break 2
5054   fi
5055 done
5056 done
5057 IFS=$as_save_IFS
5058
5059 fi
5060 fi
5061 CC=$ac_cv_prog_CC
5062 if test -n "$CC"; then
5063   { echo "$as_me:$LINENO: result: $CC" >&5
5064 echo "${ECHO_T}$CC" >&6; }
5065 else
5066   { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5068 fi
5069
5070
5071     test -n "$CC" && break
5072   done
5073 fi
5074 if test -z "$CC"; then
5075   ac_ct_CC=$CC
5076   for ac_prog in cl.exe
5077 do
5078   # Extract the first word of "$ac_prog", so it can be a program name with args.
5079 set dummy $ac_prog; ac_word=$2
5080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5082 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5083   echo $ECHO_N "(cached) $ECHO_C" >&6
5084 else
5085   if test -n "$ac_ct_CC"; then
5086   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091   IFS=$as_save_IFS
5092   test -z "$as_dir" && as_dir=.
5093   for ac_exec_ext in '' $ac_executable_extensions; do
5094   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5095     ac_cv_prog_ac_ct_CC="$ac_prog"
5096     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5097     break 2
5098   fi
5099 done
5100 done
5101 IFS=$as_save_IFS
5102
5103 fi
5104 fi
5105 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5106 if test -n "$ac_ct_CC"; then
5107   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5108 echo "${ECHO_T}$ac_ct_CC" >&6; }
5109 else
5110   { echo "$as_me:$LINENO: result: no" >&5
5111 echo "${ECHO_T}no" >&6; }
5112 fi
5113
5114
5115   test -n "$ac_ct_CC" && break
5116 done
5117
5118   if test "x$ac_ct_CC" = x; then
5119     CC=""
5120   else
5121     case $cross_compiling:$ac_tool_warned in
5122 yes:)
5123 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5124 whose name does not start with the host triplet.  If you think this
5125 configuration is useful to you, please write to autoconf@gnu.org." >&5
5126 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5127 whose name does not start with the host triplet.  If you think this
5128 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5129 ac_tool_warned=yes ;;
5130 esac
5131     CC=$ac_ct_CC
5132   fi
5133 fi
5134
5135 fi
5136
5137
5138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5139 See \`config.log' for more details." >&5
5140 echo "$as_me: error: no acceptable C compiler found in \$PATH
5141 See \`config.log' for more details." >&2;}
5142    { (exit 1); exit 1; }; }
5143
5144 # Provide some information about the compiler.
5145 echo "$as_me:$LINENO: checking for C compiler version" >&5
5146 ac_compiler=`set X $ac_compile; echo $2`
5147 { (ac_try="$ac_compiler --version >&5"
5148 case "(($ac_try" in
5149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5150   *) ac_try_echo=$ac_try;;
5151 esac
5152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5153   (eval "$ac_compiler --version >&5") 2>&5
5154   ac_status=$?
5155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156   (exit $ac_status); }
5157 { (ac_try="$ac_compiler -v >&5"
5158 case "(($ac_try" in
5159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5160   *) ac_try_echo=$ac_try;;
5161 esac
5162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5163   (eval "$ac_compiler -v >&5") 2>&5
5164   ac_status=$?
5165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166   (exit $ac_status); }
5167 { (ac_try="$ac_compiler -V >&5"
5168 case "(($ac_try" in
5169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5170   *) ac_try_echo=$ac_try;;
5171 esac
5172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5173   (eval "$ac_compiler -V >&5") 2>&5
5174   ac_status=$?
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); }
5177
5178 cat >conftest.$ac_ext <<_ACEOF
5179 /* confdefs.h.  */
5180 _ACEOF
5181 cat confdefs.h >>conftest.$ac_ext
5182 cat >>conftest.$ac_ext <<_ACEOF
5183 /* end confdefs.h.  */
5184
5185 int
5186 main ()
5187 {
5188
5189   ;
5190   return 0;
5191 }
5192 _ACEOF
5193 ac_clean_files_save=$ac_clean_files
5194 ac_clean_files="$ac_clean_files a.out a.exe b.out"
5195 # Try to create an executable without -o first, disregard a.out.
5196 # It will help us diagnose broken compilers, and finding out an intuition
5197 # of exeext.
5198 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
5199 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
5200 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5201 #
5202 # List of possible output files, starting from the most likely.
5203 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
5204 # only as a last resort.  b.out is created by i960 compilers.
5205 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
5206 #
5207 # The IRIX 6 linker writes into existing files which may not be
5208 # executable, retaining their permissions.  Remove them first so a
5209 # subsequent execution test works.
5210 ac_rmfiles=
5211 for ac_file in $ac_files
5212 do
5213   case $ac_file in
5214     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5215     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5216   esac
5217 done
5218 rm -f $ac_rmfiles
5219
5220 if { (ac_try="$ac_link_default"
5221 case "(($ac_try" in
5222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5223   *) ac_try_echo=$ac_try;;
5224 esac
5225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5226   (eval "$ac_link_default") 2>&5
5227   ac_status=$?
5228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229   (exit $ac_status); }; then
5230   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5231 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5232 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
5233 # so that the user can short-circuit this test for compilers unknown to
5234 # Autoconf.
5235 for ac_file in $ac_files ''
5236 do
5237   test -f "$ac_file" || continue
5238   case $ac_file in
5239     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
5240         ;;
5241     [ab].out )
5242         # We found the default executable, but exeext='' is most
5243         # certainly right.
5244         break;;
5245     *.* )
5246         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
5247         then :; else
5248            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5249         fi
5250         # We set ac_cv_exeext here because the later test for it is not
5251         # safe: cross compilers may not add the suffix if given an `-o'
5252         # argument, so we may need to know it at that point already.
5253         # Even if this section looks crufty: it has the advantage of
5254         # actually working.
5255         break;;
5256     * )
5257         break;;
5258   esac
5259 done
5260 test "$ac_cv_exeext" = no && ac_cv_exeext=
5261
5262 else
5263   ac_file=''
5264 fi
5265
5266 { echo "$as_me:$LINENO: result: $ac_file" >&5
5267 echo "${ECHO_T}$ac_file" >&6; }
5268 if test -z "$ac_file"; then
5269   echo "$as_me: failed program was:" >&5
5270 sed 's/^/| /' conftest.$ac_ext >&5
5271
5272 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
5273 See \`config.log' for more details." >&5
5274 echo "$as_me: error: C compiler cannot create executables
5275 See \`config.log' for more details." >&2;}
5276    { (exit 77); exit 77; }; }
5277 fi
5278
5279 ac_exeext=$ac_cv_exeext
5280
5281 # Check that the compiler produces executables we can run.  If not, either
5282 # the compiler is broken, or we cross compile.
5283 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
5284 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
5285 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
5286 # If not cross compiling, check that we can run a simple program.
5287 if test "$cross_compiling" != yes; then
5288   if { ac_try='./$ac_file'
5289   { (case "(($ac_try" in
5290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5291   *) ac_try_echo=$ac_try;;
5292 esac
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294   (eval "$ac_try") 2>&5
5295   ac_status=$?
5296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297   (exit $ac_status); }; }; then
5298     cross_compiling=no
5299   else
5300     if test "$cross_compiling" = maybe; then
5301         cross_compiling=yes
5302     else
5303         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
5304 If you meant to cross compile, use \`--host'.
5305 See \`config.log' for more details." >&5
5306 echo "$as_me: error: cannot run C compiled programs.
5307 If you meant to cross compile, use \`--host'.
5308 See \`config.log' for more details." >&2;}
5309    { (exit 1); exit 1; }; }
5310     fi
5311   fi
5312 fi
5313 { echo "$as_me:$LINENO: result: yes" >&5
5314 echo "${ECHO_T}yes" >&6; }
5315
5316 rm -f a.out a.exe conftest$ac_cv_exeext b.out
5317 ac_clean_files=$ac_clean_files_save
5318 # Check that the compiler produces executables we can run.  If not, either
5319 # the compiler is broken, or we cross compile.
5320 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
5321 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
5322 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
5323 echo "${ECHO_T}$cross_compiling" >&6; }
5324
5325 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
5326 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
5327 if { (ac_try="$ac_link"
5328 case "(($ac_try" in
5329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5330   *) ac_try_echo=$ac_try;;
5331 esac
5332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5333   (eval "$ac_link") 2>&5
5334   ac_status=$?
5335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); }; then
5337   # If both `conftest.exe' and `conftest' are `present' (well, observable)
5338 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
5339 # work properly (i.e., refer to `conftest.exe'), while it won't with
5340 # `rm'.
5341 for ac_file in conftest.exe conftest conftest.*; do
5342   test -f "$ac_file" || continue
5343   case $ac_file in
5344     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
5345     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5346           break;;
5347     * ) break;;
5348   esac
5349 done
5350 else
5351   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
5352 See \`config.log' for more details." >&5
5353 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
5354 See \`config.log' for more details." >&2;}
5355    { (exit 1); exit 1; }; }
5356 fi
5357
5358 rm -f conftest$ac_cv_exeext
5359 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
5360 echo "${ECHO_T}$ac_cv_exeext" >&6; }
5361
5362 rm -f conftest.$ac_ext
5363 EXEEXT=$ac_cv_exeext
5364 ac_exeext=$EXEEXT
5365 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
5366 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
5367 if test "${ac_cv_objext+set}" = set; then
5368   echo $ECHO_N "(cached) $ECHO_C" >&6
5369 else
5370   cat >conftest.$ac_ext <<_ACEOF
5371 /* confdefs.h.  */
5372 _ACEOF
5373 cat confdefs.h >>conftest.$ac_ext
5374 cat >>conftest.$ac_ext <<_ACEOF
5375 /* end confdefs.h.  */
5376
5377 int
5378 main ()
5379 {
5380
5381   ;
5382   return 0;
5383 }
5384 _ACEOF
5385 rm -f conftest.o conftest.obj
5386 if { (ac_try="$ac_compile"
5387 case "(($ac_try" in
5388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389   *) ac_try_echo=$ac_try;;
5390 esac
5391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392   (eval "$ac_compile") 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; then
5396   for ac_file in conftest.o conftest.obj conftest.*; do
5397   test -f "$ac_file" || continue;
5398   case $ac_file in
5399     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
5400     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5401        break;;
5402   esac
5403 done
5404 else
5405   echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5407
5408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
5409 See \`config.log' for more details." >&5
5410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
5411 See \`config.log' for more details." >&2;}
5412    { (exit 1); exit 1; }; }
5413 fi
5414
5415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5416 fi
5417 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
5418 echo "${ECHO_T}$ac_cv_objext" >&6; }
5419 OBJEXT=$ac_cv_objext
5420 ac_objext=$OBJEXT
5421 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5424   echo $ECHO_N "(cached) $ECHO_C" >&6
5425 else
5426   cat >conftest.$ac_ext <<_ACEOF
5427 /* confdefs.h.  */
5428 _ACEOF
5429 cat confdefs.h >>conftest.$ac_ext
5430 cat >>conftest.$ac_ext <<_ACEOF
5431 /* end confdefs.h.  */
5432
5433 int
5434 main ()
5435 {
5436 #ifndef __GNUC__
5437        choke me
5438 #endif
5439
5440   ;
5441   return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448   *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451   (eval "$ac_compile") 2>conftest.er1
5452   ac_status=$?
5453   grep -v '^ *+' conftest.er1 >conftest.err
5454   rm -f conftest.er1
5455   cat conftest.err >&5
5456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457   (exit $ac_status); } && {
5458          test -z "$ac_c_werror_flag" ||
5459          test ! -s conftest.err
5460        } && test -s conftest.$ac_objext; then
5461   ac_compiler_gnu=yes
5462 else
5463   echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466         ac_compiler_gnu=no
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5470 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5471
5472 fi
5473 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5474 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5475 GCC=`test $ac_compiler_gnu = yes && echo yes`
5476 ac_test_CFLAGS=${CFLAGS+set}
5477 ac_save_CFLAGS=$CFLAGS
5478 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5479 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5480 if test "${ac_cv_prog_cc_g+set}" = set; then
5481   echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483   ac_save_c_werror_flag=$ac_c_werror_flag
5484    ac_c_werror_flag=yes
5485    ac_cv_prog_cc_g=no
5486    CFLAGS="-g"
5487    cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h.  */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h.  */
5493
5494 int
5495 main ()
5496 {
5497
5498   ;
5499   return 0;
5500 }
5501 _ACEOF
5502 rm -f conftest.$ac_objext
5503 if { (ac_try="$ac_compile"
5504 case "(($ac_try" in
5505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5506   *) ac_try_echo=$ac_try;;
5507 esac
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509   (eval "$ac_compile") 2>conftest.er1
5510   ac_status=$?
5511   grep -v '^ *+' conftest.er1 >conftest.err
5512   rm -f conftest.er1
5513   cat conftest.err >&5
5514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515   (exit $ac_status); } && {
5516          test -z "$ac_c_werror_flag" ||
5517          test ! -s conftest.err
5518        } && test -s conftest.$ac_objext; then
5519   ac_cv_prog_cc_g=yes
5520 else
5521   echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5523
5524         CFLAGS=""
5525       cat >conftest.$ac_ext <<_ACEOF
5526 /* confdefs.h.  */
5527 _ACEOF
5528 cat confdefs.h >>conftest.$ac_ext
5529 cat >>conftest.$ac_ext <<_ACEOF
5530 /* end confdefs.h.  */
5531
5532 int
5533 main ()
5534 {
5535
5536   ;
5537   return 0;
5538 }
5539 _ACEOF
5540 rm -f conftest.$ac_objext
5541 if { (ac_try="$ac_compile"
5542 case "(($ac_try" in
5543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5544   *) ac_try_echo=$ac_try;;
5545 esac
5546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5547   (eval "$ac_compile") 2>conftest.er1
5548   ac_status=$?
5549   grep -v '^ *+' conftest.er1 >conftest.err
5550   rm -f conftest.er1
5551   cat conftest.err >&5
5552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5553   (exit $ac_status); } && {
5554          test -z "$ac_c_werror_flag" ||
5555          test ! -s conftest.err
5556        } && test -s conftest.$ac_objext; then
5557   :
5558 else
5559   echo "$as_me: failed program was:" >&5
5560 sed 's/^/| /' conftest.$ac_ext >&5
5561
5562         ac_c_werror_flag=$ac_save_c_werror_flag
5563          CFLAGS="-g"
5564          cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h.  */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h.  */
5570
5571 int
5572 main ()
5573 {
5574
5575   ;
5576   return 0;
5577 }
5578 _ACEOF
5579 rm -f conftest.$ac_objext
5580 if { (ac_try="$ac_compile"
5581 case "(($ac_try" in
5582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583   *) ac_try_echo=$ac_try;;
5584 esac
5585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586   (eval "$ac_compile") 2>conftest.er1
5587   ac_status=$?
5588   grep -v '^ *+' conftest.er1 >conftest.err
5589   rm -f conftest.er1
5590   cat conftest.err >&5
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); } && {
5593          test -z "$ac_c_werror_flag" ||
5594          test ! -s conftest.err
5595        } && test -s conftest.$ac_objext; then
5596   ac_cv_prog_cc_g=yes
5597 else
5598   echo "$as_me: failed program was:" >&5
5599 sed 's/^/| /' conftest.$ac_ext >&5
5600
5601
5602 fi
5603
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 fi
5606
5607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5608 fi
5609
5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5611    ac_c_werror_flag=$ac_save_c_werror_flag
5612 fi
5613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5615 if test "$ac_test_CFLAGS" = set; then
5616   CFLAGS=$ac_save_CFLAGS
5617 elif test $ac_cv_prog_cc_g = yes; then
5618   if test "$GCC" = yes; then
5619     CFLAGS="-g -O2"
5620   else
5621     CFLAGS="-g"
5622   fi
5623 else
5624   if test "$GCC" = yes; then
5625     CFLAGS="-O2"
5626   else
5627     CFLAGS=
5628   fi
5629 fi
5630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
5632 if test "${ac_cv_prog_cc_c89+set}" = set; then
5633   echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635   ac_cv_prog_cc_c89=no
5636 ac_save_CC=$CC
5637 cat >conftest.$ac_ext <<_ACEOF
5638 /* confdefs.h.  */
5639 _ACEOF
5640 cat confdefs.h >>conftest.$ac_ext
5641 cat >>conftest.$ac_ext <<_ACEOF
5642 /* end confdefs.h.  */
5643 #include <stdarg.h>
5644 #include <stdio.h>
5645 #include <sys/types.h>
5646 #include <sys/stat.h>
5647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5648 struct buf { int x; };
5649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5650 static char *e (p, i)
5651      char **p;
5652      int i;
5653 {
5654   return p[i];
5655 }
5656 static char *f (char * (*g) (char **, int), char **p, ...)
5657 {
5658   char *s;
5659   va_list v;
5660   va_start (v,p);
5661   s = g (p, va_arg (v,int));
5662   va_end (v);
5663   return s;
5664 }
5665
5666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5667    function prototypes and stuff, but not '\xHH' hex character constants.
5668    These don't provoke an error unfortunately, instead are silently treated
5669    as 'x'.  The following induces an error, until -std is added to get
5670    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5671    array size at least.  It's necessary to write '\x00'==0 to get something
5672    that's true only with -std.  */
5673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5674
5675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5676    inside strings and character constants.  */
5677 #define FOO(x) 'x'
5678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5679
5680 int test (int i, double x);
5681 struct s1 {int (*f) (int a);};
5682 struct s2 {int (*f) (double a);};
5683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5684 int argc;
5685 char **argv;
5686 int
5687 main ()
5688 {
5689 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5690   ;
5691   return 0;
5692 }
5693 _ACEOF
5694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5695         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5696 do
5697   CC="$ac_save_CC $ac_arg"
5698   rm -f conftest.$ac_objext
5699 if { (ac_try="$ac_compile"
5700 case "(($ac_try" in
5701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702   *) ac_try_echo=$ac_try;;
5703 esac
5704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5705   (eval "$ac_compile") 2>conftest.er1
5706   ac_status=$?
5707   grep -v '^ *+' conftest.er1 >conftest.err
5708   rm -f conftest.er1
5709   cat conftest.err >&5
5710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711   (exit $ac_status); } && {
5712          test -z "$ac_c_werror_flag" ||
5713          test ! -s conftest.err
5714        } && test -s conftest.$ac_objext; then
5715   ac_cv_prog_cc_c89=$ac_arg
5716 else
5717   echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720
5721 fi
5722
5723 rm -f core conftest.err conftest.$ac_objext
5724   test "x$ac_cv_prog_cc_c89" != "xno" && break
5725 done
5726 rm -f conftest.$ac_ext
5727 CC=$ac_save_CC
5728
5729 fi
5730 # AC_CACHE_VAL
5731 case "x$ac_cv_prog_cc_c89" in
5732   x)
5733     { echo "$as_me:$LINENO: result: none needed" >&5
5734 echo "${ECHO_T}none needed" >&6; } ;;
5735   xno)
5736     { echo "$as_me:$LINENO: result: unsupported" >&5
5737 echo "${ECHO_T}unsupported" >&6; } ;;
5738   *)
5739     CC="$CC $ac_cv_prog_cc_c89"
5740     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5741 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5742 esac
5743
5744
5745 ac_ext=c
5746 ac_cpp='$CPP $CPPFLAGS'
5747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5750
5751 depcc="$CC"   am_compiler_list=
5752
5753 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5754 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5755 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
5756   echo $ECHO_N "(cached) $ECHO_C" >&6
5757 else
5758   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5759   # We make a subdir and do the tests there.  Otherwise we can end up
5760   # making bogus files that we don't know about and never remove.  For
5761   # instance it was reported that on HP-UX the gcc test will end up
5762   # making a dummy file named `D' -- because `-MD' means `put the output
5763   # in D'.
5764   mkdir conftest.dir
5765   # Copy depcomp to subdir because otherwise we won't find it if we're
5766   # using a relative directory.
5767   cp "$am_depcomp" conftest.dir
5768   cd conftest.dir
5769   # We will build objects and dependencies in a subdirectory because
5770   # it helps to detect inapplicable dependency modes.  For instance
5771   # both Tru64's cc and ICC support -MD to output dependencies as a
5772   # side effect of compilation, but ICC will put the dependencies in
5773   # the current directory while Tru64 will put them in the object
5774   # directory.
5775   mkdir sub
5776
5777   am_cv_CC_dependencies_compiler_type=none
5778   if test "$am_compiler_list" = ""; then
5779      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5780   fi
5781   for depmode in $am_compiler_list; do
5782     # Setup a source with many dependencies, because some compilers
5783     # like to wrap large dependency lists on column 80 (with \), and
5784     # we should not choose a depcomp mode which is confused by this.
5785     #
5786     # We need to recreate these files for each test, as the compiler may
5787     # overwrite some of them when testing with obscure command lines.
5788     # This happens at least with the AIX C compiler.
5789     : > sub/conftest.c
5790     for i in 1 2 3 4 5 6; do
5791       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5792       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5793       # Solaris 8's {/usr,}/bin/sh.
5794       touch sub/conftst$i.h
5795     done
5796     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5797
5798     case $depmode in
5799     nosideeffect)
5800       # after this tag, mechanisms are not by side-effect, so they'll
5801       # only be used when explicitly requested
5802       if test "x$enable_dependency_tracking" = xyes; then
5803         continue
5804       else
5805         break
5806       fi
5807       ;;
5808     none) break ;;
5809     esac
5810     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5811     # mode.  It turns out that the SunPro C++ compiler does not properly
5812     # handle `-M -o', and we need to detect this.
5813     if depmode=$depmode \
5814        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5815        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5816        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5817          >/dev/null 2>conftest.err &&
5818        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5819        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5820        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5821        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5822       # icc doesn't choke on unknown options, it will just issue warnings
5823       # or remarks (even with -Werror).  So we grep stderr for any message
5824       # that says an option was ignored or not supported.
5825       # When given -MP, icc 7.0 and 7.1 complain thusly:
5826       #   icc: Command line warning: ignoring option '-M'; no argument required
5827       # The diagnosis changed in icc 8.0:
5828       #   icc: Command line remark: option '-MP' not supported
5829       if (grep 'ignoring option' conftest.err ||
5830           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5831         am_cv_CC_dependencies_compiler_type=$depmode
5832         break
5833       fi
5834     fi
5835   done
5836
5837   cd ..
5838   rm -rf conftest.dir
5839 else
5840   am_cv_CC_dependencies_compiler_type=none
5841 fi
5842
5843 fi
5844 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
5845 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
5846 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5847
5848  if
5849   test "x$enable_dependency_tracking" != xno \
5850   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5851   am__fastdepCC_TRUE=
5852   am__fastdepCC_FALSE='#'
5853 else
5854   am__fastdepCC_TRUE='#'
5855   am__fastdepCC_FALSE=
5856 fi
5857
5858
5859 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5860 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5861 if test "${lt_cv_path_SED+set}" = set; then
5862   echo $ECHO_N "(cached) $ECHO_C" >&6
5863 else
5864   # Loop through the user's path and test for sed and gsed.
5865 # Then use that list of sed's as ones to test for truncation.
5866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5867 for as_dir in $PATH
5868 do
5869   IFS=$as_save_IFS
5870   test -z "$as_dir" && as_dir=.
5871   for lt_ac_prog in sed gsed; do
5872     for ac_exec_ext in '' $ac_executable_extensions; do
5873       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5874         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5875       fi
5876     done
5877   done
5878 done
5879 lt_ac_max=0
5880 lt_ac_count=0
5881 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5882 # along with /bin/sed that truncates output.
5883 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5884   test ! -f $lt_ac_sed && continue
5885   cat /dev/null > conftest.in
5886   lt_ac_count=0
5887   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5888   # Check for GNU sed and select it if it is found.
5889   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5890     lt_cv_path_SED=$lt_ac_sed
5891     break
5892   fi
5893   while true; do
5894     cat conftest.in conftest.in >conftest.tmp
5895     mv conftest.tmp conftest.in
5896     cp conftest.in conftest.nl
5897     echo >>conftest.nl
5898     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5899     cmp -s conftest.out conftest.nl || break
5900     # 10000 chars as input seems more than enough
5901     test $lt_ac_count -gt 10 && break
5902     lt_ac_count=`expr $lt_ac_count + 1`
5903     if test $lt_ac_count -gt $lt_ac_max; then
5904       lt_ac_max=$lt_ac_count
5905       lt_cv_path_SED=$lt_ac_sed
5906     fi
5907   done
5908 done
5909
5910 fi
5911
5912 SED=$lt_cv_path_SED
5913 { echo "$as_me:$LINENO: result: $SED" >&5
5914 echo "${ECHO_T}$SED" >&6; }
5915
5916 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5917 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5918 if test "${ac_cv_path_GREP+set}" = set; then
5919   echo $ECHO_N "(cached) $ECHO_C" >&6
5920 else
5921   # Extract the first word of "grep ggrep" to use in msg output
5922 if test -z "$GREP"; then
5923 set dummy grep ggrep; ac_prog_name=$2
5924 if test "${ac_cv_path_GREP+set}" = set; then
5925   echo $ECHO_N "(cached) $ECHO_C" >&6
5926 else
5927   ac_path_GREP_found=false
5928 # Loop through the user's path and test for each of PROGNAME-LIST
5929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5931 do
5932   IFS=$as_save_IFS
5933   test -z "$as_dir" && as_dir=.
5934   for ac_prog in grep ggrep; do
5935   for ac_exec_ext in '' $ac_executable_extensions; do
5936     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5937     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5938     # Check for GNU ac_path_GREP and select it if it is found.
5939   # Check for GNU $ac_path_GREP
5940 case `"$ac_path_GREP" --version 2>&1` in
5941 *GNU*)
5942   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5943 *)
5944   ac_count=0
5945   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5946   while :
5947   do
5948     cat "conftest.in" "conftest.in" >"conftest.tmp"
5949     mv "conftest.tmp" "conftest.in"
5950     cp "conftest.in" "conftest.nl"
5951     echo 'GREP' >> "conftest.nl"
5952     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5953     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5954     ac_count=`expr $ac_count + 1`
5955     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5956       # Best one so far, save it but keep looking for a better one
5957       ac_cv_path_GREP="$ac_path_GREP"
5958       ac_path_GREP_max=$ac_count
5959     fi
5960     # 10*(2^10) chars as input seems more than enough
5961     test $ac_count -gt 10 && break
5962   done
5963   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5964 esac
5965
5966
5967     $ac_path_GREP_found && break 3
5968   done
5969 done
5970
5971 done
5972 IFS=$as_save_IFS
5973
5974
5975 fi
5976
5977 GREP="$ac_cv_path_GREP"
5978 if test -z "$GREP"; then
5979   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5980 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5981    { (exit 1); exit 1; }; }
5982 fi
5983
5984 else
5985   ac_cv_path_GREP=$GREP
5986 fi
5987
5988
5989 fi
5990 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5991 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5992  GREP="$ac_cv_path_GREP"
5993
5994
5995 { echo "$as_me:$LINENO: checking for egrep" >&5
5996 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5997 if test "${ac_cv_path_EGREP+set}" = set; then
5998   echo $ECHO_N "(cached) $ECHO_C" >&6
5999 else
6000   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6001    then ac_cv_path_EGREP="$GREP -E"
6002    else
6003      # Extract the first word of "egrep" to use in msg output
6004 if test -z "$EGREP"; then
6005 set dummy egrep; ac_prog_name=$2
6006 if test "${ac_cv_path_EGREP+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   ac_path_EGREP_found=false
6010 # Loop through the user's path and test for each of PROGNAME-LIST
6011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6012 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6013 do
6014   IFS=$as_save_IFS
6015   test -z "$as_dir" && as_dir=.
6016   for ac_prog in egrep; do
6017   for ac_exec_ext in '' $ac_executable_extensions; do
6018     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6019     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
6020     # Check for GNU ac_path_EGREP and select it if it is found.
6021   # Check for GNU $ac_path_EGREP
6022 case `"$ac_path_EGREP" --version 2>&1` in
6023 *GNU*)
6024   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6025 *)
6026   ac_count=0
6027   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
6028   while :
6029   do
6030     cat "conftest.in" "conftest.in" >"conftest.tmp"
6031     mv "conftest.tmp" "conftest.in"
6032     cp "conftest.in" "conftest.nl"
6033     echo 'EGREP' >> "conftest.nl"
6034     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6035     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6036     ac_count=`expr $ac_count + 1`
6037     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6038       # Best one so far, save it but keep looking for a better one
6039       ac_cv_path_EGREP="$ac_path_EGREP"
6040       ac_path_EGREP_max=$ac_count
6041     fi
6042     # 10*(2^10) chars as input seems more than enough
6043     test $ac_count -gt 10 && break
6044   done
6045   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6046 esac
6047
6048
6049     $ac_path_EGREP_found && break 3
6050   done
6051 done
6052
6053 done
6054 IFS=$as_save_IFS
6055
6056
6057 fi
6058
6059 EGREP="$ac_cv_path_EGREP"
6060 if test -z "$EGREP"; then
6061   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
6062 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
6063    { (exit 1); exit 1; }; }
6064 fi
6065
6066 else
6067   ac_cv_path_EGREP=$EGREP
6068 fi
6069
6070
6071    fi
6072 fi
6073 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
6074 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
6075  EGREP="$ac_cv_path_EGREP"
6076
6077
6078
6079 # Check whether --with-gnu-ld was given.
6080 if test "${with_gnu_ld+set}" = set; then
6081   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6082 else
6083   with_gnu_ld=no
6084 fi
6085
6086 ac_prog=ld
6087 if test "$GCC" = yes; then
6088   # Check if gcc -print-prog-name=ld gives a path.
6089   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
6090 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
6091   case $host in
6092   *-*-mingw*)
6093     # gcc leaves a trailing carriage return which upsets mingw
6094     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6095   *)
6096     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6097   esac
6098   case $ac_prog in
6099     # Accept absolute paths.
6100     [\\/]* | ?:[\\/]*)
6101       re_direlt='/[^/][^/]*/\.\./'
6102       # Canonicalize the pathname of ld
6103       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
6104       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
6105         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
6106       done
6107       test -z "$LD" && LD="$ac_prog"
6108       ;;
6109   "")
6110     # If it fails, then pretend we aren't using GCC.
6111     ac_prog=ld
6112     ;;
6113   *)
6114     # If it is relative, then search for the first ld in PATH.
6115     with_gnu_ld=unknown
6116     ;;
6117   esac
6118 elif test "$with_gnu_ld" = yes; then
6119   { echo "$as_me:$LINENO: checking for GNU ld" >&5
6120 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
6121 else
6122   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
6123 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
6124 fi
6125 if test "${lt_cv_path_LD+set}" = set; then
6126   echo $ECHO_N "(cached) $ECHO_C" >&6
6127 else
6128   if test -z "$LD"; then
6129   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6130   for ac_dir in $PATH; do
6131     IFS="$lt_save_ifs"
6132     test -z "$ac_dir" && ac_dir=.
6133     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6134       lt_cv_path_LD="$ac_dir/$ac_prog"
6135       # Check to see if the program is GNU ld.  I'd rather use --version,
6136       # but apparently some variants of GNU ld only accept -v.
6137       # Break only if it was the GNU/non-GNU ld that we prefer.
6138       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6139       *GNU* | *'with BFD'*)
6140         test "$with_gnu_ld" != no && break
6141         ;;
6142       *)
6143         test "$with_gnu_ld" != yes && break
6144         ;;
6145       esac
6146     fi
6147   done
6148   IFS="$lt_save_ifs"
6149 else
6150   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6151 fi
6152 fi
6153
6154 LD="$lt_cv_path_LD"
6155 if test -n "$LD"; then
6156   { echo "$as_me:$LINENO: result: $LD" >&5
6157 echo "${ECHO_T}$LD" >&6; }
6158 else
6159   { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6161 fi
6162 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
6163 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
6164    { (exit 1); exit 1; }; }
6165 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
6166 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
6167 if test "${lt_cv_prog_gnu_ld+set}" = set; then
6168   echo $ECHO_N "(cached) $ECHO_C" >&6
6169 else
6170   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6171 case `$LD -v 2>&1 </dev/null` in
6172 *GNU* | *'with BFD'*)
6173   lt_cv_prog_gnu_ld=yes
6174   ;;
6175 *)
6176   lt_cv_prog_gnu_ld=no
6177   ;;
6178 esac
6179 fi
6180 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6181 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
6182 with_gnu_ld=$lt_cv_prog_gnu_ld
6183
6184
6185 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6186 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
6187 if test "${lt_cv_ld_reload_flag+set}" = set; then
6188   echo $ECHO_N "(cached) $ECHO_C" >&6
6189 else
6190   lt_cv_ld_reload_flag='-r'
6191 fi
6192 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6193 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
6194 reload_flag=$lt_cv_ld_reload_flag
6195 case $reload_flag in
6196 "" | " "*) ;;
6197 *) reload_flag=" $reload_flag" ;;
6198 esac
6199 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6200 case $host_os in
6201   darwin*)
6202     if test "$GCC" = yes; then
6203       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6204     else
6205       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6206     fi
6207     ;;
6208 esac
6209
6210 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6211 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6212 if test "${lt_cv_path_NM+set}" = set; then
6213   echo $ECHO_N "(cached) $ECHO_C" >&6
6214 else
6215   if test -n "$NM"; then
6216   # Let the user override the test.
6217   lt_cv_path_NM="$NM"
6218 else
6219   lt_nm_to_check="${ac_tool_prefix}nm"
6220   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6221     lt_nm_to_check="$lt_nm_to_check nm"
6222   fi
6223   for lt_tmp_nm in $lt_nm_to_check; do
6224     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6225     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6226       IFS="$lt_save_ifs"
6227       test -z "$ac_dir" && ac_dir=.
6228       tmp_nm="$ac_dir/$lt_tmp_nm"
6229       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6230         # Check to see if the nm accepts a BSD-compat flag.
6231         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6232         #   nm: unknown option "B" ignored
6233         # Tru64's nm complains that /dev/null is an invalid object file
6234         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6235         */dev/null* | *'Invalid file or object type'*)
6236           lt_cv_path_NM="$tmp_nm -B"
6237           break
6238           ;;
6239         *)
6240           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6241           */dev/null*)
6242             lt_cv_path_NM="$tmp_nm -p"
6243             break
6244             ;;
6245           *)
6246             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6247             continue # so that we can try to find one that supports BSD flags
6248             ;;
6249           esac
6250           ;;
6251         esac
6252       fi
6253     done
6254     IFS="$lt_save_ifs"
6255   done
6256   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6257 fi
6258 fi
6259 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6260 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6261 NM="$lt_cv_path_NM"
6262
6263 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6264 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6265 LN_S=$as_ln_s
6266 if test "$LN_S" = "ln -s"; then
6267   { echo "$as_me:$LINENO: result: yes" >&5
6268 echo "${ECHO_T}yes" >&6; }
6269 else
6270   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6271 echo "${ECHO_T}no, using $LN_S" >&6; }
6272 fi
6273
6274 { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6275 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; }
6276 if test "${lt_cv_deplibs_check_method+set}" = set; then
6277   echo $ECHO_N "(cached) $ECHO_C" >&6
6278 else
6279   lt_cv_file_magic_cmd='$MAGIC_CMD'
6280 lt_cv_file_magic_test_file=
6281 lt_cv_deplibs_check_method='unknown'
6282 # Need to set the preceding variable on all platforms that support
6283 # interlibrary dependencies.
6284 # 'none' -- dependencies not supported.
6285 # `unknown' -- same as none, but documents that we really don't know.
6286 # 'pass_all' -- all dependencies passed with no checks.
6287 # 'test_compile' -- check by making test program.
6288 # 'file_magic [[regex]]' -- check by looking for files in library path
6289 # which responds to the $file_magic_cmd with a given extended regex.
6290 # If you have `file' or equivalent on your system and you're not sure
6291 # whether `pass_all' will *always* work, you probably want this one.
6292
6293 case $host_os in
6294 aix4* | aix5*)
6295   lt_cv_deplibs_check_method=pass_all
6296   ;;
6297
6298 beos*)
6299   lt_cv_deplibs_check_method=pass_all
6300   ;;
6301
6302 bsdi[45]*)
6303   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6304   lt_cv_file_magic_cmd='/usr/bin/file -L'
6305   lt_cv_file_magic_test_file=/shlib/libc.so
6306   ;;
6307
6308 cygwin*)
6309   # func_win32_libid is a shell function defined in ltmain.sh
6310   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6311   lt_cv_file_magic_cmd='func_win32_libid'
6312   ;;
6313
6314 mingw* | pw32*)
6315   # Base MSYS/MinGW do not provide the 'file' command needed by
6316   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6317   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6318   lt_cv_file_magic_cmd='$OBJDUMP -f'
6319   ;;
6320
6321 darwin* | rhapsody*)
6322   lt_cv_deplibs_check_method=pass_all
6323   ;;
6324
6325 freebsd* | kfreebsd*-gnu | dragonfly*)
6326   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6327     case $host_cpu in
6328     i*86 )
6329       # Not sure whether the presence of OpenBSD here was a mistake.
6330       # Let's accept both of them until this is cleared up.
6331       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332       lt_cv_file_magic_cmd=/usr/bin/file
6333       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6334       ;;
6335     esac
6336   else
6337     lt_cv_deplibs_check_method=pass_all
6338   fi
6339   ;;
6340
6341 gnu*)
6342   lt_cv_deplibs_check_method=pass_all
6343   ;;
6344
6345 hpux10.20* | hpux11*)
6346   lt_cv_file_magic_cmd=/usr/bin/file
6347   case $host_cpu in
6348   ia64*)
6349     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6350     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6351     ;;
6352   hppa*64*)
6353     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]'
6354     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6355     ;;
6356   *)
6357     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6358     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6359     ;;
6360   esac
6361   ;;
6362
6363 interix3*)
6364   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6365   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6366   ;;
6367
6368 irix5* | irix6* | nonstopux*)
6369   case $LD in
6370   *-32|*"-32 ") libmagic=32-bit;;
6371   *-n32|*"-n32 ") libmagic=N32;;
6372   *-64|*"-64 ") libmagic=64-bit;;
6373   *) libmagic=never-match;;
6374   esac
6375   lt_cv_deplibs_check_method=pass_all
6376   ;;
6377
6378 # This must be Linux ELF.
6379 linux*)
6380   lt_cv_deplibs_check_method=pass_all
6381   ;;
6382
6383 netbsd*)
6384   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6385     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6386   else
6387     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6388   fi
6389   ;;
6390
6391 newos6*)
6392   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6393   lt_cv_file_magic_cmd=/usr/bin/file
6394   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6395   ;;
6396
6397 nto-qnx*)
6398   lt_cv_deplibs_check_method=unknown
6399   ;;
6400
6401 openbsd*)
6402   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6403     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6404   else
6405     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6406   fi
6407   ;;
6408
6409 osf3* | osf4* | osf5*)
6410   lt_cv_deplibs_check_method=pass_all
6411   ;;
6412
6413 solaris*)
6414   lt_cv_deplibs_check_method=pass_all
6415   ;;
6416
6417 sysv4 | sysv4.3*)
6418   case $host_vendor in
6419   motorola)
6420     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]'
6421     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6422     ;;
6423   ncr)
6424     lt_cv_deplibs_check_method=pass_all
6425     ;;
6426   sequent)
6427     lt_cv_file_magic_cmd='/bin/file'
6428     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6429     ;;
6430   sni)
6431     lt_cv_file_magic_cmd='/bin/file'
6432     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6433     lt_cv_file_magic_test_file=/lib/libc.so
6434     ;;
6435   siemens)
6436     lt_cv_deplibs_check_method=pass_all
6437     ;;
6438   pc)
6439     lt_cv_deplibs_check_method=pass_all
6440     ;;
6441   esac
6442   ;;
6443
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445   lt_cv_deplibs_check_method=pass_all
6446   ;;
6447 esac
6448
6449 fi
6450 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6451 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6452 file_magic_cmd=$lt_cv_file_magic_cmd
6453 deplibs_check_method=$lt_cv_deplibs_check_method
6454 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6455
6456
6457
6458
6459 # If no C compiler was specified, use CC.
6460 LTCC=${LTCC-"$CC"}
6461
6462 # If no C compiler flags were specified, use CFLAGS.
6463 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6464
6465 # Allow CC to be a program name with arguments.
6466 compiler=$CC
6467
6468
6469 # Check whether --enable-libtool-lock was given.
6470 if test "${enable_libtool_lock+set}" = set; then
6471   enableval=$enable_libtool_lock;
6472 fi
6473
6474 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6475
6476 # Some flags need to be propagated to the compiler or linker for good
6477 # libtool support.
6478 case $host in
6479 ia64-*-hpux*)
6480   # Find out which ABI we are using.
6481   echo 'int i;' > conftest.$ac_ext
6482   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6483   (eval $ac_compile) 2>&5
6484   ac_status=$?
6485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486   (exit $ac_status); }; then
6487     case `/usr/bin/file conftest.$ac_objext` in
6488     *ELF-32*)
6489       HPUX_IA64_MODE="32"
6490       ;;
6491     *ELF-64*)
6492       HPUX_IA64_MODE="64"
6493       ;;
6494     esac
6495   fi
6496   rm -rf conftest*
6497   ;;
6498 *-*-irix6*)
6499   # Find out which ABI we are using.
6500   echo '#line 6498 "configure"' > conftest.$ac_ext
6501   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6502   (eval $ac_compile) 2>&5
6503   ac_status=$?
6504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6505   (exit $ac_status); }; then
6506    if test "$lt_cv_prog_gnu_ld" = yes; then
6507     case `/usr/bin/file conftest.$ac_objext` in
6508     *32-bit*)
6509       LD="${LD-ld} -melf32bsmip"
6510       ;;
6511     *N32*)
6512       LD="${LD-ld} -melf32bmipn32"
6513       ;;
6514     *64-bit*)
6515       LD="${LD-ld} -melf64bmip"
6516       ;;
6517     esac
6518    else
6519     case `/usr/bin/file conftest.$ac_objext` in
6520     *32-bit*)
6521       LD="${LD-ld} -32"
6522       ;;
6523     *N32*)
6524       LD="${LD-ld} -n32"
6525       ;;
6526     *64-bit*)
6527       LD="${LD-ld} -64"
6528       ;;
6529     esac
6530    fi
6531   fi
6532   rm -rf conftest*
6533   ;;
6534
6535 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6536   # Find out which ABI we are using.
6537   echo 'int i;' > conftest.$ac_ext
6538   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6539   (eval $ac_compile) 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); }; then
6543     case `/usr/bin/file conftest.o` in
6544     *32-bit*)
6545       case $host in
6546         x86_64-*linux*)
6547           LD="${LD-ld} -m elf_i386"
6548           ;;
6549         ppc64-*linux*|powerpc64-*linux*)
6550           LD="${LD-ld} -m elf32ppclinux"
6551           ;;
6552         s390x-*linux*)
6553           LD="${LD-ld} -m elf_s390"
6554           ;;
6555         sparc64-*linux*)
6556           LD="${LD-ld} -m elf32_sparc"
6557           ;;
6558       esac
6559       ;;
6560     *64-bit*)
6561       case $host in
6562         x86_64-*linux*)
6563           LD="${LD-ld} -m elf_x86_64"
6564           ;;
6565         ppc*-*linux*|powerpc*-*linux*)
6566           LD="${LD-ld} -m elf64ppc"
6567           ;;
6568         s390*-*linux*)
6569           LD="${LD-ld} -m elf64_s390"
6570           ;;
6571         sparc*-*linux*)
6572           LD="${LD-ld} -m elf64_sparc"
6573           ;;
6574       esac
6575       ;;
6576     esac
6577   fi
6578   rm -rf conftest*
6579   ;;
6580
6581 *-*-sco3.2v5*)
6582   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6583   SAVE_CFLAGS="$CFLAGS"
6584   CFLAGS="$CFLAGS -belf"
6585   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6586 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6587 if test "${lt_cv_cc_needs_belf+set}" = set; then
6588   echo $ECHO_N "(cached) $ECHO_C" >&6
6589 else
6590   ac_ext=c
6591 ac_cpp='$CPP $CPPFLAGS'
6592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6595
6596      cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602
6603 int
6604 main ()
6605 {
6606
6607   ;
6608   return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext conftest$ac_exeext
6612 if { (ac_try="$ac_link"
6613 case "(($ac_try" in
6614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6615   *) ac_try_echo=$ac_try;;
6616 esac
6617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6618   (eval "$ac_link") 2>conftest.er1
6619   ac_status=$?
6620   grep -v '^ *+' conftest.er1 >conftest.err
6621   rm -f conftest.er1
6622   cat conftest.err >&5
6623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6624   (exit $ac_status); } && {
6625          test -z "$ac_c_werror_flag" ||
6626          test ! -s conftest.err
6627        } && test -s conftest$ac_exeext &&
6628        $as_test_x conftest$ac_exeext; then
6629   lt_cv_cc_needs_belf=yes
6630 else
6631   echo "$as_me: failed program was:" >&5
6632 sed 's/^/| /' conftest.$ac_ext >&5
6633
6634         lt_cv_cc_needs_belf=no
6635 fi
6636
6637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6638       conftest$ac_exeext conftest.$ac_ext
6639      ac_ext=c
6640 ac_cpp='$CPP $CPPFLAGS'
6641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6644
6645 fi
6646 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6647 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6648   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6649     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6650     CFLAGS="$SAVE_CFLAGS"
6651   fi
6652   ;;
6653 sparc*-*solaris*)
6654   # Find out which ABI we are using.
6655   echo 'int i;' > conftest.$ac_ext
6656   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6657   (eval $ac_compile) 2>&5
6658   ac_status=$?
6659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660   (exit $ac_status); }; then
6661     case `/usr/bin/file conftest.o` in
6662     *64-bit*)
6663       case $lt_cv_prog_gnu_ld in
6664       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6665       *)    LD="${LD-ld} -64" ;;
6666       esac
6667       ;;
6668     esac
6669   fi
6670   rm -rf conftest*
6671   ;;
6672
6673 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
6674   if test -n "$ac_tool_prefix"; then
6675   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6676 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6679 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   if test -n "$DLLTOOL"; then
6683   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688   IFS=$as_save_IFS
6689   test -z "$as_dir" && as_dir=.
6690   for ac_exec_ext in '' $ac_executable_extensions; do
6691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6694     break 2
6695   fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 DLLTOOL=$ac_cv_prog_DLLTOOL
6703 if test -n "$DLLTOOL"; then
6704   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
6705 echo "${ECHO_T}$DLLTOOL" >&6; }
6706 else
6707   { echo "$as_me:$LINENO: result: no" >&5
6708 echo "${ECHO_T}no" >&6; }
6709 fi
6710
6711
6712 fi
6713 if test -z "$ac_cv_prog_DLLTOOL"; then
6714   ac_ct_DLLTOOL=$DLLTOOL
6715   # Extract the first word of "dlltool", so it can be a program name with args.
6716 set dummy dlltool; ac_word=$2
6717 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6719 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
6720   echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722   if test -n "$ac_ct_DLLTOOL"; then
6723   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6724 else
6725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6726 for as_dir in $PATH
6727 do
6728   IFS=$as_save_IFS
6729   test -z "$as_dir" && as_dir=.
6730   for ac_exec_ext in '' $ac_executable_extensions; do
6731   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6732     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6733     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6734     break 2
6735   fi
6736 done
6737 done
6738 IFS=$as_save_IFS
6739
6740 fi
6741 fi
6742 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6743 if test -n "$ac_ct_DLLTOOL"; then
6744   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
6745 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
6746 else
6747   { echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6; }
6749 fi
6750
6751   if test "x$ac_ct_DLLTOOL" = x; then
6752     DLLTOOL="false"
6753   else
6754     case $cross_compiling:$ac_tool_warned in
6755 yes:)
6756 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6757 whose name does not start with the host triplet.  If you think this
6758 configuration is useful to you, please write to autoconf@gnu.org." >&5
6759 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6760 whose name does not start with the host triplet.  If you think this
6761 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6762 ac_tool_warned=yes ;;
6763 esac
6764     DLLTOOL=$ac_ct_DLLTOOL
6765   fi
6766 else
6767   DLLTOOL="$ac_cv_prog_DLLTOOL"
6768 fi
6769
6770   if test -n "$ac_tool_prefix"; then
6771   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
6772 set dummy ${ac_tool_prefix}as; ac_word=$2
6773 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6775 if test "${ac_cv_prog_AS+set}" = set; then
6776   echo $ECHO_N "(cached) $ECHO_C" >&6
6777 else
6778   if test -n "$AS"; then
6779   ac_cv_prog_AS="$AS" # Let the user override the test.
6780 else
6781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6782 for as_dir in $PATH
6783 do
6784   IFS=$as_save_IFS
6785   test -z "$as_dir" && as_dir=.
6786   for ac_exec_ext in '' $ac_executable_extensions; do
6787   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6788     ac_cv_prog_AS="${ac_tool_prefix}as"
6789     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6790     break 2
6791   fi
6792 done
6793 done
6794 IFS=$as_save_IFS
6795
6796 fi
6797 fi
6798 AS=$ac_cv_prog_AS
6799 if test -n "$AS"; then
6800   { echo "$as_me:$LINENO: result: $AS" >&5
6801 echo "${ECHO_T}$AS" >&6; }
6802 else
6803   { echo "$as_me:$LINENO: result: no" >&5
6804 echo "${ECHO_T}no" >&6; }
6805 fi
6806
6807
6808 fi
6809 if test -z "$ac_cv_prog_AS"; then
6810   ac_ct_AS=$AS
6811   # Extract the first word of "as", so it can be a program name with args.
6812 set dummy as; ac_word=$2
6813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6815 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
6816   echo $ECHO_N "(cached) $ECHO_C" >&6
6817 else
6818   if test -n "$ac_ct_AS"; then
6819   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
6820 else
6821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 for as_dir in $PATH
6823 do
6824   IFS=$as_save_IFS
6825   test -z "$as_dir" && as_dir=.
6826   for ac_exec_ext in '' $ac_executable_extensions; do
6827   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6828     ac_cv_prog_ac_ct_AS="as"
6829     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6830     break 2
6831   fi
6832 done
6833 done
6834 IFS=$as_save_IFS
6835
6836 fi
6837 fi
6838 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6839 if test -n "$ac_ct_AS"; then
6840   { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
6841 echo "${ECHO_T}$ac_ct_AS" >&6; }
6842 else
6843   { echo "$as_me:$LINENO: result: no" >&5
6844 echo "${ECHO_T}no" >&6; }
6845 fi
6846
6847   if test "x$ac_ct_AS" = x; then
6848     AS="false"
6849   else
6850     case $cross_compiling:$ac_tool_warned in
6851 yes:)
6852 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6853 whose name does not start with the host triplet.  If you think this
6854 configuration is useful to you, please write to autoconf@gnu.org." >&5
6855 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6856 whose name does not start with the host triplet.  If you think this
6857 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6858 ac_tool_warned=yes ;;
6859 esac
6860     AS=$ac_ct_AS
6861   fi
6862 else
6863   AS="$ac_cv_prog_AS"
6864 fi
6865
6866   if test -n "$ac_tool_prefix"; then
6867   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6868 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6869 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6870 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6871 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
6872   echo $ECHO_N "(cached) $ECHO_C" >&6
6873 else
6874   if test -n "$OBJDUMP"; then
6875   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6876 else
6877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 for as_dir in $PATH
6879 do
6880   IFS=$as_save_IFS
6881   test -z "$as_dir" && as_dir=.
6882   for ac_exec_ext in '' $ac_executable_extensions; do
6883   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6884     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6885     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6886     break 2
6887   fi
6888 done
6889 done
6890 IFS=$as_save_IFS
6891
6892 fi
6893 fi
6894 OBJDUMP=$ac_cv_prog_OBJDUMP
6895 if test -n "$OBJDUMP"; then
6896   { echo "$as_me:$LINENO: result: $OBJDUMP" >&5
6897 echo "${ECHO_T}$OBJDUMP" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 fi
6905 if test -z "$ac_cv_prog_OBJDUMP"; then
6906   ac_ct_OBJDUMP=$OBJDUMP
6907   # Extract the first word of "objdump", so it can be a program name with args.
6908 set dummy objdump; ac_word=$2
6909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6911 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
6912   echo $ECHO_N "(cached) $ECHO_C" >&6
6913 else
6914   if test -n "$ac_ct_OBJDUMP"; then
6915   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6919 do
6920   IFS=$as_save_IFS
6921   test -z "$as_dir" && as_dir=.
6922   for ac_exec_ext in '' $ac_executable_extensions; do
6923   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6925     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926     break 2
6927   fi
6928 done
6929 done
6930 IFS=$as_save_IFS
6931
6932 fi
6933 fi
6934 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6935 if test -n "$ac_ct_OBJDUMP"; then
6936   { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
6937 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; }
6938 else
6939   { echo "$as_me:$LINENO: result: no" >&5
6940 echo "${ECHO_T}no" >&6; }
6941 fi
6942
6943   if test "x$ac_ct_OBJDUMP" = x; then
6944     OBJDUMP="false"
6945   else
6946     case $cross_compiling:$ac_tool_warned in
6947 yes:)
6948 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6949 whose name does not start with the host triplet.  If you think this
6950 configuration is useful to you, please write to autoconf@gnu.org." >&5
6951 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6952 whose name does not start with the host triplet.  If you think this
6953 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6954 ac_tool_warned=yes ;;
6955 esac
6956     OBJDUMP=$ac_ct_OBJDUMP
6957   fi
6958 else
6959   OBJDUMP="$ac_cv_prog_OBJDUMP"
6960 fi
6961
6962   ;;
6963
6964 esac
6965
6966 need_locks="$enable_libtool_lock"
6967
6968
6969 ac_ext=c
6970 ac_cpp='$CPP $CPPFLAGS'
6971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6974 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6975 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6976 # On Suns, sometimes $CPP names a directory.
6977 if test -n "$CPP" && test -d "$CPP"; then
6978   CPP=
6979 fi
6980 if test -z "$CPP"; then
6981   if test "${ac_cv_prog_CPP+set}" = set; then
6982   echo $ECHO_N "(cached) $ECHO_C" >&6
6983 else
6984       # Double quotes because CPP needs to be expanded
6985     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6986     do
6987       ac_preproc_ok=false
6988 for ac_c_preproc_warn_flag in '' yes
6989 do
6990   # Use a header file that comes with gcc, so configuring glibc
6991   # with a fresh cross-compiler works.
6992   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6993   # <limits.h> exists even on freestanding compilers.
6994   # On the NeXT, cc -E runs the code through the compiler's parser,
6995   # not just through cpp. "Syntax error" is here to catch this case.
6996   cat >conftest.$ac_ext <<_ACEOF
6997 /* confdefs.h.  */
6998 _ACEOF
6999 cat confdefs.h >>conftest.$ac_ext
7000 cat >>conftest.$ac_ext <<_ACEOF
7001 /* end confdefs.h.  */
7002 #ifdef __STDC__
7003 # include <limits.h>
7004 #else
7005 # include <assert.h>
7006 #endif
7007                      Syntax error
7008 _ACEOF
7009 if { (ac_try="$ac_cpp conftest.$ac_ext"
7010 case "(($ac_try" in
7011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012   *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7016   ac_status=$?
7017   grep -v '^ *+' conftest.er1 >conftest.err
7018   rm -f conftest.er1
7019   cat conftest.err >&5
7020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021   (exit $ac_status); } >/dev/null && {
7022          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7023          test ! -s conftest.err
7024        }; then
7025   :
7026 else
7027   echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030   # Broken: fails on valid input.
7031 continue
7032 fi
7033
7034 rm -f conftest.err conftest.$ac_ext
7035
7036   # OK, works on sane cases.  Now check whether nonexistent headers
7037   # can be detected and how.
7038   cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h.  */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h.  */
7044 #include <ac_nonexistent.h>
7045 _ACEOF
7046 if { (ac_try="$ac_cpp conftest.$ac_ext"
7047 case "(($ac_try" in
7048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049   *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7053   ac_status=$?
7054   grep -v '^ *+' conftest.er1 >conftest.err
7055   rm -f conftest.er1
7056   cat conftest.err >&5
7057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058   (exit $ac_status); } >/dev/null && {
7059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7060          test ! -s conftest.err
7061        }; then
7062   # Broken: success on invalid input.
7063 continue
7064 else
7065   echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068   # Passes both tests.
7069 ac_preproc_ok=:
7070 break
7071 fi
7072
7073 rm -f conftest.err conftest.$ac_ext
7074
7075 done
7076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7077 rm -f conftest.err conftest.$ac_ext
7078 if $ac_preproc_ok; then
7079   break
7080 fi
7081
7082     done
7083     ac_cv_prog_CPP=$CPP
7084
7085 fi
7086   CPP=$ac_cv_prog_CPP
7087 else
7088   ac_cv_prog_CPP=$CPP
7089 fi
7090 { echo "$as_me:$LINENO: result: $CPP" >&5
7091 echo "${ECHO_T}$CPP" >&6; }
7092 ac_preproc_ok=false
7093 for ac_c_preproc_warn_flag in '' yes
7094 do
7095   # Use a header file that comes with gcc, so configuring glibc
7096   # with a fresh cross-compiler works.
7097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098   # <limits.h> exists even on freestanding compilers.
7099   # On the NeXT, cc -E runs the code through the compiler's parser,
7100   # not just through cpp. "Syntax error" is here to catch this case.
7101   cat >conftest.$ac_ext <<_ACEOF
7102 /* confdefs.h.  */
7103 _ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h.  */
7107 #ifdef __STDC__
7108 # include <limits.h>
7109 #else
7110 # include <assert.h>
7111 #endif
7112                      Syntax error
7113 _ACEOF
7114 if { (ac_try="$ac_cpp conftest.$ac_ext"
7115 case "(($ac_try" in
7116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117   *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7121   ac_status=$?
7122   grep -v '^ *+' conftest.er1 >conftest.err
7123   rm -f conftest.er1
7124   cat conftest.err >&5
7125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126   (exit $ac_status); } >/dev/null && {
7127          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7128          test ! -s conftest.err
7129        }; then
7130   :
7131 else
7132   echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135   # Broken: fails on valid input.
7136 continue
7137 fi
7138
7139 rm -f conftest.err conftest.$ac_ext
7140
7141   # OK, works on sane cases.  Now check whether nonexistent headers
7142   # can be detected and how.
7143   cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h.  */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h.  */
7149 #include <ac_nonexistent.h>
7150 _ACEOF
7151 if { (ac_try="$ac_cpp conftest.$ac_ext"
7152 case "(($ac_try" in
7153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7154   *) ac_try_echo=$ac_try;;
7155 esac
7156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7157   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7158   ac_status=$?
7159   grep -v '^ *+' conftest.er1 >conftest.err
7160   rm -f conftest.er1
7161   cat conftest.err >&5
7162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7163   (exit $ac_status); } >/dev/null && {
7164          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7165          test ! -s conftest.err
7166        }; then
7167   # Broken: success on invalid input.
7168 continue
7169 else
7170   echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7172
7173   # Passes both tests.
7174 ac_preproc_ok=:
7175 break
7176 fi
7177
7178 rm -f conftest.err conftest.$ac_ext
7179
7180 done
7181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7182 rm -f conftest.err conftest.$ac_ext
7183 if $ac_preproc_ok; then
7184   :
7185 else
7186   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7187 See \`config.log' for more details." >&5
7188 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7189 See \`config.log' for more details." >&2;}
7190    { (exit 1); exit 1; }; }
7191 fi
7192
7193 ac_ext=c
7194 ac_cpp='$CPP $CPPFLAGS'
7195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7198
7199
7200 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7201 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7202 if test "${ac_cv_header_stdc+set}" = set; then
7203   echo $ECHO_N "(cached) $ECHO_C" >&6
7204 else
7205   cat >conftest.$ac_ext <<_ACEOF
7206 /* confdefs.h.  */
7207 _ACEOF
7208 cat confdefs.h >>conftest.$ac_ext
7209 cat >>conftest.$ac_ext <<_ACEOF
7210 /* end confdefs.h.  */
7211 #include <stdlib.h>
7212 #include <stdarg.h>
7213 #include <string.h>
7214 #include <float.h>
7215
7216 int
7217 main ()
7218 {
7219
7220   ;
7221   return 0;
7222 }
7223 _ACEOF
7224 rm -f conftest.$ac_objext
7225 if { (ac_try="$ac_compile"
7226 case "(($ac_try" in
7227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7228   *) ac_try_echo=$ac_try;;
7229 esac
7230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7231   (eval "$ac_compile") 2>conftest.er1
7232   ac_status=$?
7233   grep -v '^ *+' conftest.er1 >conftest.err
7234   rm -f conftest.er1
7235   cat conftest.err >&5
7236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237   (exit $ac_status); } && {
7238          test -z "$ac_c_werror_flag" ||
7239          test ! -s conftest.err
7240        } && test -s conftest.$ac_objext; then
7241   ac_cv_header_stdc=yes
7242 else
7243   echo "$as_me: failed program was:" >&5
7244 sed 's/^/| /' conftest.$ac_ext >&5
7245
7246         ac_cv_header_stdc=no
7247 fi
7248
7249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7250
7251 if test $ac_cv_header_stdc = yes; then
7252   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7253   cat >conftest.$ac_ext <<_ACEOF
7254 /* confdefs.h.  */
7255 _ACEOF
7256 cat confdefs.h >>conftest.$ac_ext
7257 cat >>conftest.$ac_ext <<_ACEOF
7258 /* end confdefs.h.  */
7259 #include <string.h>
7260
7261 _ACEOF
7262 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7263   $EGREP "memchr" >/dev/null 2>&1; then
7264   :
7265 else
7266   ac_cv_header_stdc=no
7267 fi
7268 rm -f conftest*
7269
7270 fi
7271
7272 if test $ac_cv_header_stdc = yes; then
7273   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7274   cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h.  */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h.  */
7280 #include <stdlib.h>
7281
7282 _ACEOF
7283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7284   $EGREP "free" >/dev/null 2>&1; then
7285   :
7286 else
7287   ac_cv_header_stdc=no
7288 fi
7289 rm -f conftest*
7290
7291 fi
7292
7293 if test $ac_cv_header_stdc = yes; then
7294   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7295   if test "$cross_compiling" = yes; then
7296   :
7297 else
7298   cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h.  */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h.  */
7304 #include <ctype.h>
7305 #include <stdlib.h>
7306 #if ((' ' & 0x0FF) == 0x020)
7307 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7308 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7309 #else
7310 # define ISLOWER(c) \
7311                    (('a' <= (c) && (c) <= 'i') \
7312                      || ('j' <= (c) && (c) <= 'r') \
7313                      || ('s' <= (c) && (c) <= 'z'))
7314 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7315 #endif
7316
7317 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7318 int
7319 main ()
7320 {
7321   int i;
7322   for (i = 0; i < 256; i++)
7323     if (XOR (islower (i), ISLOWER (i))
7324         || toupper (i) != TOUPPER (i))
7325       return 2;
7326   return 0;
7327 }
7328 _ACEOF
7329 rm -f conftest$ac_exeext
7330 if { (ac_try="$ac_link"
7331 case "(($ac_try" in
7332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7333   *) ac_try_echo=$ac_try;;
7334 esac
7335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7336   (eval "$ac_link") 2>&5
7337   ac_status=$?
7338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7339   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7340   { (case "(($ac_try" in
7341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342   *) ac_try_echo=$ac_try;;
7343 esac
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345   (eval "$ac_try") 2>&5
7346   ac_status=$?
7347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7348   (exit $ac_status); }; }; then
7349   :
7350 else
7351   echo "$as_me: program exited with status $ac_status" >&5
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 ( exit $ac_status )
7356 ac_cv_header_stdc=no
7357 fi
7358 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7359 fi
7360
7361
7362 fi
7363 fi
7364 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7365 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7366 if test $ac_cv_header_stdc = yes; then
7367
7368 cat >>confdefs.h <<\_ACEOF
7369 #define STDC_HEADERS 1
7370 _ACEOF
7371
7372 fi
7373
7374 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7385                   inttypes.h stdint.h unistd.h
7386 do
7387 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7388 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7389 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7390 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7391   echo $ECHO_N "(cached) $ECHO_C" >&6
7392 else
7393   cat >conftest.$ac_ext <<_ACEOF
7394 /* confdefs.h.  */
7395 _ACEOF
7396 cat confdefs.h >>conftest.$ac_ext
7397 cat >>conftest.$ac_ext <<_ACEOF
7398 /* end confdefs.h.  */
7399 $ac_includes_default
7400
7401 #include <$ac_header>
7402 _ACEOF
7403 rm -f conftest.$ac_objext
7404 if { (ac_try="$ac_compile"
7405 case "(($ac_try" in
7406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7407   *) ac_try_echo=$ac_try;;
7408 esac
7409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7410   (eval "$ac_compile") 2>conftest.er1
7411   ac_status=$?
7412   grep -v '^ *+' conftest.er1 >conftest.err
7413   rm -f conftest.er1
7414   cat conftest.err >&5
7415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7416   (exit $ac_status); } && {
7417          test -z "$ac_c_werror_flag" ||
7418          test ! -s conftest.err
7419        } && test -s conftest.$ac_objext; then
7420   eval "$as_ac_Header=yes"
7421 else
7422   echo "$as_me: failed program was:" >&5
7423 sed 's/^/| /' conftest.$ac_ext >&5
7424
7425         eval "$as_ac_Header=no"
7426 fi
7427
7428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7429 fi
7430 ac_res=`eval echo '${'$as_ac_Header'}'`
7431                { echo "$as_me:$LINENO: result: $ac_res" >&5
7432 echo "${ECHO_T}$ac_res" >&6; }
7433 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7434   cat >>confdefs.h <<_ACEOF
7435 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7436 _ACEOF
7437
7438 fi
7439
7440 done
7441
7442
7443
7444 for ac_header in dlfcn.h
7445 do
7446 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448   { echo "$as_me:$LINENO: checking for $ac_header" >&5
7449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7451   echo $ECHO_N "(cached) $ECHO_C" >&6
7452 fi
7453 ac_res=`eval echo '${'$as_ac_Header'}'`
7454                { echo "$as_me:$LINENO: result: $ac_res" >&5
7455 echo "${ECHO_T}$ac_res" >&6; }
7456 else
7457   # Is the header compilable?
7458 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7459 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7460 cat >conftest.$ac_ext <<_ACEOF
7461 /* confdefs.h.  */
7462 _ACEOF
7463 cat confdefs.h >>conftest.$ac_ext
7464 cat >>conftest.$ac_ext <<_ACEOF
7465 /* end confdefs.h.  */
7466 $ac_includes_default
7467 #include <$ac_header>
7468 _ACEOF
7469 rm -f conftest.$ac_objext
7470 if { (ac_try="$ac_compile"
7471 case "(($ac_try" in
7472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473   *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476   (eval "$ac_compile") 2>conftest.er1
7477   ac_status=$?
7478   grep -v '^ *+' conftest.er1 >conftest.err
7479   rm -f conftest.er1
7480   cat conftest.err >&5
7481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482   (exit $ac_status); } && {
7483          test -z "$ac_c_werror_flag" ||
7484          test ! -s conftest.err
7485        } && test -s conftest.$ac_objext; then
7486   ac_header_compiler=yes
7487 else
7488   echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491         ac_header_compiler=no
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7496 echo "${ECHO_T}$ac_header_compiler" >&6; }
7497
7498 # Is the header present?
7499 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7500 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7501 cat >conftest.$ac_ext <<_ACEOF
7502 /* confdefs.h.  */
7503 _ACEOF
7504 cat confdefs.h >>conftest.$ac_ext
7505 cat >>conftest.$ac_ext <<_ACEOF
7506 /* end confdefs.h.  */
7507 #include <$ac_header>
7508 _ACEOF
7509 if { (ac_try="$ac_cpp conftest.$ac_ext"
7510 case "(($ac_try" in
7511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7512   *) ac_try_echo=$ac_try;;
7513 esac
7514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7515   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7516   ac_status=$?
7517   grep -v '^ *+' conftest.er1 >conftest.err
7518   rm -f conftest.er1
7519   cat conftest.err >&5
7520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7521   (exit $ac_status); } >/dev/null && {
7522          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7523          test ! -s conftest.err
7524        }; then
7525   ac_header_preproc=yes
7526 else
7527   echo "$as_me: failed program was:" >&5
7528 sed 's/^/| /' conftest.$ac_ext >&5
7529
7530   ac_header_preproc=no
7531 fi
7532
7533 rm -f conftest.err conftest.$ac_ext
7534 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7535 echo "${ECHO_T}$ac_header_preproc" >&6; }
7536
7537 # So?  What about this header?
7538 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7539   yes:no: )
7540     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7541 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7542     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7543 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7544     ac_header_preproc=yes
7545     ;;
7546   no:yes:* )
7547     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7548 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7549     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
7550 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
7551     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7552 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7553     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
7554 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
7555     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7556 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7557     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7558 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7559     ( cat <<\_ASBOX
7560 ## --------------------------------------------- ##
7561 ## Report this to <http://www.openldap.org/its/> ##
7562 ## --------------------------------------------- ##
7563 _ASBOX
7564      ) | sed "s/^/$as_me: WARNING:     /" >&2
7565     ;;
7566 esac
7567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7570   echo $ECHO_N "(cached) $ECHO_C" >&6
7571 else
7572   eval "$as_ac_Header=\$ac_header_preproc"
7573 fi
7574 ac_res=`eval echo '${'$as_ac_Header'}'`
7575                { echo "$as_me:$LINENO: result: $ac_res" >&5
7576 echo "${ECHO_T}$ac_res" >&6; }
7577
7578 fi
7579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7580   cat >>confdefs.h <<_ACEOF
7581 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7582 _ACEOF
7583
7584 fi
7585
7586 done
7587
7588
7589 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7590
7591 # find the maximum length of command line arguments
7592 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7593 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
7594 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7595   echo $ECHO_N "(cached) $ECHO_C" >&6
7596 else
7597     i=0
7598   teststring="ABCD"
7599
7600   case $build_os in
7601   msdosdjgpp*)
7602     # On DJGPP, this test can blow up pretty badly due to problems in libc
7603     # (any single argument exceeding 2000 bytes causes a buffer overrun
7604     # during glob expansion).  Even if it were fixed, the result of this
7605     # check would be larger than it should be.
7606     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7607     ;;
7608
7609   gnu*)
7610     # Under GNU Hurd, this test is not required because there is
7611     # no limit to the length of command line arguments.
7612     # Libtool will interpret -1 as no limit whatsoever
7613     lt_cv_sys_max_cmd_len=-1;
7614     ;;
7615
7616   cygwin* | mingw*)
7617     # On Win9x/ME, this test blows up -- it succeeds, but takes
7618     # about 5 minutes as the teststring grows exponentially.
7619     # Worse, since 9x/ME are not pre-emptively multitasking,
7620     # you end up with a "frozen" computer, even though with patience
7621     # the test eventually succeeds (with a max line length of 256k).
7622     # Instead, let's just punt: use the minimum linelength reported by
7623     # all of the supported platforms: 8192 (on NT/2K/XP).
7624     lt_cv_sys_max_cmd_len=8192;
7625     ;;
7626
7627   amigaos*)
7628     # On AmigaOS with pdksh, this test takes hours, literally.
7629     # So we just punt and use a minimum line length of 8192.
7630     lt_cv_sys_max_cmd_len=8192;
7631     ;;
7632
7633   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7634     # This has been around since 386BSD, at least.  Likely further.
7635     if test -x /sbin/sysctl; then
7636       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7637     elif test -x /usr/sbin/sysctl; then
7638       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7639     else
7640       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7641     fi
7642     # And add a safety zone
7643     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7644     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7645     ;;
7646
7647   interix*)
7648     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7649     lt_cv_sys_max_cmd_len=196608
7650     ;;
7651
7652   osf*)
7653     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7654     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7655     # nice to cause kernel panics so lets avoid the loop below.
7656     # First set a reasonable default.
7657     lt_cv_sys_max_cmd_len=16384
7658     #
7659     if test -x /sbin/sysconfig; then
7660       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7661         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7662       esac
7663     fi
7664     ;;
7665   sco3.2v5*)
7666     lt_cv_sys_max_cmd_len=102400
7667     ;;
7668   sysv5* | sco5v6* | sysv4.2uw2*)
7669     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7670     if test -n "$kargmax"; then
7671       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7672     else
7673       lt_cv_sys_max_cmd_len=32768
7674     fi
7675     ;;
7676   *)
7677     # If test is not a shell built-in, we'll probably end up computing a
7678     # maximum length that is only half of the actual maximum length, but
7679     # we can't tell.
7680     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7681     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7682                = "XX$teststring") >/dev/null 2>&1 &&
7683             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7684             lt_cv_sys_max_cmd_len=$new_result &&
7685             test $i != 17 # 1/2 MB should be enough
7686     do
7687       i=`expr $i + 1`
7688       teststring=$teststring$teststring
7689     done
7690     teststring=
7691     # Add a significant safety factor because C++ compilers can tack on massive
7692     # amounts of additional arguments before passing them to the linker.
7693     # It appears as though 1/2 is a usable value.
7694     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7695     ;;
7696   esac
7697
7698 fi
7699
7700 if test -n $lt_cv_sys_max_cmd_len ; then
7701   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7702 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
7703 else
7704   { echo "$as_me:$LINENO: result: none" >&5
7705 echo "${ECHO_T}none" >&6; }
7706 fi
7707
7708
7709
7710
7711 # Check for command to grab the raw symbol name followed by C symbol from nm.
7712 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7713 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
7714 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7715   echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717
7718 # These are sane defaults that work on at least a few old systems.
7719 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7720
7721 # Character class describing NM global symbol codes.
7722 symcode='[BCDEGRST]'
7723
7724 # Regexp to match symbols that can be accessed directly from C.
7725 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7726
7727 # Transform an extracted symbol line into a proper C declaration
7728 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7729
7730 # Transform an extracted symbol line into symbol name and symbol address
7731 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'"
7732
7733 # Define system-specific variables.
7734 case $host_os in
7735 aix*)
7736   symcode='[BCDT]'
7737   ;;
7738 cygwin* | mingw* | pw32*)
7739   symcode='[ABCDGISTW]'
7740   ;;
7741 hpux*) # Its linker distinguishes data from code symbols
7742   if test "$host_cpu" = ia64; then
7743     symcode='[ABCDEGRST]'
7744   fi
7745   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7746   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'"
7747   ;;
7748 linux*)
7749   if test "$host_cpu" = ia64; then
7750     symcode='[ABCDGIRSTW]'
7751     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7752     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'"
7753   fi
7754   ;;
7755 irix* | nonstopux*)
7756   symcode='[BCDEGRST]'
7757   ;;
7758 osf*)
7759   symcode='[BCDEGQRST]'
7760   ;;
7761 solaris*)
7762   symcode='[BDRT]'
7763   ;;
7764 sco3.2v5*)
7765   symcode='[DT]'
7766   ;;
7767 sysv4.2uw2*)
7768   symcode='[DT]'
7769   ;;
7770 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7771   symcode='[ABDT]'
7772   ;;
7773 sysv4)
7774   symcode='[DFNSTU]'
7775   ;;
7776 esac
7777
7778 # Handle CRLF in mingw tool chain
7779 opt_cr=
7780 case $build_os in
7781 mingw*)
7782   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7783   ;;
7784 esac
7785
7786 # If we're using GNU nm, then use its standard symbol codes.
7787 case `$NM -V 2>&1` in
7788 *GNU* | *'with BFD'*)
7789   symcode='[ABCDGIRSTW]' ;;
7790 esac
7791
7792 # Try without a prefix undercore, then with it.
7793 for ac_symprfx in "" "_"; do
7794
7795   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7796   symxfrm="\\1 $ac_symprfx\\2 \\2"
7797
7798   # Write the raw and C identifiers.
7799   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7800
7801   # Check to see that the pipe works correctly.
7802   pipe_works=no
7803
7804   rm -f conftest*
7805   cat > conftest.$ac_ext <<EOF
7806 #ifdef __cplusplus
7807 extern "C" {
7808 #endif
7809 char nm_test_var;
7810 void nm_test_func(){}
7811 #ifdef __cplusplus
7812 }
7813 #endif
7814 int main(){nm_test_var='a';nm_test_func();return(0);}
7815 EOF
7816
7817   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7818   (eval $ac_compile) 2>&5
7819   ac_status=$?
7820   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821   (exit $ac_status); }; then
7822     # Now try to grab the symbols.
7823     nlist=conftest.nm
7824     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7825   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7826   ac_status=$?
7827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828   (exit $ac_status); } && test -s "$nlist"; then
7829       # Try sorting and uniquifying the output.
7830       if sort "$nlist" | uniq > "$nlist"T; then
7831         mv -f "$nlist"T "$nlist"
7832       else
7833         rm -f "$nlist"T
7834       fi
7835
7836       # Make sure that we snagged all the symbols we need.
7837       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7838         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7839           cat <<EOF > conftest.$ac_ext
7840 #ifdef __cplusplus
7841 extern "C" {
7842 #endif
7843
7844 EOF
7845           # Now generate the symbol file.
7846           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7847
7848           cat <<EOF >> conftest.$ac_ext
7849 #if defined (__STDC__) && __STDC__
7850 # define lt_ptr_t void *
7851 #else
7852 # define lt_ptr_t char *
7853 # define const
7854 #endif
7855
7856 /* The mapping between symbol names and symbols. */
7857 const struct {
7858   const char *name;
7859   lt_ptr_t address;
7860 }
7861 lt_preloaded_symbols[] =
7862 {
7863 EOF
7864           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7865           cat <<\EOF >> conftest.$ac_ext
7866   {0, (lt_ptr_t) 0}
7867 };
7868
7869 #ifdef __cplusplus
7870 }
7871 #endif
7872 EOF
7873           # Now try linking the two files.
7874           mv conftest.$ac_objext conftstm.$ac_objext
7875           lt_save_LIBS="$LIBS"
7876           lt_save_CFLAGS="$CFLAGS"
7877           LIBS="conftstm.$ac_objext"
7878           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7879           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7880   (eval $ac_link) 2>&5
7881   ac_status=$?
7882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7883   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7884             pipe_works=yes
7885           fi
7886           LIBS="$lt_save_LIBS"
7887           CFLAGS="$lt_save_CFLAGS"
7888         else
7889           echo "cannot find nm_test_func in $nlist" >&5
7890         fi
7891       else
7892         echo "cannot find nm_test_var in $nlist" >&5
7893       fi
7894     else
7895       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7896     fi
7897   else
7898     echo "$progname: failed program was:" >&5
7899     cat conftest.$ac_ext >&5
7900   fi
7901   rm -f conftest* conftst*
7902
7903   # Do not use the global_symbol_pipe unless it works.
7904   if test "$pipe_works" = yes; then
7905     break
7906   else
7907     lt_cv_sys_global_symbol_pipe=
7908   fi
7909 done
7910
7911 fi
7912
7913 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7914   lt_cv_sys_global_symbol_to_cdecl=
7915 fi
7916 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7917   { echo "$as_me:$LINENO: result: failed" >&5
7918 echo "${ECHO_T}failed" >&6; }
7919 else
7920   { echo "$as_me:$LINENO: result: ok" >&5
7921 echo "${ECHO_T}ok" >&6; }
7922 fi
7923
7924 { echo "$as_me:$LINENO: checking for objdir" >&5
7925 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7926 if test "${lt_cv_objdir+set}" = set; then
7927   echo $ECHO_N "(cached) $ECHO_C" >&6
7928 else
7929   rm -f .libs 2>/dev/null
7930 mkdir .libs 2>/dev/null
7931 if test -d .libs; then
7932   lt_cv_objdir=.libs
7933 else
7934   # MS-DOS does not allow filenames that begin with a dot.
7935   lt_cv_objdir=_libs
7936 fi
7937 rmdir .libs 2>/dev/null
7938 fi
7939 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7940 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7941 objdir=$lt_cv_objdir
7942
7943
7944
7945
7946
7947 case $host_os in
7948 aix3*)
7949   # AIX sometimes has problems with the GCC collect2 program.  For some
7950   # reason, if we set the COLLECT_NAMES environment variable, the problems
7951   # vanish in a puff of smoke.
7952   if test "X${COLLECT_NAMES+set}" != Xset; then
7953     COLLECT_NAMES=
7954     export COLLECT_NAMES
7955   fi
7956   ;;
7957 esac
7958
7959 # Sed substitution that helps us do robust quoting.  It backslashifies
7960 # metacharacters that are still active within double-quoted strings.
7961 Xsed='sed -e 1s/^X//'
7962 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7963
7964 # Same as above, but do not quote variable references.
7965 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7966
7967 # Sed substitution to delay expansion of an escaped shell variable in a
7968 # double_quote_subst'ed string.
7969 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7970
7971 # Sed substitution to avoid accidental globbing in evaled expressions
7972 no_glob_subst='s/\*/\\\*/g'
7973
7974 # Constants:
7975 rm="rm -f"
7976
7977 # Global variables:
7978 default_ofile=libtool
7979 can_build_shared=yes
7980
7981 # All known linkers require a `.a' archive for static linking (except MSVC,
7982 # which needs '.lib').
7983 libext=a
7984 ltmain="$ac_aux_dir/ltmain.sh"
7985 ofile="$default_ofile"
7986 with_gnu_ld="$lt_cv_prog_gnu_ld"
7987
7988 if test -n "$ac_tool_prefix"; then
7989   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7990 set dummy ${ac_tool_prefix}ar; ac_word=$2
7991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7993 if test "${ac_cv_prog_AR+set}" = set; then
7994   echo $ECHO_N "(cached) $ECHO_C" >&6
7995 else
7996   if test -n "$AR"; then
7997   ac_cv_prog_AR="$AR" # Let the user override the test.
7998 else
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH
8001 do
8002   IFS=$as_save_IFS
8003   test -z "$as_dir" && as_dir=.
8004   for ac_exec_ext in '' $ac_executable_extensions; do
8005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8006     ac_cv_prog_AR="${ac_tool_prefix}ar"
8007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8008     break 2
8009   fi
8010 done
8011 done
8012 IFS=$as_save_IFS
8013
8014 fi
8015 fi
8016 AR=$ac_cv_prog_AR
8017 if test -n "$AR"; then
8018   { echo "$as_me:$LINENO: result: $AR" >&5
8019 echo "${ECHO_T}$AR" >&6; }
8020 else
8021   { echo "$as_me:$LINENO: result: no" >&5
8022 echo "${ECHO_T}no" >&6; }
8023 fi
8024
8025
8026 fi
8027 if test -z "$ac_cv_prog_AR"; then
8028   ac_ct_AR=$AR
8029   # Extract the first word of "ar", so it can be a program name with args.
8030 set dummy ar; ac_word=$2
8031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8033 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
8034   echo $ECHO_N "(cached) $ECHO_C" >&6
8035 else
8036   if test -n "$ac_ct_AR"; then
8037   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8038 else
8039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8040 for as_dir in $PATH
8041 do
8042   IFS=$as_save_IFS
8043   test -z "$as_dir" && as_dir=.
8044   for ac_exec_ext in '' $ac_executable_extensions; do
8045   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8046     ac_cv_prog_ac_ct_AR="ar"
8047     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8048     break 2
8049   fi
8050 done
8051 done
8052 IFS=$as_save_IFS
8053
8054 fi
8055 fi
8056 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8057 if test -n "$ac_ct_AR"; then
8058   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
8059 echo "${ECHO_T}$ac_ct_AR" >&6; }
8060 else
8061   { echo "$as_me:$LINENO: result: no" >&5
8062 echo "${ECHO_T}no" >&6; }
8063 fi
8064
8065   if test "x$ac_ct_AR" = x; then
8066     AR="false"
8067   else
8068     case $cross_compiling:$ac_tool_warned in
8069 yes:)
8070 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8071 whose name does not start with the host triplet.  If you think this
8072 configuration is useful to you, please write to autoconf@gnu.org." >&5
8073 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8074 whose name does not start with the host triplet.  If you think this
8075 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8076 ac_tool_warned=yes ;;
8077 esac
8078     AR=$ac_ct_AR
8079   fi
8080 else
8081   AR="$ac_cv_prog_AR"
8082 fi
8083
8084 if test -n "$ac_tool_prefix"; then
8085   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8086 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8089 if test "${ac_cv_prog_RANLIB+set}" = set; then
8090   echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092   if test -n "$RANLIB"; then
8093   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8094 else
8095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8096 for as_dir in $PATH
8097 do
8098   IFS=$as_save_IFS
8099   test -z "$as_dir" && as_dir=.
8100   for ac_exec_ext in '' $ac_executable_extensions; do
8101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8102     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8104     break 2
8105   fi
8106 done
8107 done
8108 IFS=$as_save_IFS
8109
8110 fi
8111 fi
8112 RANLIB=$ac_cv_prog_RANLIB
8113 if test -n "$RANLIB"; then
8114   { echo "$as_me:$LINENO: result: $RANLIB" >&5
8115 echo "${ECHO_T}$RANLIB" >&6; }
8116 else
8117   { echo "$as_me:$LINENO: result: no" >&5
8118 echo "${ECHO_T}no" >&6; }
8119 fi
8120
8121
8122 fi
8123 if test -z "$ac_cv_prog_RANLIB"; then
8124   ac_ct_RANLIB=$RANLIB
8125   # Extract the first word of "ranlib", so it can be a program name with args.
8126 set dummy ranlib; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
8130   echo $ECHO_N "(cached) $ECHO_C" >&6
8131 else
8132   if test -n "$ac_ct_RANLIB"; then
8133   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8134 else
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136 for as_dir in $PATH
8137 do
8138   IFS=$as_save_IFS
8139   test -z "$as_dir" && as_dir=.
8140   for ac_exec_ext in '' $ac_executable_extensions; do
8141   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8142     ac_cv_prog_ac_ct_RANLIB="ranlib"
8143     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8144     break 2
8145   fi
8146 done
8147 done
8148 IFS=$as_save_IFS
8149
8150 fi
8151 fi
8152 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8153 if test -n "$ac_ct_RANLIB"; then
8154   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
8155 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
8156 else
8157   { echo "$as_me:$LINENO: result: no" >&5
8158 echo "${ECHO_T}no" >&6; }
8159 fi
8160
8161   if test "x$ac_ct_RANLIB" = x; then
8162     RANLIB=":"
8163   else
8164     case $cross_compiling:$ac_tool_warned in
8165 yes:)
8166 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8167 whose name does not start with the host triplet.  If you think this
8168 configuration is useful to you, please write to autoconf@gnu.org." >&5
8169 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8170 whose name does not start with the host triplet.  If you think this
8171 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174     RANLIB=$ac_ct_RANLIB
8175   fi
8176 else
8177   RANLIB="$ac_cv_prog_RANLIB"
8178 fi
8179
8180 if test -n "$ac_tool_prefix"; then
8181   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8182 set dummy ${ac_tool_prefix}strip; ac_word=$2
8183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8185 if test "${ac_cv_prog_STRIP+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   if test -n "$STRIP"; then
8189   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8190 else
8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8192 for as_dir in $PATH
8193 do
8194   IFS=$as_save_IFS
8195   test -z "$as_dir" && as_dir=.
8196   for ac_exec_ext in '' $ac_executable_extensions; do
8197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8198     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8200     break 2
8201   fi
8202 done
8203 done
8204 IFS=$as_save_IFS
8205
8206 fi
8207 fi
8208 STRIP=$ac_cv_prog_STRIP
8209 if test -n "$STRIP"; then
8210   { echo "$as_me:$LINENO: result: $STRIP" >&5
8211 echo "${ECHO_T}$STRIP" >&6; }
8212 else
8213   { echo "$as_me:$LINENO: result: no" >&5
8214 echo "${ECHO_T}no" >&6; }
8215 fi
8216
8217
8218 fi
8219 if test -z "$ac_cv_prog_STRIP"; then
8220   ac_ct_STRIP=$STRIP
8221   # Extract the first word of "strip", so it can be a program name with args.
8222 set dummy strip; ac_word=$2
8223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8225 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
8226   echo $ECHO_N "(cached) $ECHO_C" >&6
8227 else
8228   if test -n "$ac_ct_STRIP"; then
8229   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8233 do
8234   IFS=$as_save_IFS
8235   test -z "$as_dir" && as_dir=.
8236   for ac_exec_ext in '' $ac_executable_extensions; do
8237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8238     ac_cv_prog_ac_ct_STRIP="strip"
8239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8240     break 2
8241   fi
8242 done
8243 done
8244 IFS=$as_save_IFS
8245
8246 fi
8247 fi
8248 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8249 if test -n "$ac_ct_STRIP"; then
8250   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
8251 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
8252 else
8253   { echo "$as_me:$LINENO: result: no" >&5
8254 echo "${ECHO_T}no" >&6; }
8255 fi
8256
8257   if test "x$ac_ct_STRIP" = x; then
8258     STRIP=":"
8259   else
8260     case $cross_compiling:$ac_tool_warned in
8261 yes:)
8262 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
8263 whose name does not start with the host triplet.  If you think this
8264 configuration is useful to you, please write to autoconf@gnu.org." >&5
8265 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
8266 whose name does not start with the host triplet.  If you think this
8267 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
8268 ac_tool_warned=yes ;;
8269 esac
8270     STRIP=$ac_ct_STRIP
8271   fi
8272 else
8273   STRIP="$ac_cv_prog_STRIP"
8274 fi
8275
8276
8277 old_CC="$CC"
8278 old_CFLAGS="$CFLAGS"
8279
8280 # Set sane defaults for various variables
8281 test -z "$AR" && AR=ar
8282 test -z "$AR_FLAGS" && AR_FLAGS=cru
8283 test -z "$AS" && AS=as
8284 test -z "$CC" && CC=cc
8285 test -z "$LTCC" && LTCC=$CC
8286 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8287 test -z "$DLLTOOL" && DLLTOOL=dlltool
8288 test -z "$LD" && LD=ld
8289 test -z "$LN_S" && LN_S="ln -s"
8290 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8291 test -z "$NM" && NM=nm
8292 test -z "$SED" && SED=sed
8293 test -z "$OBJDUMP" && OBJDUMP=objdump
8294 test -z "$RANLIB" && RANLIB=:
8295 test -z "$STRIP" && STRIP=:
8296 test -z "$ac_objext" && ac_objext=o
8297
8298 # Determine commands to create old-style static archives.
8299 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8300 old_postinstall_cmds='chmod 644 $oldlib'
8301 old_postuninstall_cmds=
8302
8303 if test -n "$RANLIB"; then
8304   case $host_os in
8305   openbsd*)
8306     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8307     ;;
8308   *)
8309     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8310     ;;
8311   esac
8312   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8313 fi
8314
8315 for cc_temp in $compiler""; do
8316   case $cc_temp in
8317     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8318     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8319     \-*) ;;
8320     *) break;;
8321   esac
8322 done
8323 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8324
8325
8326 # Only perform the check for file, if the check method requires it
8327 case $deplibs_check_method in
8328 file_magic*)
8329   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8330     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8331 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
8332 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8333   echo $ECHO_N "(cached) $ECHO_C" >&6
8334 else
8335   case $MAGIC_CMD in
8336 [\\/*] |  ?:[\\/]*)
8337   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8338   ;;
8339 *)
8340   lt_save_MAGIC_CMD="$MAGIC_CMD"
8341   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8342   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8343   for ac_dir in $ac_dummy; do
8344     IFS="$lt_save_ifs"
8345     test -z "$ac_dir" && ac_dir=.
8346     if test -f $ac_dir/${ac_tool_prefix}file; then
8347       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8348       if test -n "$file_magic_test_file"; then
8349         case $deplibs_check_method in
8350         "file_magic "*)
8351           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8352           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8353           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8354             $EGREP "$file_magic_regex" > /dev/null; then
8355             :
8356           else
8357             cat <<EOF 1>&2
8358
8359 *** Warning: the command libtool uses to detect shared libraries,
8360 *** $file_magic_cmd, produces output that libtool cannot recognize.
8361 *** The result is that libtool may fail to recognize shared libraries
8362 *** as such.  This will affect the creation of libtool libraries that
8363 *** depend on shared libraries, but programs linked with such libtool
8364 *** libraries will work regardless of this problem.  Nevertheless, you
8365 *** may want to report the problem to your system manager and/or to
8366 *** bug-libtool@gnu.org
8367
8368 EOF
8369           fi ;;
8370         esac
8371       fi
8372       break
8373     fi
8374   done
8375   IFS="$lt_save_ifs"
8376   MAGIC_CMD="$lt_save_MAGIC_CMD"
8377   ;;
8378 esac
8379 fi
8380
8381 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8382 if test -n "$MAGIC_CMD"; then
8383   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8384 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8385 else
8386   { echo "$as_me:$LINENO: result: no" >&5
8387 echo "${ECHO_T}no" >&6; }
8388 fi
8389
8390 if test -z "$lt_cv_path_MAGIC_CMD"; then
8391   if test -n "$ac_tool_prefix"; then
8392     { echo "$as_me:$LINENO: checking for file" >&5
8393 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
8394 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8395   echo $ECHO_N "(cached) $ECHO_C" >&6
8396 else
8397   case $MAGIC_CMD in
8398 [\\/*] |  ?:[\\/]*)
8399   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8400   ;;
8401 *)
8402   lt_save_MAGIC_CMD="$MAGIC_CMD"
8403   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8404   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8405   for ac_dir in $ac_dummy; do
8406     IFS="$lt_save_ifs"
8407     test -z "$ac_dir" && ac_dir=.
8408     if test -f $ac_dir/file; then
8409       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8410       if test -n "$file_magic_test_file"; then
8411         case $deplibs_check_method in
8412         "file_magic "*)
8413           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8414           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8415           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8416             $EGREP "$file_magic_regex" > /dev/null; then
8417             :
8418           else
8419             cat <<EOF 1>&2
8420
8421 *** Warning: the command libtool uses to detect shared libraries,
8422 *** $file_magic_cmd, produces output that libtool cannot recognize.
8423 *** The result is that libtool may fail to recognize shared libraries
8424 *** as such.  This will affect the creation of libtool libraries that
8425 *** depend on shared libraries, but programs linked with such libtool
8426 *** libraries will work regardless of this problem.  Nevertheless, you
8427 *** may want to report the problem to your system manager and/or to
8428 *** bug-libtool@gnu.org
8429
8430 EOF
8431           fi ;;
8432         esac
8433       fi
8434       break
8435     fi
8436   done
8437   IFS="$lt_save_ifs"
8438   MAGIC_CMD="$lt_save_MAGIC_CMD"
8439   ;;
8440 esac
8441 fi
8442
8443 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8444 if test -n "$MAGIC_CMD"; then
8445   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8446 echo "${ECHO_T}$MAGIC_CMD" >&6; }
8447 else
8448   { echo "$as_me:$LINENO: result: no" >&5
8449 echo "${ECHO_T}no" >&6; }
8450 fi
8451
8452   else
8453     MAGIC_CMD=:
8454   fi
8455 fi
8456
8457   fi
8458   ;;
8459 esac
8460
8461 enable_dlopen=yes
8462 enable_win32_dll=yes
8463
8464 # Check whether --enable-libtool-lock was given.
8465 if test "${enable_libtool_lock+set}" = set; then
8466   enableval=$enable_libtool_lock;
8467 fi
8468
8469 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8470
8471
8472 # Check whether --with-pic was given.
8473 if test "${with_pic+set}" = set; then
8474   withval=$with_pic; pic_mode="$withval"
8475 else
8476   pic_mode=default
8477 fi
8478
8479 test -z "$pic_mode" && pic_mode=default
8480
8481 # Use C for the default configuration in the libtool script
8482 tagname=
8483 lt_save_CC="$CC"
8484 ac_ext=c
8485 ac_cpp='$CPP $CPPFLAGS'
8486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8489
8490
8491 # Source file extension for C test sources.
8492 ac_ext=c
8493
8494 # Object file extension for compiled C test sources.
8495 objext=o
8496 objext=$objext
8497
8498 # Code to be used in simple compile tests
8499 lt_simple_compile_test_code="int some_variable = 0;\n"
8500
8501 # Code to be used in simple link tests
8502 lt_simple_link_test_code='int main(){return(0);}\n'
8503
8504
8505 # If no C compiler was specified, use CC.
8506 LTCC=${LTCC-"$CC"}
8507
8508 # If no C compiler flags were specified, use CFLAGS.
8509 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8510
8511 # Allow CC to be a program name with arguments.
8512 compiler=$CC
8513
8514
8515 # save warnings/boilerplate of simple test code
8516 ac_outfile=conftest.$ac_objext
8517 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8518 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8519 _lt_compiler_boilerplate=`cat conftest.err`
8520 $rm conftest*
8521
8522 ac_outfile=conftest.$ac_objext
8523 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8524 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8525 _lt_linker_boilerplate=`cat conftest.err`
8526 $rm conftest*
8527
8528
8529
8530 lt_prog_compiler_no_builtin_flag=
8531
8532 if test "$GCC" = yes; then
8533   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8534
8535
8536 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8537 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8538 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8539   echo $ECHO_N "(cached) $ECHO_C" >&6
8540 else
8541   lt_cv_prog_compiler_rtti_exceptions=no
8542   ac_outfile=conftest.$ac_objext
8543    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8544    lt_compiler_flag="-fno-rtti -fno-exceptions"
8545    # Insert the option either (1) after the last *FLAGS variable, or
8546    # (2) before a word containing "conftest.", or (3) at the end.
8547    # Note that $ac_compile itself does not contain backslashes and begins
8548    # with a dollar sign (not a hyphen), so the echo should work correctly.
8549    # The option is referenced via a variable to avoid confusing sed.
8550    lt_compile=`echo "$ac_compile" | $SED \
8551    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8552    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8553    -e 's:$: $lt_compiler_flag:'`
8554    (eval echo "\"\$as_me:8552: $lt_compile\"" >&5)
8555    (eval "$lt_compile" 2>conftest.err)
8556    ac_status=$?
8557    cat conftest.err >&5
8558    echo "$as_me:8556: \$? = $ac_status" >&5
8559    if (exit $ac_status) && test -s "$ac_outfile"; then
8560      # The compiler can only warn and ignore the option if not recognized
8561      # So say no if there are warnings other than the usual output.
8562      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8563      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8564      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8565        lt_cv_prog_compiler_rtti_exceptions=yes
8566      fi
8567    fi
8568    $rm conftest*
8569
8570 fi
8571 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8572 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8573
8574 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8575     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8576 else
8577     :
8578 fi
8579
8580 fi
8581
8582 lt_prog_compiler_wl=
8583 lt_prog_compiler_pic=
8584 lt_prog_compiler_static=
8585
8586 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8587 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8588
8589   if test "$GCC" = yes; then
8590     lt_prog_compiler_wl='-Wl,'
8591     lt_prog_compiler_static='-static'
8592
8593     case $host_os in
8594       aix*)
8595       # All AIX code is PIC.
8596       if test "$host_cpu" = ia64; then
8597         # AIX 5 now supports IA64 processor
8598         lt_prog_compiler_static='-Bstatic'
8599       fi
8600       ;;
8601
8602     amigaos*)
8603       # FIXME: we need at least 68020 code to build shared libraries, but
8604       # adding the `-m68020' flag to GCC prevents building anything better,
8605       # like `-m68040'.
8606       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8607       ;;
8608
8609     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8610       # PIC is the default for these OSes.
8611       ;;
8612
8613     mingw* | pw32* | os2*)
8614       # This hack is so that the source file can tell whether it is being
8615       # built for inclusion in a dll (and should export symbols for example).
8616       lt_prog_compiler_pic='-DDLL_EXPORT'
8617       ;;
8618
8619     darwin* | rhapsody*)
8620       # PIC is the default on this platform
8621       # Common symbols not allowed in MH_DYLIB files
8622       lt_prog_compiler_pic='-fno-common'
8623       ;;
8624
8625     interix3*)
8626       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8627       # Instead, we relocate shared libraries at runtime.
8628       ;;
8629
8630     msdosdjgpp*)
8631       # Just because we use GCC doesn't mean we suddenly get shared libraries
8632       # on systems that don't support them.
8633       lt_prog_compiler_can_build_shared=no
8634       enable_shared=no
8635       ;;
8636
8637     sysv4*MP*)
8638       if test -d /usr/nec; then
8639         lt_prog_compiler_pic=-Kconform_pic
8640       fi
8641       ;;
8642
8643     hpux*)
8644       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8645       # not for PA HP-UX.
8646       case $host_cpu in
8647       hppa*64*|ia64*)
8648         # +Z the default
8649         ;;
8650       *)
8651         lt_prog_compiler_pic='-fPIC'
8652         ;;
8653       esac
8654       ;;
8655
8656     *)
8657       lt_prog_compiler_pic='-fPIC'
8658       ;;
8659     esac
8660   else
8661     # PORTME Check for flag to pass linker flags through the system compiler.
8662     case $host_os in
8663     aix*)
8664       lt_prog_compiler_wl='-Wl,'
8665       if test "$host_cpu" = ia64; then
8666         # AIX 5 now supports IA64 processor
8667         lt_prog_compiler_static='-Bstatic'
8668       else
8669         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8670       fi
8671       ;;
8672       darwin*)
8673         # PIC is the default on this platform
8674         # Common symbols not allowed in MH_DYLIB files
8675        case $cc_basename in
8676          xlc*)
8677          lt_prog_compiler_pic='-qnocommon'
8678          lt_prog_compiler_wl='-Wl,'
8679          ;;
8680        esac
8681        ;;
8682
8683     mingw* | pw32* | os2*)
8684       # This hack is so that the source file can tell whether it is being
8685       # built for inclusion in a dll (and should export symbols for example).
8686       lt_prog_compiler_pic='-DDLL_EXPORT'
8687       ;;
8688
8689     hpux9* | hpux10* | hpux11*)
8690       lt_prog_compiler_wl='-Wl,'
8691       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8692       # not for PA HP-UX.
8693       case $host_cpu in
8694       hppa*64*|ia64*)
8695         # +Z the default
8696         ;;
8697       *)
8698         lt_prog_compiler_pic='+Z'
8699         ;;
8700       esac
8701       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8702       lt_prog_compiler_static='${wl}-a ${wl}archive'
8703       ;;
8704
8705     irix5* | irix6* | nonstopux*)
8706       lt_prog_compiler_wl='-Wl,'
8707       # PIC (with -KPIC) is the default.
8708       lt_prog_compiler_static='-non_shared'
8709       ;;
8710
8711     newsos6)
8712       lt_prog_compiler_pic='-KPIC'
8713       lt_prog_compiler_static='-Bstatic'
8714       ;;
8715
8716     linux*)
8717       case $cc_basename in
8718       icc* | ecc*)
8719         lt_prog_compiler_wl='-Wl,'
8720         lt_prog_compiler_pic='-KPIC'
8721         lt_prog_compiler_static='-static'
8722         ;;
8723       pgcc* | pgf77* | pgf90* | pgf95*)
8724         # Portland Group compilers (*not* the Pentium gcc compiler,
8725         # which looks to be a dead project)
8726         lt_prog_compiler_wl='-Wl,'
8727         lt_prog_compiler_pic='-fpic'
8728         lt_prog_compiler_static='-Bstatic'
8729         ;;
8730       ccc*)
8731         lt_prog_compiler_wl='-Wl,'
8732         # All Alpha code is PIC.
8733         lt_prog_compiler_static='-non_shared'
8734         ;;
8735       esac
8736       ;;
8737
8738     osf3* | osf4* | osf5*)
8739       lt_prog_compiler_wl='-Wl,'
8740       # All OSF/1 code is PIC.
8741       lt_prog_compiler_static='-non_shared'
8742       ;;
8743
8744     solaris*)
8745       lt_prog_compiler_pic='-KPIC'
8746       lt_prog_compiler_static='-Bstatic'
8747       case $cc_basename in
8748       f77* | f90* | f95*)
8749         lt_prog_compiler_wl='-Qoption ld ';;
8750       *)
8751         lt_prog_compiler_wl='-Wl,';;
8752       esac
8753       ;;
8754
8755     sunos4*)
8756       lt_prog_compiler_wl='-Qoption ld '
8757       lt_prog_compiler_pic='-PIC'
8758       lt_prog_compiler_static='-Bstatic'
8759       ;;
8760
8761     sysv4 | sysv4.2uw2* | sysv4.3*)
8762       lt_prog_compiler_wl='-Wl,'
8763       lt_prog_compiler_pic='-KPIC'
8764       lt_prog_compiler_static='-Bstatic'
8765       ;;
8766
8767     sysv4*MP*)
8768       if test -d /usr/nec ;then
8769         lt_prog_compiler_pic='-Kconform_pic'
8770         lt_prog_compiler_static='-Bstatic'
8771       fi
8772       ;;
8773
8774     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8775       lt_prog_compiler_wl='-Wl,'
8776       lt_prog_compiler_pic='-KPIC'
8777       lt_prog_compiler_static='-Bstatic'
8778       ;;
8779
8780     unicos*)
8781       lt_prog_compiler_wl='-Wl,'
8782       lt_prog_compiler_can_build_shared=no
8783       ;;
8784
8785     uts4*)
8786       lt_prog_compiler_pic='-pic'
8787       lt_prog_compiler_static='-Bstatic'
8788       ;;
8789
8790     *)
8791       lt_prog_compiler_can_build_shared=no
8792       ;;
8793     esac
8794   fi
8795
8796 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8797 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8798
8799 #
8800 # Check to make sure the PIC flag actually works.
8801 #
8802 if test -n "$lt_prog_compiler_pic"; then
8803
8804 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8805 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8806 if test "${lt_prog_compiler_pic_works+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809   lt_prog_compiler_pic_works=no
8810   ac_outfile=conftest.$ac_objext
8811    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8812    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8813    # Insert the option either (1) after the last *FLAGS variable, or
8814    # (2) before a word containing "conftest.", or (3) at the end.
8815    # Note that $ac_compile itself does not contain backslashes and begins
8816    # with a dollar sign (not a hyphen), so the echo should work correctly.
8817    # The option is referenced via a variable to avoid confusing sed.
8818    lt_compile=`echo "$ac_compile" | $SED \
8819    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8820    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8821    -e 's:$: $lt_compiler_flag:'`
8822    (eval echo "\"\$as_me:8820: $lt_compile\"" >&5)
8823    (eval "$lt_compile" 2>conftest.err)
8824    ac_status=$?
8825    cat conftest.err >&5
8826    echo "$as_me:8824: \$? = $ac_status" >&5
8827    if (exit $ac_status) && test -s "$ac_outfile"; then
8828      # The compiler can only warn and ignore the option if not recognized
8829      # So say no if there are warnings other than the usual output.
8830      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8831      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8832      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8833        lt_prog_compiler_pic_works=yes
8834      fi
8835    fi
8836    $rm conftest*
8837
8838 fi
8839 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8840 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
8841
8842 if test x"$lt_prog_compiler_pic_works" = xyes; then
8843     case $lt_prog_compiler_pic in
8844      "" | " "*) ;;
8845      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8846      esac
8847 else
8848     lt_prog_compiler_pic=
8849      lt_prog_compiler_can_build_shared=no
8850 fi
8851
8852 fi
8853 case $host_os in
8854   # For platforms which do not support PIC, -DPIC is meaningless:
8855   *djgpp*)
8856     lt_prog_compiler_pic=
8857     ;;
8858   *)
8859     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8860     ;;
8861 esac
8862
8863 #
8864 # Check to make sure the static flag actually works.
8865 #
8866 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8867 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8868 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8869 if test "${lt_prog_compiler_static_works+set}" = set; then
8870   echo $ECHO_N "(cached) $ECHO_C" >&6
8871 else
8872   lt_prog_compiler_static_works=no
8873    save_LDFLAGS="$LDFLAGS"
8874    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8875    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8876    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8877      # The linker can only warn and ignore the option if not recognized
8878      # So say no if there are warnings
8879      if test -s conftest.err; then
8880        # Append any errors to the config.log.
8881        cat conftest.err 1>&5
8882        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8883        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8884        if diff conftest.exp conftest.er2 >/dev/null; then
8885          lt_prog_compiler_static_works=yes
8886        fi
8887      else
8888        lt_prog_compiler_static_works=yes
8889      fi
8890    fi
8891    $rm conftest*
8892    LDFLAGS="$save_LDFLAGS"
8893
8894 fi
8895 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8896 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8897
8898 if test x"$lt_prog_compiler_static_works" = xyes; then
8899     :
8900 else
8901     lt_prog_compiler_static=
8902 fi
8903
8904
8905 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8906 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8907 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8908   echo $ECHO_N "(cached) $ECHO_C" >&6
8909 else
8910   lt_cv_prog_compiler_c_o=no
8911    $rm -r conftest 2>/dev/null
8912    mkdir conftest
8913    cd conftest
8914    mkdir out
8915    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8916
8917    lt_compiler_flag="-o out/conftest2.$ac_objext"
8918    # Insert the option either (1) after the last *FLAGS variable, or
8919    # (2) before a word containing "conftest.", or (3) at the end.
8920    # Note that $ac_compile itself does not contain backslashes and begins
8921    # with a dollar sign (not a hyphen), so the echo should work correctly.
8922    lt_compile=`echo "$ac_compile" | $SED \
8923    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8924    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8925    -e 's:$: $lt_compiler_flag:'`
8926    (eval echo "\"\$as_me:8924: $lt_compile\"" >&5)
8927    (eval "$lt_compile" 2>out/conftest.err)
8928    ac_status=$?
8929    cat out/conftest.err >&5
8930    echo "$as_me:8928: \$? = $ac_status" >&5
8931    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8932    then
8933      # The compiler can only warn and ignore the option if not recognized
8934      # So say no if there are warnings
8935      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8936      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8937      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8938        lt_cv_prog_compiler_c_o=yes
8939      fi
8940    fi
8941    chmod u+w . 2>&5
8942    $rm conftest*
8943    # SGI C++ compiler will create directory out/ii_files/ for
8944    # template instantiation
8945    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8946    $rm out/* && rmdir out
8947    cd ..
8948    rmdir conftest
8949    $rm conftest*
8950
8951 fi
8952 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8953 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8954
8955
8956 hard_links="nottested"
8957 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8958   # do not overwrite the value of need_locks provided by the user
8959   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8960 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8961   hard_links=yes
8962   $rm conftest*
8963   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8964   touch conftest.a
8965   ln conftest.a conftest.b 2>&5 || hard_links=no
8966   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8967   { echo "$as_me:$LINENO: result: $hard_links" >&5
8968 echo "${ECHO_T}$hard_links" >&6; }
8969   if test "$hard_links" = no; then
8970     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8971 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8972     need_locks=warn
8973   fi
8974 else
8975   need_locks=no
8976 fi
8977
8978 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8979 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8980
8981   runpath_var=
8982   allow_undefined_flag=
8983   enable_shared_with_static_runtimes=no
8984   archive_cmds=
8985   archive_expsym_cmds=
8986   old_archive_From_new_cmds=
8987   old_archive_from_expsyms_cmds=
8988   export_dynamic_flag_spec=
8989   whole_archive_flag_spec=
8990   thread_safe_flag_spec=
8991   hardcode_libdir_flag_spec=
8992   hardcode_libdir_flag_spec_ld=
8993   hardcode_libdir_separator=
8994   hardcode_direct=no
8995   hardcode_minus_L=no
8996   hardcode_shlibpath_var=unsupported
8997   link_all_deplibs=unknown
8998   hardcode_automatic=no
8999   module_cmds=
9000   module_expsym_cmds=
9001   always_export_symbols=no
9002   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9003   # include_expsyms should be a list of space-separated symbols to be *always*
9004   # included in the symbol list
9005   include_expsyms=
9006   # exclude_expsyms can be an extended regexp of symbols to exclude
9007   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9008   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9009   # as well as any symbol that contains `d'.
9010   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
9011   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9012   # platforms (ab)use it in PIC code, but their linkers get confused if
9013   # the symbol is explicitly referenced.  Since portable code cannot
9014   # rely on this symbol name, it's probably fine to never include it in
9015   # preloaded symbol tables.
9016   extract_expsyms_cmds=
9017   # Just being paranoid about ensuring that cc_basename is set.
9018   for cc_temp in $compiler""; do
9019   case $cc_temp in
9020     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9021     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9022     \-*) ;;
9023     *) break;;
9024   esac
9025 done
9026 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9027
9028   case $host_os in
9029   cygwin* | mingw* | pw32*)
9030     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9031     # When not using gcc, we currently assume that we are using
9032     # Microsoft Visual C++.
9033     if test "$GCC" != yes; then
9034       with_gnu_ld=no
9035     fi
9036     ;;
9037   interix*)
9038     # we just hope/assume this is gcc and not c89 (= MSVC++)
9039     with_gnu_ld=yes
9040     ;;
9041   openbsd*)
9042     with_gnu_ld=no
9043     ;;
9044   esac
9045
9046   ld_shlibs=yes
9047   if test "$with_gnu_ld" = yes; then
9048     # If archive_cmds runs LD, not CC, wlarc should be empty
9049     wlarc='${wl}'
9050
9051     # Set some defaults for GNU ld with shared library support. These
9052     # are reset later if shared libraries are not supported. Putting them
9053     # here allows them to be overridden if necessary.
9054     runpath_var=LD_RUN_PATH
9055     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
9056     export_dynamic_flag_spec='${wl}--export-dynamic'
9057     # ancient GNU ld didn't support --whole-archive et. al.
9058     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
9059         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9060       else
9061         whole_archive_flag_spec=
9062     fi
9063     supports_anon_versioning=no
9064     case `$LD -v 2>/dev/null` in
9065       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9066       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9067       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9068       *\ 2.11.*) ;; # other 2.11 versions
9069       *) supports_anon_versioning=yes ;;
9070     esac
9071
9072     # See if GNU ld supports shared libraries.
9073     case $host_os in
9074     aix3* | aix4* | aix5*)
9075       # On AIX/PPC, the GNU linker is very broken
9076       if test "$host_cpu" != ia64; then
9077         ld_shlibs=no
9078         cat <<EOF 1>&2
9079
9080 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
9081 *** to be unable to reliably create shared libraries on AIX.
9082 *** Therefore, libtool is disabling shared libraries support.  If you
9083 *** really care for shared libraries, you may want to modify your PATH
9084 *** so that a non-GNU linker is found, and then restart.
9085
9086 EOF
9087       fi
9088       ;;
9089
9090     amigaos*)
9091       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)'
9092       hardcode_libdir_flag_spec='-L$libdir'
9093       hardcode_minus_L=yes
9094
9095       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
9096       # that the semantics of dynamic libraries on AmigaOS, at least up
9097       # to version 4, is to share data among multiple programs linked
9098       # with the same dynamic library.  Since this doesn't match the
9099       # behavior of shared libraries on other platforms, we can't use
9100       # them.
9101       ld_shlibs=no
9102       ;;
9103
9104     beos*)
9105       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9106         allow_undefined_flag=unsupported
9107         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9108         # support --undefined.  This deserves some investigation.  FIXME
9109         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9110       else
9111         ld_shlibs=no
9112       fi
9113       ;;
9114
9115     cygwin* | mingw* | pw32*)
9116       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9117       # as there is no search path for DLLs.
9118       hardcode_libdir_flag_spec='-L$libdir'
9119       allow_undefined_flag=unsupported
9120       always_export_symbols=no
9121       enable_shared_with_static_runtimes=yes
9122       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
9123
9124       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9125         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9126         # If the export-symbols file already is a .def file (1st line
9127         # is EXPORTS), use it as is; otherwise, prepend...
9128         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9129           cp $export_symbols $output_objdir/$soname.def;
9130         else
9131           echo EXPORTS > $output_objdir/$soname.def;
9132           cat $export_symbols >> $output_objdir/$soname.def;
9133         fi~
9134         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9135       else
9136         ld_shlibs=no
9137       fi
9138       ;;
9139
9140     interix3*)
9141       hardcode_direct=no
9142       hardcode_shlibpath_var=no
9143       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9144       export_dynamic_flag_spec='${wl}-E'
9145       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9146       # Instead, shared libraries are loaded at an image base (0x10000000 by
9147       # default) and relocated if they conflict, which is a slow very memory
9148       # consuming and fragmenting process.  To avoid this, we pick a random,
9149       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9150       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9151       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9152       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9153       ;;
9154
9155     linux*)
9156       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9157         tmp_addflag=
9158         case $cc_basename,$host_cpu in
9159         pgcc*)                          # Portland Group C compiler
9160           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'
9161           tmp_addflag=' $pic_flag'
9162           ;;
9163         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
9164           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'
9165           tmp_addflag=' $pic_flag -Mnomain' ;;
9166         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
9167           tmp_addflag=' -i_dynamic' ;;
9168         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9169           tmp_addflag=' -i_dynamic -nofor_main' ;;
9170         ifc* | ifort*)                  # Intel Fortran compiler
9171           tmp_addflag=' -nofor_main' ;;
9172         esac
9173         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174
9175         if test $supports_anon_versioning = yes; then
9176           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
9177   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9178   $echo "local: *; };" >> $output_objdir/$libname.ver~
9179           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9180         fi
9181       else
9182         ld_shlibs=no
9183       fi
9184       ;;
9185
9186     netbsd*)
9187       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9188         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9189         wlarc=
9190       else
9191         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9193       fi
9194       ;;
9195
9196     solaris*)
9197       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
9198         ld_shlibs=no
9199         cat <<EOF 1>&2
9200
9201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9202 *** create shared libraries on Solaris systems.  Therefore, libtool
9203 *** is disabling shared libraries support.  We urge you to upgrade GNU
9204 *** binutils to release 2.9.1 or newer.  Another option is to modify
9205 *** your PATH or compiler configuration so that the native linker is
9206 *** used, and then restart.
9207
9208 EOF
9209       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9210         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9211         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9212       else
9213         ld_shlibs=no
9214       fi
9215       ;;
9216
9217     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9218       case `$LD -v 2>&1` in
9219         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9220         ld_shlibs=no
9221         cat <<_LT_EOF 1>&2
9222
9223 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9224 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9225 *** is disabling shared libraries support.  We urge you to upgrade GNU
9226 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9227 *** your PATH or compiler configuration so that the native linker is
9228 *** used, and then restart.
9229
9230 _LT_EOF
9231         ;;
9232         *)
9233           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9234             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
9235             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
9236             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
9237           else
9238             ld_shlibs=no
9239           fi
9240         ;;
9241       esac
9242       ;;
9243
9244     sunos4*)
9245       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9246       wlarc=
9247       hardcode_direct=yes
9248       hardcode_shlibpath_var=no
9249       ;;
9250
9251     *)
9252       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
9253         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255       else
9256         ld_shlibs=no
9257       fi
9258       ;;
9259     esac
9260
9261     if test "$ld_shlibs" = no; then
9262       runpath_var=
9263       hardcode_libdir_flag_spec=
9264       export_dynamic_flag_spec=
9265       whole_archive_flag_spec=
9266     fi
9267   else
9268     # PORTME fill in a description of your system's linker (not GNU ld)
9269     case $host_os in
9270     aix3*)
9271       allow_undefined_flag=unsupported
9272       always_export_symbols=yes
9273       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'
9274       # Note: this linker hardcodes the directories in LIBPATH if there
9275       # are no directories specified by -L.
9276       hardcode_minus_L=yes
9277       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9278         # Neither direct hardcoding nor static linking is supported with a
9279         # broken collect2.
9280         hardcode_direct=unsupported
9281       fi
9282       ;;
9283
9284     aix4* | aix5*)
9285       if test "$host_cpu" = ia64; then
9286         # On IA64, the linker does run time linking by default, so we don't
9287         # have to do anything special.
9288         aix_use_runtimelinking=no
9289         exp_sym_flag='-Bexport'
9290         no_entry_flag=""
9291       else
9292         # If we're using GNU nm, then we don't want the "-C" option.
9293         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9294         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
9295           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'
9296         else
9297           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'
9298         fi
9299         aix_use_runtimelinking=no
9300
9301         # Test if we are trying to use run time linking or normal
9302         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9303         # need to do runtime linking.
9304         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9305           for ld_flag in $LDFLAGS; do
9306           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9307             aix_use_runtimelinking=yes
9308             break
9309           fi
9310           done
9311           ;;
9312         esac
9313
9314         exp_sym_flag='-bexport'
9315         no_entry_flag='-bnoentry'
9316       fi
9317
9318       # When large executables or shared objects are built, AIX ld can
9319       # have problems creating the table of contents.  If linking a library
9320       # or program results in "error TOC overflow" add -mminimal-toc to
9321       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9322       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9323
9324       archive_cmds=''
9325       hardcode_direct=yes
9326       hardcode_libdir_separator=':'
9327       link_all_deplibs=yes
9328
9329       if test "$GCC" = yes; then
9330         case $host_os in aix4.[012]|aix4.[012].*)
9331         # We only want to do this on AIX 4.2 and lower, the check
9332         # below for broken collect2 doesn't work under 4.3+
9333           collect2name=`${CC} -print-prog-name=collect2`
9334           if test -f "$collect2name" && \
9335            strings "$collect2name" | grep resolve_lib_name >/dev/null
9336           then
9337           # We have reworked collect2
9338           hardcode_direct=yes
9339           else
9340           # We have old collect2
9341           hardcode_direct=unsupported
9342           # It fails to find uninstalled libraries when the uninstalled
9343           # path is not listed in the libpath.  Setting hardcode_minus_L
9344           # to unsupported forces relinking
9345           hardcode_minus_L=yes
9346           hardcode_libdir_flag_spec='-L$libdir'
9347           hardcode_libdir_separator=
9348           fi
9349           ;;
9350         esac
9351         shared_flag='-shared'
9352         if test "$aix_use_runtimelinking" = yes; then
9353           shared_flag="$shared_flag "'${wl}-G'
9354         fi
9355       else
9356         # not using gcc
9357         if test "$host_cpu" = ia64; then
9358         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9359         # chokes on -Wl,-G. The following line is correct:
9360           shared_flag='-G'
9361         else
9362           if test "$aix_use_runtimelinking" = yes; then
9363             shared_flag='${wl}-G'
9364           else
9365             shared_flag='${wl}-bM:SRE'
9366           fi
9367         fi
9368       fi
9369
9370       # It seems that -bexpall does not export symbols beginning with
9371       # underscore (_), so it is better to generate a list of symbols to export.
9372       always_export_symbols=yes
9373       if test "$aix_use_runtimelinking" = yes; then
9374         # Warning - without using the other runtime loading flags (-brtl),
9375         # -berok will link without error, but may produce a broken library.
9376         allow_undefined_flag='-berok'
9377        # Determine the default libpath from the value encoded in an empty executable.
9378        cat >conftest.$ac_ext <<_ACEOF
9379 /* confdefs.h.  */
9380 _ACEOF
9381 cat confdefs.h >>conftest.$ac_ext
9382 cat >>conftest.$ac_ext <<_ACEOF
9383 /* end confdefs.h.  */
9384
9385 int
9386 main ()
9387 {
9388
9389   ;
9390   return 0;
9391 }
9392 _ACEOF
9393 rm -f conftest.$ac_objext conftest$ac_exeext
9394 if { (ac_try="$ac_link"
9395 case "(($ac_try" in
9396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9397   *) ac_try_echo=$ac_try;;
9398 esac
9399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9400   (eval "$ac_link") 2>conftest.er1
9401   ac_status=$?
9402   grep -v '^ *+' conftest.er1 >conftest.err
9403   rm -f conftest.er1
9404   cat conftest.err >&5
9405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9406   (exit $ac_status); } && {
9407          test -z "$ac_c_werror_flag" ||
9408          test ! -s conftest.err
9409        } && test -s conftest$ac_exeext &&
9410        $as_test_x conftest$ac_exeext; then
9411
9412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9413 }'`
9414 # Check for a 64-bit object if we didn't find anything.
9415 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; }
9416 }'`; fi
9417 else
9418   echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421
9422 fi
9423
9424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9425       conftest$ac_exeext conftest.$ac_ext
9426 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9427
9428        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9429         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9430        else
9431         if test "$host_cpu" = ia64; then
9432           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9433           allow_undefined_flag="-z nodefs"
9434           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9435         else
9436          # Determine the default libpath from the value encoded in an empty executable.
9437          cat >conftest.$ac_ext <<_ACEOF
9438 /* confdefs.h.  */
9439 _ACEOF
9440 cat confdefs.h >>conftest.$ac_ext
9441 cat >>conftest.$ac_ext <<_ACEOF
9442 /* end confdefs.h.  */
9443
9444 int
9445 main ()
9446 {
9447
9448   ;
9449   return 0;
9450 }
9451 _ACEOF
9452 rm -f conftest.$ac_objext conftest$ac_exeext
9453 if { (ac_try="$ac_link"
9454 case "(($ac_try" in
9455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9456   *) ac_try_echo=$ac_try;;
9457 esac
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459   (eval "$ac_link") 2>conftest.er1
9460   ac_status=$?
9461   grep -v '^ *+' conftest.er1 >conftest.err
9462   rm -f conftest.er1
9463   cat conftest.err >&5
9464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465   (exit $ac_status); } && {
9466          test -z "$ac_c_werror_flag" ||
9467          test ! -s conftest.err
9468        } && test -s conftest$ac_exeext &&
9469        $as_test_x conftest$ac_exeext; then
9470
9471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9472 }'`
9473 # Check for a 64-bit object if we didn't find anything.
9474 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; }
9475 }'`; fi
9476 else
9477   echo "$as_me: failed program was:" >&5
9478 sed 's/^/| /' conftest.$ac_ext >&5
9479
9480
9481 fi
9482
9483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9484       conftest$ac_exeext conftest.$ac_ext
9485 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9486
9487          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9488           # Warning - without using the other run time loading flags,
9489           # -berok will link without error, but may produce a broken library.
9490           no_undefined_flag=' ${wl}-bernotok'
9491           allow_undefined_flag=' ${wl}-berok'
9492           # Exported symbols can be pulled into shared objects from archives
9493           whole_archive_flag_spec='$convenience'
9494           archive_cmds_need_lc=yes
9495           # This is similar to how AIX traditionally builds its shared libraries.
9496           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9497         fi
9498       fi
9499       ;;
9500
9501     amigaos*)
9502       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)'
9503       hardcode_libdir_flag_spec='-L$libdir'
9504       hardcode_minus_L=yes
9505       # see comment about different semantics on the GNU ld section
9506       ld_shlibs=no
9507       ;;
9508
9509     bsdi[45]*)
9510       export_dynamic_flag_spec=-rdynamic
9511       ;;
9512
9513     cygwin* | mingw* | pw32*)
9514       # When not using gcc, we currently assume that we are using
9515       # Microsoft Visual C++.
9516       # hardcode_libdir_flag_spec is actually meaningless, as there is
9517       # no search path for DLLs.
9518       hardcode_libdir_flag_spec=' '
9519       allow_undefined_flag=unsupported
9520       # Tell ltmain to make .lib files, not .a files.
9521       libext=lib
9522       # Tell ltmain to make .dll files, not .so files.
9523       shrext_cmds=".dll"
9524       # FIXME: Setting linknames here is a bad hack.
9525       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9526       # The linker will automatically build a .lib file if we build a DLL.
9527       old_archive_From_new_cmds='true'
9528       # FIXME: Should let the user specify the lib program.
9529       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9530       fix_srcfile_path='`cygpath -w "$srcfile"`'
9531       enable_shared_with_static_runtimes=yes
9532       ;;
9533
9534     darwin* | rhapsody*)
9535       case $host_os in
9536         rhapsody* | darwin1.[012])
9537          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9538          ;;
9539        *) # Darwin 1.3 on
9540          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9541            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9542          else
9543            case ${MACOSX_DEPLOYMENT_TARGET} in
9544              10.[012])
9545                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9546                ;;
9547              10.*)
9548                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9549                ;;
9550            esac
9551          fi
9552          ;;
9553       esac
9554       archive_cmds_need_lc=no
9555       hardcode_direct=no
9556       hardcode_automatic=yes
9557       hardcode_shlibpath_var=unsupported
9558       whole_archive_flag_spec=''
9559       link_all_deplibs=yes
9560     if test "$GCC" = yes ; then
9561         output_verbose_link_cmd='echo'
9562         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9563       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9564       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9565       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}'
9566       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}'
9567     else
9568       case $cc_basename in
9569         xlc*)
9570          output_verbose_link_cmd='echo'
9571          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9572          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9573           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9574          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}'
9575           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}'
9576           ;;
9577        *)
9578          ld_shlibs=no
9579           ;;
9580       esac
9581     fi
9582       ;;
9583
9584     dgux*)
9585       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586       hardcode_libdir_flag_spec='-L$libdir'
9587       hardcode_shlibpath_var=no
9588       ;;
9589
9590     freebsd1*)
9591       ld_shlibs=no
9592       ;;
9593
9594     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9595     # support.  Future versions do this automatically, but an explicit c++rt0.o
9596     # does not break anything, and helps significantly (at the cost of a little
9597     # extra space).
9598     freebsd2.2*)
9599       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9600       hardcode_libdir_flag_spec='-R$libdir'
9601       hardcode_direct=yes
9602       hardcode_shlibpath_var=no
9603       ;;
9604
9605     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9606     freebsd2*)
9607       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9608       hardcode_direct=yes
9609       hardcode_minus_L=yes
9610       hardcode_shlibpath_var=no
9611       ;;
9612
9613     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9614     freebsd* | kfreebsd*-gnu | dragonfly*)
9615       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9616       hardcode_libdir_flag_spec='-R$libdir'
9617       hardcode_direct=yes
9618       hardcode_shlibpath_var=no
9619       ;;
9620
9621     hpux9*)
9622       if test "$GCC" = yes; then
9623         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'
9624       else
9625         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'
9626       fi
9627       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9628       hardcode_libdir_separator=:
9629       hardcode_direct=yes
9630
9631       # hardcode_minus_L: Not really in the search PATH,
9632       # but as the default location of the library.
9633       hardcode_minus_L=yes
9634       export_dynamic_flag_spec='${wl}-E'
9635       ;;
9636
9637     hpux10*)
9638       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9639         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9640       else
9641         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9642       fi
9643       if test "$with_gnu_ld" = no; then
9644         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9645         hardcode_libdir_separator=:
9646
9647         hardcode_direct=yes
9648         export_dynamic_flag_spec='${wl}-E'
9649
9650         # hardcode_minus_L: Not really in the search PATH,
9651         # but as the default location of the library.
9652         hardcode_minus_L=yes
9653       fi
9654       ;;
9655
9656     hpux11*)
9657       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9658         case $host_cpu in
9659         hppa*64*)
9660           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9661           ;;
9662         ia64*)
9663           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9664           ;;
9665         *)
9666           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9667           ;;
9668         esac
9669       else
9670         case $host_cpu in
9671         hppa*64*)
9672           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9673           ;;
9674         ia64*)
9675           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9676           ;;
9677         *)
9678           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9679           ;;
9680         esac
9681       fi
9682       if test "$with_gnu_ld" = no; then
9683         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9684         hardcode_libdir_separator=:
9685
9686         case $host_cpu in
9687         hppa*64*|ia64*)
9688           hardcode_libdir_flag_spec_ld='+b $libdir'
9689           hardcode_direct=no
9690           hardcode_shlibpath_var=no
9691           ;;
9692         *)
9693           hardcode_direct=yes
9694           export_dynamic_flag_spec='${wl}-E'
9695
9696           # hardcode_minus_L: Not really in the search PATH,
9697           # but as the default location of the library.
9698           hardcode_minus_L=yes
9699           ;;
9700         esac
9701       fi
9702       ;;
9703
9704     irix5* | irix6* | nonstopux*)
9705       if test "$GCC" = yes; then
9706         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'
9707       else
9708         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'
9709         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9710       fi
9711       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9712       hardcode_libdir_separator=:
9713       link_all_deplibs=yes
9714       ;;
9715
9716     netbsd*)
9717       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9718         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9719       else
9720         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9721       fi
9722       hardcode_libdir_flag_spec='-R$libdir'
9723       hardcode_direct=yes
9724       hardcode_shlibpath_var=no
9725       ;;
9726
9727     newsos6)
9728       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9729       hardcode_direct=yes
9730       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9731       hardcode_libdir_separator=:
9732       hardcode_shlibpath_var=no
9733       ;;
9734
9735     openbsd*)
9736       hardcode_direct=yes
9737       hardcode_shlibpath_var=no
9738       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9739         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9740         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9741         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9742         export_dynamic_flag_spec='${wl}-E'
9743       else
9744        case $host_os in
9745          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9746            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9747            hardcode_libdir_flag_spec='-R$libdir'
9748            ;;
9749          *)
9750            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9751            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9752            ;;
9753        esac
9754       fi
9755       ;;
9756
9757     os2*)
9758       hardcode_libdir_flag_spec='-L$libdir'
9759       hardcode_minus_L=yes
9760       allow_undefined_flag=unsupported
9761       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'
9762       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9763       ;;
9764
9765     osf3*)
9766       if test "$GCC" = yes; then
9767         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9768         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'
9769       else
9770         allow_undefined_flag=' -expect_unresolved \*'
9771         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'
9772       fi
9773       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9774       hardcode_libdir_separator=:
9775       ;;
9776
9777     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9778       if test "$GCC" = yes; then
9779         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9780         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'
9781         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9782       else
9783         allow_undefined_flag=' -expect_unresolved \*'
9784         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'
9785         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9786         $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'
9787
9788         # Both c and cxx compiler support -rpath directly
9789         hardcode_libdir_flag_spec='-rpath $libdir'
9790       fi
9791       hardcode_libdir_separator=:
9792       ;;
9793
9794     solaris*)
9795       no_undefined_flag=' -z text'
9796       if test "$GCC" = yes; then
9797         wlarc='${wl}'
9798         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9799         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9800           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9801       else
9802         wlarc=''
9803         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9804         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9805         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9806       fi
9807       hardcode_libdir_flag_spec='-R$libdir'
9808       hardcode_shlibpath_var=no
9809       case $host_os in
9810       solaris2.[0-5] | solaris2.[0-5].*) ;;
9811       *)
9812         # The compiler driver will combine linker options so we
9813         # cannot just pass the convience library names through
9814         # without $wl, iff we do not link with $LD.
9815         # Luckily, gcc supports the same syntax we need for Sun Studio.
9816         # Supported since Solaris 2.6 (maybe 2.5.1?)
9817         case $wlarc in
9818         '')
9819           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9820         *)
9821           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' ;;
9822         esac ;;
9823       esac
9824       link_all_deplibs=yes
9825       ;;
9826
9827     sunos4*)
9828       if test "x$host_vendor" = xsequent; then
9829         # Use $CC to link under sequent, because it throws in some extra .o
9830         # files that make .init and .fini sections work.
9831         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9832       else
9833         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9834       fi
9835       hardcode_libdir_flag_spec='-L$libdir'
9836       hardcode_direct=yes
9837       hardcode_minus_L=yes
9838       hardcode_shlibpath_var=no
9839       ;;
9840
9841     sysv4)
9842       case $host_vendor in
9843         sni)
9844           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845           hardcode_direct=yes # is this really true???
9846         ;;
9847         siemens)
9848           ## LD is ld it makes a PLAMLIB
9849           ## CC just makes a GrossModule.
9850           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9851           reload_cmds='$CC -r -o $output$reload_objs'
9852           hardcode_direct=no
9853         ;;
9854         motorola)
9855           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9856           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9857         ;;
9858       esac
9859       runpath_var='LD_RUN_PATH'
9860       hardcode_shlibpath_var=no
9861       ;;
9862
9863     sysv4.3*)
9864       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865       hardcode_shlibpath_var=no
9866       export_dynamic_flag_spec='-Bexport'
9867       ;;
9868
9869     sysv4*MP*)
9870       if test -d /usr/nec; then
9871         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9872         hardcode_shlibpath_var=no
9873         runpath_var=LD_RUN_PATH
9874         hardcode_runpath_var=yes
9875         ld_shlibs=yes
9876       fi
9877       ;;
9878
9879     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9880       no_undefined_flag='${wl}-z,text'
9881       archive_cmds_need_lc=no
9882       hardcode_shlibpath_var=no
9883       runpath_var='LD_RUN_PATH'
9884
9885       if test "$GCC" = yes; then
9886         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9887         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9888       else
9889         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9890         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9891       fi
9892       ;;
9893
9894     sysv5* | sco3.2v5* | sco5v6*)
9895       # Note: We can NOT use -z defs as we might desire, because we do not
9896       # link with -lc, and that would cause any symbols used from libc to
9897       # always be unresolved, which means just about no library would
9898       # ever link correctly.  If we're not using GNU ld we use -z text
9899       # though, which does catch some bad symbols but isn't as heavy-handed
9900       # as -z defs.
9901       no_undefined_flag='${wl}-z,text'
9902       allow_undefined_flag='${wl}-z,nodefs'
9903       archive_cmds_need_lc=no
9904       hardcode_shlibpath_var=no
9905       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9906       hardcode_libdir_separator=':'
9907       link_all_deplibs=yes
9908       export_dynamic_flag_spec='${wl}-Bexport'
9909       runpath_var='LD_RUN_PATH'
9910
9911       if test "$GCC" = yes; then
9912         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9913         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9914       else
9915         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9916         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9917       fi
9918       ;;
9919
9920     uts4*)
9921       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9922       hardcode_libdir_flag_spec='-L$libdir'
9923       hardcode_shlibpath_var=no
9924       ;;
9925
9926     *)
9927       ld_shlibs=no
9928       ;;
9929     esac
9930   fi
9931
9932 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9933 echo "${ECHO_T}$ld_shlibs" >&6; }
9934 test "$ld_shlibs" = no && can_build_shared=no
9935
9936 #
9937 # Do we need to explicitly link libc?
9938 #
9939 case "x$archive_cmds_need_lc" in
9940 x|xyes)
9941   # Assume -lc should be added
9942   archive_cmds_need_lc=yes
9943
9944   if test "$enable_shared" = yes && test "$GCC" = yes; then
9945     case $archive_cmds in
9946     *'~'*)
9947       # FIXME: we may have to deal with multi-command sequences.
9948       ;;
9949     '$CC '*)
9950       # Test whether the compiler implicitly links with -lc since on some
9951       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9952       # to ld, don't add -lc before -lgcc.
9953       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9954 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9955       $rm conftest*
9956       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9957
9958       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9959   (eval $ac_compile) 2>&5
9960   ac_status=$?
9961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9962   (exit $ac_status); } 2>conftest.err; then
9963         soname=conftest
9964         lib=conftest
9965         libobjs=conftest.$ac_objext
9966         deplibs=
9967         wl=$lt_prog_compiler_wl
9968         pic_flag=$lt_prog_compiler_pic
9969         compiler_flags=-v
9970         linker_flags=-v
9971         verstring=
9972         output_objdir=.
9973         libname=conftest
9974         lt_save_allow_undefined_flag=$allow_undefined_flag
9975         allow_undefined_flag=
9976         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9977   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9978   ac_status=$?
9979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980   (exit $ac_status); }
9981         then
9982           archive_cmds_need_lc=no
9983         else
9984           archive_cmds_need_lc=yes
9985         fi
9986         allow_undefined_flag=$lt_save_allow_undefined_flag
9987       else
9988         cat conftest.err 1>&5
9989       fi
9990       $rm conftest*
9991       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9992 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9993       ;;
9994     esac
9995   fi
9996   ;;
9997 esac
9998
9999 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10000 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
10001 library_names_spec=
10002 libname_spec='lib$name'
10003 soname_spec=
10004 shrext_cmds=".so"
10005 postinstall_cmds=
10006 postuninstall_cmds=
10007 finish_cmds=
10008 finish_eval=
10009 shlibpath_var=
10010 shlibpath_overrides_runpath=unknown
10011 version_type=none
10012 dynamic_linker="$host_os ld.so"
10013 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10014 if test "$GCC" = yes; then
10015   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10016   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10017     # if the path contains ";" then we assume it to be the separator
10018     # otherwise default to the standard path separator (i.e. ":") - it is
10019     # assumed that no part of a normal pathname contains ";" but that should
10020     # okay in the real world where ";" in dirpaths is itself problematic.
10021     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10022   else
10023     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10024   fi
10025 else
10026   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10027 fi
10028 need_lib_prefix=unknown
10029 hardcode_into_libs=no
10030
10031 # when you set need_version to no, make sure it does not cause -set_version
10032 # flags to be left without arguments
10033 need_version=unknown
10034
10035 case $host_os in
10036 aix3*)
10037   version_type=linux
10038   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10039   shlibpath_var=LIBPATH
10040
10041   # AIX 3 has no versioning support, so we append a major version to the name.
10042   soname_spec='${libname}${release}${shared_ext}$major'
10043   ;;
10044
10045 aix4* | aix5*)
10046   version_type=linux
10047   need_lib_prefix=no
10048   need_version=no
10049   hardcode_into_libs=yes
10050   if test "$host_cpu" = ia64; then
10051     # AIX 5 supports IA64
10052     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10053     shlibpath_var=LD_LIBRARY_PATH
10054   else
10055     # With GCC up to 2.95.x, collect2 would create an import file
10056     # for dependence libraries.  The import file would start with
10057     # the line `#! .'.  This would cause the generated library to
10058     # depend on `.', always an invalid library.  This was fixed in
10059     # development snapshots of GCC prior to 3.0.
10060     case $host_os in
10061       aix4 | aix4.[01] | aix4.[01].*)
10062       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10063            echo ' yes '
10064            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10065         :
10066       else
10067         can_build_shared=no
10068       fi
10069       ;;
10070     esac
10071     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10072     # soname into executable. Probably we can add versioning support to
10073     # collect2, so additional links can be useful in future.
10074     if test "$aix_use_runtimelinking" = yes; then
10075       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10076       # instead of lib<name>.a to let people know that these are not
10077       # typical AIX shared libraries.
10078       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079     else
10080       # We preserve .a as extension for shared libraries through AIX4.2
10081       # and later when we are not doing run time linking.
10082       library_names_spec='${libname}${release}.a $libname.a'
10083       soname_spec='${libname}${release}${shared_ext}$major'
10084     fi
10085     shlibpath_var=LIBPATH
10086   fi
10087   ;;
10088
10089 amigaos*)
10090   library_names_spec='$libname.ixlibrary $libname.a'
10091   # Create ${libname}_ixlibrary.a entries in /sys/libs.
10092   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'
10093   ;;
10094
10095 beos*)
10096   library_names_spec='${libname}${shared_ext}'
10097   dynamic_linker="$host_os ld.so"
10098   shlibpath_var=LIBRARY_PATH
10099   ;;
10100
10101 bsdi[45]*)
10102   version_type=linux
10103   need_version=no
10104   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10105   soname_spec='${libname}${release}${shared_ext}$major'
10106   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10107   shlibpath_var=LD_LIBRARY_PATH
10108   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10109   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10110   # the default ld.so.conf also contains /usr/contrib/lib and
10111   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10112   # libtool to hard-code these into programs
10113   ;;
10114
10115 cygwin* | mingw* | pw32*)
10116   version_type=windows
10117   shrext_cmds=".dll"
10118   need_version=no
10119   need_lib_prefix=no
10120
10121   case $GCC,$host_os in
10122   yes,cygwin* | yes,mingw* | yes,pw32*)
10123     library_names_spec='$libname.dll.a'
10124     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10125     postinstall_cmds='base_file=`basename \${file}`~
10126       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10127       dldir=$destdir/`dirname \$dlpath`~
10128       test -d \$dldir || mkdir -p \$dldir~
10129       $install_prog $dir/$dlname \$dldir/$dlname~
10130       chmod a+x \$dldir/$dlname'
10131     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10132       dlpath=$dir/\$dldll~
10133        $rm \$dlpath'
10134     shlibpath_overrides_runpath=yes
10135
10136     case $host_os in
10137     cygwin*)
10138       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10139       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10140       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10141       ;;
10142     mingw*)
10143       # MinGW DLLs use traditional 'lib' prefix
10144       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10145       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10146       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10147         # It is most probably a Windows format PATH printed by
10148         # mingw gcc, but we are running on Cygwin. Gcc prints its search
10149         # path with ; separators, and with drive letters. We can handle the
10150         # drive letters (cygwin fileutils understands them), so leave them,
10151         # especially as we might pass files found there to a mingw objdump,
10152         # which wouldn't understand a cygwinified path. Ahh.
10153         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10154       else
10155         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
10156       fi
10157       ;;
10158     pw32*)
10159       # pw32 DLLs use 'pw' prefix rather than 'lib'
10160       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10161       ;;
10162     esac
10163     ;;
10164
10165   *)
10166     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10167     ;;
10168   esac
10169   dynamic_linker='Win32 ld.exe'
10170   # FIXME: first we should search . and the directory the executable is in
10171   shlibpath_var=PATH
10172   ;;
10173
10174 darwin* | rhapsody*)
10175   dynamic_linker="$host_os dyld"
10176   version_type=darwin
10177   need_lib_prefix=no
10178   need_version=no
10179   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10180   soname_spec='${libname}${release}${major}$shared_ext'
10181   shlibpath_overrides_runpath=yes
10182   shlibpath_var=DYLD_LIBRARY_PATH
10183   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10184   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10185   if test "$GCC" = yes; then
10186     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"`
10187   else
10188     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10189   fi
10190   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10191   ;;
10192
10193 dgux*)
10194   version_type=linux
10195   need_lib_prefix=no
10196   need_version=no
10197   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10198   soname_spec='${libname}${release}${shared_ext}$major'
10199   shlibpath_var=LD_LIBRARY_PATH
10200   ;;
10201
10202 freebsd1*)
10203   dynamic_linker=no
10204   ;;
10205
10206 kfreebsd*-gnu)
10207   version_type=linux
10208   need_lib_prefix=no
10209   need_version=no
10210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10211   soname_spec='${libname}${release}${shared_ext}$major'
10212   shlibpath_var=LD_LIBRARY_PATH
10213   shlibpath_overrides_runpath=no
10214   hardcode_into_libs=yes
10215   dynamic_linker='GNU ld.so'
10216   ;;
10217
10218 freebsd* | dragonfly*)
10219   # DragonFly does not have aout.  When/if they implement a new
10220   # versioning mechanism, adjust this.
10221   if test -x /usr/bin/objformat; then
10222     objformat=`/usr/bin/objformat`
10223   else
10224     case $host_os in
10225     freebsd[123]*) objformat=aout ;;
10226     *) objformat=elf ;;
10227     esac
10228   fi
10229   version_type=freebsd-$objformat
10230   case $version_type in
10231     freebsd-elf*)
10232       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10233       need_version=no
10234       need_lib_prefix=no
10235       ;;
10236     freebsd-*)
10237       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10238       need_version=yes
10239       ;;
10240   esac
10241   shlibpath_var=LD_LIBRARY_PATH
10242   case $host_os in
10243   freebsd2*)
10244     shlibpath_overrides_runpath=yes
10245     ;;
10246   freebsd3.[01]* | freebsdelf3.[01]*)
10247     shlibpath_overrides_runpath=yes
10248     hardcode_into_libs=yes
10249     ;;
10250   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10251   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10252     shlibpath_overrides_runpath=no
10253     hardcode_into_libs=yes
10254     ;;
10255   freebsd*) # from 4.6 on
10256     shlibpath_overrides_runpath=yes
10257     hardcode_into_libs=yes
10258     ;;
10259   esac
10260   ;;
10261
10262 gnu*)
10263   version_type=linux
10264   need_lib_prefix=no
10265   need_version=no
10266   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10267   soname_spec='${libname}${release}${shared_ext}$major'
10268   shlibpath_var=LD_LIBRARY_PATH
10269   hardcode_into_libs=yes
10270   ;;
10271
10272 hpux9* | hpux10* | hpux11*)
10273   # Give a soname corresponding to the major version so that dld.sl refuses to
10274   # link against other versions.
10275   version_type=sunos
10276   need_lib_prefix=no
10277   need_version=no
10278   case $host_cpu in
10279   ia64*)
10280     shrext_cmds='.so'
10281     hardcode_into_libs=yes
10282     dynamic_linker="$host_os dld.so"
10283     shlibpath_var=LD_LIBRARY_PATH
10284     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10286     soname_spec='${libname}${release}${shared_ext}$major'
10287     if test "X$HPUX_IA64_MODE" = X32; then
10288       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10289     else
10290       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10291     fi
10292     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10293     ;;
10294    hppa*64*)
10295      shrext_cmds='.sl'
10296      hardcode_into_libs=yes
10297      dynamic_linker="$host_os dld.sl"
10298      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10299      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10303      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10304      ;;
10305    *)
10306     shrext_cmds='.sl'
10307     dynamic_linker="$host_os dld.sl"
10308     shlibpath_var=SHLIB_PATH
10309     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10310     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10311     soname_spec='${libname}${release}${shared_ext}$major'
10312     ;;
10313   esac
10314   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10315   postinstall_cmds='chmod 555 $lib'
10316   ;;
10317
10318 interix3*)
10319   version_type=linux
10320   need_lib_prefix=no
10321   need_version=no
10322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10323   soname_spec='${libname}${release}${shared_ext}$major'
10324   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10325   shlibpath_var=LD_LIBRARY_PATH
10326   shlibpath_overrides_runpath=no
10327   hardcode_into_libs=yes
10328   ;;
10329
10330 irix5* | irix6* | nonstopux*)
10331   case $host_os in
10332     nonstopux*) version_type=nonstopux ;;
10333     *)
10334         if test "$lt_cv_prog_gnu_ld" = yes; then
10335                 version_type=linux
10336         else
10337                 version_type=irix
10338         fi ;;
10339   esac
10340   need_lib_prefix=no
10341   need_version=no
10342   soname_spec='${libname}${release}${shared_ext}$major'
10343   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10344   case $host_os in
10345   irix5* | nonstopux*)
10346     libsuff= shlibsuff=
10347     ;;
10348   *)
10349     case $LD in # libtool.m4 will add one of these switches to LD
10350     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10351       libsuff= shlibsuff= libmagic=32-bit;;
10352     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10353       libsuff=32 shlibsuff=N32 libmagic=N32;;
10354     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10355       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10356     *) libsuff= shlibsuff= libmagic=never-match;;
10357     esac
10358     ;;
10359   esac
10360   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10361   shlibpath_overrides_runpath=no
10362   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10363   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10364   hardcode_into_libs=yes
10365   ;;
10366
10367 # No shared lib support for Linux oldld, aout, or coff.
10368 linux*oldld* | linux*aout* | linux*coff*)
10369   dynamic_linker=no
10370   ;;
10371
10372 # This must be Linux ELF.
10373 linux*)
10374   version_type=linux
10375   need_lib_prefix=no
10376   need_version=no
10377   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10378   soname_spec='${libname}${release}${shared_ext}$major'
10379   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10380   shlibpath_var=LD_LIBRARY_PATH
10381   shlibpath_overrides_runpath=no
10382   # This implies no fast_install, which is unacceptable.
10383   # Some rework will be needed to allow for fast_install
10384   # before this can be enabled.
10385   hardcode_into_libs=yes
10386
10387   # Append ld.so.conf contents to the search path
10388   if test -f /etc/ld.so.conf; then
10389     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' ' '`
10390     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10391   fi
10392
10393   # We used to test for /lib/ld.so.1 and disable shared libraries on
10394   # powerpc, because MkLinux only supported shared libraries with the
10395   # GNU dynamic linker.  Since this was broken with cross compilers,
10396   # most powerpc-linux boxes support dynamic linking these days and
10397   # people can always --disable-shared, the test was removed, and we
10398   # assume the GNU/Linux dynamic linker is in use.
10399   dynamic_linker='GNU/Linux ld.so'
10400   ;;
10401
10402 knetbsd*-gnu)
10403   version_type=linux
10404   need_lib_prefix=no
10405   need_version=no
10406   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10407   soname_spec='${libname}${release}${shared_ext}$major'
10408   shlibpath_var=LD_LIBRARY_PATH
10409   shlibpath_overrides_runpath=no
10410   hardcode_into_libs=yes
10411   dynamic_linker='GNU ld.so'
10412   ;;
10413
10414 netbsd*)
10415   version_type=sunos
10416   need_lib_prefix=no
10417   need_version=no
10418   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10419     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10420     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10421     dynamic_linker='NetBSD (a.out) ld.so'
10422   else
10423     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10424     soname_spec='${libname}${release}${shared_ext}$major'
10425     dynamic_linker='NetBSD ld.elf_so'
10426   fi
10427   shlibpath_var=LD_LIBRARY_PATH
10428   shlibpath_overrides_runpath=yes
10429   hardcode_into_libs=yes
10430   ;;
10431
10432 newsos6)
10433   version_type=linux
10434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10435   shlibpath_var=LD_LIBRARY_PATH
10436   shlibpath_overrides_runpath=yes
10437   ;;
10438
10439 nto-qnx*)
10440   version_type=linux
10441   need_lib_prefix=no
10442   need_version=no
10443   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444   soname_spec='${libname}${release}${shared_ext}$major'
10445   shlibpath_var=LD_LIBRARY_PATH
10446   shlibpath_overrides_runpath=yes
10447   ;;
10448
10449 openbsd*)
10450   version_type=sunos
10451   sys_lib_dlsearch_path_spec="/usr/lib"
10452   need_lib_prefix=no
10453   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10454   case $host_os in
10455     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10456     *)                         need_version=no  ;;
10457   esac
10458   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10459   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10460   shlibpath_var=LD_LIBRARY_PATH
10461   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10462     case $host_os in
10463       openbsd2.[89] | openbsd2.[89].*)
10464         shlibpath_overrides_runpath=no
10465         ;;
10466       *)
10467         shlibpath_overrides_runpath=yes
10468         ;;
10469       esac
10470   else
10471     shlibpath_overrides_runpath=yes
10472   fi
10473   ;;
10474
10475 os2*)
10476   libname_spec='$name'
10477   shrext_cmds=".dll"
10478   need_lib_prefix=no
10479   library_names_spec='$libname${shared_ext} $libname.a'
10480   dynamic_linker='OS/2 ld.exe'
10481   shlibpath_var=LIBPATH
10482   ;;
10483
10484 osf3* | osf4* | osf5*)
10485   version_type=osf
10486   need_lib_prefix=no
10487   need_version=no
10488   soname_spec='${libname}${release}${shared_ext}$major'
10489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10490   shlibpath_var=LD_LIBRARY_PATH
10491   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10492   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10493   ;;
10494
10495 solaris*)
10496   version_type=linux
10497   need_lib_prefix=no
10498   need_version=no
10499   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10500   soname_spec='${libname}${release}${shared_ext}$major'
10501   shlibpath_var=LD_LIBRARY_PATH
10502   shlibpath_overrides_runpath=yes
10503   hardcode_into_libs=yes
10504   # ldd complains unless libraries are executable
10505   postinstall_cmds='chmod +x $lib'
10506   ;;
10507
10508 sunos4*)
10509   version_type=sunos
10510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10511   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10512   shlibpath_var=LD_LIBRARY_PATH
10513   shlibpath_overrides_runpath=yes
10514   if test "$with_gnu_ld" = yes; then
10515     need_lib_prefix=no
10516   fi
10517   need_version=yes
10518   ;;
10519
10520 sysv4 | sysv4.3*)
10521   version_type=linux
10522   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523   soname_spec='${libname}${release}${shared_ext}$major'
10524   shlibpath_var=LD_LIBRARY_PATH
10525   case $host_vendor in
10526     sni)
10527       shlibpath_overrides_runpath=no
10528       need_lib_prefix=no
10529       export_dynamic_flag_spec='${wl}-Blargedynsym'
10530       runpath_var=LD_RUN_PATH
10531       ;;
10532     siemens)
10533       need_lib_prefix=no
10534       ;;
10535     motorola)
10536       need_lib_prefix=no
10537       need_version=no
10538       shlibpath_overrides_runpath=no
10539       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10540       ;;
10541   esac
10542   ;;
10543
10544 sysv4*MP*)
10545   if test -d /usr/nec ;then
10546     version_type=linux
10547     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10548     soname_spec='$libname${shared_ext}.$major'
10549     shlibpath_var=LD_LIBRARY_PATH
10550   fi
10551   ;;
10552
10553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10554   version_type=freebsd-elf
10555   need_lib_prefix=no
10556   need_version=no
10557   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10558   soname_spec='${libname}${release}${shared_ext}$major'
10559   shlibpath_var=LD_LIBRARY_PATH
10560   hardcode_into_libs=yes
10561   if test "$with_gnu_ld" = yes; then
10562     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10563     shlibpath_overrides_runpath=no
10564   else
10565     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10566     shlibpath_overrides_runpath=yes
10567     case $host_os in
10568       sco3.2v5*)
10569         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10570         ;;
10571     esac
10572   fi
10573   sys_lib_dlsearch_path_spec='/usr/lib'
10574   ;;
10575
10576 uts4*)
10577   version_type=linux
10578   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579   soname_spec='${libname}${release}${shared_ext}$major'
10580   shlibpath_var=LD_LIBRARY_PATH
10581   ;;
10582
10583 *)
10584   dynamic_linker=no
10585   ;;
10586 esac
10587 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10588 echo "${ECHO_T}$dynamic_linker" >&6; }
10589 test "$dynamic_linker" = no && can_build_shared=no
10590
10591 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10592 if test "$GCC" = yes; then
10593   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10594 fi
10595
10596 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10597 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10598 hardcode_action=
10599 if test -n "$hardcode_libdir_flag_spec" || \
10600    test -n "$runpath_var" || \
10601    test "X$hardcode_automatic" = "Xyes" ; then
10602
10603   # We can hardcode non-existant directories.
10604   if test "$hardcode_direct" != no &&
10605      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10606      # have to relink, otherwise we might link with an installed library
10607      # when we should be linking with a yet-to-be-installed one
10608      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10609      test "$hardcode_minus_L" != no; then
10610     # Linking always hardcodes the temporary library directory.
10611     hardcode_action=relink
10612   else
10613     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10614     hardcode_action=immediate
10615   fi
10616 else
10617   # We cannot hardcode anything, or else we can only hardcode existing
10618   # directories.
10619   hardcode_action=unsupported
10620 fi
10621 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10622 echo "${ECHO_T}$hardcode_action" >&6; }
10623
10624 if test "$hardcode_action" = relink; then
10625   # Fast installation is not supported
10626   enable_fast_install=no
10627 elif test "$shlibpath_overrides_runpath" = yes ||
10628      test "$enable_shared" = no; then
10629   # Fast installation is not necessary
10630   enable_fast_install=needless
10631 fi
10632
10633 striplib=
10634 old_striplib=
10635 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10636 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10637 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10638   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10639   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10640   { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10642 else
10643 # FIXME - insert some real tests, host_os isn't really good enough
10644   case $host_os in
10645    darwin*)
10646        if test -n "$STRIP" ; then
10647          striplib="$STRIP -x"
10648          { echo "$as_me:$LINENO: result: yes" >&5
10649 echo "${ECHO_T}yes" >&6; }
10650        else
10651   { echo "$as_me:$LINENO: result: no" >&5
10652 echo "${ECHO_T}no" >&6; }
10653 fi
10654        ;;
10655    *)
10656   { echo "$as_me:$LINENO: result: no" >&5
10657 echo "${ECHO_T}no" >&6; }
10658     ;;
10659   esac
10660 fi
10661
10662 if test "x$enable_dlopen" != xyes; then
10663   enable_dlopen=unknown
10664   enable_dlopen_self=unknown
10665   enable_dlopen_self_static=unknown
10666 else
10667   lt_cv_dlopen=no
10668   lt_cv_dlopen_libs=
10669
10670   case $host_os in
10671   beos*)
10672     lt_cv_dlopen="load_add_on"
10673     lt_cv_dlopen_libs=
10674     lt_cv_dlopen_self=yes
10675     ;;
10676
10677   mingw* | pw32*)
10678     lt_cv_dlopen="LoadLibrary"
10679     lt_cv_dlopen_libs=
10680    ;;
10681
10682   cygwin*)
10683     lt_cv_dlopen="dlopen"
10684     lt_cv_dlopen_libs=
10685    ;;
10686
10687   darwin*)
10688   # if libdl is installed we need to link against it
10689     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10690 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10691 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10692   echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694   ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-ldl  $LIBS"
10696 cat >conftest.$ac_ext <<_ACEOF
10697 /* confdefs.h.  */
10698 _ACEOF
10699 cat confdefs.h >>conftest.$ac_ext
10700 cat >>conftest.$ac_ext <<_ACEOF
10701 /* end confdefs.h.  */
10702
10703 /* Override any GCC internal prototype to avoid an error.
10704    Use char because int might match the return type of a GCC
10705    builtin and then its argument prototype would still apply.  */
10706 #ifdef __cplusplus
10707 extern "C"
10708 #endif
10709 char dlopen ();
10710 int
10711 main ()
10712 {
10713 return dlopen ();
10714   ;
10715   return 0;
10716 }
10717 _ACEOF
10718 rm -f conftest.$ac_objext conftest$ac_exeext
10719 if { (ac_try="$ac_link"
10720 case "(($ac_try" in
10721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10722   *) ac_try_echo=$ac_try;;
10723 esac
10724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10725   (eval "$ac_link") 2>conftest.er1
10726   ac_status=$?
10727   grep -v '^ *+' conftest.er1 >conftest.err
10728   rm -f conftest.er1
10729   cat conftest.err >&5
10730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731   (exit $ac_status); } && {
10732          test -z "$ac_c_werror_flag" ||
10733          test ! -s conftest.err
10734        } && test -s conftest$ac_exeext &&
10735        $as_test_x conftest$ac_exeext; then
10736   ac_cv_lib_dl_dlopen=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_cv_lib_dl_dlopen=no
10742 fi
10743
10744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10745       conftest$ac_exeext conftest.$ac_ext
10746 LIBS=$ac_check_lib_save_LIBS
10747 fi
10748 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10749 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10750 if test $ac_cv_lib_dl_dlopen = yes; then
10751   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10752 else
10753
10754     lt_cv_dlopen="dyld"
10755     lt_cv_dlopen_libs=
10756     lt_cv_dlopen_self=yes
10757
10758 fi
10759
10760    ;;
10761
10762   *)
10763     { echo "$as_me:$LINENO: checking for shl_load" >&5
10764 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10765 if test "${ac_cv_func_shl_load+set}" = set; then
10766   echo $ECHO_N "(cached) $ECHO_C" >&6
10767 else
10768   cat >conftest.$ac_ext <<_ACEOF
10769 /* confdefs.h.  */
10770 _ACEOF
10771 cat confdefs.h >>conftest.$ac_ext
10772 cat >>conftest.$ac_ext <<_ACEOF
10773 /* end confdefs.h.  */
10774 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10775    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10776 #define shl_load innocuous_shl_load
10777
10778 /* System header to define __stub macros and hopefully few prototypes,
10779     which can conflict with char shl_load (); below.
10780     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10781     <limits.h> exists even on freestanding compilers.  */
10782
10783 #ifdef __STDC__
10784 # include <limits.h>
10785 #else
10786 # include <assert.h>
10787 #endif
10788
10789 #undef shl_load
10790
10791 /* Override any GCC internal prototype to avoid an error.
10792    Use char because int might match the return type of a GCC
10793    builtin and then its argument prototype would still apply.  */
10794 #ifdef __cplusplus
10795 extern "C"
10796 #endif
10797 char shl_load ();
10798 /* The GNU C library defines this for functions which it implements
10799     to always fail with ENOSYS.  Some functions are actually named
10800     something starting with __ and the normal name is an alias.  */
10801 #if defined __stub_shl_load || defined __stub___shl_load
10802 choke me
10803 #endif
10804
10805 int
10806 main ()
10807 {
10808 return shl_load ();
10809   ;
10810   return 0;
10811 }
10812 _ACEOF
10813 rm -f conftest.$ac_objext conftest$ac_exeext
10814 if { (ac_try="$ac_link"
10815 case "(($ac_try" in
10816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10817   *) ac_try_echo=$ac_try;;
10818 esac
10819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10820   (eval "$ac_link") 2>conftest.er1
10821   ac_status=$?
10822   grep -v '^ *+' conftest.er1 >conftest.err
10823   rm -f conftest.er1
10824   cat conftest.err >&5
10825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10826   (exit $ac_status); } && {
10827          test -z "$ac_c_werror_flag" ||
10828          test ! -s conftest.err
10829        } && test -s conftest$ac_exeext &&
10830        $as_test_x conftest$ac_exeext; then
10831   ac_cv_func_shl_load=yes
10832 else
10833   echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10835
10836         ac_cv_func_shl_load=no
10837 fi
10838
10839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10840       conftest$ac_exeext conftest.$ac_ext
10841 fi
10842 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10843 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10844 if test $ac_cv_func_shl_load = yes; then
10845   lt_cv_dlopen="shl_load"
10846 else
10847   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10848 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10849 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10850   echo $ECHO_N "(cached) $ECHO_C" >&6
10851 else
10852   ac_check_lib_save_LIBS=$LIBS
10853 LIBS="-ldld  $LIBS"
10854 cat >conftest.$ac_ext <<_ACEOF
10855 /* confdefs.h.  */
10856 _ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h.  */
10860
10861 /* Override any GCC internal prototype to avoid an error.
10862    Use char because int might match the return type of a GCC
10863    builtin and then its argument prototype would still apply.  */
10864 #ifdef __cplusplus
10865 extern "C"
10866 #endif
10867 char shl_load ();
10868 int
10869 main ()
10870 {
10871 return shl_load ();
10872   ;
10873   return 0;
10874 }
10875 _ACEOF
10876 rm -f conftest.$ac_objext conftest$ac_exeext
10877 if { (ac_try="$ac_link"
10878 case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_link") 2>conftest.er1
10884   ac_status=$?
10885   grep -v '^ *+' conftest.er1 >conftest.err
10886   rm -f conftest.er1
10887   cat conftest.err >&5
10888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889   (exit $ac_status); } && {
10890          test -z "$ac_c_werror_flag" ||
10891          test ! -s conftest.err
10892        } && test -s conftest$ac_exeext &&
10893        $as_test_x conftest$ac_exeext; then
10894   ac_cv_lib_dld_shl_load=yes
10895 else
10896   echo "$as_me: failed program was:" >&5
10897 sed 's/^/| /' conftest.$ac_ext >&5
10898
10899         ac_cv_lib_dld_shl_load=no
10900 fi
10901
10902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10903       conftest$ac_exeext conftest.$ac_ext
10904 LIBS=$ac_check_lib_save_LIBS
10905 fi
10906 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10907 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10908 if test $ac_cv_lib_dld_shl_load = yes; then
10909   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10910 else
10911   { echo "$as_me:$LINENO: checking for dlopen" >&5
10912 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10913 if test "${ac_cv_func_dlopen+set}" = set; then
10914   echo $ECHO_N "(cached) $ECHO_C" >&6
10915 else
10916   cat >conftest.$ac_ext <<_ACEOF
10917 /* confdefs.h.  */
10918 _ACEOF
10919 cat confdefs.h >>conftest.$ac_ext
10920 cat >>conftest.$ac_ext <<_ACEOF
10921 /* end confdefs.h.  */
10922 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10924 #define dlopen innocuous_dlopen
10925
10926 /* System header to define __stub macros and hopefully few prototypes,
10927     which can conflict with char dlopen (); below.
10928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10929     <limits.h> exists even on freestanding compilers.  */
10930
10931 #ifdef __STDC__
10932 # include <limits.h>
10933 #else
10934 # include <assert.h>
10935 #endif
10936
10937 #undef dlopen
10938
10939 /* Override any GCC internal prototype to avoid an error.
10940    Use char because int might match the return type of a GCC
10941    builtin and then its argument prototype would still apply.  */
10942 #ifdef __cplusplus
10943 extern "C"
10944 #endif
10945 char dlopen ();
10946 /* The GNU C library defines this for functions which it implements
10947     to always fail with ENOSYS.  Some functions are actually named
10948     something starting with __ and the normal name is an alias.  */
10949 #if defined __stub_dlopen || defined __stub___dlopen
10950 choke me
10951 #endif
10952
10953 int
10954 main ()
10955 {
10956 return dlopen ();
10957   ;
10958   return 0;
10959 }
10960 _ACEOF
10961 rm -f conftest.$ac_objext conftest$ac_exeext
10962 if { (ac_try="$ac_link"
10963 case "(($ac_try" in
10964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10965   *) ac_try_echo=$ac_try;;
10966 esac
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968   (eval "$ac_link") 2>conftest.er1
10969   ac_status=$?
10970   grep -v '^ *+' conftest.er1 >conftest.err
10971   rm -f conftest.er1
10972   cat conftest.err >&5
10973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10974   (exit $ac_status); } && {
10975          test -z "$ac_c_werror_flag" ||
10976          test ! -s conftest.err
10977        } && test -s conftest$ac_exeext &&
10978        $as_test_x conftest$ac_exeext; then
10979   ac_cv_func_dlopen=yes
10980 else
10981   echo "$as_me: failed program was:" >&5
10982 sed 's/^/| /' conftest.$ac_ext >&5
10983
10984         ac_cv_func_dlopen=no
10985 fi
10986
10987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10988       conftest$ac_exeext conftest.$ac_ext
10989 fi
10990 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10991 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10992 if test $ac_cv_func_dlopen = yes; then
10993   lt_cv_dlopen="dlopen"
10994 else
10995   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10996 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10997 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10998   echo $ECHO_N "(cached) $ECHO_C" >&6
10999 else
11000   ac_check_lib_save_LIBS=$LIBS
11001 LIBS="-ldl  $LIBS"
11002 cat >conftest.$ac_ext <<_ACEOF
11003 /* confdefs.h.  */
11004 _ACEOF
11005 cat confdefs.h >>conftest.$ac_ext
11006 cat >>conftest.$ac_ext <<_ACEOF
11007 /* end confdefs.h.  */
11008
11009 /* Override any GCC internal prototype to avoid an error.
11010    Use char because int might match the return type of a GCC
11011    builtin and then its argument prototype would still apply.  */
11012 #ifdef __cplusplus
11013 extern "C"
11014 #endif
11015 char dlopen ();
11016 int
11017 main ()
11018 {
11019 return dlopen ();
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11031   (eval "$ac_link") 2>conftest.er1
11032   ac_status=$?
11033   grep -v '^ *+' conftest.er1 >conftest.err
11034   rm -f conftest.er1
11035   cat conftest.err >&5
11036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11037   (exit $ac_status); } && {
11038          test -z "$ac_c_werror_flag" ||
11039          test ! -s conftest.err
11040        } && test -s conftest$ac_exeext &&
11041        $as_test_x conftest$ac_exeext; then
11042   ac_cv_lib_dl_dlopen=yes
11043 else
11044   echo "$as_me: failed program was:" >&5
11045 sed 's/^/| /' conftest.$ac_ext >&5
11046
11047         ac_cv_lib_dl_dlopen=no
11048 fi
11049
11050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11051       conftest$ac_exeext conftest.$ac_ext
11052 LIBS=$ac_check_lib_save_LIBS
11053 fi
11054 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11055 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11056 if test $ac_cv_lib_dl_dlopen = yes; then
11057   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11058 else
11059   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11060 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11061 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11062   echo $ECHO_N "(cached) $ECHO_C" >&6
11063 else
11064   ac_check_lib_save_LIBS=$LIBS
11065 LIBS="-lsvld  $LIBS"
11066 cat >conftest.$ac_ext <<_ACEOF
11067 /* confdefs.h.  */
11068 _ACEOF
11069 cat confdefs.h >>conftest.$ac_ext
11070 cat >>conftest.$ac_ext <<_ACEOF
11071 /* end confdefs.h.  */
11072
11073 /* Override any GCC internal prototype to avoid an error.
11074    Use char because int might match the return type of a GCC
11075    builtin and then its argument prototype would still apply.  */
11076 #ifdef __cplusplus
11077 extern "C"
11078 #endif
11079 char dlopen ();
11080 int
11081 main ()
11082 {
11083 return dlopen ();
11084   ;
11085   return 0;
11086 }
11087 _ACEOF
11088 rm -f conftest.$ac_objext conftest$ac_exeext
11089 if { (ac_try="$ac_link"
11090 case "(($ac_try" in
11091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11092   *) ac_try_echo=$ac_try;;
11093 esac
11094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11095   (eval "$ac_link") 2>conftest.er1
11096   ac_status=$?
11097   grep -v '^ *+' conftest.er1 >conftest.err
11098   rm -f conftest.er1
11099   cat conftest.err >&5
11100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11101   (exit $ac_status); } && {
11102          test -z "$ac_c_werror_flag" ||
11103          test ! -s conftest.err
11104        } && test -s conftest$ac_exeext &&
11105        $as_test_x conftest$ac_exeext; then
11106   ac_cv_lib_svld_dlopen=yes
11107 else
11108   echo "$as_me: failed program was:" >&5
11109 sed 's/^/| /' conftest.$ac_ext >&5
11110
11111         ac_cv_lib_svld_dlopen=no
11112 fi
11113
11114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11115       conftest$ac_exeext conftest.$ac_ext
11116 LIBS=$ac_check_lib_save_LIBS
11117 fi
11118 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11119 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11120 if test $ac_cv_lib_svld_dlopen = yes; then
11121   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11122 else
11123   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11124 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11125 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11126   echo $ECHO_N "(cached) $ECHO_C" >&6
11127 else
11128   ac_check_lib_save_LIBS=$LIBS
11129 LIBS="-ldld  $LIBS"
11130 cat >conftest.$ac_ext <<_ACEOF
11131 /* confdefs.h.  */
11132 _ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h.  */
11136
11137 /* Override any GCC internal prototype to avoid an error.
11138    Use char because int might match the return type of a GCC
11139    builtin and then its argument prototype would still apply.  */
11140 #ifdef __cplusplus
11141 extern "C"
11142 #endif
11143 char dld_link ();
11144 int
11145 main ()
11146 {
11147 return dld_link ();
11148   ;
11149   return 0;
11150 }
11151 _ACEOF
11152 rm -f conftest.$ac_objext conftest$ac_exeext
11153 if { (ac_try="$ac_link"
11154 case "(($ac_try" in
11155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11156   *) ac_try_echo=$ac_try;;
11157 esac
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159   (eval "$ac_link") 2>conftest.er1
11160   ac_status=$?
11161   grep -v '^ *+' conftest.er1 >conftest.err
11162   rm -f conftest.er1
11163   cat conftest.err >&5
11164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11165   (exit $ac_status); } && {
11166          test -z "$ac_c_werror_flag" ||
11167          test ! -s conftest.err
11168        } && test -s conftest$ac_exeext &&
11169        $as_test_x conftest$ac_exeext; then
11170   ac_cv_lib_dld_dld_link=yes
11171 else
11172   echo "$as_me: failed program was:" >&5
11173 sed 's/^/| /' conftest.$ac_ext >&5
11174
11175         ac_cv_lib_dld_dld_link=no
11176 fi
11177
11178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11179       conftest$ac_exeext conftest.$ac_ext
11180 LIBS=$ac_check_lib_save_LIBS
11181 fi
11182 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11183 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11184 if test $ac_cv_lib_dld_dld_link = yes; then
11185   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11186 fi
11187
11188
11189 fi
11190
11191
11192 fi
11193
11194
11195 fi
11196
11197
11198 fi
11199
11200
11201 fi
11202
11203     ;;
11204   esac
11205
11206   if test "x$lt_cv_dlopen" != xno; then
11207     enable_dlopen=yes
11208   else
11209     enable_dlopen=no
11210   fi
11211
11212   case $lt_cv_dlopen in
11213   dlopen)
11214     save_CPPFLAGS="$CPPFLAGS"
11215     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11216
11217     save_LDFLAGS="$LDFLAGS"
11218     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11219
11220     save_LIBS="$LIBS"
11221     LIBS="$lt_cv_dlopen_libs $LIBS"
11222
11223     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11224 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11225 if test "${lt_cv_dlopen_self+set}" = set; then
11226   echo $ECHO_N "(cached) $ECHO_C" >&6
11227 else
11228           if test "$cross_compiling" = yes; then :
11229   lt_cv_dlopen_self=cross
11230 else
11231   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11232   lt_status=$lt_dlunknown
11233   cat > conftest.$ac_ext <<EOF
11234 #line 11232 "configure"
11235 #include "confdefs.h"
11236
11237 #if HAVE_DLFCN_H
11238 #include <dlfcn.h>
11239 #endif
11240
11241 #include <stdio.h>
11242
11243 #ifdef RTLD_GLOBAL
11244 #  define LT_DLGLOBAL           RTLD_GLOBAL
11245 #else
11246 #  ifdef DL_GLOBAL
11247 #    define LT_DLGLOBAL         DL_GLOBAL
11248 #  else
11249 #    define LT_DLGLOBAL         0
11250 #  endif
11251 #endif
11252
11253 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11254    find out it does not work in some platform. */
11255 #ifndef LT_DLLAZY_OR_NOW
11256 #  ifdef RTLD_LAZY
11257 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11258 #  else
11259 #    ifdef DL_LAZY
11260 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11261 #    else
11262 #      ifdef RTLD_NOW
11263 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11264 #      else
11265 #        ifdef DL_NOW
11266 #          define LT_DLLAZY_OR_NOW      DL_NOW
11267 #        else
11268 #          define LT_DLLAZY_OR_NOW      0
11269 #        endif
11270 #      endif
11271 #    endif
11272 #  endif
11273 #endif
11274
11275 #ifdef __cplusplus
11276 extern "C" void exit (int);
11277 #endif
11278
11279 void fnord() { int i=42;}
11280 int main ()
11281 {
11282   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11283   int status = $lt_dlunknown;
11284
11285   if (self)
11286     {
11287       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11288       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11289       /* dlclose (self); */
11290     }
11291   else
11292     puts (dlerror ());
11293
11294     exit (status);
11295 }
11296 EOF
11297   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11298   (eval $ac_link) 2>&5
11299   ac_status=$?
11300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11301   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11302     (./conftest; exit; ) >&5 2>/dev/null
11303     lt_status=$?
11304     case x$lt_status in
11305       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11306       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11307       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11308     esac
11309   else :
11310     # compilation failed
11311     lt_cv_dlopen_self=no
11312   fi
11313 fi
11314 rm -fr conftest*
11315
11316
11317 fi
11318 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11319 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11320
11321     if test "x$lt_cv_dlopen_self" = xyes; then
11322       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11323       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11324 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11325 if test "${lt_cv_dlopen_self_static+set}" = set; then
11326   echo $ECHO_N "(cached) $ECHO_C" >&6
11327 else
11328           if test "$cross_compiling" = yes; then :
11329   lt_cv_dlopen_self_static=cross
11330 else
11331   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11332   lt_status=$lt_dlunknown
11333   cat > conftest.$ac_ext <<EOF
11334 #line 11332 "configure"
11335 #include "confdefs.h"
11336
11337 #if HAVE_DLFCN_H
11338 #include <dlfcn.h>
11339 #endif
11340
11341 #include <stdio.h>
11342
11343 #ifdef RTLD_GLOBAL
11344 #  define LT_DLGLOBAL           RTLD_GLOBAL
11345 #else
11346 #  ifdef DL_GLOBAL
11347 #    define LT_DLGLOBAL         DL_GLOBAL
11348 #  else
11349 #    define LT_DLGLOBAL         0
11350 #  endif
11351 #endif
11352
11353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11354    find out it does not work in some platform. */
11355 #ifndef LT_DLLAZY_OR_NOW
11356 #  ifdef RTLD_LAZY
11357 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11358 #  else
11359 #    ifdef DL_LAZY
11360 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11361 #    else
11362 #      ifdef RTLD_NOW
11363 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11364 #      else
11365 #        ifdef DL_NOW
11366 #          define LT_DLLAZY_OR_NOW      DL_NOW
11367 #        else
11368 #          define LT_DLLAZY_OR_NOW      0
11369 #        endif
11370 #      endif
11371 #    endif
11372 #  endif
11373 #endif
11374
11375 #ifdef __cplusplus
11376 extern "C" void exit (int);
11377 #endif
11378
11379 void fnord() { int i=42;}
11380 int main ()
11381 {
11382   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11383   int status = $lt_dlunknown;
11384
11385   if (self)
11386     {
11387       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11388       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11389       /* dlclose (self); */
11390     }
11391   else
11392     puts (dlerror ());
11393
11394     exit (status);
11395 }
11396 EOF
11397   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11398   (eval $ac_link) 2>&5
11399   ac_status=$?
11400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11402     (./conftest; exit; ) >&5 2>/dev/null
11403     lt_status=$?
11404     case x$lt_status in
11405       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11406       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11407       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11408     esac
11409   else :
11410     # compilation failed
11411     lt_cv_dlopen_self_static=no
11412   fi
11413 fi
11414 rm -fr conftest*
11415
11416
11417 fi
11418 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11419 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11420     fi
11421
11422     CPPFLAGS="$save_CPPFLAGS"
11423     LDFLAGS="$save_LDFLAGS"
11424     LIBS="$save_LIBS"
11425     ;;
11426   esac
11427
11428   case $lt_cv_dlopen_self in
11429   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11430   *) enable_dlopen_self=unknown ;;
11431   esac
11432
11433   case $lt_cv_dlopen_self_static in
11434   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11435   *) enable_dlopen_self_static=unknown ;;
11436   esac
11437 fi
11438
11439
11440 # Report which library types will actually be built
11441 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11442 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11443 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11444 echo "${ECHO_T}$can_build_shared" >&6; }
11445
11446 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11447 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11448 test "$can_build_shared" = "no" && enable_shared=no
11449
11450 # On AIX, shared libraries and static libraries use the same namespace, and
11451 # are all built from PIC.
11452 case $host_os in
11453 aix3*)
11454   test "$enable_shared" = yes && enable_static=no
11455   if test -n "$RANLIB"; then
11456     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11457     postinstall_cmds='$RANLIB $lib'
11458   fi
11459   ;;
11460
11461 aix4* | aix5*)
11462   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11463     test "$enable_shared" = yes && enable_static=no
11464   fi
11465     ;;
11466 esac
11467 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11468 echo "${ECHO_T}$enable_shared" >&6; }
11469
11470 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11471 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11472 # Make sure either enable_shared or enable_static is yes.
11473 test "$enable_shared" = yes || enable_static=yes
11474 { echo "$as_me:$LINENO: result: $enable_static" >&5
11475 echo "${ECHO_T}$enable_static" >&6; }
11476
11477 # The else clause should only fire when bootstrapping the
11478 # libtool distribution, otherwise you forgot to ship ltmain.sh
11479 # with your package, and you will get complaints that there are
11480 # no rules to generate ltmain.sh.
11481 if test -f "$ltmain"; then
11482   # See if we are running on zsh, and set the options which allow our commands through
11483   # without removal of \ escapes.
11484   if test -n "${ZSH_VERSION+set}" ; then
11485     setopt NO_GLOB_SUBST
11486   fi
11487   # Now quote all the things that may contain metacharacters while being
11488   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11489   # variables and quote the copies for generation of the libtool script.
11490   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11491     SED SHELL STRIP \
11492     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11493     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11494     deplibs_check_method reload_flag reload_cmds need_locks \
11495     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11496     lt_cv_sys_global_symbol_to_c_name_address \
11497     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11498     old_postinstall_cmds old_postuninstall_cmds \
11499     compiler \
11500     CC \
11501     LD \
11502     lt_prog_compiler_wl \
11503     lt_prog_compiler_pic \
11504     lt_prog_compiler_static \
11505     lt_prog_compiler_no_builtin_flag \
11506     export_dynamic_flag_spec \
11507     thread_safe_flag_spec \
11508     whole_archive_flag_spec \
11509     enable_shared_with_static_runtimes \
11510     old_archive_cmds \
11511     old_archive_from_new_cmds \
11512     predep_objects \
11513     postdep_objects \
11514     predeps \
11515     postdeps \
11516     compiler_lib_search_path \
11517     archive_cmds \
11518     archive_expsym_cmds \
11519     postinstall_cmds \
11520     postuninstall_cmds \
11521     old_archive_from_expsyms_cmds \
11522     allow_undefined_flag \
11523     no_undefined_flag \
11524     export_symbols_cmds \
11525     hardcode_libdir_flag_spec \
11526     hardcode_libdir_flag_spec_ld \
11527     hardcode_libdir_separator \
11528     hardcode_automatic \
11529     module_cmds \
11530     module_expsym_cmds \
11531     lt_cv_prog_compiler_c_o \
11532     exclude_expsyms \
11533     include_expsyms; do
11534
11535     case $var in
11536     old_archive_cmds | \
11537     old_archive_from_new_cmds | \
11538     archive_cmds | \
11539     archive_expsym_cmds | \
11540     module_cmds | \
11541     module_expsym_cmds | \
11542     old_archive_from_expsyms_cmds | \
11543     export_symbols_cmds | \
11544     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11545     postinstall_cmds | postuninstall_cmds | \
11546     old_postinstall_cmds | old_postuninstall_cmds | \
11547     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11548       # Double-quote double-evaled strings.
11549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11550       ;;
11551     *)
11552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11553       ;;
11554     esac
11555   done
11556
11557   case $lt_echo in
11558   *'\$0 --fallback-echo"')
11559     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11560     ;;
11561   esac
11562
11563 cfgfile="${ofile}T"
11564   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11565   $rm -f "$cfgfile"
11566   { echo "$as_me:$LINENO: creating $ofile" >&5
11567 echo "$as_me: creating $ofile" >&6;}
11568
11569   cat <<__EOF__ >> "$cfgfile"
11570 #! $SHELL
11571
11572 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11573 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11574 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11575 #
11576 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11577 # Free Software Foundation, Inc.
11578 #
11579 # This file is part of GNU Libtool:
11580 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11581 #
11582 # This program is free software; you can redistribute it and/or modify
11583 # it under the terms of the GNU General Public License as published by
11584 # the Free Software Foundation; either version 2 of the License, or
11585 # (at your option) any later version.
11586 #
11587 # This program is distributed in the hope that it will be useful, but
11588 # WITHOUT ANY WARRANTY; without even the implied warranty of
11589 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11590 # General Public License for more details.
11591 #
11592 # You should have received a copy of the GNU General Public License
11593 # along with this program; if not, write to the Free Software
11594 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11595 #
11596 # As a special exception to the GNU General Public License, if you
11597 # distribute this file as part of a program that contains a
11598 # configuration script generated by Autoconf, you may include it under
11599 # the same distribution terms that you use for the rest of that program.
11600
11601 # A sed program that does not truncate output.
11602 SED=$lt_SED
11603
11604 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11605 Xsed="$SED -e 1s/^X//"
11606
11607 # The HP-UX ksh and POSIX shell print the target directory to stdout
11608 # if CDPATH is set.
11609 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11610
11611 # The names of the tagged configurations supported by this script.
11612 available_tags=
11613
11614 # ### BEGIN LIBTOOL CONFIG
11615
11616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11617
11618 # Shell to use when invoking shell scripts.
11619 SHELL=$lt_SHELL
11620
11621 # Whether or not to build shared libraries.
11622 build_libtool_libs=$enable_shared
11623
11624 # Whether or not to build static libraries.
11625 build_old_libs=$enable_static
11626
11627 # Whether or not to add -lc for building shared libraries.
11628 build_libtool_need_lc=$archive_cmds_need_lc
11629
11630 # Whether or not to disallow shared libs when runtime libs are static
11631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11632
11633 # Whether or not to optimize for fast installation.
11634 fast_install=$enable_fast_install
11635
11636 # The host system.
11637 host_alias=$host_alias
11638 host=$host
11639 host_os=$host_os
11640
11641 # The build system.
11642 build_alias=$build_alias
11643 build=$build
11644 build_os=$build_os
11645
11646 # An echo program that does not interpret backslashes.
11647 echo=$lt_echo
11648
11649 # The archiver.
11650 AR=$lt_AR
11651 AR_FLAGS=$lt_AR_FLAGS
11652
11653 # A C compiler.
11654 LTCC=$lt_LTCC
11655
11656 # LTCC compiler flags.
11657 LTCFLAGS=$lt_LTCFLAGS
11658
11659 # A language-specific compiler.
11660 CC=$lt_compiler
11661
11662 # Is the compiler the GNU C compiler?
11663 with_gcc=$GCC
11664
11665 # An ERE matcher.
11666 EGREP=$lt_EGREP
11667
11668 # The linker used to build libraries.
11669 LD=$lt_LD
11670
11671 # Whether we need hard or soft links.
11672 LN_S=$lt_LN_S
11673
11674 # A BSD-compatible nm program.
11675 NM=$lt_NM
11676
11677 # A symbol stripping program
11678 STRIP=$lt_STRIP
11679
11680 # Used to examine libraries when file_magic_cmd begins "file"
11681 MAGIC_CMD=$MAGIC_CMD
11682
11683 # Used on cygwin: DLL creation program.
11684 DLLTOOL="$DLLTOOL"
11685
11686 # Used on cygwin: object dumper.
11687 OBJDUMP="$OBJDUMP"
11688
11689 # Used on cygwin: assembler.
11690 AS="$AS"
11691
11692 # The name of the directory that contains temporary libtool files.
11693 objdir=$objdir
11694
11695 # How to create reloadable object files.
11696 reload_flag=$lt_reload_flag
11697 reload_cmds=$lt_reload_cmds
11698
11699 # How to pass a linker flag through the compiler.
11700 wl=$lt_lt_prog_compiler_wl
11701
11702 # Object file suffix (normally "o").
11703 objext="$ac_objext"
11704
11705 # Old archive suffix (normally "a").
11706 libext="$libext"
11707
11708 # Shared library suffix (normally ".so").
11709 shrext_cmds='$shrext_cmds'
11710
11711 # Executable file suffix (normally "").
11712 exeext="$exeext"
11713
11714 # Additional compiler flags for building library objects.
11715 pic_flag=$lt_lt_prog_compiler_pic
11716 pic_mode=$pic_mode
11717
11718 # What is the maximum length of a command?
11719 max_cmd_len=$lt_cv_sys_max_cmd_len
11720
11721 # Does compiler simultaneously support -c and -o options?
11722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11723
11724 # Must we lock files when doing compilation?
11725 need_locks=$lt_need_locks
11726
11727 # Do we need the lib prefix for modules?
11728 need_lib_prefix=$need_lib_prefix
11729
11730 # Do we need a version for libraries?
11731 need_version=$need_version
11732
11733 # Whether dlopen is supported.
11734 dlopen_support=$enable_dlopen
11735
11736 # Whether dlopen of programs is supported.
11737 dlopen_self=$enable_dlopen_self
11738
11739 # Whether dlopen of statically linked programs is supported.
11740 dlopen_self_static=$enable_dlopen_self_static
11741
11742 # Compiler flag to prevent dynamic linking.
11743 link_static_flag=$lt_lt_prog_compiler_static
11744
11745 # Compiler flag to turn off builtin functions.
11746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11747
11748 # Compiler flag to allow reflexive dlopens.
11749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11750
11751 # Compiler flag to generate shared objects directly from archives.
11752 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11753
11754 # Compiler flag to generate thread-safe objects.
11755 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11756
11757 # Library versioning type.
11758 version_type=$version_type
11759
11760 # Format of library name prefix.
11761 libname_spec=$lt_libname_spec
11762
11763 # List of archive names.  First name is the real one, the rest are links.
11764 # The last name is the one that the linker finds with -lNAME.
11765 library_names_spec=$lt_library_names_spec
11766
11767 # The coded name of the library, if different from the real name.
11768 soname_spec=$lt_soname_spec
11769
11770 # Commands used to build and install an old-style archive.
11771 RANLIB=$lt_RANLIB
11772 old_archive_cmds=$lt_old_archive_cmds
11773 old_postinstall_cmds=$lt_old_postinstall_cmds
11774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11775
11776 # Create an old-style archive from a shared archive.
11777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11778
11779 # Create a temporary old-style archive to link instead of a shared archive.
11780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11781
11782 # Commands used to build and install a shared archive.
11783 archive_cmds=$lt_archive_cmds
11784 archive_expsym_cmds=$lt_archive_expsym_cmds
11785 postinstall_cmds=$lt_postinstall_cmds
11786 postuninstall_cmds=$lt_postuninstall_cmds
11787
11788 # Commands used to build a loadable module (assumed same as above if empty)
11789 module_cmds=$lt_module_cmds
11790 module_expsym_cmds=$lt_module_expsym_cmds
11791
11792 # Commands to strip libraries.
11793 old_striplib=$lt_old_striplib
11794 striplib=$lt_striplib
11795
11796 # Dependencies to place before the objects being linked to create a
11797 # shared library.
11798 predep_objects=$lt_predep_objects
11799
11800 # Dependencies to place after the objects being linked to create a
11801 # shared library.
11802 postdep_objects=$lt_postdep_objects
11803
11804 # Dependencies to place before the objects being linked to create a
11805 # shared library.
11806 predeps=$lt_predeps
11807
11808 # Dependencies to place after the objects being linked to create a
11809 # shared library.
11810 postdeps=$lt_postdeps
11811
11812 # The library search path used internally by the compiler when linking
11813 # a shared library.
11814 compiler_lib_search_path=$lt_compiler_lib_search_path
11815
11816 # Method to check whether dependent libraries are shared objects.
11817 deplibs_check_method=$lt_deplibs_check_method
11818
11819 # Command to use when deplibs_check_method == file_magic.
11820 file_magic_cmd=$lt_file_magic_cmd
11821
11822 # Flag that allows shared libraries with undefined symbols to be built.
11823 allow_undefined_flag=$lt_allow_undefined_flag
11824
11825 # Flag that forces no undefined symbols.
11826 no_undefined_flag=$lt_no_undefined_flag
11827
11828 # Commands used to finish a libtool library installation in a directory.
11829 finish_cmds=$lt_finish_cmds
11830
11831 # Same as above, but a single script fragment to be evaled but not shown.
11832 finish_eval=$lt_finish_eval
11833
11834 # Take the output of nm and produce a listing of raw symbols and C names.
11835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11836
11837 # Transform the output of nm in a proper C declaration
11838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11839
11840 # Transform the output of nm in a C name address pair
11841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11842
11843 # This is the shared library runtime path variable.
11844 runpath_var=$runpath_var
11845
11846 # This is the shared library path variable.
11847 shlibpath_var=$shlibpath_var
11848
11849 # Is shlibpath searched before the hard-coded library search path?
11850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11851
11852 # How to hardcode a shared library path into an executable.
11853 hardcode_action=$hardcode_action
11854
11855 # Whether we should hardcode library paths into libraries.
11856 hardcode_into_libs=$hardcode_into_libs
11857
11858 # Flag to hardcode \$libdir into a binary during linking.
11859 # This must work even if \$libdir does not exist.
11860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11861
11862 # If ld is used when linking, flag to hardcode \$libdir into
11863 # a binary during linking. This must work even if \$libdir does
11864 # not exist.
11865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11866
11867 # Whether we need a single -rpath flag with a separated argument.
11868 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11869
11870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11871 # resulting binary.
11872 hardcode_direct=$hardcode_direct
11873
11874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11875 # resulting binary.
11876 hardcode_minus_L=$hardcode_minus_L
11877
11878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11879 # the resulting binary.
11880 hardcode_shlibpath_var=$hardcode_shlibpath_var
11881
11882 # Set to yes if building a shared library automatically hardcodes DIR into the library
11883 # and all subsequent libraries and executables linked against it.
11884 hardcode_automatic=$hardcode_automatic
11885
11886 # Variables whose values should be saved in libtool wrapper scripts and
11887 # restored at relink time.
11888 variables_saved_for_relink="$variables_saved_for_relink"
11889
11890 # Whether libtool must link a program against all its dependency libraries.
11891 link_all_deplibs=$link_all_deplibs
11892
11893 # Compile-time system search path for libraries
11894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11895
11896 # Run-time system search path for libraries
11897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11898
11899 # Fix the shell variable \$srcfile for the compiler.
11900 fix_srcfile_path="$fix_srcfile_path"
11901
11902 # Set to yes if exported symbols are required.
11903 always_export_symbols=$always_export_symbols
11904
11905 # The commands to list exported symbols.
11906 export_symbols_cmds=$lt_export_symbols_cmds
11907
11908 # The commands to extract the exported symbol list from a shared archive.
11909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11910
11911 # Symbols that should not be listed in the preloaded symbols.
11912 exclude_expsyms=$lt_exclude_expsyms
11913
11914 # Symbols that must always be exported.
11915 include_expsyms=$lt_include_expsyms
11916
11917 # ### END LIBTOOL CONFIG
11918
11919 __EOF__
11920
11921
11922   case $host_os in
11923   aix3*)
11924     cat <<\EOF >> "$cfgfile"
11925
11926 # AIX sometimes has problems with the GCC collect2 program.  For some
11927 # reason, if we set the COLLECT_NAMES environment variable, the problems
11928 # vanish in a puff of smoke.
11929 if test "X${COLLECT_NAMES+set}" != Xset; then
11930   COLLECT_NAMES=
11931   export COLLECT_NAMES
11932 fi
11933 EOF
11934     ;;
11935   esac
11936
11937   # We use sed instead of cat because bash on DJGPP gets confused if
11938   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11939   # text mode, it properly converts lines to CR/LF.  This bash problem
11940   # is reportedly fixed, but why not run on old versions too?
11941   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11942
11943   mv -f "$cfgfile" "$ofile" || \
11944     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11945   chmod +x "$ofile"
11946
11947 else
11948   # If there is no Makefile yet, we rely on a make rule to execute
11949   # `config.status --recheck' to rerun these tests and create the
11950   # libtool script then.
11951   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11952   if test -f "$ltmain_in"; then
11953     test -f Makefile && make "$ltmain"
11954   fi
11955 fi
11956
11957
11958 ac_ext=c
11959 ac_cpp='$CPP $CPPFLAGS'
11960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11963
11964 CC="$lt_save_CC"
11965
11966
11967 # Check whether --with-tags was given.
11968 if test "${with_tags+set}" = set; then
11969   withval=$with_tags; tagnames="$withval"
11970 fi
11971
11972
11973 if test -f "$ltmain" && test -n "$tagnames"; then
11974   if test ! -f "${ofile}"; then
11975     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11976 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11977   fi
11978
11979   if test -z "$LTCC"; then
11980     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11981     if test -z "$LTCC"; then
11982       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11983 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11984     else
11985       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11986 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11987     fi
11988   fi
11989   if test -z "$LTCFLAGS"; then
11990     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11991   fi
11992
11993   # Extract list of available tagged configurations in $ofile.
11994   # Note that this assumes the entire list is on one line.
11995   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11996
11997   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11998   for tagname in $tagnames; do
11999     IFS="$lt_save_ifs"
12000     # Check whether tagname contains only valid characters
12001     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
12002     "") ;;
12003     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
12004 echo "$as_me: error: invalid tag name: $tagname" >&2;}
12005    { (exit 1); exit 1; }; }
12006         ;;
12007     esac
12008
12009     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
12010     then
12011       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
12012 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
12013    { (exit 1); exit 1; }; }
12014     fi
12015
12016     # Update the list of available tags.
12017     if test -n "$tagname"; then
12018       echo appending configuration tag \"$tagname\" to $ofile
12019
12020       case $tagname in
12021       CXX)
12022         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12023             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12024             (test "X$CXX" != "Xg++"))) ; then
12025           :
12026         else
12027           tagname=""
12028         fi
12029         ;;
12030
12031       F77)
12032         if test -n "$F77" && test "X$F77" != "Xno"; then
12033           :
12034         else
12035           tagname=""
12036         fi
12037         ;;
12038
12039       GCJ)
12040         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
12041           :
12042         else
12043           tagname=""
12044         fi
12045         ;;
12046
12047       RC)
12048
12049
12050 # Source file extension for RC test sources.
12051 ac_ext=rc
12052
12053 # Object file extension for compiled RC test sources.
12054 objext=o
12055 objext_RC=$objext
12056
12057 # Code to be used in simple compile tests
12058 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
12059
12060 # Code to be used in simple link tests
12061 lt_simple_link_test_code="$lt_simple_compile_test_code"
12062
12063 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12064
12065 # If no C compiler was specified, use CC.
12066 LTCC=${LTCC-"$CC"}
12067
12068 # If no C compiler flags were specified, use CFLAGS.
12069 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12070
12071 # Allow CC to be a program name with arguments.
12072 compiler=$CC
12073
12074
12075 # save warnings/boilerplate of simple test code
12076 ac_outfile=conftest.$ac_objext
12077 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12078 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12079 _lt_compiler_boilerplate=`cat conftest.err`
12080 $rm conftest*
12081
12082 ac_outfile=conftest.$ac_objext
12083 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12084 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12085 _lt_linker_boilerplate=`cat conftest.err`
12086 $rm conftest*
12087
12088
12089 # Allow CC to be a program name with arguments.
12090 lt_save_CC="$CC"
12091 CC=${RC-"windres"}
12092 compiler=$CC
12093 compiler_RC=$CC
12094 for cc_temp in $compiler""; do
12095   case $cc_temp in
12096     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12097     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12098     \-*) ;;
12099     *) break;;
12100   esac
12101 done
12102 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12103
12104 lt_cv_prog_compiler_c_o_RC=yes
12105
12106 # The else clause should only fire when bootstrapping the
12107 # libtool distribution, otherwise you forgot to ship ltmain.sh
12108 # with your package, and you will get complaints that there are
12109 # no rules to generate ltmain.sh.
12110 if test -f "$ltmain"; then
12111   # See if we are running on zsh, and set the options which allow our commands through
12112   # without removal of \ escapes.
12113   if test -n "${ZSH_VERSION+set}" ; then
12114     setopt NO_GLOB_SUBST
12115   fi
12116   # Now quote all the things that may contain metacharacters while being
12117   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12118   # variables and quote the copies for generation of the libtool script.
12119   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12120     SED SHELL STRIP \
12121     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12122     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12123     deplibs_check_method reload_flag reload_cmds need_locks \
12124     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12125     lt_cv_sys_global_symbol_to_c_name_address \
12126     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12127     old_postinstall_cmds old_postuninstall_cmds \
12128     compiler_RC \
12129     CC_RC \
12130     LD_RC \
12131     lt_prog_compiler_wl_RC \
12132     lt_prog_compiler_pic_RC \
12133     lt_prog_compiler_static_RC \
12134     lt_prog_compiler_no_builtin_flag_RC \
12135     export_dynamic_flag_spec_RC \
12136     thread_safe_flag_spec_RC \
12137     whole_archive_flag_spec_RC \
12138     enable_shared_with_static_runtimes_RC \
12139     old_archive_cmds_RC \
12140     old_archive_from_new_cmds_RC \
12141     predep_objects_RC \
12142     postdep_objects_RC \
12143     predeps_RC \
12144     postdeps_RC \
12145     compiler_lib_search_path_RC \
12146     archive_cmds_RC \
12147     archive_expsym_cmds_RC \
12148     postinstall_cmds_RC \
12149     postuninstall_cmds_RC \
12150     old_archive_from_expsyms_cmds_RC \
12151     allow_undefined_flag_RC \
12152     no_undefined_flag_RC \
12153     export_symbols_cmds_RC \
12154     hardcode_libdir_flag_spec_RC \
12155     hardcode_libdir_flag_spec_ld_RC \
12156     hardcode_libdir_separator_RC \
12157     hardcode_automatic_RC \
12158     module_cmds_RC \
12159     module_expsym_cmds_RC \
12160     lt_cv_prog_compiler_c_o_RC \
12161     exclude_expsyms_RC \
12162     include_expsyms_RC; do
12163
12164     case $var in
12165     old_archive_cmds_RC | \
12166     old_archive_from_new_cmds_RC | \
12167     archive_cmds_RC | \
12168     archive_expsym_cmds_RC | \
12169     module_cmds_RC | \
12170     module_expsym_cmds_RC | \
12171     old_archive_from_expsyms_cmds_RC | \
12172     export_symbols_cmds_RC | \
12173     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12174     postinstall_cmds | postuninstall_cmds | \
12175     old_postinstall_cmds | old_postuninstall_cmds | \
12176     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12177       # Double-quote double-evaled strings.
12178       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12179       ;;
12180     *)
12181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12182       ;;
12183     esac
12184   done
12185
12186   case $lt_echo in
12187   *'\$0 --fallback-echo"')
12188     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12189     ;;
12190   esac
12191
12192 cfgfile="$ofile"
12193
12194   cat <<__EOF__ >> "$cfgfile"
12195 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12196
12197 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12198
12199 # Shell to use when invoking shell scripts.
12200 SHELL=$lt_SHELL
12201
12202 # Whether or not to build shared libraries.
12203 build_libtool_libs=$enable_shared
12204
12205 # Whether or not to build static libraries.
12206 build_old_libs=$enable_static
12207
12208 # Whether or not to add -lc for building shared libraries.
12209 build_libtool_need_lc=$archive_cmds_need_lc_RC
12210
12211 # Whether or not to disallow shared libs when runtime libs are static
12212 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
12213
12214 # Whether or not to optimize for fast installation.
12215 fast_install=$enable_fast_install
12216
12217 # The host system.
12218 host_alias=$host_alias
12219 host=$host
12220 host_os=$host_os
12221
12222 # The build system.
12223 build_alias=$build_alias
12224 build=$build
12225 build_os=$build_os
12226
12227 # An echo program that does not interpret backslashes.
12228 echo=$lt_echo
12229
12230 # The archiver.
12231 AR=$lt_AR
12232 AR_FLAGS=$lt_AR_FLAGS
12233
12234 # A C compiler.
12235 LTCC=$lt_LTCC
12236
12237 # LTCC compiler flags.
12238 LTCFLAGS=$lt_LTCFLAGS
12239
12240 # A language-specific compiler.
12241 CC=$lt_compiler_RC
12242
12243 # Is the compiler the GNU C compiler?
12244 with_gcc=$GCC_RC
12245
12246 # An ERE matcher.
12247 EGREP=$lt_EGREP
12248
12249 # The linker used to build libraries.
12250 LD=$lt_LD_RC
12251
12252 # Whether we need hard or soft links.
12253 LN_S=$lt_LN_S
12254
12255 # A BSD-compatible nm program.
12256 NM=$lt_NM
12257
12258 # A symbol stripping program
12259 STRIP=$lt_STRIP
12260
12261 # Used to examine libraries when file_magic_cmd begins "file"
12262 MAGIC_CMD=$MAGIC_CMD
12263
12264 # Used on cygwin: DLL creation program.
12265 DLLTOOL="$DLLTOOL"
12266
12267 # Used on cygwin: object dumper.
12268 OBJDUMP="$OBJDUMP"
12269
12270 # Used on cygwin: assembler.
12271 AS="$AS"
12272
12273 # The name of the directory that contains temporary libtool files.
12274 objdir=$objdir
12275
12276 # How to create reloadable object files.
12277 reload_flag=$lt_reload_flag
12278 reload_cmds=$lt_reload_cmds
12279
12280 # How to pass a linker flag through the compiler.
12281 wl=$lt_lt_prog_compiler_wl_RC
12282
12283 # Object file suffix (normally "o").
12284 objext="$ac_objext"
12285
12286 # Old archive suffix (normally "a").
12287 libext="$libext"
12288
12289 # Shared library suffix (normally ".so").
12290 shrext_cmds='$shrext_cmds'
12291
12292 # Executable file suffix (normally "").
12293 exeext="$exeext"
12294
12295 # Additional compiler flags for building library objects.
12296 pic_flag=$lt_lt_prog_compiler_pic_RC
12297 pic_mode=$pic_mode
12298
12299 # What is the maximum length of a command?
12300 max_cmd_len=$lt_cv_sys_max_cmd_len
12301
12302 # Does compiler simultaneously support -c and -o options?
12303 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
12304
12305 # Must we lock files when doing compilation?
12306 need_locks=$lt_need_locks
12307
12308 # Do we need the lib prefix for modules?
12309 need_lib_prefix=$need_lib_prefix
12310
12311 # Do we need a version for libraries?
12312 need_version=$need_version
12313
12314 # Whether dlopen is supported.
12315 dlopen_support=$enable_dlopen
12316
12317 # Whether dlopen of programs is supported.
12318 dlopen_self=$enable_dlopen_self
12319
12320 # Whether dlopen of statically linked programs is supported.
12321 dlopen_self_static=$enable_dlopen_self_static
12322
12323 # Compiler flag to prevent dynamic linking.
12324 link_static_flag=$lt_lt_prog_compiler_static_RC
12325
12326 # Compiler flag to turn off builtin functions.
12327 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
12328
12329 # Compiler flag to allow reflexive dlopens.
12330 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
12331
12332 # Compiler flag to generate shared objects directly from archives.
12333 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
12334
12335 # Compiler flag to generate thread-safe objects.
12336 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
12337
12338 # Library versioning type.
12339 version_type=$version_type
12340
12341 # Format of library name prefix.
12342 libname_spec=$lt_libname_spec
12343
12344 # List of archive names.  First name is the real one, the rest are links.
12345 # The last name is the one that the linker finds with -lNAME.
12346 library_names_spec=$lt_library_names_spec
12347
12348 # The coded name of the library, if different from the real name.
12349 soname_spec=$lt_soname_spec
12350
12351 # Commands used to build and install an old-style archive.
12352 RANLIB=$lt_RANLIB
12353 old_archive_cmds=$lt_old_archive_cmds_RC
12354 old_postinstall_cmds=$lt_old_postinstall_cmds
12355 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12356
12357 # Create an old-style archive from a shared archive.
12358 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
12359
12360 # Create a temporary old-style archive to link instead of a shared archive.
12361 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
12362
12363 # Commands used to build and install a shared archive.
12364 archive_cmds=$lt_archive_cmds_RC
12365 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
12366 postinstall_cmds=$lt_postinstall_cmds
12367 postuninstall_cmds=$lt_postuninstall_cmds
12368
12369 # Commands used to build a loadable module (assumed same as above if empty)
12370 module_cmds=$lt_module_cmds_RC
12371 module_expsym_cmds=$lt_module_expsym_cmds_RC
12372
12373 # Commands to strip libraries.
12374 old_striplib=$lt_old_striplib
12375 striplib=$lt_striplib
12376
12377 # Dependencies to place before the objects being linked to create a
12378 # shared library.
12379 predep_objects=$lt_predep_objects_RC
12380
12381 # Dependencies to place after the objects being linked to create a
12382 # shared library.
12383 postdep_objects=$lt_postdep_objects_RC
12384
12385 # Dependencies to place before the objects being linked to create a
12386 # shared library.
12387 predeps=$lt_predeps_RC
12388
12389 # Dependencies to place after the objects being linked to create a
12390 # shared library.
12391 postdeps=$lt_postdeps_RC
12392
12393 # The library search path used internally by the compiler when linking
12394 # a shared library.
12395 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
12396
12397 # Method to check whether dependent libraries are shared objects.
12398 deplibs_check_method=$lt_deplibs_check_method
12399
12400 # Command to use when deplibs_check_method == file_magic.
12401 file_magic_cmd=$lt_file_magic_cmd
12402
12403 # Flag that allows shared libraries with undefined symbols to be built.
12404 allow_undefined_flag=$lt_allow_undefined_flag_RC
12405
12406 # Flag that forces no undefined symbols.
12407 no_undefined_flag=$lt_no_undefined_flag_RC
12408
12409 # Commands used to finish a libtool library installation in a directory.
12410 finish_cmds=$lt_finish_cmds
12411
12412 # Same as above, but a single script fragment to be evaled but not shown.
12413 finish_eval=$lt_finish_eval
12414
12415 # Take the output of nm and produce a listing of raw symbols and C names.
12416 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12417
12418 # Transform the output of nm in a proper C declaration
12419 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12420
12421 # Transform the output of nm in a C name address pair
12422 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12423
12424 # This is the shared library runtime path variable.
12425 runpath_var=$runpath_var
12426
12427 # This is the shared library path variable.
12428 shlibpath_var=$shlibpath_var
12429
12430 # Is shlibpath searched before the hard-coded library search path?
12431 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12432
12433 # How to hardcode a shared library path into an executable.
12434 hardcode_action=$hardcode_action_RC
12435
12436 # Whether we should hardcode library paths into libraries.
12437 hardcode_into_libs=$hardcode_into_libs
12438
12439 # Flag to hardcode \$libdir into a binary during linking.
12440 # This must work even if \$libdir does not exist.
12441 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
12442
12443 # If ld is used when linking, flag to hardcode \$libdir into
12444 # a binary during linking. This must work even if \$libdir does
12445 # not exist.
12446 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
12447
12448 # Whether we need a single -rpath flag with a separated argument.
12449 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
12450
12451 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12452 # resulting binary.
12453 hardcode_direct=$hardcode_direct_RC
12454
12455 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12456 # resulting binary.
12457 hardcode_minus_L=$hardcode_minus_L_RC
12458
12459 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12460 # the resulting binary.
12461 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
12462
12463 # Set to yes if building a shared library automatically hardcodes DIR into the library
12464 # and all subsequent libraries and executables linked against it.
12465 hardcode_automatic=$hardcode_automatic_RC
12466
12467 # Variables whose values should be saved in libtool wrapper scripts and
12468 # restored at relink time.
12469 variables_saved_for_relink="$variables_saved_for_relink"
12470
12471 # Whether libtool must link a program against all its dependency libraries.
12472 link_all_deplibs=$link_all_deplibs_RC
12473
12474 # Compile-time system search path for libraries
12475 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12476
12477 # Run-time system search path for libraries
12478 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12479
12480 # Fix the shell variable \$srcfile for the compiler.
12481 fix_srcfile_path="$fix_srcfile_path_RC"
12482
12483 # Set to yes if exported symbols are required.
12484 always_export_symbols=$always_export_symbols_RC
12485
12486 # The commands to list exported symbols.
12487 export_symbols_cmds=$lt_export_symbols_cmds_RC
12488
12489 # The commands to extract the exported symbol list from a shared archive.
12490 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12491
12492 # Symbols that should not be listed in the preloaded symbols.
12493 exclude_expsyms=$lt_exclude_expsyms_RC
12494
12495 # Symbols that must always be exported.
12496 include_expsyms=$lt_include_expsyms_RC
12497
12498 # ### END LIBTOOL TAG CONFIG: $tagname
12499
12500 __EOF__
12501
12502
12503 else
12504   # If there is no Makefile yet, we rely on a make rule to execute
12505   # `config.status --recheck' to rerun these tests and create the
12506   # libtool script then.
12507   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12508   if test -f "$ltmain_in"; then
12509     test -f Makefile && make "$ltmain"
12510   fi
12511 fi
12512
12513
12514 ac_ext=c
12515 ac_cpp='$CPP $CPPFLAGS'
12516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12519
12520 CC="$lt_save_CC"
12521
12522         ;;
12523
12524       *)
12525         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
12526 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
12527    { (exit 1); exit 1; }; }
12528         ;;
12529       esac
12530
12531       # Append the new tag name to the list of available tags.
12532       if test -n "$tagname" ; then
12533       available_tags="$available_tags $tagname"
12534     fi
12535     fi
12536   done
12537   IFS="$lt_save_ifs"
12538
12539   # Now substitute the updated list of available tags.
12540   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
12541     mv "${ofile}T" "$ofile"
12542     chmod +x "$ofile"
12543   else
12544     rm -f "${ofile}T"
12545     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
12546 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
12547    { (exit 1); exit 1; }; }
12548   fi
12549 fi
12550
12551
12552
12553 # This can be used to rebuild libtool when needed
12554 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
12555
12556 # Always use our own libtool.
12557 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12558
12559 # Prevent multiple expansion
12560
12561
12562
12563
12564
12565
12566
12567
12568
12569
12570 ol_link_perl=no
12571 if test $ol_enable_perl != no ; then
12572         # Extract the first word of "perl", so it can be a program name with args.
12573 set dummy perl; ac_word=$2
12574 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12575 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12576 if test "${ac_cv_path_PERLBIN+set}" = set; then
12577   echo $ECHO_N "(cached) $ECHO_C" >&6
12578 else
12579   case $PERLBIN in
12580   [\\/]* | ?:[\\/]*)
12581   ac_cv_path_PERLBIN="$PERLBIN" # Let the user override the test with a path.
12582   ;;
12583   *)
12584   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12586 do
12587   IFS=$as_save_IFS
12588   test -z "$as_dir" && as_dir=.
12589   for ac_exec_ext in '' $ac_executable_extensions; do
12590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12591     ac_cv_path_PERLBIN="$as_dir/$ac_word$ac_exec_ext"
12592     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12593     break 2
12594   fi
12595 done
12596 done
12597 IFS=$as_save_IFS
12598
12599   test -z "$ac_cv_path_PERLBIN" && ac_cv_path_PERLBIN="/usr/bin/perl"
12600   ;;
12601 esac
12602 fi
12603 PERLBIN=$ac_cv_path_PERLBIN
12604 if test -n "$PERLBIN"; then
12605   { echo "$as_me:$LINENO: result: $PERLBIN" >&5
12606 echo "${ECHO_T}$PERLBIN" >&6; }
12607 else
12608   { echo "$as_me:$LINENO: result: no" >&5
12609 echo "${ECHO_T}no" >&6; }
12610 fi
12611
12612
12613
12614         if test "no$PERLBIN" = "no" ; then
12615                 if test $ol_enable_perl = yes ; then
12616                         { { echo "$as_me:$LINENO: error: could not locate perl" >&5
12617 echo "$as_me: error: could not locate perl" >&2;}
12618    { (exit 1); exit 1; }; }
12619                 fi
12620
12621         else
12622                 PERL_CPPFLAGS="`$PERLBIN -MExtUtils::Embed -e ccopts`"
12623                 PERL_LDFLAGS="`$PERLBIN -MExtUtils::Embed -e ldopts|sed -e 's/ -lc / /' -e 's/ -lc$//'`"
12624
12625                 if test x"$ol_enable_perl" = "xyes" ; then
12626                         SLAPD_PERL_LDFLAGS="$PERL_LDFLAGS"
12627                 else
12628                         MOD_PERL_LDFLAGS="$PERL_LDFLAGS"
12629                 fi
12630                                 ol_link_perl=yes
12631         fi
12632 fi
12633
12634 ac_ext=c
12635 ac_cpp='$CPP $CPPFLAGS'
12636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12639 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
12640 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
12641 # On Suns, sometimes $CPP names a directory.
12642 if test -n "$CPP" && test -d "$CPP"; then
12643   CPP=
12644 fi
12645 if test -z "$CPP"; then
12646   if test "${ac_cv_prog_CPP+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649       # Double quotes because CPP needs to be expanded
12650     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
12651     do
12652       ac_preproc_ok=false
12653 for ac_c_preproc_warn_flag in '' yes
12654 do
12655   # Use a header file that comes with gcc, so configuring glibc
12656   # with a fresh cross-compiler works.
12657   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12658   # <limits.h> exists even on freestanding compilers.
12659   # On the NeXT, cc -E runs the code through the compiler's parser,
12660   # not just through cpp. "Syntax error" is here to catch this case.
12661   cat >conftest.$ac_ext <<_ACEOF
12662 /* confdefs.h.  */
12663 _ACEOF
12664 cat confdefs.h >>conftest.$ac_ext
12665 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h.  */
12667 #ifdef __STDC__
12668 # include <limits.h>
12669 #else
12670 # include <assert.h>
12671 #endif
12672                      Syntax error
12673 _ACEOF
12674 if { (ac_try="$ac_cpp conftest.$ac_ext"
12675 case "(($ac_try" in
12676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12677   *) ac_try_echo=$ac_try;;
12678 esac
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12681   ac_status=$?
12682   grep -v '^ *+' conftest.er1 >conftest.err
12683   rm -f conftest.er1
12684   cat conftest.err >&5
12685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686   (exit $ac_status); } >/dev/null && {
12687          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12688          test ! -s conftest.err
12689        }; then
12690   :
12691 else
12692   echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12694
12695   # Broken: fails on valid input.
12696 continue
12697 fi
12698
12699 rm -f conftest.err conftest.$ac_ext
12700
12701   # OK, works on sane cases.  Now check whether nonexistent headers
12702   # can be detected and how.
12703   cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 #include <ac_nonexistent.h>
12710 _ACEOF
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714   *) ac_try_echo=$ac_try;;
12715 esac
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } >/dev/null && {
12724          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12725          test ! -s conftest.err
12726        }; then
12727   # Broken: success on invalid input.
12728 continue
12729 else
12730   echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733   # Passes both tests.
12734 ac_preproc_ok=:
12735 break
12736 fi
12737
12738 rm -f conftest.err conftest.$ac_ext
12739
12740 done
12741 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12742 rm -f conftest.err conftest.$ac_ext
12743 if $ac_preproc_ok; then
12744   break
12745 fi
12746
12747     done
12748     ac_cv_prog_CPP=$CPP
12749
12750 fi
12751   CPP=$ac_cv_prog_CPP
12752 else
12753   ac_cv_prog_CPP=$CPP
12754 fi
12755 { echo "$as_me:$LINENO: result: $CPP" >&5
12756 echo "${ECHO_T}$CPP" >&6; }
12757 ac_preproc_ok=false
12758 for ac_c_preproc_warn_flag in '' yes
12759 do
12760   # Use a header file that comes with gcc, so configuring glibc
12761   # with a fresh cross-compiler works.
12762   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12763   # <limits.h> exists even on freestanding compilers.
12764   # On the NeXT, cc -E runs the code through the compiler's parser,
12765   # not just through cpp. "Syntax error" is here to catch this case.
12766   cat >conftest.$ac_ext <<_ACEOF
12767 /* confdefs.h.  */
12768 _ACEOF
12769 cat confdefs.h >>conftest.$ac_ext
12770 cat >>conftest.$ac_ext <<_ACEOF
12771 /* end confdefs.h.  */
12772 #ifdef __STDC__
12773 # include <limits.h>
12774 #else
12775 # include <assert.h>
12776 #endif
12777                      Syntax error
12778 _ACEOF
12779 if { (ac_try="$ac_cpp conftest.$ac_ext"
12780 case "(($ac_try" in
12781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782   *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12786   ac_status=$?
12787   grep -v '^ *+' conftest.er1 >conftest.err
12788   rm -f conftest.er1
12789   cat conftest.err >&5
12790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791   (exit $ac_status); } >/dev/null && {
12792          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12793          test ! -s conftest.err
12794        }; then
12795   :
12796 else
12797   echo "$as_me: failed program was:" >&5
12798 sed 's/^/| /' conftest.$ac_ext >&5
12799
12800   # Broken: fails on valid input.
12801 continue
12802 fi
12803
12804 rm -f conftest.err conftest.$ac_ext
12805
12806   # OK, works on sane cases.  Now check whether nonexistent headers
12807   # can be detected and how.
12808   cat >conftest.$ac_ext <<_ACEOF
12809 /* confdefs.h.  */
12810 _ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h.  */
12814 #include <ac_nonexistent.h>
12815 _ACEOF
12816 if { (ac_try="$ac_cpp conftest.$ac_ext"
12817 case "(($ac_try" in
12818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819   *) ac_try_echo=$ac_try;;
12820 esac
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12823   ac_status=$?
12824   grep -v '^ *+' conftest.er1 >conftest.err
12825   rm -f conftest.er1
12826   cat conftest.err >&5
12827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828   (exit $ac_status); } >/dev/null && {
12829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830          test ! -s conftest.err
12831        }; then
12832   # Broken: success on invalid input.
12833 continue
12834 else
12835   echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838   # Passes both tests.
12839 ac_preproc_ok=:
12840 break
12841 fi
12842
12843 rm -f conftest.err conftest.$ac_ext
12844
12845 done
12846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12847 rm -f conftest.err conftest.$ac_ext
12848 if $ac_preproc_ok; then
12849   :
12850 else
12851   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
12852 See \`config.log' for more details." >&5
12853 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
12854 See \`config.log' for more details." >&2;}
12855    { (exit 1); exit 1; }; }
12856 fi
12857
12858 ac_ext=c
12859 ac_cpp='$CPP $CPPFLAGS'
12860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12863
12864 { echo "$as_me:$LINENO: checking whether we are using MS Visual C++" >&5
12865 echo $ECHO_N "checking whether we are using MS Visual C++... $ECHO_C" >&6; }
12866 if test "${ol_cv_msvc+set}" = set; then
12867   echo $ECHO_N "(cached) $ECHO_C" >&6
12868 else
12869   cat >conftest.$ac_ext <<_ACEOF
12870 /* confdefs.h.  */
12871 _ACEOF
12872 cat confdefs.h >>conftest.$ac_ext
12873 cat >>conftest.$ac_ext <<_ACEOF
12874 /* end confdefs.h.  */
12875
12876 #ifndef _MSC_VER
12877 #include <__FOO__/generate_error.h>
12878 #endif
12879
12880 _ACEOF
12881 if { (ac_try="$ac_cpp conftest.$ac_ext"
12882 case "(($ac_try" in
12883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12884   *) ac_try_echo=$ac_try;;
12885 esac
12886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12887   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12888   ac_status=$?
12889   grep -v '^ *+' conftest.er1 >conftest.err
12890   rm -f conftest.er1
12891   cat conftest.err >&5
12892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12893   (exit $ac_status); } >/dev/null && {
12894          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12895          test ! -s conftest.err
12896        }; then
12897   ol_cv_msvc=yes
12898 else
12899   echo "$as_me: failed program was:" >&5
12900 sed 's/^/| /' conftest.$ac_ext >&5
12901
12902   ol_cv_msvc=no
12903 fi
12904
12905 rm -f conftest.err conftest.$ac_ext
12906 fi
12907 { echo "$as_me:$LINENO: result: $ol_cv_msvc" >&5
12908 echo "${ECHO_T}$ol_cv_msvc" >&6; }
12909
12910 case $host_os in
12911   *mingw32* ) ac_cv_mingw32=yes ;;
12912   *cygwin* ) ac_cv_cygwin=yes ;;
12913   *interix* ) ac_cv_interix=yes ;;
12914 esac
12915
12916
12917
12918
12919 cat >>confdefs.h <<_ACEOF
12920 #define EXEEXT "${EXEEXT}"
12921 _ACEOF
12922
12923
12924 { echo "$as_me:$LINENO: checking for be_app in -lbe" >&5
12925 echo $ECHO_N "checking for be_app in -lbe... $ECHO_C" >&6; }
12926 if test "${ac_cv_lib_be_be_app+set}" = set; then
12927   echo $ECHO_N "(cached) $ECHO_C" >&6
12928 else
12929   ac_check_lib_save_LIBS=$LIBS
12930 LIBS="-lbe -lroot -lnet $LIBS"
12931 cat >conftest.$ac_ext <<_ACEOF
12932 /* confdefs.h.  */
12933 _ACEOF
12934 cat confdefs.h >>conftest.$ac_ext
12935 cat >>conftest.$ac_ext <<_ACEOF
12936 /* end confdefs.h.  */
12937
12938 /* Override any GCC internal prototype to avoid an error.
12939    Use char because int might match the return type of a GCC
12940    builtin and then its argument prototype would still apply.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char be_app ();
12945 int
12946 main ()
12947 {
12948 return be_app ();
12949   ;
12950   return 0;
12951 }
12952 _ACEOF
12953 rm -f conftest.$ac_objext conftest$ac_exeext
12954 if { (ac_try="$ac_link"
12955 case "(($ac_try" in
12956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12957   *) ac_try_echo=$ac_try;;
12958 esac
12959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12960   (eval "$ac_link") 2>conftest.er1
12961   ac_status=$?
12962   grep -v '^ *+' conftest.er1 >conftest.err
12963   rm -f conftest.er1
12964   cat conftest.err >&5
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); } && {
12967          test -z "$ac_c_werror_flag" ||
12968          test ! -s conftest.err
12969        } && test -s conftest$ac_exeext &&
12970        $as_test_x conftest$ac_exeext; then
12971   ac_cv_lib_be_be_app=yes
12972 else
12973   echo "$as_me: failed program was:" >&5
12974 sed 's/^/| /' conftest.$ac_ext >&5
12975
12976         ac_cv_lib_be_be_app=no
12977 fi
12978
12979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12980       conftest$ac_exeext conftest.$ac_ext
12981 LIBS=$ac_check_lib_save_LIBS
12982 fi
12983 { echo "$as_me:$LINENO: result: $ac_cv_lib_be_be_app" >&5
12984 echo "${ECHO_T}$ac_cv_lib_be_be_app" >&6; }
12985 if test $ac_cv_lib_be_be_app = yes; then
12986   LIBS="$LIBS -lbe -lroot -lnet"
12987 else
12988   :
12989 fi
12990
12991
12992 ac_ext=c
12993 ac_cpp='$CPP $CPPFLAGS'
12994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12997 if test -n "$ac_tool_prefix"; then
12998   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
13000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13002 if test "${ac_cv_prog_CC+set}" = set; then
13003   echo $ECHO_N "(cached) $ECHO_C" >&6
13004 else
13005   if test -n "$CC"; then
13006   ac_cv_prog_CC="$CC" # Let the user override the test.
13007 else
13008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13009 for as_dir in $PATH
13010 do
13011   IFS=$as_save_IFS
13012   test -z "$as_dir" && as_dir=.
13013   for ac_exec_ext in '' $ac_executable_extensions; do
13014   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13015     ac_cv_prog_CC="${ac_tool_prefix}gcc"
13016     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13017     break 2
13018   fi
13019 done
13020 done
13021 IFS=$as_save_IFS
13022
13023 fi
13024 fi
13025 CC=$ac_cv_prog_CC
13026 if test -n "$CC"; then
13027   { echo "$as_me:$LINENO: result: $CC" >&5
13028 echo "${ECHO_T}$CC" >&6; }
13029 else
13030   { echo "$as_me:$LINENO: result: no" >&5
13031 echo "${ECHO_T}no" >&6; }
13032 fi
13033
13034
13035 fi
13036 if test -z "$ac_cv_prog_CC"; then
13037   ac_ct_CC=$CC
13038   # Extract the first word of "gcc", so it can be a program name with args.
13039 set dummy gcc; ac_word=$2
13040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13042 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13043   echo $ECHO_N "(cached) $ECHO_C" >&6
13044 else
13045   if test -n "$ac_ct_CC"; then
13046   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13047 else
13048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13049 for as_dir in $PATH
13050 do
13051   IFS=$as_save_IFS
13052   test -z "$as_dir" && as_dir=.
13053   for ac_exec_ext in '' $ac_executable_extensions; do
13054   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13055     ac_cv_prog_ac_ct_CC="gcc"
13056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13057     break 2
13058   fi
13059 done
13060 done
13061 IFS=$as_save_IFS
13062
13063 fi
13064 fi
13065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13066 if test -n "$ac_ct_CC"; then
13067   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13068 echo "${ECHO_T}$ac_ct_CC" >&6; }
13069 else
13070   { echo "$as_me:$LINENO: result: no" >&5
13071 echo "${ECHO_T}no" >&6; }
13072 fi
13073
13074   if test "x$ac_ct_CC" = x; then
13075     CC=""
13076   else
13077     case $cross_compiling:$ac_tool_warned in
13078 yes:)
13079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13080 whose name does not start with the host triplet.  If you think this
13081 configuration is useful to you, please write to autoconf@gnu.org." >&5
13082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13083 whose name does not start with the host triplet.  If you think this
13084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13085 ac_tool_warned=yes ;;
13086 esac
13087     CC=$ac_ct_CC
13088   fi
13089 else
13090   CC="$ac_cv_prog_CC"
13091 fi
13092
13093 if test -z "$CC"; then
13094           if test -n "$ac_tool_prefix"; then
13095     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
13096 set dummy ${ac_tool_prefix}cc; ac_word=$2
13097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13099 if test "${ac_cv_prog_CC+set}" = set; then
13100   echo $ECHO_N "(cached) $ECHO_C" >&6
13101 else
13102   if test -n "$CC"; then
13103   ac_cv_prog_CC="$CC" # Let the user override the test.
13104 else
13105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13106 for as_dir in $PATH
13107 do
13108   IFS=$as_save_IFS
13109   test -z "$as_dir" && as_dir=.
13110   for ac_exec_ext in '' $ac_executable_extensions; do
13111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13112     ac_cv_prog_CC="${ac_tool_prefix}cc"
13113     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13114     break 2
13115   fi
13116 done
13117 done
13118 IFS=$as_save_IFS
13119
13120 fi
13121 fi
13122 CC=$ac_cv_prog_CC
13123 if test -n "$CC"; then
13124   { echo "$as_me:$LINENO: result: $CC" >&5
13125 echo "${ECHO_T}$CC" >&6; }
13126 else
13127   { echo "$as_me:$LINENO: result: no" >&5
13128 echo "${ECHO_T}no" >&6; }
13129 fi
13130
13131
13132   fi
13133 fi
13134 if test -z "$CC"; then
13135   # Extract the first word of "cc", so it can be a program name with args.
13136 set dummy cc; ac_word=$2
13137 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13138 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13139 if test "${ac_cv_prog_CC+set}" = set; then
13140   echo $ECHO_N "(cached) $ECHO_C" >&6
13141 else
13142   if test -n "$CC"; then
13143   ac_cv_prog_CC="$CC" # Let the user override the test.
13144 else
13145   ac_prog_rejected=no
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13148 do
13149   IFS=$as_save_IFS
13150   test -z "$as_dir" && as_dir=.
13151   for ac_exec_ext in '' $ac_executable_extensions; do
13152   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13153     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
13154        ac_prog_rejected=yes
13155        continue
13156      fi
13157     ac_cv_prog_CC="cc"
13158     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13159     break 2
13160   fi
13161 done
13162 done
13163 IFS=$as_save_IFS
13164
13165 if test $ac_prog_rejected = yes; then
13166   # We found a bogon in the path, so make sure we never use it.
13167   set dummy $ac_cv_prog_CC
13168   shift
13169   if test $# != 0; then
13170     # We chose a different compiler from the bogus one.
13171     # However, it has the same basename, so the bogon will be chosen
13172     # first if we set CC to just the basename; use the full file name.
13173     shift
13174     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
13175   fi
13176 fi
13177 fi
13178 fi
13179 CC=$ac_cv_prog_CC
13180 if test -n "$CC"; then
13181   { echo "$as_me:$LINENO: result: $CC" >&5
13182 echo "${ECHO_T}$CC" >&6; }
13183 else
13184   { echo "$as_me:$LINENO: result: no" >&5
13185 echo "${ECHO_T}no" >&6; }
13186 fi
13187
13188
13189 fi
13190 if test -z "$CC"; then
13191   if test -n "$ac_tool_prefix"; then
13192   for ac_prog in cl.exe
13193   do
13194     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13198 if test "${ac_cv_prog_CC+set}" = set; then
13199   echo $ECHO_N "(cached) $ECHO_C" >&6
13200 else
13201   if test -n "$CC"; then
13202   ac_cv_prog_CC="$CC" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207   IFS=$as_save_IFS
13208   test -z "$as_dir" && as_dir=.
13209   for ac_exec_ext in '' $ac_executable_extensions; do
13210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
13212     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213     break 2
13214   fi
13215 done
13216 done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 CC=$ac_cv_prog_CC
13222 if test -n "$CC"; then
13223   { echo "$as_me:$LINENO: result: $CC" >&5
13224 echo "${ECHO_T}$CC" >&6; }
13225 else
13226   { echo "$as_me:$LINENO: result: no" >&5
13227 echo "${ECHO_T}no" >&6; }
13228 fi
13229
13230
13231     test -n "$CC" && break
13232   done
13233 fi
13234 if test -z "$CC"; then
13235   ac_ct_CC=$CC
13236   for ac_prog in cl.exe
13237 do
13238   # Extract the first word of "$ac_prog", so it can be a program name with args.
13239 set dummy $ac_prog; ac_word=$2
13240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13242 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
13243   echo $ECHO_N "(cached) $ECHO_C" >&6
13244 else
13245   if test -n "$ac_ct_CC"; then
13246   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
13247 else
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13250 do
13251   IFS=$as_save_IFS
13252   test -z "$as_dir" && as_dir=.
13253   for ac_exec_ext in '' $ac_executable_extensions; do
13254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13255     ac_cv_prog_ac_ct_CC="$ac_prog"
13256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13257     break 2
13258   fi
13259 done
13260 done
13261 IFS=$as_save_IFS
13262
13263 fi
13264 fi
13265 ac_ct_CC=$ac_cv_prog_ac_ct_CC
13266 if test -n "$ac_ct_CC"; then
13267   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
13268 echo "${ECHO_T}$ac_ct_CC" >&6; }
13269 else
13270   { echo "$as_me:$LINENO: result: no" >&5
13271 echo "${ECHO_T}no" >&6; }
13272 fi
13273
13274
13275   test -n "$ac_ct_CC" && break
13276 done
13277
13278   if test "x$ac_ct_CC" = x; then
13279     CC=""
13280   else
13281     case $cross_compiling:$ac_tool_warned in
13282 yes:)
13283 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
13284 whose name does not start with the host triplet.  If you think this
13285 configuration is useful to you, please write to autoconf@gnu.org." >&5
13286 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
13287 whose name does not start with the host triplet.  If you think this
13288 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
13289 ac_tool_warned=yes ;;
13290 esac
13291     CC=$ac_ct_CC
13292   fi
13293 fi
13294
13295 fi
13296
13297
13298 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
13299 See \`config.log' for more details." >&5
13300 echo "$as_me: error: no acceptable C compiler found in \$PATH
13301 See \`config.log' for more details." >&2;}
13302    { (exit 1); exit 1; }; }
13303
13304 # Provide some information about the compiler.
13305 echo "$as_me:$LINENO: checking for C compiler version" >&5
13306 ac_compiler=`set X $ac_compile; echo $2`
13307 { (ac_try="$ac_compiler --version >&5"
13308 case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_compiler --version >&5") 2>&5
13314   ac_status=$?
13315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13316   (exit $ac_status); }
13317 { (ac_try="$ac_compiler -v >&5"
13318 case "(($ac_try" in
13319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13320   *) ac_try_echo=$ac_try;;
13321 esac
13322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13323   (eval "$ac_compiler -v >&5") 2>&5
13324   ac_status=$?
13325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326   (exit $ac_status); }
13327 { (ac_try="$ac_compiler -V >&5"
13328 case "(($ac_try" in
13329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13330   *) ac_try_echo=$ac_try;;
13331 esac
13332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13333   (eval "$ac_compiler -V >&5") 2>&5
13334   ac_status=$?
13335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13336   (exit $ac_status); }
13337
13338 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
13339 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
13340 if test "${ac_cv_c_compiler_gnu+set}" = set; then
13341   echo $ECHO_N "(cached) $ECHO_C" >&6
13342 else
13343   cat >conftest.$ac_ext <<_ACEOF
13344 /* confdefs.h.  */
13345 _ACEOF
13346 cat confdefs.h >>conftest.$ac_ext
13347 cat >>conftest.$ac_ext <<_ACEOF
13348 /* end confdefs.h.  */
13349
13350 int
13351 main ()
13352 {
13353 #ifndef __GNUC__
13354        choke me
13355 #endif
13356
13357   ;
13358   return 0;
13359 }
13360 _ACEOF
13361 rm -f conftest.$ac_objext
13362 if { (ac_try="$ac_compile"
13363 case "(($ac_try" in
13364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13365   *) ac_try_echo=$ac_try;;
13366 esac
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368   (eval "$ac_compile") 2>conftest.er1
13369   ac_status=$?
13370   grep -v '^ *+' conftest.er1 >conftest.err
13371   rm -f conftest.er1
13372   cat conftest.err >&5
13373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374   (exit $ac_status); } && {
13375          test -z "$ac_c_werror_flag" ||
13376          test ! -s conftest.err
13377        } && test -s conftest.$ac_objext; then
13378   ac_compiler_gnu=yes
13379 else
13380   echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13382
13383         ac_compiler_gnu=no
13384 fi
13385
13386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13387 ac_cv_c_compiler_gnu=$ac_compiler_gnu
13388
13389 fi
13390 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
13391 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
13392 GCC=`test $ac_compiler_gnu = yes && echo yes`
13393 ac_test_CFLAGS=${CFLAGS+set}
13394 ac_save_CFLAGS=$CFLAGS
13395 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
13396 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
13397 if test "${ac_cv_prog_cc_g+set}" = set; then
13398   echo $ECHO_N "(cached) $ECHO_C" >&6
13399 else
13400   ac_save_c_werror_flag=$ac_c_werror_flag
13401    ac_c_werror_flag=yes
13402    ac_cv_prog_cc_g=no
13403    CFLAGS="-g"
13404    cat >conftest.$ac_ext <<_ACEOF
13405 /* confdefs.h.  */
13406 _ACEOF
13407 cat confdefs.h >>conftest.$ac_ext
13408 cat >>conftest.$ac_ext <<_ACEOF
13409 /* end confdefs.h.  */
13410
13411 int
13412 main ()
13413 {
13414
13415   ;
13416   return 0;
13417 }
13418 _ACEOF
13419 rm -f conftest.$ac_objext
13420 if { (ac_try="$ac_compile"
13421 case "(($ac_try" in
13422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423   *) ac_try_echo=$ac_try;;
13424 esac
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426   (eval "$ac_compile") 2>conftest.er1
13427   ac_status=$?
13428   grep -v '^ *+' conftest.er1 >conftest.err
13429   rm -f conftest.er1
13430   cat conftest.err >&5
13431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13432   (exit $ac_status); } && {
13433          test -z "$ac_c_werror_flag" ||
13434          test ! -s conftest.err
13435        } && test -s conftest.$ac_objext; then
13436   ac_cv_prog_cc_g=yes
13437 else
13438   echo "$as_me: failed program was:" >&5
13439 sed 's/^/| /' conftest.$ac_ext >&5
13440
13441         CFLAGS=""
13442       cat >conftest.$ac_ext <<_ACEOF
13443 /* confdefs.h.  */
13444 _ACEOF
13445 cat confdefs.h >>conftest.$ac_ext
13446 cat >>conftest.$ac_ext <<_ACEOF
13447 /* end confdefs.h.  */
13448
13449 int
13450 main ()
13451 {
13452
13453   ;
13454   return 0;
13455 }
13456 _ACEOF
13457 rm -f conftest.$ac_objext
13458 if { (ac_try="$ac_compile"
13459 case "(($ac_try" in
13460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13461   *) ac_try_echo=$ac_try;;
13462 esac
13463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13464   (eval "$ac_compile") 2>conftest.er1
13465   ac_status=$?
13466   grep -v '^ *+' conftest.er1 >conftest.err
13467   rm -f conftest.er1
13468   cat conftest.err >&5
13469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13470   (exit $ac_status); } && {
13471          test -z "$ac_c_werror_flag" ||
13472          test ! -s conftest.err
13473        } && test -s conftest.$ac_objext; then
13474   :
13475 else
13476   echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13478
13479         ac_c_werror_flag=$ac_save_c_werror_flag
13480          CFLAGS="-g"
13481          cat >conftest.$ac_ext <<_ACEOF
13482 /* confdefs.h.  */
13483 _ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h.  */
13487
13488 int
13489 main ()
13490 {
13491
13492   ;
13493   return 0;
13494 }
13495 _ACEOF
13496 rm -f conftest.$ac_objext
13497 if { (ac_try="$ac_compile"
13498 case "(($ac_try" in
13499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13500   *) ac_try_echo=$ac_try;;
13501 esac
13502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13503   (eval "$ac_compile") 2>conftest.er1
13504   ac_status=$?
13505   grep -v '^ *+' conftest.er1 >conftest.err
13506   rm -f conftest.er1
13507   cat conftest.err >&5
13508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509   (exit $ac_status); } && {
13510          test -z "$ac_c_werror_flag" ||
13511          test ! -s conftest.err
13512        } && test -s conftest.$ac_objext; then
13513   ac_cv_prog_cc_g=yes
13514 else
13515   echo "$as_me: failed program was:" >&5
13516 sed 's/^/| /' conftest.$ac_ext >&5
13517
13518
13519 fi
13520
13521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13522 fi
13523
13524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13525 fi
13526
13527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13528    ac_c_werror_flag=$ac_save_c_werror_flag
13529 fi
13530 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
13531 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
13532 if test "$ac_test_CFLAGS" = set; then
13533   CFLAGS=$ac_save_CFLAGS
13534 elif test $ac_cv_prog_cc_g = yes; then
13535   if test "$GCC" = yes; then
13536     CFLAGS="-g -O2"
13537   else
13538     CFLAGS="-g"
13539   fi
13540 else
13541   if test "$GCC" = yes; then
13542     CFLAGS="-O2"
13543   else
13544     CFLAGS=
13545   fi
13546 fi
13547 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
13548 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
13549 if test "${ac_cv_prog_cc_c89+set}" = set; then
13550   echo $ECHO_N "(cached) $ECHO_C" >&6
13551 else
13552   ac_cv_prog_cc_c89=no
13553 ac_save_CC=$CC
13554 cat >conftest.$ac_ext <<_ACEOF
13555 /* confdefs.h.  */
13556 _ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h.  */
13560 #include <stdarg.h>
13561 #include <stdio.h>
13562 #include <sys/types.h>
13563 #include <sys/stat.h>
13564 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
13565 struct buf { int x; };
13566 FILE * (*rcsopen) (struct buf *, struct stat *, int);
13567 static char *e (p, i)
13568      char **p;
13569      int i;
13570 {
13571   return p[i];
13572 }
13573 static char *f (char * (*g) (char **, int), char **p, ...)
13574 {
13575   char *s;
13576   va_list v;
13577   va_start (v,p);
13578   s = g (p, va_arg (v,int));
13579   va_end (v);
13580   return s;
13581 }
13582
13583 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
13584    function prototypes and stuff, but not '\xHH' hex character constants.
13585    These don't provoke an error unfortunately, instead are silently treated
13586    as 'x'.  The following induces an error, until -std is added to get
13587    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
13588    array size at least.  It's necessary to write '\x00'==0 to get something
13589    that's true only with -std.  */
13590 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
13591
13592 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
13593    inside strings and character constants.  */
13594 #define FOO(x) 'x'
13595 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
13596
13597 int test (int i, double x);
13598 struct s1 {int (*f) (int a);};
13599 struct s2 {int (*f) (double a);};
13600 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
13601 int argc;
13602 char **argv;
13603 int
13604 main ()
13605 {
13606 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
13607   ;
13608   return 0;
13609 }
13610 _ACEOF
13611 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
13612         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
13613 do
13614   CC="$ac_save_CC $ac_arg"
13615   rm -f conftest.$ac_objext
13616 if { (ac_try="$ac_compile"
13617 case "(($ac_try" in
13618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619   *) ac_try_echo=$ac_try;;
13620 esac
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622   (eval "$ac_compile") 2>conftest.er1
13623   ac_status=$?
13624   grep -v '^ *+' conftest.er1 >conftest.err
13625   rm -f conftest.er1
13626   cat conftest.err >&5
13627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628   (exit $ac_status); } && {
13629          test -z "$ac_c_werror_flag" ||
13630          test ! -s conftest.err
13631        } && test -s conftest.$ac_objext; then
13632   ac_cv_prog_cc_c89=$ac_arg
13633 else
13634   echo "$as_me: failed program was:" >&5
13635 sed 's/^/| /' conftest.$ac_ext >&5
13636
13637
13638 fi
13639
13640 rm -f core conftest.err conftest.$ac_objext
13641   test "x$ac_cv_prog_cc_c89" != "xno" && break
13642 done
13643 rm -f conftest.$ac_ext
13644 CC=$ac_save_CC
13645
13646 fi
13647 # AC_CACHE_VAL
13648 case "x$ac_cv_prog_cc_c89" in
13649   x)
13650     { echo "$as_me:$LINENO: result: none needed" >&5
13651 echo "${ECHO_T}none needed" >&6; } ;;
13652   xno)
13653     { echo "$as_me:$LINENO: result: unsupported" >&5
13654 echo "${ECHO_T}unsupported" >&6; } ;;
13655   *)
13656     CC="$CC $ac_cv_prog_cc_c89"
13657     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
13658 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
13659 esac
13660
13661
13662 ac_ext=c
13663 ac_cpp='$CPP $CPPFLAGS'
13664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13667
13668 depcc="$CC"   am_compiler_list=
13669
13670 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
13671 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
13672 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
13673   echo $ECHO_N "(cached) $ECHO_C" >&6
13674 else
13675   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13676   # We make a subdir and do the tests there.  Otherwise we can end up
13677   # making bogus files that we don't know about and never remove.  For
13678   # instance it was reported that on HP-UX the gcc test will end up
13679   # making a dummy file named `D' -- because `-MD' means `put the output
13680   # in D'.
13681   mkdir conftest.dir
13682   # Copy depcomp to subdir because otherwise we won't find it if we're
13683   # using a relative directory.
13684   cp "$am_depcomp" conftest.dir
13685   cd conftest.dir
13686   # We will build objects and dependencies in a subdirectory because
13687   # it helps to detect inapplicable dependency modes.  For instance
13688   # both Tru64's cc and ICC support -MD to output dependencies as a
13689   # side effect of compilation, but ICC will put the dependencies in
13690   # the current directory while Tru64 will put them in the object
13691   # directory.
13692   mkdir sub
13693
13694   am_cv_CC_dependencies_compiler_type=none
13695   if test "$am_compiler_list" = ""; then
13696      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13697   fi
13698   for depmode in $am_compiler_list; do
13699     # Setup a source with many dependencies, because some compilers
13700     # like to wrap large dependency lists on column 80 (with \), and
13701     # we should not choose a depcomp mode which is confused by this.
13702     #
13703     # We need to recreate these files for each test, as the compiler may
13704     # overwrite some of them when testing with obscure command lines.
13705     # This happens at least with the AIX C compiler.
13706     : > sub/conftest.c
13707     for i in 1 2 3 4 5 6; do
13708       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13709       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13710       # Solaris 8's {/usr,}/bin/sh.
13711       touch sub/conftst$i.h
13712     done
13713     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13714
13715     case $depmode in
13716     nosideeffect)
13717       # after this tag, mechanisms are not by side-effect, so they'll
13718       # only be used when explicitly requested
13719       if test "x$enable_dependency_tracking" = xyes; then
13720         continue
13721       else
13722         break
13723       fi
13724       ;;
13725     none) break ;;
13726     esac
13727     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13728     # mode.  It turns out that the SunPro C++ compiler does not properly
13729     # handle `-M -o', and we need to detect this.
13730     if depmode=$depmode \
13731        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
13732        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13733        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
13734          >/dev/null 2>conftest.err &&
13735        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13736        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13737        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
13738        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13739       # icc doesn't choke on unknown options, it will just issue warnings
13740       # or remarks (even with -Werror).  So we grep stderr for any message
13741       # that says an option was ignored or not supported.
13742       # When given -MP, icc 7.0 and 7.1 complain thusly:
13743       #   icc: Command line warning: ignoring option '-M'; no argument required
13744       # The diagnosis changed in icc 8.0:
13745       #   icc: Command line remark: option '-MP' not supported
13746       if (grep 'ignoring option' conftest.err ||
13747           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13748         am_cv_CC_dependencies_compiler_type=$depmode
13749         break
13750       fi
13751     fi
13752   done
13753
13754   cd ..
13755   rm -rf conftest.dir
13756 else
13757   am_cv_CC_dependencies_compiler_type=none
13758 fi
13759
13760 fi
13761 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
13762 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
13763 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13764
13765  if
13766   test "x$enable_dependency_tracking" != xno \
13767   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13768   am__fastdepCC_TRUE=
13769   am__fastdepCC_FALSE='#'
13770 else
13771   am__fastdepCC_TRUE='#'
13772   am__fastdepCC_FALSE=
13773 fi
13774
13775
13776 if test "X${ac_cv_prog_cc_stdc}" = "Xno" ; then
13777         { { echo "$as_me:$LINENO: error: OpenLDAP requires compiler to support STDC constructs." >&5
13778 echo "$as_me: error: OpenLDAP requires compiler to support STDC constructs." >&2;}
13779    { (exit 1); exit 1; }; }
13780 fi
13781
13782 # test for make depend flag
13783 OL_MKDEP=
13784 OL_MKDEP_FLAGS=
13785 if test -z "${MKDEP}"; then
13786         OL_MKDEP="${CC-cc}"
13787         if test -z "${MKDEP_FLAGS}"; then
13788                 { echo "$as_me:$LINENO: checking for ${OL_MKDEP} depend flag" >&5
13789 echo $ECHO_N "checking for ${OL_MKDEP} depend flag... $ECHO_C" >&6; }
13790 if test "${ol_cv_mkdep+set}" = set; then
13791   echo $ECHO_N "(cached) $ECHO_C" >&6
13792 else
13793
13794                         ol_cv_mkdep=no
13795                         for flag in "-M" "-xM"; do
13796                                 cat > conftest.c <<EOF
13797  noCode;
13798 EOF
13799                                 if { ac_try='$OL_MKDEP $flag conftest.c'
13800   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13801   (eval $ac_try) 2>&5
13802   ac_status=$?
13803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13804   (exit $ac_status); }; } \
13805                                         | grep '^conftest\.'"${ac_objext}" >/dev/null 2>&1
13806                                 then
13807                                         if test ! -f conftest."${ac_object}" ; then
13808                                                 ol_cv_mkdep=$flag
13809                                                 OL_MKDEP_FLAGS="$flag"
13810                                                 break
13811                                         fi
13812                                 fi
13813                         done
13814                         rm -f conftest*
13815
13816 fi
13817 { echo "$as_me:$LINENO: result: $ol_cv_mkdep" >&5
13818 echo "${ECHO_T}$ol_cv_mkdep" >&6; }
13819                 test "$ol_cv_mkdep" = no && OL_MKDEP=":"
13820         else
13821                 cc_cv_mkdep=yes
13822                 OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13823         fi
13824 else
13825         cc_cv_mkdep=yes
13826         OL_MKDEP="${MKDEP}"
13827         OL_MKDEP_FLAGS="${MKDEP_FLAGS}"
13828 fi
13829
13830
13831
13832 if test "${ol_cv_mkdep}" = no ; then
13833         # this will soon become an error
13834         { echo "$as_me:$LINENO: WARNING: do not know how to generate dependencies" >&5
13835 echo "$as_me: WARNING: do not know how to generate dependencies" >&2;}
13836 fi
13837
13838 { echo "$as_me:$LINENO: checking for afopen in -ls" >&5
13839 echo $ECHO_N "checking for afopen in -ls... $ECHO_C" >&6; }
13840 if test "${ac_cv_lib_s_afopen+set}" = set; then
13841   echo $ECHO_N "(cached) $ECHO_C" >&6
13842 else
13843   ac_check_lib_save_LIBS=$LIBS
13844 LIBS="-ls  $LIBS"
13845 cat >conftest.$ac_ext <<_ACEOF
13846 /* confdefs.h.  */
13847 _ACEOF
13848 cat confdefs.h >>conftest.$ac_ext
13849 cat >>conftest.$ac_ext <<_ACEOF
13850 /* end confdefs.h.  */
13851
13852 /* Override any GCC internal prototype to avoid an error.
13853    Use char because int might match the return type of a GCC
13854    builtin and then its argument prototype would still apply.  */
13855 #ifdef __cplusplus
13856 extern "C"
13857 #endif
13858 char afopen ();
13859 int
13860 main ()
13861 {
13862 return afopen ();
13863   ;
13864   return 0;
13865 }
13866 _ACEOF
13867 rm -f conftest.$ac_objext conftest$ac_exeext
13868 if { (ac_try="$ac_link"
13869 case "(($ac_try" in
13870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871   *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874   (eval "$ac_link") 2>conftest.er1
13875   ac_status=$?
13876   grep -v '^ *+' conftest.er1 >conftest.err
13877   rm -f conftest.er1
13878   cat conftest.err >&5
13879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880   (exit $ac_status); } && {
13881          test -z "$ac_c_werror_flag" ||
13882          test ! -s conftest.err
13883        } && test -s conftest$ac_exeext &&
13884        $as_test_x conftest$ac_exeext; then
13885   ac_cv_lib_s_afopen=yes
13886 else
13887   echo "$as_me: failed program was:" >&5
13888 sed 's/^/| /' conftest.$ac_ext >&5
13889
13890         ac_cv_lib_s_afopen=no
13891 fi
13892
13893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13894       conftest$ac_exeext conftest.$ac_ext
13895 LIBS=$ac_check_lib_save_LIBS
13896 fi
13897 { echo "$as_me:$LINENO: result: $ac_cv_lib_s_afopen" >&5
13898 echo "${ECHO_T}$ac_cv_lib_s_afopen" >&6; }
13899 if test $ac_cv_lib_s_afopen = yes; then
13900
13901         AUTH_LIBS=-ls
13902
13903 cat >>confdefs.h <<\_ACEOF
13904 #define HAVE_AIX_SECURITY 1
13905 _ACEOF
13906
13907
13908 fi
13909
13910
13911 case "$target" in
13912 *-ibm-openedition)
13913         ac_cv_func_getopt=no
13914
13915 cat >>confdefs.h <<\_ACEOF
13916 #define BOTH_STRINGS_H 1
13917 _ACEOF
13918
13919         ;;
13920 esac
13921
13922 ol_link_modules=no
13923 WITH_MODULES_ENABLED=no
13924 if test $ol_enable_modules != no ; then
13925
13926 for ac_header in ltdl.h
13927 do
13928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13930   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 fi
13935 ac_res=`eval echo '${'$as_ac_Header'}'`
13936                { echo "$as_me:$LINENO: result: $ac_res" >&5
13937 echo "${ECHO_T}$ac_res" >&6; }
13938 else
13939   # Is the header compilable?
13940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13942 cat >conftest.$ac_ext <<_ACEOF
13943 /* confdefs.h.  */
13944 _ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h.  */
13948 $ac_includes_default
13949 #include <$ac_header>
13950 _ACEOF
13951 rm -f conftest.$ac_objext
13952 if { (ac_try="$ac_compile"
13953 case "(($ac_try" in
13954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13955   *) ac_try_echo=$ac_try;;
13956 esac
13957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13958   (eval "$ac_compile") 2>conftest.er1
13959   ac_status=$?
13960   grep -v '^ *+' conftest.er1 >conftest.err
13961   rm -f conftest.er1
13962   cat conftest.err >&5
13963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13964   (exit $ac_status); } && {
13965          test -z "$ac_c_werror_flag" ||
13966          test ! -s conftest.err
13967        } && test -s conftest.$ac_objext; then
13968   ac_header_compiler=yes
13969 else
13970   echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973         ac_header_compiler=no
13974 fi
13975
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13978 echo "${ECHO_T}$ac_header_compiler" >&6; }
13979
13980 # Is the header present?
13981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13983 cat >conftest.$ac_ext <<_ACEOF
13984 /* confdefs.h.  */
13985 _ACEOF
13986 cat confdefs.h >>conftest.$ac_ext
13987 cat >>conftest.$ac_ext <<_ACEOF
13988 /* end confdefs.h.  */
13989 #include <$ac_header>
13990 _ACEOF
13991 if { (ac_try="$ac_cpp conftest.$ac_ext"
13992 case "(($ac_try" in
13993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994   *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13998   ac_status=$?
13999   grep -v '^ *+' conftest.er1 >conftest.err
14000   rm -f conftest.er1
14001   cat conftest.err >&5
14002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14003   (exit $ac_status); } >/dev/null && {
14004          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14005          test ! -s conftest.err
14006        }; then
14007   ac_header_preproc=yes
14008 else
14009   echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14011
14012   ac_header_preproc=no
14013 fi
14014
14015 rm -f conftest.err conftest.$ac_ext
14016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14017 echo "${ECHO_T}$ac_header_preproc" >&6; }
14018
14019 # So?  What about this header?
14020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14021   yes:no: )
14022     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14024     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14026     ac_header_preproc=yes
14027     ;;
14028   no:yes:* )
14029     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14031     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14032 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14033     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14035     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14036 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14037     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14039     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14041     ( cat <<\_ASBOX
14042 ## --------------------------------------------- ##
14043 ## Report this to <http://www.openldap.org/its/> ##
14044 ## --------------------------------------------- ##
14045 _ASBOX
14046      ) | sed "s/^/$as_me: WARNING:     /" >&2
14047     ;;
14048 esac
14049 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14051 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14052   echo $ECHO_N "(cached) $ECHO_C" >&6
14053 else
14054   eval "$as_ac_Header=\$ac_header_preproc"
14055 fi
14056 ac_res=`eval echo '${'$as_ac_Header'}'`
14057                { echo "$as_me:$LINENO: result: $ac_res" >&5
14058 echo "${ECHO_T}$ac_res" >&6; }
14059
14060 fi
14061 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14062   cat >>confdefs.h <<_ACEOF
14063 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14064 _ACEOF
14065
14066 fi
14067
14068 done
14069
14070
14071         if test $ac_cv_header_ltdl_h = no ; then
14072                 { { echo "$as_me:$LINENO: error: could not locate libtool ltdl.h" >&5
14073 echo "$as_me: error: could not locate libtool ltdl.h" >&2;}
14074    { (exit 1); exit 1; }; }
14075         fi
14076
14077         { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
14078 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
14079 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
14080   echo $ECHO_N "(cached) $ECHO_C" >&6
14081 else
14082   ac_check_lib_save_LIBS=$LIBS
14083 LIBS="-lltdl  $LIBS"
14084 cat >conftest.$ac_ext <<_ACEOF
14085 /* confdefs.h.  */
14086 _ACEOF
14087 cat confdefs.h >>conftest.$ac_ext
14088 cat >>conftest.$ac_ext <<_ACEOF
14089 /* end confdefs.h.  */
14090
14091 /* Override any GCC internal prototype to avoid an error.
14092    Use char because int might match the return type of a GCC
14093    builtin and then its argument prototype would still apply.  */
14094 #ifdef __cplusplus
14095 extern "C"
14096 #endif
14097 char lt_dlinit ();
14098 int
14099 main ()
14100 {
14101 return lt_dlinit ();
14102   ;
14103   return 0;
14104 }
14105 _ACEOF
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110   *) ac_try_echo=$ac_try;;
14111 esac
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113   (eval "$ac_link") 2>conftest.er1
14114   ac_status=$?
14115   grep -v '^ *+' conftest.er1 >conftest.err
14116   rm -f conftest.er1
14117   cat conftest.err >&5
14118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119   (exit $ac_status); } && {
14120          test -z "$ac_c_werror_flag" ||
14121          test ! -s conftest.err
14122        } && test -s conftest$ac_exeext &&
14123        $as_test_x conftest$ac_exeext; then
14124   ac_cv_lib_ltdl_lt_dlinit=yes
14125 else
14126   echo "$as_me: failed program was:" >&5
14127 sed 's/^/| /' conftest.$ac_ext >&5
14128
14129         ac_cv_lib_ltdl_lt_dlinit=no
14130 fi
14131
14132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14133       conftest$ac_exeext conftest.$ac_ext
14134 LIBS=$ac_check_lib_save_LIBS
14135 fi
14136 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
14137 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
14138 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
14139
14140                 MODULES_LIBS=-lltdl
14141
14142 cat >>confdefs.h <<\_ACEOF
14143 #define HAVE_LIBLTDL 1
14144 _ACEOF
14145
14146
14147 fi
14148
14149
14150         if test "$ac_cv_lib_ltdl_lt_dlinit" = no ; then
14151                 { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
14152 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
14153    { (exit 1); exit 1; }; }
14154         fi
14155         ol_link_modules=yes
14156         WITH_MODULES_ENABLED=yes
14157
14158 else
14159         for i in $Backends; do
14160                 eval "ol_tmp=\$ol_enable_$i"
14161                 if test $ol_tmp = mod ; then
14162                         { echo "$as_me:$LINENO: WARNING: building static $i backend" >&5
14163 echo "$as_me: WARNING: building static $i backend" >&2;}
14164                         eval "ol_enable_$i=yes"
14165                 fi
14166         done
14167         for i in $Overlays; do
14168                 eval "ol_tmp=\$ol_enable_$i"
14169                 if test $ol_tmp = mod ; then
14170                         { echo "$as_me:$LINENO: WARNING: building static $i overlay" >&5
14171 echo "$as_me: WARNING: building static $i overlay" >&2;}
14172                         eval "ol_enable_$i=yes"
14173                 fi
14174         done
14175 fi
14176
14177 # test for EBCDIC
14178 { echo "$as_me:$LINENO: checking for EBCDIC" >&5
14179 echo $ECHO_N "checking for EBCDIC... $ECHO_C" >&6; }
14180 if test "${ol_cv_cpp_ebcdic+set}" = set; then
14181   echo $ECHO_N "(cached) $ECHO_C" >&6
14182 else
14183
14184         cat >conftest.$ac_ext <<_ACEOF
14185 /* confdefs.h.  */
14186 _ACEOF
14187 cat confdefs.h >>conftest.$ac_ext
14188 cat >>conftest.$ac_ext <<_ACEOF
14189 /* end confdefs.h.  */
14190
14191 #if !('M' == 0xd4)
14192 #include <__ASCII__/generate_error.h>
14193 #endif
14194
14195 _ACEOF
14196 if { (ac_try="$ac_cpp conftest.$ac_ext"
14197 case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14203   ac_status=$?
14204   grep -v '^ *+' conftest.er1 >conftest.err
14205   rm -f conftest.er1
14206   cat conftest.err >&5
14207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208   (exit $ac_status); } >/dev/null && {
14209          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14210          test ! -s conftest.err
14211        }; then
14212   ol_cv_cpp_ebcdic=yes
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217   ol_cv_cpp_ebcdic=no
14218 fi
14219
14220 rm -f conftest.err conftest.$ac_ext
14221 fi
14222 { echo "$as_me:$LINENO: result: $ol_cv_cpp_ebcdic" >&5
14223 echo "${ECHO_T}$ol_cv_cpp_ebcdic" >&6; }
14224 if test $ol_cv_cpp_ebcdic = yes ; then
14225
14226 cat >>confdefs.h <<\_ACEOF
14227 #define HAVE_EBCDIC 1
14228 _ACEOF
14229
14230 fi
14231
14232 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14233 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14234 if test "${ol_cv_header_stdc+set}" = set; then
14235   echo $ECHO_N "(cached) $ECHO_C" >&6
14236 else
14237   cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h.  */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h.  */
14243 #include <stdlib.h>
14244 #include <stdarg.h>
14245 #include <string.h>
14246 #include <float.h>
14247 _ACEOF
14248 if { (ac_try="$ac_cpp conftest.$ac_ext"
14249 case "(($ac_try" in
14250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251   *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14255   ac_status=$?
14256   grep -v '^ *+' conftest.er1 >conftest.err
14257   rm -f conftest.er1
14258   cat conftest.err >&5
14259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260   (exit $ac_status); } >/dev/null && {
14261          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14262          test ! -s conftest.err
14263        }; then
14264   ol_cv_header_stdc=yes
14265 else
14266   echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269   ol_cv_header_stdc=no
14270 fi
14271
14272 rm -f conftest.err conftest.$ac_ext
14273
14274 if test $ol_cv_header_stdc = yes; then
14275   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14276 cat >conftest.$ac_ext <<_ACEOF
14277 /* confdefs.h.  */
14278 _ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h.  */
14282 #include <string.h>
14283
14284 _ACEOF
14285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14286   $EGREP "memchr" >/dev/null 2>&1; then
14287   :
14288 else
14289   ol_cv_header_stdc=no
14290 fi
14291 rm -f conftest*
14292
14293 fi
14294
14295 if test $ol_cv_header_stdc = yes; then
14296   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14297 cat >conftest.$ac_ext <<_ACEOF
14298 /* confdefs.h.  */
14299 _ACEOF
14300 cat confdefs.h >>conftest.$ac_ext
14301 cat >>conftest.$ac_ext <<_ACEOF
14302 /* end confdefs.h.  */
14303 #include <stdlib.h>
14304
14305 _ACEOF
14306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14307   $EGREP "free" >/dev/null 2>&1; then
14308   :
14309 else
14310   ol_cv_header_stdc=no
14311 fi
14312 rm -f conftest*
14313
14314 fi
14315
14316 if test $ol_cv_header_stdc = yes; then
14317   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14318 if test "$cross_compiling" = yes; then
14319   :
14320 else
14321   cat >conftest.$ac_ext <<_ACEOF
14322 /* confdefs.h.  */
14323 _ACEOF
14324 cat confdefs.h >>conftest.$ac_ext
14325 cat >>conftest.$ac_ext <<_ACEOF
14326 /* end confdefs.h.  */
14327 #include <ctype.h>
14328 #ifndef HAVE_EBCDIC
14329 #       define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14330 #       define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14331 #else
14332 #       define ISLOWER(c) (('a' <= (c) && (c) <= 'i') \
14333                 || ('j' <= (c) && (c) <= 'r') \
14334                 || ('s' <= (c) && (c) <= 'z'))
14335 #       define TOUPPER(c)       (ISLOWER(c) ? ((c) | 0x40) : (c))
14336 #endif
14337 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14338 int main () { int i; for (i = 0; i < 256; i++)
14339 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
14340 exit (0); }
14341
14342 _ACEOF
14343 rm -f conftest$ac_exeext
14344 if { (ac_try="$ac_link"
14345 case "(($ac_try" in
14346   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14347   *) ac_try_echo=$ac_try;;
14348 esac
14349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14350   (eval "$ac_link") 2>&5
14351   ac_status=$?
14352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14353   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14354   { (case "(($ac_try" in
14355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14356   *) ac_try_echo=$ac_try;;
14357 esac
14358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14359   (eval "$ac_try") 2>&5
14360   ac_status=$?
14361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14362   (exit $ac_status); }; }; then
14363   :
14364 else
14365   echo "$as_me: program exited with status $ac_status" >&5
14366 echo "$as_me: failed program was:" >&5
14367 sed 's/^/| /' conftest.$ac_ext >&5
14368
14369 ( exit $ac_status )
14370 ol_cv_header_stdc=no
14371 fi
14372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14373 fi
14374
14375
14376 fi
14377 fi
14378 { echo "$as_me:$LINENO: result: $ol_cv_header_stdc" >&5
14379 echo "${ECHO_T}$ol_cv_header_stdc" >&6; }
14380 if test $ol_cv_header_stdc = yes; then
14381   cat >>confdefs.h <<\_ACEOF
14382 #define STDC_HEADERS 1
14383 _ACEOF
14384
14385 fi
14386 ac_cv_header_stdc=disable
14387
14388
14389 if test $ol_cv_header_stdc != yes; then
14390         { echo "$as_me:$LINENO: WARNING: could not locate Standard C compliant headers" >&5
14391 echo "$as_me: WARNING: could not locate Standard C compliant headers" >&2;}
14392 fi
14393
14394
14395
14396
14397
14398
14399 ac_header_dirent=no
14400 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14401   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14402 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14403 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14405   echo $ECHO_N "(cached) $ECHO_C" >&6
14406 else
14407   cat >conftest.$ac_ext <<_ACEOF
14408 /* confdefs.h.  */
14409 _ACEOF
14410 cat confdefs.h >>conftest.$ac_ext
14411 cat >>conftest.$ac_ext <<_ACEOF
14412 /* end confdefs.h.  */
14413 #include <sys/types.h>
14414 #include <$ac_hdr>
14415
14416 int
14417 main ()
14418 {
14419 if ((DIR *) 0)
14420 return 0;
14421   ;
14422   return 0;
14423 }
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429   *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432   (eval "$ac_compile") 2>conftest.er1
14433   ac_status=$?
14434   grep -v '^ *+' conftest.er1 >conftest.err
14435   rm -f conftest.er1
14436   cat conftest.err >&5
14437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438   (exit $ac_status); } && {
14439          test -z "$ac_c_werror_flag" ||
14440          test ! -s conftest.err
14441        } && test -s conftest.$ac_objext; then
14442   eval "$as_ac_Header=yes"
14443 else
14444   echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447         eval "$as_ac_Header=no"
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 fi
14452 ac_res=`eval echo '${'$as_ac_Header'}'`
14453                { echo "$as_me:$LINENO: result: $ac_res" >&5
14454 echo "${ECHO_T}$ac_res" >&6; }
14455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14456   cat >>confdefs.h <<_ACEOF
14457 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14458 _ACEOF
14459
14460 ac_header_dirent=$ac_hdr; break
14461 fi
14462
14463 done
14464 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14465 if test $ac_header_dirent = dirent.h; then
14466   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14467 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14468 if test "${ac_cv_search_opendir+set}" = set; then
14469   echo $ECHO_N "(cached) $ECHO_C" >&6
14470 else
14471   ac_func_search_save_LIBS=$LIBS
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h.  */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h.  */
14478
14479 /* Override any GCC internal prototype to avoid an error.
14480    Use char because int might match the return type of a GCC
14481    builtin and then its argument prototype would still apply.  */
14482 #ifdef __cplusplus
14483 extern "C"
14484 #endif
14485 char opendir ();
14486 int
14487 main ()
14488 {
14489 return opendir ();
14490   ;
14491   return 0;
14492 }
14493 _ACEOF
14494 for ac_lib in '' dir; do
14495   if test -z "$ac_lib"; then
14496     ac_res="none required"
14497   else
14498     ac_res=-l$ac_lib
14499     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14500   fi
14501   rm -f conftest.$ac_objext conftest$ac_exeext
14502 if { (ac_try="$ac_link"
14503 case "(($ac_try" in
14504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14505   *) ac_try_echo=$ac_try;;
14506 esac
14507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14508   (eval "$ac_link") 2>conftest.er1
14509   ac_status=$?
14510   grep -v '^ *+' conftest.er1 >conftest.err
14511   rm -f conftest.er1
14512   cat conftest.err >&5
14513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514   (exit $ac_status); } && {
14515          test -z "$ac_c_werror_flag" ||
14516          test ! -s conftest.err
14517        } && test -s conftest$ac_exeext &&
14518        $as_test_x conftest$ac_exeext; then
14519   ac_cv_search_opendir=$ac_res
14520 else
14521   echo "$as_me: failed program was:" >&5
14522 sed 's/^/| /' conftest.$ac_ext >&5
14523
14524
14525 fi
14526
14527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14528       conftest$ac_exeext
14529   if test "${ac_cv_search_opendir+set}" = set; then
14530   break
14531 fi
14532 done
14533 if test "${ac_cv_search_opendir+set}" = set; then
14534   :
14535 else
14536   ac_cv_search_opendir=no
14537 fi
14538 rm conftest.$ac_ext
14539 LIBS=$ac_func_search_save_LIBS
14540 fi
14541 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14542 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14543 ac_res=$ac_cv_search_opendir
14544 if test "$ac_res" != no; then
14545   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14546
14547 fi
14548
14549 else
14550   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14551 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14552 if test "${ac_cv_search_opendir+set}" = set; then
14553   echo $ECHO_N "(cached) $ECHO_C" >&6
14554 else
14555   ac_func_search_save_LIBS=$LIBS
14556 cat >conftest.$ac_ext <<_ACEOF
14557 /* confdefs.h.  */
14558 _ACEOF
14559 cat confdefs.h >>conftest.$ac_ext
14560 cat >>conftest.$ac_ext <<_ACEOF
14561 /* end confdefs.h.  */
14562
14563 /* Override any GCC internal prototype to avoid an error.
14564    Use char because int might match the return type of a GCC
14565    builtin and then its argument prototype would still apply.  */
14566 #ifdef __cplusplus
14567 extern "C"
14568 #endif
14569 char opendir ();
14570 int
14571 main ()
14572 {
14573 return opendir ();
14574   ;
14575   return 0;
14576 }
14577 _ACEOF
14578 for ac_lib in '' x; do
14579   if test -z "$ac_lib"; then
14580     ac_res="none required"
14581   else
14582     ac_res=-l$ac_lib
14583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14584   fi
14585   rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589   *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592   (eval "$ac_link") 2>conftest.er1
14593   ac_status=$?
14594   grep -v '^ *+' conftest.er1 >conftest.err
14595   rm -f conftest.er1
14596   cat conftest.err >&5
14597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598   (exit $ac_status); } && {
14599          test -z "$ac_c_werror_flag" ||
14600          test ! -s conftest.err
14601        } && test -s conftest$ac_exeext &&
14602        $as_test_x conftest$ac_exeext; then
14603   ac_cv_search_opendir=$ac_res
14604 else
14605   echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608
14609 fi
14610
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612       conftest$ac_exeext
14613   if test "${ac_cv_search_opendir+set}" = set; then
14614   break
14615 fi
14616 done
14617 if test "${ac_cv_search_opendir+set}" = set; then
14618   :
14619 else
14620   ac_cv_search_opendir=no
14621 fi
14622 rm conftest.$ac_ext
14623 LIBS=$ac_func_search_save_LIBS
14624 fi
14625 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14626 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14627 ac_res=$ac_cv_search_opendir
14628 if test "$ac_res" != no; then
14629   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14630
14631 fi
14632
14633 fi
14634
14635 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14636 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14637 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14638   echo $ECHO_N "(cached) $ECHO_C" >&6
14639 else
14640   cat >conftest.$ac_ext <<_ACEOF
14641 /* confdefs.h.  */
14642 _ACEOF
14643 cat confdefs.h >>conftest.$ac_ext
14644 cat >>conftest.$ac_ext <<_ACEOF
14645 /* end confdefs.h.  */
14646 #include <sys/types.h>
14647 #include <sys/wait.h>
14648 #ifndef WEXITSTATUS
14649 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14650 #endif
14651 #ifndef WIFEXITED
14652 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14653 #endif
14654
14655 int
14656 main ()
14657 {
14658   int s;
14659   wait (&s);
14660   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14661   ;
14662   return 0;
14663 }
14664 _ACEOF
14665 rm -f conftest.$ac_objext
14666 if { (ac_try="$ac_compile"
14667 case "(($ac_try" in
14668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14669   *) ac_try_echo=$ac_try;;
14670 esac
14671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14672   (eval "$ac_compile") 2>conftest.er1
14673   ac_status=$?
14674   grep -v '^ *+' conftest.er1 >conftest.err
14675   rm -f conftest.er1
14676   cat conftest.err >&5
14677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14678   (exit $ac_status); } && {
14679          test -z "$ac_c_werror_flag" ||
14680          test ! -s conftest.err
14681        } && test -s conftest.$ac_objext; then
14682   ac_cv_header_sys_wait_h=yes
14683 else
14684   echo "$as_me: failed program was:" >&5
14685 sed 's/^/| /' conftest.$ac_ext >&5
14686
14687         ac_cv_header_sys_wait_h=no
14688 fi
14689
14690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 fi
14692 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14693 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14694 if test $ac_cv_header_sys_wait_h = yes; then
14695
14696 cat >>confdefs.h <<\_ACEOF
14697 #define HAVE_SYS_WAIT_H 1
14698 _ACEOF
14699
14700 fi
14701
14702 { echo "$as_me:$LINENO: checking whether termios.h defines TIOCGWINSZ" >&5
14703 echo $ECHO_N "checking whether termios.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14704 if test "${ac_cv_sys_tiocgwinsz_in_termios_h+set}" = set; then
14705   echo $ECHO_N "(cached) $ECHO_C" >&6
14706 else
14707   cat >conftest.$ac_ext <<_ACEOF
14708 /* confdefs.h.  */
14709 _ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h.  */
14713 #include <sys/types.h>
14714 #include <termios.h>
14715 #ifdef TIOCGWINSZ
14716   yes
14717 #endif
14718
14719 _ACEOF
14720 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14721   $EGREP "yes" >/dev/null 2>&1; then
14722   ac_cv_sys_tiocgwinsz_in_termios_h=yes
14723 else
14724   ac_cv_sys_tiocgwinsz_in_termios_h=no
14725 fi
14726 rm -f conftest*
14727
14728 fi
14729 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
14730 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
14731
14732 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
14733   { echo "$as_me:$LINENO: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
14734 echo $ECHO_N "checking whether sys/ioctl.h defines TIOCGWINSZ... $ECHO_C" >&6; }
14735 if test "${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+set}" = set; then
14736   echo $ECHO_N "(cached) $ECHO_C" >&6
14737 else
14738   cat >conftest.$ac_ext <<_ACEOF
14739 /* confdefs.h.  */
14740 _ACEOF
14741 cat confdefs.h >>conftest.$ac_ext
14742 cat >>conftest.$ac_ext <<_ACEOF
14743 /* end confdefs.h.  */
14744 #include <sys/types.h>
14745 #include <sys/ioctl.h>
14746 #ifdef TIOCGWINSZ
14747   yes
14748 #endif
14749
14750 _ACEOF
14751 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14752   $EGREP "yes" >/dev/null 2>&1; then
14753   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
14754 else
14755   ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
14756 fi
14757 rm -f conftest*
14758
14759 fi
14760 { echo "$as_me:$LINENO: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
14761 echo "${ECHO_T}$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
14762
14763   if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
14764
14765 cat >>confdefs.h <<\_ACEOF
14766 #define GWINSZ_IN_SYS_IOCTL 1
14767 _ACEOF
14768
14769   fi
14770 fi
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820 for ac_header in \
14821         arpa/inet.h             \
14822         arpa/nameser.h  \
14823         assert.h                \
14824         bits/types.h    \
14825         conio.h                 \
14826         crypt.h                 \
14827         direct.h                \
14828         errno.h                 \
14829         fcntl.h                 \
14830         filio.h                 \
14831         getopt.h                \
14832         grp.h                   \
14833         io.h                    \
14834         libutil.h               \
14835         limits.h                \
14836         locale.h                \
14837         malloc.h                \
14838         memory.h                \
14839         psap.h                  \
14840         pwd.h                   \
14841         process.h               \
14842         sgtty.h                 \
14843         shadow.h                \
14844         stddef.h                \
14845         string.h                \
14846         strings.h               \
14847         sysexits.h              \
14848         sys/file.h              \
14849         sys/filio.h             \
14850         sys/fstyp.h             \
14851         sys/errno.h             \
14852         sys/ioctl.h             \
14853         sys/param.h             \
14854         sys/privgrp.h   \
14855         sys/resource.h  \
14856         sys/select.h    \
14857         sys/socket.h    \
14858         sys/stat.h              \
14859         sys/syslog.h    \
14860         sys/time.h              \
14861         sys/types.h             \
14862         sys/uio.h               \
14863         sys/vmount.h    \
14864         syslog.h                \
14865         termios.h               \
14866         unistd.h                \
14867         utime.h                 \
14868
14869 do
14870 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14872   { echo "$as_me:$LINENO: checking for $ac_header" >&5
14873 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14875   echo $ECHO_N "(cached) $ECHO_C" >&6
14876 fi
14877 ac_res=`eval echo '${'$as_ac_Header'}'`
14878                { echo "$as_me:$LINENO: result: $ac_res" >&5
14879 echo "${ECHO_T}$ac_res" >&6; }
14880 else
14881   # Is the header compilable?
14882 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14883 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14884 cat >conftest.$ac_ext <<_ACEOF
14885 /* confdefs.h.  */
14886 _ACEOF
14887 cat confdefs.h >>conftest.$ac_ext
14888 cat >>conftest.$ac_ext <<_ACEOF
14889 /* end confdefs.h.  */
14890 $ac_includes_default
14891 #include <$ac_header>
14892 _ACEOF
14893 rm -f conftest.$ac_objext
14894 if { (ac_try="$ac_compile"
14895 case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900   (eval "$ac_compile") 2>conftest.er1
14901   ac_status=$?
14902   grep -v '^ *+' conftest.er1 >conftest.err
14903   rm -f conftest.er1
14904   cat conftest.err >&5
14905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906   (exit $ac_status); } && {
14907          test -z "$ac_c_werror_flag" ||
14908          test ! -s conftest.err
14909        } && test -s conftest.$ac_objext; then
14910   ac_header_compiler=yes
14911 else
14912   echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915         ac_header_compiler=no
14916 fi
14917
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14920 echo "${ECHO_T}$ac_header_compiler" >&6; }
14921
14922 # Is the header present?
14923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14925 cat >conftest.$ac_ext <<_ACEOF
14926 /* confdefs.h.  */
14927 _ACEOF
14928 cat confdefs.h >>conftest.$ac_ext
14929 cat >>conftest.$ac_ext <<_ACEOF
14930 /* end confdefs.h.  */
14931 #include <$ac_header>
14932 _ACEOF
14933 if { (ac_try="$ac_cpp conftest.$ac_ext"
14934 case "(($ac_try" in
14935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936   *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14940   ac_status=$?
14941   grep -v '^ *+' conftest.er1 >conftest.err
14942   rm -f conftest.er1
14943   cat conftest.err >&5
14944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945   (exit $ac_status); } >/dev/null && {
14946          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14947          test ! -s conftest.err
14948        }; then
14949   ac_header_preproc=yes
14950 else
14951   echo "$as_me: failed program was:" >&5
14952 sed 's/^/| /' conftest.$ac_ext >&5
14953
14954   ac_header_preproc=no
14955 fi
14956
14957 rm -f conftest.err conftest.$ac_ext
14958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14959 echo "${ECHO_T}$ac_header_preproc" >&6; }
14960
14961 # So?  What about this header?
14962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14963   yes:no: )
14964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14968     ac_header_preproc=yes
14969     ;;
14970   no:yes:* )
14971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14983     ( cat <<\_ASBOX
14984 ## --------------------------------------------- ##
14985 ## Report this to <http://www.openldap.org/its/> ##
14986 ## --------------------------------------------- ##
14987 _ASBOX
14988      ) | sed "s/^/$as_me: WARNING:     /" >&2
14989     ;;
14990 esac
14991 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14992 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14993 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14994   echo $ECHO_N "(cached) $ECHO_C" >&6
14995 else
14996   eval "$as_ac_Header=\$ac_header_preproc"
14997 fi
14998 ac_res=`eval echo '${'$as_ac_Header'}'`
14999                { echo "$as_me:$LINENO: result: $ac_res" >&5
15000 echo "${ECHO_T}$ac_res" >&6; }
15001
15002 fi
15003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15004   cat >>confdefs.h <<_ACEOF
15005 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15006 _ACEOF
15007
15008 fi
15009
15010 done
15011
15012
15013 if test "$ac_cv_mingw32" = yes \
15014         -o "$ac_cv_interix" = yes \
15015         -o "$ol_cv_msvc" = yes
15016 then
15017
15018
15019 for ac_header in winsock.h winsock2.h
15020 do
15021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15023   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15026   echo $ECHO_N "(cached) $ECHO_C" >&6
15027 fi
15028 ac_res=`eval echo '${'$as_ac_Header'}'`
15029                { echo "$as_me:$LINENO: result: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15031 else
15032   # Is the header compilable?
15033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15035 cat >conftest.$ac_ext <<_ACEOF
15036 /* confdefs.h.  */
15037 _ACEOF
15038 cat confdefs.h >>conftest.$ac_ext
15039 cat >>conftest.$ac_ext <<_ACEOF
15040 /* end confdefs.h.  */
15041 $ac_includes_default
15042 #include <$ac_header>
15043 _ACEOF
15044 rm -f conftest.$ac_objext
15045 if { (ac_try="$ac_compile"
15046 case "(($ac_try" in
15047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048   *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051   (eval "$ac_compile") 2>conftest.er1
15052   ac_status=$?
15053   grep -v '^ *+' conftest.er1 >conftest.err
15054   rm -f conftest.er1
15055   cat conftest.err >&5
15056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057   (exit $ac_status); } && {
15058          test -z "$ac_c_werror_flag" ||
15059          test ! -s conftest.err
15060        } && test -s conftest.$ac_objext; then
15061   ac_header_compiler=yes
15062 else
15063   echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066         ac_header_compiler=no
15067 fi
15068
15069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15071 echo "${ECHO_T}$ac_header_compiler" >&6; }
15072
15073 # Is the header present?
15074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15076 cat >conftest.$ac_ext <<_ACEOF
15077 /* confdefs.h.  */
15078 _ACEOF
15079 cat confdefs.h >>conftest.$ac_ext
15080 cat >>conftest.$ac_ext <<_ACEOF
15081 /* end confdefs.h.  */
15082 #include <$ac_header>
15083 _ACEOF
15084 if { (ac_try="$ac_cpp conftest.$ac_ext"
15085 case "(($ac_try" in
15086   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15087   *) ac_try_echo=$ac_try;;
15088 esac
15089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15090   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15091   ac_status=$?
15092   grep -v '^ *+' conftest.er1 >conftest.err
15093   rm -f conftest.er1
15094   cat conftest.err >&5
15095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15096   (exit $ac_status); } >/dev/null && {
15097          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15098          test ! -s conftest.err
15099        }; then
15100   ac_header_preproc=yes
15101 else
15102   echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15104
15105   ac_header_preproc=no
15106 fi
15107
15108 rm -f conftest.err conftest.$ac_ext
15109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15110 echo "${ECHO_T}$ac_header_preproc" >&6; }
15111
15112 # So?  What about this header?
15113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15114   yes:no: )
15115     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15119     ac_header_preproc=yes
15120     ;;
15121   no:yes:* )
15122     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15124     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15125 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15126     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15128     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15129 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15130     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15132     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15134     ( cat <<\_ASBOX
15135 ## --------------------------------------------- ##
15136 ## Report this to <http://www.openldap.org/its/> ##
15137 ## --------------------------------------------- ##
15138 _ASBOX
15139      ) | sed "s/^/$as_me: WARNING:     /" >&2
15140     ;;
15141 esac
15142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15145   echo $ECHO_N "(cached) $ECHO_C" >&6
15146 else
15147   eval "$as_ac_Header=\$ac_header_preproc"
15148 fi
15149 ac_res=`eval echo '${'$as_ac_Header'}'`
15150                { echo "$as_me:$LINENO: result: $ac_res" >&5
15151 echo "${ECHO_T}$ac_res" >&6; }
15152
15153 fi
15154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15155   cat >>confdefs.h <<_ACEOF
15156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15157 _ACEOF
15158
15159 fi
15160
15161 done
15162
15163 fi
15164
15165
15166 for ac_header in resolv.h
15167 do
15168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15169 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15170 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15172   echo $ECHO_N "(cached) $ECHO_C" >&6
15173 else
15174   cat >conftest.$ac_ext <<_ACEOF
15175 /* confdefs.h.  */
15176 _ACEOF
15177 cat confdefs.h >>conftest.$ac_ext
15178 cat >>conftest.$ac_ext <<_ACEOF
15179 /* end confdefs.h.  */
15180 $ac_includes_default
15181 #include <netinet/in.h>
15182
15183
15184 #include <$ac_header>
15185 _ACEOF
15186 rm -f conftest.$ac_objext
15187 if { (ac_try="$ac_compile"
15188 case "(($ac_try" in
15189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190   *) ac_try_echo=$ac_try;;
15191 esac
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193   (eval "$ac_compile") 2>conftest.er1
15194   ac_status=$?
15195   grep -v '^ *+' conftest.er1 >conftest.err
15196   rm -f conftest.er1
15197   cat conftest.err >&5
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); } && {
15200          test -z "$ac_c_werror_flag" ||
15201          test ! -s conftest.err
15202        } && test -s conftest.$ac_objext; then
15203   eval "$as_ac_Header=yes"
15204 else
15205   echo "$as_me: failed program was:" >&5
15206 sed 's/^/| /' conftest.$ac_ext >&5
15207
15208         eval "$as_ac_Header=no"
15209 fi
15210
15211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15212 fi
15213 ac_res=`eval echo '${'$as_ac_Header'}'`
15214                { echo "$as_me:$LINENO: result: $ac_res" >&5
15215 echo "${ECHO_T}$ac_res" >&6; }
15216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15217   cat >>confdefs.h <<_ACEOF
15218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15219 _ACEOF
15220
15221 fi
15222
15223 done
15224
15225
15226
15227 for ac_header in netinet/tcp.h
15228 do
15229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15230 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15231 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15232 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15233   echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235   cat >conftest.$ac_ext <<_ACEOF
15236 /* confdefs.h.  */
15237 _ACEOF
15238 cat confdefs.h >>conftest.$ac_ext
15239 cat >>conftest.$ac_ext <<_ACEOF
15240 /* end confdefs.h.  */
15241 $ac_includes_default
15242 #include <netinet/in.h>
15243
15244
15245 #include <$ac_header>
15246 _ACEOF
15247 rm -f conftest.$ac_objext
15248 if { (ac_try="$ac_compile"
15249 case "(($ac_try" in
15250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15251   *) ac_try_echo=$ac_try;;
15252 esac
15253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15254   (eval "$ac_compile") 2>conftest.er1
15255   ac_status=$?
15256   grep -v '^ *+' conftest.er1 >conftest.err
15257   rm -f conftest.er1
15258   cat conftest.err >&5
15259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15260   (exit $ac_status); } && {
15261          test -z "$ac_c_werror_flag" ||
15262          test ! -s conftest.err
15263        } && test -s conftest.$ac_objext; then
15264   eval "$as_ac_Header=yes"
15265 else
15266   echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15268
15269         eval "$as_ac_Header=no"
15270 fi
15271
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15273 fi
15274 ac_res=`eval echo '${'$as_ac_Header'}'`
15275                { echo "$as_me:$LINENO: result: $ac_res" >&5
15276 echo "${ECHO_T}$ac_res" >&6; }
15277 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15278   cat >>confdefs.h <<_ACEOF
15279 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15280 _ACEOF
15281
15282 fi
15283
15284 done
15285
15286
15287
15288 for ac_header in sys/ucred.h
15289 do
15290 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15294   echo $ECHO_N "(cached) $ECHO_C" >&6
15295 else
15296   cat >conftest.$ac_ext <<_ACEOF
15297 /* confdefs.h.  */
15298 _ACEOF
15299 cat confdefs.h >>conftest.$ac_ext
15300 cat >>conftest.$ac_ext <<_ACEOF
15301 /* end confdefs.h.  */
15302 $ac_includes_default
15303 #ifdef HAVE_SYS_PARAM_H
15304 #include <sys/param.h>
15305 #endif
15306
15307
15308 #include <$ac_header>
15309 _ACEOF
15310 rm -f conftest.$ac_objext
15311 if { (ac_try="$ac_compile"
15312 case "(($ac_try" in
15313   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314   *) ac_try_echo=$ac_try;;
15315 esac
15316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15317   (eval "$ac_compile") 2>conftest.er1
15318   ac_status=$?
15319   grep -v '^ *+' conftest.er1 >conftest.err
15320   rm -f conftest.er1
15321   cat conftest.err >&5
15322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323   (exit $ac_status); } && {
15324          test -z "$ac_c_werror_flag" ||
15325          test ! -s conftest.err
15326        } && test -s conftest.$ac_objext; then
15327   eval "$as_ac_Header=yes"
15328 else
15329   echo "$as_me: failed program was:" >&5
15330 sed 's/^/| /' conftest.$ac_ext >&5
15331
15332         eval "$as_ac_Header=no"
15333 fi
15334
15335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15336 fi
15337 ac_res=`eval echo '${'$as_ac_Header'}'`
15338                { echo "$as_me:$LINENO: result: $ac_res" >&5
15339 echo "${ECHO_T}$ac_res" >&6; }
15340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15341   cat >>confdefs.h <<_ACEOF
15342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15343 _ACEOF
15344
15345 fi
15346
15347 done
15348
15349
15350
15351
15352
15353 for ac_func in sigaction sigset
15354 do
15355 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15356 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15357 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15358 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15359   echo $ECHO_N "(cached) $ECHO_C" >&6
15360 else
15361   cat >conftest.$ac_ext <<_ACEOF
15362 /* confdefs.h.  */
15363 _ACEOF
15364 cat confdefs.h >>conftest.$ac_ext
15365 cat >>conftest.$ac_ext <<_ACEOF
15366 /* end confdefs.h.  */
15367 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15368    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15369 #define $ac_func innocuous_$ac_func
15370
15371 /* System header to define __stub macros and hopefully few prototypes,
15372     which can conflict with char $ac_func (); below.
15373     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15374     <limits.h> exists even on freestanding compilers.  */
15375
15376 #ifdef __STDC__
15377 # include <limits.h>
15378 #else
15379 # include <assert.h>
15380 #endif
15381
15382 #undef $ac_func
15383
15384 /* Override any GCC internal prototype to avoid an error.
15385    Use char because int might match the return type of a GCC
15386    builtin and then its argument prototype would still apply.  */
15387 #ifdef __cplusplus
15388 extern "C"
15389 #endif
15390 char $ac_func ();
15391 /* The GNU C library defines this for functions which it implements
15392     to always fail with ENOSYS.  Some functions are actually named
15393     something starting with __ and the normal name is an alias.  */
15394 #if defined __stub_$ac_func || defined __stub___$ac_func
15395 choke me
15396 #endif
15397
15398 int
15399 main ()
15400 {
15401 return $ac_func ();
15402   ;
15403   return 0;
15404 }
15405 _ACEOF
15406 rm -f conftest.$ac_objext conftest$ac_exeext
15407 if { (ac_try="$ac_link"
15408 case "(($ac_try" in
15409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15410   *) ac_try_echo=$ac_try;;
15411 esac
15412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15413   (eval "$ac_link") 2>conftest.er1
15414   ac_status=$?
15415   grep -v '^ *+' conftest.er1 >conftest.err
15416   rm -f conftest.er1
15417   cat conftest.err >&5
15418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15419   (exit $ac_status); } && {
15420          test -z "$ac_c_werror_flag" ||
15421          test ! -s conftest.err
15422        } && test -s conftest$ac_exeext &&
15423        $as_test_x conftest$ac_exeext; then
15424   eval "$as_ac_var=yes"
15425 else
15426   echo "$as_me: failed program was:" >&5
15427 sed 's/^/| /' conftest.$ac_ext >&5
15428
15429         eval "$as_ac_var=no"
15430 fi
15431
15432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15433       conftest$ac_exeext conftest.$ac_ext
15434 fi
15435 ac_res=`eval echo '${'$as_ac_var'}'`
15436                { echo "$as_me:$LINENO: result: $ac_res" >&5
15437 echo "${ECHO_T}$ac_res" >&6; }
15438 if test `eval echo '${'$as_ac_var'}'` = yes; then
15439   cat >>confdefs.h <<_ACEOF
15440 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15441 _ACEOF
15442
15443 fi
15444 done
15445
15446
15447 if test $ac_cv_func_sigaction = no && test $ac_cv_func_sigaction = no ; then
15448
15449 { echo "$as_me:$LINENO: checking for sigset in -lV3" >&5
15450 echo $ECHO_N "checking for sigset in -lV3... $ECHO_C" >&6; }
15451 if test "${ac_cv_lib_V3_sigset+set}" = set; then
15452   echo $ECHO_N "(cached) $ECHO_C" >&6
15453 else
15454   ac_check_lib_save_LIBS=$LIBS
15455 LIBS="-lV3  $LIBS"
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h.  */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h.  */
15462
15463 /* Override any GCC internal prototype to avoid an error.
15464    Use char because int might match the return type of a GCC
15465    builtin and then its argument prototype would still apply.  */
15466 #ifdef __cplusplus
15467 extern "C"
15468 #endif
15469 char sigset ();
15470 int
15471 main ()
15472 {
15473 return sigset ();
15474   ;
15475   return 0;
15476 }
15477 _ACEOF
15478 rm -f conftest.$ac_objext conftest$ac_exeext
15479 if { (ac_try="$ac_link"
15480 case "(($ac_try" in
15481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482   *) ac_try_echo=$ac_try;;
15483 esac
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485   (eval "$ac_link") 2>conftest.er1
15486   ac_status=$?
15487   grep -v '^ *+' conftest.er1 >conftest.err
15488   rm -f conftest.er1
15489   cat conftest.err >&5
15490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15491   (exit $ac_status); } && {
15492          test -z "$ac_c_werror_flag" ||
15493          test ! -s conftest.err
15494        } && test -s conftest$ac_exeext &&
15495        $as_test_x conftest$ac_exeext; then
15496   ac_cv_lib_V3_sigset=yes
15497 else
15498   echo "$as_me: failed program was:" >&5
15499 sed 's/^/| /' conftest.$ac_ext >&5
15500
15501         ac_cv_lib_V3_sigset=no
15502 fi
15503
15504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15505       conftest$ac_exeext conftest.$ac_ext
15506 LIBS=$ac_check_lib_save_LIBS
15507 fi
15508 { echo "$as_me:$LINENO: result: $ac_cv_lib_V3_sigset" >&5
15509 echo "${ECHO_T}$ac_cv_lib_V3_sigset" >&6; }
15510 if test $ac_cv_lib_V3_sigset = yes; then
15511   cat >>confdefs.h <<_ACEOF
15512 #define HAVE_LIBV3 1
15513 _ACEOF
15514
15515   LIBS="-lV3 $LIBS"
15516
15517 fi
15518
15519 fi
15520
15521 if test $ol_cv_msvc = yes ; then
15522    ol_cv_winsock=yes
15523 fi
15524
15525 if test "$ac_cv_header_winsock_h" = yes; then
15526         { echo "$as_me:$LINENO: checking for winsock" >&5
15527 echo $ECHO_N "checking for winsock... $ECHO_C" >&6; }
15528 if test "${ol_cv_winsock+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531
15532         save_LIBS="$LIBS"
15533         for curlib in none ws2_32 wsock32; do
15534                 if test $curlib != none ; then
15535                 LIBS="$save_LIBS -l$curlib"
15536                 fi
15537                 cat >conftest.$ac_ext <<_ACEOF
15538 /* confdefs.h.  */
15539 _ACEOF
15540 cat confdefs.h >>conftest.$ac_ext
15541 cat >>conftest.$ac_ext <<_ACEOF
15542 /* end confdefs.h.  */
15543 #include <winsock.h>
15544
15545 int
15546 main ()
15547 {
15548
15549                         socket(0,0,0);
15550                         select(0,NULL,NULL,NULL,NULL);
15551                         closesocket(0);
15552                         gethostname(NULL,0);
15553
15554   ;
15555   return 0;
15556 }
15557 _ACEOF
15558 rm -f conftest.$ac_objext conftest$ac_exeext
15559 if { (ac_try="$ac_link"
15560 case "(($ac_try" in
15561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15562   *) ac_try_echo=$ac_try;;
15563 esac
15564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15565   (eval "$ac_link") 2>conftest.er1
15566   ac_status=$?
15567   grep -v '^ *+' conftest.er1 >conftest.err
15568   rm -f conftest.er1
15569   cat conftest.err >&5
15570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571   (exit $ac_status); } && {
15572          test -z "$ac_c_werror_flag" ||
15573          test ! -s conftest.err
15574        } && test -s conftest$ac_exeext &&
15575        $as_test_x conftest$ac_exeext; then
15576   ol_cv_winsock=$curlib
15577 else
15578   echo "$as_me: failed program was:" >&5
15579 sed 's/^/| /' conftest.$ac_ext >&5
15580
15581         ol_cv_winsock=no
15582 fi
15583
15584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15585       conftest$ac_exeext conftest.$ac_ext
15586
15587                 test "$ol_cv_winsock" != no && break
15588         done
15589         LIBS="$save_LIBS"
15590
15591 fi
15592 { echo "$as_me:$LINENO: result: $ol_cv_winsock" >&5
15593 echo "${ECHO_T}$ol_cv_winsock" >&6; }
15594
15595         if test $ol_cv_winsock != no ; then
15596
15597 cat >>confdefs.h <<\_ACEOF
15598 #define HAVE_WINSOCK 1
15599 _ACEOF
15600
15601         ac_cv_func_socket=yes
15602         ac_cv_func_select=yes
15603         ac_cv_func_closesocket=yes
15604         ac_cv_func_gethostname=yes
15605
15606                 if test $ol_cv_winsock != none -a $ol_cv_winsock != yes ; then
15607                 LIBS="$LIBS -l$ol_cv_winsock"
15608                 fi
15609
15610         if test $ol_cv_winsock = ws2_32 -o $ol_cv_winsock = yes ; then
15611
15612 cat >>confdefs.h <<\_ACEOF
15613 #define HAVE_WINSOCK2 1
15614 _ACEOF
15615
15616         fi
15617         fi
15618 fi
15619
15620
15621 { echo "$as_me:$LINENO: checking for socket" >&5
15622 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
15623 if test "${ac_cv_func_socket+set}" = set; then
15624   echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626   cat >conftest.$ac_ext <<_ACEOF
15627 /* confdefs.h.  */
15628 _ACEOF
15629 cat confdefs.h >>conftest.$ac_ext
15630 cat >>conftest.$ac_ext <<_ACEOF
15631 /* end confdefs.h.  */
15632 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
15633    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15634 #define socket innocuous_socket
15635
15636 /* System header to define __stub macros and hopefully few prototypes,
15637     which can conflict with char socket (); below.
15638     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15639     <limits.h> exists even on freestanding compilers.  */
15640
15641 #ifdef __STDC__
15642 # include <limits.h>
15643 #else
15644 # include <assert.h>
15645 #endif
15646
15647 #undef socket
15648
15649 /* Override any GCC internal prototype to avoid an error.
15650    Use char because int might match the return type of a GCC
15651    builtin and then its argument prototype would still apply.  */
15652 #ifdef __cplusplus
15653 extern "C"
15654 #endif
15655 char socket ();
15656 /* The GNU C library defines this for functions which it implements
15657     to always fail with ENOSYS.  Some functions are actually named
15658     something starting with __ and the normal name is an alias.  */
15659 #if defined __stub_socket || defined __stub___socket
15660 choke me
15661 #endif
15662
15663 int
15664 main ()
15665 {
15666 return socket ();
15667   ;
15668   return 0;
15669 }
15670 _ACEOF
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675   *) ac_try_echo=$ac_try;;
15676 esac
15677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15678   (eval "$ac_link") 2>conftest.er1
15679   ac_status=$?
15680   grep -v '^ *+' conftest.er1 >conftest.err
15681   rm -f conftest.er1
15682   cat conftest.err >&5
15683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15684   (exit $ac_status); } && {
15685          test -z "$ac_c_werror_flag" ||
15686          test ! -s conftest.err
15687        } && test -s conftest$ac_exeext &&
15688        $as_test_x conftest$ac_exeext; then
15689   ac_cv_func_socket=yes
15690 else
15691   echo "$as_me: failed program was:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15693
15694         ac_cv_func_socket=no
15695 fi
15696
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698       conftest$ac_exeext conftest.$ac_ext
15699 fi
15700 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
15701 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
15702 if test $ac_cv_func_socket = yes; then
15703   :
15704 else
15705
15706
15707 { echo "$as_me:$LINENO: checking for main in -lsocket" >&5
15708 echo $ECHO_N "checking for main in -lsocket... $ECHO_C" >&6; }
15709 if test "${ac_cv_lib_socket_main+set}" = set; then
15710   echo $ECHO_N "(cached) $ECHO_C" >&6
15711 else
15712   ac_check_lib_save_LIBS=$LIBS
15713 LIBS="-lsocket  $LIBS"
15714 cat >conftest.$ac_ext <<_ACEOF
15715 /* confdefs.h.  */
15716 _ACEOF
15717 cat confdefs.h >>conftest.$ac_ext
15718 cat >>conftest.$ac_ext <<_ACEOF
15719 /* end confdefs.h.  */
15720
15721
15722 int
15723 main ()
15724 {
15725 return main ();
15726   ;
15727   return 0;
15728 }
15729 _ACEOF
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734   *) ac_try_echo=$ac_try;;
15735 esac
15736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15737   (eval "$ac_link") 2>conftest.er1
15738   ac_status=$?
15739   grep -v '^ *+' conftest.er1 >conftest.err
15740   rm -f conftest.er1
15741   cat conftest.err >&5
15742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743   (exit $ac_status); } && {
15744          test -z "$ac_c_werror_flag" ||
15745          test ! -s conftest.err
15746        } && test -s conftest$ac_exeext &&
15747        $as_test_x conftest$ac_exeext; then
15748   ac_cv_lib_socket_main=yes
15749 else
15750   echo "$as_me: failed program was:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15752
15753         ac_cv_lib_socket_main=no
15754 fi
15755
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757       conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15759 fi
15760 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_main" >&5
15761 echo "${ECHO_T}$ac_cv_lib_socket_main" >&6; }
15762 if test $ac_cv_lib_socket_main = yes; then
15763   cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBSOCKET 1
15765 _ACEOF
15766
15767   LIBS="-lsocket $LIBS"
15768
15769 fi
15770
15771
15772 { echo "$as_me:$LINENO: checking for main in -lnet" >&5
15773 echo $ECHO_N "checking for main in -lnet... $ECHO_C" >&6; }
15774 if test "${ac_cv_lib_net_main+set}" = set; then
15775   echo $ECHO_N "(cached) $ECHO_C" >&6
15776 else
15777   ac_check_lib_save_LIBS=$LIBS
15778 LIBS="-lnet  $LIBS"
15779 cat >conftest.$ac_ext <<_ACEOF
15780 /* confdefs.h.  */
15781 _ACEOF
15782 cat confdefs.h >>conftest.$ac_ext
15783 cat >>conftest.$ac_ext <<_ACEOF
15784 /* end confdefs.h.  */
15785
15786
15787 int
15788 main ()
15789 {
15790 return main ();
15791   ;
15792   return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (ac_try="$ac_link"
15797 case "(($ac_try" in
15798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799   *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802   (eval "$ac_link") 2>conftest.er1
15803   ac_status=$?
15804   grep -v '^ *+' conftest.er1 >conftest.err
15805   rm -f conftest.er1
15806   cat conftest.err >&5
15807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808   (exit $ac_status); } && {
15809          test -z "$ac_c_werror_flag" ||
15810          test ! -s conftest.err
15811        } && test -s conftest$ac_exeext &&
15812        $as_test_x conftest$ac_exeext; then
15813   ac_cv_lib_net_main=yes
15814 else
15815   echo "$as_me: failed program was:" >&5
15816 sed 's/^/| /' conftest.$ac_ext >&5
15817
15818         ac_cv_lib_net_main=no
15819 fi
15820
15821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15822       conftest$ac_exeext conftest.$ac_ext
15823 LIBS=$ac_check_lib_save_LIBS
15824 fi
15825 { echo "$as_me:$LINENO: result: $ac_cv_lib_net_main" >&5
15826 echo "${ECHO_T}$ac_cv_lib_net_main" >&6; }
15827 if test $ac_cv_lib_net_main = yes; then
15828   cat >>confdefs.h <<_ACEOF
15829 #define HAVE_LIBNET 1
15830 _ACEOF
15831
15832   LIBS="-lnet $LIBS"
15833
15834 fi
15835
15836
15837 { echo "$as_me:$LINENO: checking for main in -lnsl_s" >&5
15838 echo $ECHO_N "checking for main in -lnsl_s... $ECHO_C" >&6; }
15839 if test "${ac_cv_lib_nsl_s_main+set}" = set; then
15840   echo $ECHO_N "(cached) $ECHO_C" >&6
15841 else
15842   ac_check_lib_save_LIBS=$LIBS
15843 LIBS="-lnsl_s  $LIBS"
15844 cat >conftest.$ac_ext <<_ACEOF
15845 /* confdefs.h.  */
15846 _ACEOF
15847 cat confdefs.h >>conftest.$ac_ext
15848 cat >>conftest.$ac_ext <<_ACEOF
15849 /* end confdefs.h.  */
15850
15851
15852 int
15853 main ()
15854 {
15855 return main ();
15856   ;
15857   return 0;
15858 }
15859 _ACEOF
15860 rm -f conftest.$ac_objext conftest$ac_exeext
15861 if { (ac_try="$ac_link"
15862 case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_link") 2>conftest.er1
15868   ac_status=$?
15869   grep -v '^ *+' conftest.er1 >conftest.err
15870   rm -f conftest.er1
15871   cat conftest.err >&5
15872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873   (exit $ac_status); } && {
15874          test -z "$ac_c_werror_flag" ||
15875          test ! -s conftest.err
15876        } && test -s conftest$ac_exeext &&
15877        $as_test_x conftest$ac_exeext; then
15878   ac_cv_lib_nsl_s_main=yes
15879 else
15880   echo "$as_me: failed program was:" >&5
15881 sed 's/^/| /' conftest.$ac_ext >&5
15882
15883         ac_cv_lib_nsl_s_main=no
15884 fi
15885
15886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15887       conftest$ac_exeext conftest.$ac_ext
15888 LIBS=$ac_check_lib_save_LIBS
15889 fi
15890 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_s_main" >&5
15891 echo "${ECHO_T}$ac_cv_lib_nsl_s_main" >&6; }
15892 if test $ac_cv_lib_nsl_s_main = yes; then
15893   cat >>confdefs.h <<_ACEOF
15894 #define HAVE_LIBNSL_S 1
15895 _ACEOF
15896
15897   LIBS="-lnsl_s $LIBS"
15898
15899 fi
15900
15901
15902 { echo "$as_me:$LINENO: checking for main in -lnsl" >&5
15903 echo $ECHO_N "checking for main in -lnsl... $ECHO_C" >&6; }
15904 if test "${ac_cv_lib_nsl_main+set}" = set; then
15905   echo $ECHO_N "(cached) $ECHO_C" >&6
15906 else
15907   ac_check_lib_save_LIBS=$LIBS
15908 LIBS="-lnsl  $LIBS"
15909 cat >conftest.$ac_ext <<_ACEOF
15910 /* confdefs.h.  */
15911 _ACEOF
15912 cat confdefs.h >>conftest.$ac_ext
15913 cat >>conftest.$ac_ext <<_ACEOF
15914 /* end confdefs.h.  */
15915
15916
15917 int
15918 main ()
15919 {
15920 return main ();
15921   ;
15922   return 0;
15923 }
15924 _ACEOF
15925 rm -f conftest.$ac_objext conftest$ac_exeext
15926 if { (ac_try="$ac_link"
15927 case "(($ac_try" in
15928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929   *) ac_try_echo=$ac_try;;
15930 esac
15931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15932   (eval "$ac_link") 2>conftest.er1
15933   ac_status=$?
15934   grep -v '^ *+' conftest.er1 >conftest.err
15935   rm -f conftest.er1
15936   cat conftest.err >&5
15937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15938   (exit $ac_status); } && {
15939          test -z "$ac_c_werror_flag" ||
15940          test ! -s conftest.err
15941        } && test -s conftest$ac_exeext &&
15942        $as_test_x conftest$ac_exeext; then
15943   ac_cv_lib_nsl_main=yes
15944 else
15945   echo "$as_me: failed program was:" >&5
15946 sed 's/^/| /' conftest.$ac_ext >&5
15947
15948         ac_cv_lib_nsl_main=no
15949 fi
15950
15951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15952       conftest$ac_exeext conftest.$ac_ext
15953 LIBS=$ac_check_lib_save_LIBS
15954 fi
15955 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_main" >&5
15956 echo "${ECHO_T}$ac_cv_lib_nsl_main" >&6; }
15957 if test $ac_cv_lib_nsl_main = yes; then
15958   cat >>confdefs.h <<_ACEOF
15959 #define HAVE_LIBNSL 1
15960 _ACEOF
15961
15962   LIBS="-lnsl $LIBS"
15963
15964 fi
15965
15966
15967 { echo "$as_me:$LINENO: checking for socket in -linet" >&5
15968 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
15969 if test "${ac_cv_lib_inet_socket+set}" = set; then
15970   echo $ECHO_N "(cached) $ECHO_C" >&6
15971 else
15972   ac_check_lib_save_LIBS=$LIBS
15973 LIBS="-linet  $LIBS"
15974 cat >conftest.$ac_ext <<_ACEOF
15975 /* confdefs.h.  */
15976 _ACEOF
15977 cat confdefs.h >>conftest.$ac_ext
15978 cat >>conftest.$ac_ext <<_ACEOF
15979 /* end confdefs.h.  */
15980
15981 /* Override any GCC internal prototype to avoid an error.
15982    Use char because int might match the return type of a GCC
15983    builtin and then its argument prototype would still apply.  */
15984 #ifdef __cplusplus
15985 extern "C"
15986 #endif
15987 char socket ();
15988 int
15989 main ()
15990 {
15991 return socket ();
15992   ;
15993   return 0;
15994 }
15995 _ACEOF
15996 rm -f conftest.$ac_objext conftest$ac_exeext
15997 if { (ac_try="$ac_link"
15998 case "(($ac_try" in
15999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16000   *) ac_try_echo=$ac_try;;
16001 esac
16002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16003   (eval "$ac_link") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } && {
16010          test -z "$ac_c_werror_flag" ||
16011          test ! -s conftest.err
16012        } && test -s conftest$ac_exeext &&
16013        $as_test_x conftest$ac_exeext; then
16014   ac_cv_lib_inet_socket=yes
16015 else
16016   echo "$as_me: failed program was:" >&5
16017 sed 's/^/| /' conftest.$ac_ext >&5
16018
16019         ac_cv_lib_inet_socket=no
16020 fi
16021
16022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16023       conftest$ac_exeext conftest.$ac_ext
16024 LIBS=$ac_check_lib_save_LIBS
16025 fi
16026 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
16027 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
16028 if test $ac_cv_lib_inet_socket = yes; then
16029   cat >>confdefs.h <<_ACEOF
16030 #define HAVE_LIBINET 1
16031 _ACEOF
16032
16033   LIBS="-linet $LIBS"
16034
16035 fi
16036
16037
16038 { echo "$as_me:$LINENO: checking for main in -lgen" >&5
16039 echo $ECHO_N "checking for main in -lgen... $ECHO_C" >&6; }
16040 if test "${ac_cv_lib_gen_main+set}" = set; then
16041   echo $ECHO_N "(cached) $ECHO_C" >&6
16042 else
16043   ac_check_lib_save_LIBS=$LIBS
16044 LIBS="-lgen  $LIBS"
16045 cat >conftest.$ac_ext <<_ACEOF
16046 /* confdefs.h.  */
16047 _ACEOF
16048 cat confdefs.h >>conftest.$ac_ext
16049 cat >>conftest.$ac_ext <<_ACEOF
16050 /* end confdefs.h.  */
16051
16052
16053 int
16054 main ()
16055 {
16056 return main ();
16057   ;
16058   return 0;
16059 }
16060 _ACEOF
16061 rm -f conftest.$ac_objext conftest$ac_exeext
16062 if { (ac_try="$ac_link"
16063 case "(($ac_try" in
16064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16065   *) ac_try_echo=$ac_try;;
16066 esac
16067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16068   (eval "$ac_link") 2>conftest.er1
16069   ac_status=$?
16070   grep -v '^ *+' conftest.er1 >conftest.err
16071   rm -f conftest.er1
16072   cat conftest.err >&5
16073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16074   (exit $ac_status); } && {
16075          test -z "$ac_c_werror_flag" ||
16076          test ! -s conftest.err
16077        } && test -s conftest$ac_exeext &&
16078        $as_test_x conftest$ac_exeext; then
16079   ac_cv_lib_gen_main=yes
16080 else
16081   echo "$as_me: failed program was:" >&5
16082 sed 's/^/| /' conftest.$ac_ext >&5
16083
16084         ac_cv_lib_gen_main=no
16085 fi
16086
16087 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16088       conftest$ac_exeext conftest.$ac_ext
16089 LIBS=$ac_check_lib_save_LIBS
16090 fi
16091 { echo "$as_me:$LINENO: result: $ac_cv_lib_gen_main" >&5
16092 echo "${ECHO_T}$ac_cv_lib_gen_main" >&6; }
16093 if test $ac_cv_lib_gen_main = yes; then
16094   cat >>confdefs.h <<_ACEOF
16095 #define HAVE_LIBGEN 1
16096 _ACEOF
16097
16098   LIBS="-lgen $LIBS"
16099
16100 fi
16101
16102
16103 fi
16104
16105
16106 { echo "$as_me:$LINENO: checking for select" >&5
16107 echo $ECHO_N "checking for select... $ECHO_C" >&6; }
16108 if test "${ac_cv_func_select+set}" = set; then
16109   echo $ECHO_N "(cached) $ECHO_C" >&6
16110 else
16111   cat >conftest.$ac_ext <<_ACEOF
16112 /* confdefs.h.  */
16113 _ACEOF
16114 cat confdefs.h >>conftest.$ac_ext
16115 cat >>conftest.$ac_ext <<_ACEOF
16116 /* end confdefs.h.  */
16117 /* Define select to an innocuous variant, in case <limits.h> declares select.
16118    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16119 #define select innocuous_select
16120
16121 /* System header to define __stub macros and hopefully few prototypes,
16122     which can conflict with char select (); below.
16123     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16124     <limits.h> exists even on freestanding compilers.  */
16125
16126 #ifdef __STDC__
16127 # include <limits.h>
16128 #else
16129 # include <assert.h>
16130 #endif
16131
16132 #undef select
16133
16134 /* Override any GCC internal prototype to avoid an error.
16135    Use char because int might match the return type of a GCC
16136    builtin and then its argument prototype would still apply.  */
16137 #ifdef __cplusplus
16138 extern "C"
16139 #endif
16140 char select ();
16141 /* The GNU C library defines this for functions which it implements
16142     to always fail with ENOSYS.  Some functions are actually named
16143     something starting with __ and the normal name is an alias.  */
16144 #if defined __stub_select || defined __stub___select
16145 choke me
16146 #endif
16147
16148 int
16149 main ()
16150 {
16151 return select ();
16152   ;
16153   return 0;
16154 }
16155 _ACEOF
16156 rm -f conftest.$ac_objext conftest$ac_exeext
16157 if { (ac_try="$ac_link"
16158 case "(($ac_try" in
16159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16160   *) ac_try_echo=$ac_try;;
16161 esac
16162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16163   (eval "$ac_link") 2>conftest.er1
16164   ac_status=$?
16165   grep -v '^ *+' conftest.er1 >conftest.err
16166   rm -f conftest.er1
16167   cat conftest.err >&5
16168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169   (exit $ac_status); } && {
16170          test -z "$ac_c_werror_flag" ||
16171          test ! -s conftest.err
16172        } && test -s conftest$ac_exeext &&
16173        $as_test_x conftest$ac_exeext; then
16174   ac_cv_func_select=yes
16175 else
16176   echo "$as_me: failed program was:" >&5
16177 sed 's/^/| /' conftest.$ac_ext >&5
16178
16179         ac_cv_func_select=no
16180 fi
16181
16182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16183       conftest$ac_exeext conftest.$ac_ext
16184 fi
16185 { echo "$as_me:$LINENO: result: $ac_cv_func_select" >&5
16186 echo "${ECHO_T}$ac_cv_func_select" >&6; }
16187 if test $ac_cv_func_select = yes; then
16188   :
16189 else
16190   { { echo "$as_me:$LINENO: error: select() required." >&5
16191 echo "$as_me: error: select() required." >&2;}
16192    { (exit 1); exit 1; }; }
16193 fi
16194
16195
16196 if test "${ac_cv_header_winsock_h}" != yes; then
16197
16198
16199 for ac_header in sys/select.h sys/socket.h
16200 do
16201 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16204 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16206   echo $ECHO_N "(cached) $ECHO_C" >&6
16207 fi
16208 ac_res=`eval echo '${'$as_ac_Header'}'`
16209                { echo "$as_me:$LINENO: result: $ac_res" >&5
16210 echo "${ECHO_T}$ac_res" >&6; }
16211 else
16212   # Is the header compilable?
16213 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16214 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16215 cat >conftest.$ac_ext <<_ACEOF
16216 /* confdefs.h.  */
16217 _ACEOF
16218 cat confdefs.h >>conftest.$ac_ext
16219 cat >>conftest.$ac_ext <<_ACEOF
16220 /* end confdefs.h.  */
16221 $ac_includes_default
16222 #include <$ac_header>
16223 _ACEOF
16224 rm -f conftest.$ac_objext
16225 if { (ac_try="$ac_compile"
16226 case "(($ac_try" in
16227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16228   *) ac_try_echo=$ac_try;;
16229 esac
16230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16231   (eval "$ac_compile") 2>conftest.er1
16232   ac_status=$?
16233   grep -v '^ *+' conftest.er1 >conftest.err
16234   rm -f conftest.er1
16235   cat conftest.err >&5
16236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16237   (exit $ac_status); } && {
16238          test -z "$ac_c_werror_flag" ||
16239          test ! -s conftest.err
16240        } && test -s conftest.$ac_objext; then
16241   ac_header_compiler=yes
16242 else
16243   echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16245
16246         ac_header_compiler=no
16247 fi
16248
16249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16251 echo "${ECHO_T}$ac_header_compiler" >&6; }
16252
16253 # Is the header present?
16254 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16255 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16256 cat >conftest.$ac_ext <<_ACEOF
16257 /* confdefs.h.  */
16258 _ACEOF
16259 cat confdefs.h >>conftest.$ac_ext
16260 cat >>conftest.$ac_ext <<_ACEOF
16261 /* end confdefs.h.  */
16262 #include <$ac_header>
16263 _ACEOF
16264 if { (ac_try="$ac_cpp conftest.$ac_ext"
16265 case "(($ac_try" in
16266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16267   *) ac_try_echo=$ac_try;;
16268 esac
16269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16270   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16271   ac_status=$?
16272   grep -v '^ *+' conftest.er1 >conftest.err
16273   rm -f conftest.er1
16274   cat conftest.err >&5
16275   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16276   (exit $ac_status); } >/dev/null && {
16277          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16278          test ! -s conftest.err
16279        }; then
16280   ac_header_preproc=yes
16281 else
16282   echo "$as_me: failed program was:" >&5
16283 sed 's/^/| /' conftest.$ac_ext >&5
16284
16285   ac_header_preproc=no
16286 fi
16287
16288 rm -f conftest.err conftest.$ac_ext
16289 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16290 echo "${ECHO_T}$ac_header_preproc" >&6; }
16291
16292 # So?  What about this header?
16293 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16294   yes:no: )
16295     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16296 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16297     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16298 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16299     ac_header_preproc=yes
16300     ;;
16301   no:yes:* )
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16303 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16305 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16307 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16309 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16310     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16311 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16312     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16313 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16314     ( cat <<\_ASBOX
16315 ## --------------------------------------------- ##
16316 ## Report this to <http://www.openldap.org/its/> ##
16317 ## --------------------------------------------- ##
16318 _ASBOX
16319      ) | sed "s/^/$as_me: WARNING:     /" >&2
16320     ;;
16321 esac
16322 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16323 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16324 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16325   echo $ECHO_N "(cached) $ECHO_C" >&6
16326 else
16327   eval "$as_ac_Header=\$ac_header_preproc"
16328 fi
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330                { echo "$as_me:$LINENO: result: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16332
16333 fi
16334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16335   cat >>confdefs.h <<_ACEOF
16336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16337 _ACEOF
16338
16339 fi
16340
16341 done
16342
16343 { echo "$as_me:$LINENO: checking types of arguments for select" >&5
16344 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; }
16345 if test "${ac_cv_func_select_args+set}" = set; then
16346   echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348   for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
16349  for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
16350   for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
16351    cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h.  */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h.  */
16357 $ac_includes_default
16358 #ifdef HAVE_SYS_SELECT_H
16359 # include <sys/select.h>
16360 #endif
16361 #ifdef HAVE_SYS_SOCKET_H
16362 # include <sys/socket.h>
16363 #endif
16364
16365 int
16366 main ()
16367 {
16368 extern int select ($ac_arg1,
16369                                             $ac_arg234, $ac_arg234, $ac_arg234,
16370                                             $ac_arg5);
16371   ;
16372   return 0;
16373 }
16374 _ACEOF
16375 rm -f conftest.$ac_objext
16376 if { (ac_try="$ac_compile"
16377 case "(($ac_try" in
16378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379   *) ac_try_echo=$ac_try;;
16380 esac
16381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16382   (eval "$ac_compile") 2>conftest.er1
16383   ac_status=$?
16384   grep -v '^ *+' conftest.er1 >conftest.err
16385   rm -f conftest.er1
16386   cat conftest.err >&5
16387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16388   (exit $ac_status); } && {
16389          test -z "$ac_c_werror_flag" ||
16390          test ! -s conftest.err
16391        } && test -s conftest.$ac_objext; then
16392   ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
16393 else
16394   echo "$as_me: failed program was:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16396
16397
16398 fi
16399
16400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16401   done
16402  done
16403 done
16404 # Provide a safe default value.
16405 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
16406
16407 fi
16408 { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
16409 echo "${ECHO_T}$ac_cv_func_select_args" >&6; }
16410 ac_save_IFS=$IFS; IFS=','
16411 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
16412 IFS=$ac_save_IFS
16413 shift
16414
16415 cat >>confdefs.h <<_ACEOF
16416 #define SELECT_TYPE_ARG1 $1
16417 _ACEOF
16418
16419
16420 cat >>confdefs.h <<_ACEOF
16421 #define SELECT_TYPE_ARG234 ($2)
16422 _ACEOF
16423
16424
16425 cat >>confdefs.h <<_ACEOF
16426 #define SELECT_TYPE_ARG5 ($3)
16427 _ACEOF
16428
16429 rm -f conftest*
16430
16431 fi
16432
16433
16434
16435 for ac_func in poll
16436 do
16437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16441   echo $ECHO_N "(cached) $ECHO_C" >&6
16442 else
16443   cat >conftest.$ac_ext <<_ACEOF
16444 /* confdefs.h.  */
16445 _ACEOF
16446 cat confdefs.h >>conftest.$ac_ext
16447 cat >>conftest.$ac_ext <<_ACEOF
16448 /* end confdefs.h.  */
16449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16450    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16451 #define $ac_func innocuous_$ac_func
16452
16453 /* System header to define __stub macros and hopefully few prototypes,
16454     which can conflict with char $ac_func (); below.
16455     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16456     <limits.h> exists even on freestanding compilers.  */
16457
16458 #ifdef __STDC__
16459 # include <limits.h>
16460 #else
16461 # include <assert.h>
16462 #endif
16463
16464 #undef $ac_func
16465
16466 /* Override any GCC internal prototype to avoid an error.
16467    Use char because int might match the return type of a GCC
16468    builtin and then its argument prototype would still apply.  */
16469 #ifdef __cplusplus
16470 extern "C"
16471 #endif
16472 char $ac_func ();
16473 /* The GNU C library defines this for functions which it implements
16474     to always fail with ENOSYS.  Some functions are actually named
16475     something starting with __ and the normal name is an alias.  */
16476 #if defined __stub_$ac_func || defined __stub___$ac_func
16477 choke me
16478 #endif
16479
16480 int
16481 main ()
16482 {
16483 return $ac_func ();
16484   ;
16485   return 0;
16486 }
16487 _ACEOF
16488 rm -f conftest.$ac_objext conftest$ac_exeext
16489 if { (ac_try="$ac_link"
16490 case "(($ac_try" in
16491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16492   *) ac_try_echo=$ac_try;;
16493 esac
16494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16495   (eval "$ac_link") 2>conftest.er1
16496   ac_status=$?
16497   grep -v '^ *+' conftest.er1 >conftest.err
16498   rm -f conftest.er1
16499   cat conftest.err >&5
16500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16501   (exit $ac_status); } && {
16502          test -z "$ac_c_werror_flag" ||
16503          test ! -s conftest.err
16504        } && test -s conftest$ac_exeext &&
16505        $as_test_x conftest$ac_exeext; then
16506   eval "$as_ac_var=yes"
16507 else
16508   echo "$as_me: failed program was:" >&5
16509 sed 's/^/| /' conftest.$ac_ext >&5
16510
16511         eval "$as_ac_var=no"
16512 fi
16513
16514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16515       conftest$ac_exeext conftest.$ac_ext
16516 fi
16517 ac_res=`eval echo '${'$as_ac_var'}'`
16518                { echo "$as_me:$LINENO: result: $ac_res" >&5
16519 echo "${ECHO_T}$ac_res" >&6; }
16520 if test `eval echo '${'$as_ac_var'}'` = yes; then
16521   cat >>confdefs.h <<_ACEOF
16522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16523 _ACEOF
16524
16525 fi
16526 done
16527
16528 if test $ac_cv_func_poll = yes; then
16529
16530
16531 for ac_header in poll.h sys/poll.h
16532 do
16533 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16534 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16535   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16536 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16537 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16538   echo $ECHO_N "(cached) $ECHO_C" >&6
16539 fi
16540 ac_res=`eval echo '${'$as_ac_Header'}'`
16541                { echo "$as_me:$LINENO: result: $ac_res" >&5
16542 echo "${ECHO_T}$ac_res" >&6; }
16543 else
16544   # Is the header compilable?
16545 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16546 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16547 cat >conftest.$ac_ext <<_ACEOF
16548 /* confdefs.h.  */
16549 _ACEOF
16550 cat confdefs.h >>conftest.$ac_ext
16551 cat >>conftest.$ac_ext <<_ACEOF
16552 /* end confdefs.h.  */
16553 $ac_includes_default
16554 #include <$ac_header>
16555 _ACEOF
16556 rm -f conftest.$ac_objext
16557 if { (ac_try="$ac_compile"
16558 case "(($ac_try" in
16559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16560   *) ac_try_echo=$ac_try;;
16561 esac
16562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16563   (eval "$ac_compile") 2>conftest.er1
16564   ac_status=$?
16565   grep -v '^ *+' conftest.er1 >conftest.err
16566   rm -f conftest.er1
16567   cat conftest.err >&5
16568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569   (exit $ac_status); } && {
16570          test -z "$ac_c_werror_flag" ||
16571          test ! -s conftest.err
16572        } && test -s conftest.$ac_objext; then
16573   ac_header_compiler=yes
16574 else
16575   echo "$as_me: failed program was:" >&5
16576 sed 's/^/| /' conftest.$ac_ext >&5
16577
16578         ac_header_compiler=no
16579 fi
16580
16581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16582 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16583 echo "${ECHO_T}$ac_header_compiler" >&6; }
16584
16585 # Is the header present?
16586 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16587 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h.  */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h.  */
16594 #include <$ac_header>
16595 _ACEOF
16596 if { (ac_try="$ac_cpp conftest.$ac_ext"
16597 case "(($ac_try" in
16598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16599   *) ac_try_echo=$ac_try;;
16600 esac
16601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16602   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16603   ac_status=$?
16604   grep -v '^ *+' conftest.er1 >conftest.err
16605   rm -f conftest.er1
16606   cat conftest.err >&5
16607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16608   (exit $ac_status); } >/dev/null && {
16609          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16610          test ! -s conftest.err
16611        }; then
16612   ac_header_preproc=yes
16613 else
16614   echo "$as_me: failed program was:" >&5
16615 sed 's/^/| /' conftest.$ac_ext >&5
16616
16617   ac_header_preproc=no
16618 fi
16619
16620 rm -f conftest.err conftest.$ac_ext
16621 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16622 echo "${ECHO_T}$ac_header_preproc" >&6; }
16623
16624 # So?  What about this header?
16625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16626   yes:no: )
16627     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16628 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16629     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16630 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16631     ac_header_preproc=yes
16632     ;;
16633   no:yes:* )
16634     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16635 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16636     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16637 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16638     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16639 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16640     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16641 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16642     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16643 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16644     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16645 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16646     ( cat <<\_ASBOX
16647 ## --------------------------------------------- ##
16648 ## Report this to <http://www.openldap.org/its/> ##
16649 ## --------------------------------------------- ##
16650 _ASBOX
16651      ) | sed "s/^/$as_me: WARNING:     /" >&2
16652     ;;
16653 esac
16654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16657   echo $ECHO_N "(cached) $ECHO_C" >&6
16658 else
16659   eval "$as_ac_Header=\$ac_header_preproc"
16660 fi
16661 ac_res=`eval echo '${'$as_ac_Header'}'`
16662                { echo "$as_me:$LINENO: result: $ac_res" >&5
16663 echo "${ECHO_T}$ac_res" >&6; }
16664
16665 fi
16666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16667   cat >>confdefs.h <<_ACEOF
16668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16669 _ACEOF
16670
16671 fi
16672
16673 done
16674
16675 fi
16676
16677
16678 for ac_header in sys/epoll.h
16679 do
16680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16682   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685   echo $ECHO_N "(cached) $ECHO_C" >&6
16686 fi
16687 ac_res=`eval echo '${'$as_ac_Header'}'`
16688                { echo "$as_me:$LINENO: result: $ac_res" >&5
16689 echo "${ECHO_T}$ac_res" >&6; }
16690 else
16691   # Is the header compilable?
16692 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16693 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h.  */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h.  */
16700 $ac_includes_default
16701 #include <$ac_header>
16702 _ACEOF
16703 rm -f conftest.$ac_objext
16704 if { (ac_try="$ac_compile"
16705 case "(($ac_try" in
16706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16707   *) ac_try_echo=$ac_try;;
16708 esac
16709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16710   (eval "$ac_compile") 2>conftest.er1
16711   ac_status=$?
16712   grep -v '^ *+' conftest.er1 >conftest.err
16713   rm -f conftest.er1
16714   cat conftest.err >&5
16715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16716   (exit $ac_status); } && {
16717          test -z "$ac_c_werror_flag" ||
16718          test ! -s conftest.err
16719        } && test -s conftest.$ac_objext; then
16720   ac_header_compiler=yes
16721 else
16722   echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16724
16725         ac_header_compiler=no
16726 fi
16727
16728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16730 echo "${ECHO_T}$ac_header_compiler" >&6; }
16731
16732 # Is the header present?
16733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16735 cat >conftest.$ac_ext <<_ACEOF
16736 /* confdefs.h.  */
16737 _ACEOF
16738 cat confdefs.h >>conftest.$ac_ext
16739 cat >>conftest.$ac_ext <<_ACEOF
16740 /* end confdefs.h.  */
16741 #include <$ac_header>
16742 _ACEOF
16743 if { (ac_try="$ac_cpp conftest.$ac_ext"
16744 case "(($ac_try" in
16745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16746   *) ac_try_echo=$ac_try;;
16747 esac
16748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16750   ac_status=$?
16751   grep -v '^ *+' conftest.er1 >conftest.err
16752   rm -f conftest.er1
16753   cat conftest.err >&5
16754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755   (exit $ac_status); } >/dev/null && {
16756          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16757          test ! -s conftest.err
16758        }; then
16759   ac_header_preproc=yes
16760 else
16761   echo "$as_me: failed program was:" >&5
16762 sed 's/^/| /' conftest.$ac_ext >&5
16763
16764   ac_header_preproc=no
16765 fi
16766
16767 rm -f conftest.err conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6; }
16770
16771 # So?  What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16773   yes:no: )
16774     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16778     ac_header_preproc=yes
16779     ;;
16780   no:yes:* )
16781     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16783     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16785     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16787     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16789     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16793     ( cat <<\_ASBOX
16794 ## --------------------------------------------- ##
16795 ## Report this to <http://www.openldap.org/its/> ##
16796 ## --------------------------------------------- ##
16797 _ASBOX
16798      ) | sed "s/^/$as_me: WARNING:     /" >&2
16799     ;;
16800 esac
16801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16804   echo $ECHO_N "(cached) $ECHO_C" >&6
16805 else
16806   eval "$as_ac_Header=\$ac_header_preproc"
16807 fi
16808 ac_res=`eval echo '${'$as_ac_Header'}'`
16809                { echo "$as_me:$LINENO: result: $ac_res" >&5
16810 echo "${ECHO_T}$ac_res" >&6; }
16811
16812 fi
16813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16814   cat >>confdefs.h <<_ACEOF
16815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16816 _ACEOF
16817
16818 fi
16819
16820 done
16821
16822 if test "${ac_cv_header_sys_epoll_h}" = yes; then
16823         { echo "$as_me:$LINENO: checking for epoll system call" >&5
16824 echo $ECHO_N "checking for epoll system call... $ECHO_C" >&6; }
16825         if test "$cross_compiling" = yes; then
16826   { echo "$as_me:$LINENO: result: no" >&5
16827 echo "${ECHO_T}no" >&6; }
16828 else
16829   cat >conftest.$ac_ext <<_ACEOF
16830 /* confdefs.h.  */
16831 _ACEOF
16832 cat confdefs.h >>conftest.$ac_ext
16833 cat >>conftest.$ac_ext <<_ACEOF
16834 /* end confdefs.h.  */
16835 int main(int argc, char **argv)
16836 {
16837         int epfd = epoll_create(256);
16838         exit (epfd == -1 ? 1 : 0);
16839 }
16840 _ACEOF
16841 rm -f conftest$ac_exeext
16842 if { (ac_try="$ac_link"
16843 case "(($ac_try" in
16844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16845   *) ac_try_echo=$ac_try;;
16846 esac
16847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16848   (eval "$ac_link") 2>&5
16849   ac_status=$?
16850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16851   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16852   { (case "(($ac_try" in
16853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854   *) ac_try_echo=$ac_try;;
16855 esac
16856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16857   (eval "$ac_try") 2>&5
16858   ac_status=$?
16859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16860   (exit $ac_status); }; }; then
16861   { echo "$as_me:$LINENO: result: yes" >&5
16862 echo "${ECHO_T}yes" >&6; }
16863
16864 cat >>confdefs.h <<\_ACEOF
16865 #define HAVE_EPOLL 1
16866 _ACEOF
16867
16868 else
16869   echo "$as_me: program exited with status $ac_status" >&5
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16872
16873 ( exit $ac_status )
16874 { echo "$as_me:$LINENO: result: no" >&5
16875 echo "${ECHO_T}no" >&6; }
16876 fi
16877 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16878 fi
16879
16880
16881 fi
16882
16883
16884 for ac_header in sys/devpoll.h
16885 do
16886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16888   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16891   echo $ECHO_N "(cached) $ECHO_C" >&6
16892 fi
16893 ac_res=`eval echo '${'$as_ac_Header'}'`
16894                { echo "$as_me:$LINENO: result: $ac_res" >&5
16895 echo "${ECHO_T}$ac_res" >&6; }
16896 else
16897   # Is the header compilable?
16898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h.  */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h.  */
16906 $ac_includes_default
16907 #include <$ac_header>
16908 _ACEOF
16909 rm -f conftest.$ac_objext
16910 if { (ac_try="$ac_compile"
16911 case "(($ac_try" in
16912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16913   *) ac_try_echo=$ac_try;;
16914 esac
16915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16916   (eval "$ac_compile") 2>conftest.er1
16917   ac_status=$?
16918   grep -v '^ *+' conftest.er1 >conftest.err
16919   rm -f conftest.er1
16920   cat conftest.err >&5
16921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922   (exit $ac_status); } && {
16923          test -z "$ac_c_werror_flag" ||
16924          test ! -s conftest.err
16925        } && test -s conftest.$ac_objext; then
16926   ac_header_compiler=yes
16927 else
16928   echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931         ac_header_compiler=no
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16936 echo "${ECHO_T}$ac_header_compiler" >&6; }
16937
16938 # Is the header present?
16939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947 #include <$ac_header>
16948 _ACEOF
16949 if { (ac_try="$ac_cpp conftest.$ac_ext"
16950 case "(($ac_try" in
16951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952   *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16956   ac_status=$?
16957   grep -v '^ *+' conftest.er1 >conftest.err
16958   rm -f conftest.er1
16959   cat conftest.err >&5
16960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961   (exit $ac_status); } >/dev/null && {
16962          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16963          test ! -s conftest.err
16964        }; then
16965   ac_header_preproc=yes
16966 else
16967   echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970   ac_header_preproc=no
16971 fi
16972
16973 rm -f conftest.err conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16975 echo "${ECHO_T}$ac_header_preproc" >&6; }
16976
16977 # So?  What about this header?
16978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16979   yes:no: )
16980     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16984     ac_header_preproc=yes
16985     ;;
16986   no:yes:* )
16987     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16989     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16990 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16991     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16993     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16994 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16995     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16997     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16999     ( cat <<\_ASBOX
17000 ## --------------------------------------------- ##
17001 ## Report this to <http://www.openldap.org/its/> ##
17002 ## --------------------------------------------- ##
17003 _ASBOX
17004      ) | sed "s/^/$as_me: WARNING:     /" >&2
17005     ;;
17006 esac
17007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17010   echo $ECHO_N "(cached) $ECHO_C" >&6
17011 else
17012   eval "$as_ac_Header=\$ac_header_preproc"
17013 fi
17014 ac_res=`eval echo '${'$as_ac_Header'}'`
17015                { echo "$as_me:$LINENO: result: $ac_res" >&5
17016 echo "${ECHO_T}$ac_res" >&6; }
17017
17018 fi
17019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17020   cat >>confdefs.h <<_ACEOF
17021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17022 _ACEOF
17023
17024 fi
17025
17026 done
17027
17028 if test "${ac_cv_header_sys_devpoll_h}" = yes \
17029                 -a "${ac_cv_header_poll_h}" = yes ; \
17030 then
17031         { echo "$as_me:$LINENO: checking for /dev/poll" >&5
17032 echo $ECHO_N "checking for /dev/poll... $ECHO_C" >&6; }
17033         if test "$cross_compiling" = yes; then
17034   { echo "$as_me:$LINENO: result: no" >&5
17035 echo "${ECHO_T}no" >&6; }
17036 else
17037   cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h.  */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
17042 /* end confdefs.h.  */
17043 int main(int argc, char **argv)
17044 {
17045         int devpollfd = open("/dev/poll", /* O_RDWR */ 2);
17046         exit (devpollfd == -1 ? 1 : 0);
17047 }
17048 _ACEOF
17049 rm -f conftest$ac_exeext
17050 if { (ac_try="$ac_link"
17051 case "(($ac_try" in
17052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17053   *) ac_try_echo=$ac_try;;
17054 esac
17055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17056   (eval "$ac_link") 2>&5
17057   ac_status=$?
17058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17059   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17060   { (case "(($ac_try" in
17061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062   *) ac_try_echo=$ac_try;;
17063 esac
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065   (eval "$ac_try") 2>&5
17066   ac_status=$?
17067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068   (exit $ac_status); }; }; then
17069   { echo "$as_me:$LINENO: result: yes" >&5
17070 echo "${ECHO_T}yes" >&6; }
17071
17072 cat >>confdefs.h <<\_ACEOF
17073 #define HAVE_DEVPOLL 1
17074 _ACEOF
17075
17076 else
17077   echo "$as_me: program exited with status $ac_status" >&5
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17080
17081 ( exit $ac_status )
17082 { echo "$as_me:$LINENO: result: no" >&5
17083 echo "${ECHO_T}no" >&6; }
17084 fi
17085 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17086 fi
17087
17088
17089 fi
17090
17091 { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17092 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17093 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17094   echo $ECHO_N "(cached) $ECHO_C" >&6
17095 else
17096
17097         cat >conftest.$ac_ext <<_ACEOF
17098 /* confdefs.h.  */
17099 _ACEOF
17100 cat confdefs.h >>conftest.$ac_ext
17101 cat >>conftest.$ac_ext <<_ACEOF
17102 /* end confdefs.h.  */
17103
17104 #include <stdio.h>
17105 #include <sys/types.h>
17106 #include <errno.h>
17107 #ifdef _WIN32
17108 #include <stdlib.h>
17109 #endif
17110 int
17111 main ()
17112 {
17113 char *c = (char *) *sys_errlist
17114   ;
17115   return 0;
17116 }
17117 _ACEOF
17118 rm -f conftest.$ac_objext
17119 if { (ac_try="$ac_compile"
17120 case "(($ac_try" in
17121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122   *) ac_try_echo=$ac_try;;
17123 esac
17124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17125   (eval "$ac_compile") 2>conftest.er1
17126   ac_status=$?
17127   grep -v '^ *+' conftest.er1 >conftest.err
17128   rm -f conftest.er1
17129   cat conftest.err >&5
17130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17131   (exit $ac_status); } && {
17132          test -z "$ac_c_werror_flag" ||
17133          test ! -s conftest.err
17134        } && test -s conftest.$ac_objext; then
17135   ol_cv_dcl_sys_errlist=yes
17136         ol_cv_have_sys_errlist=yes
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141         ol_cv_dcl_sys_errlist=no
17142 fi
17143
17144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17145 fi
17146 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17147 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17148 #
17149 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17150 if test $ol_cv_dcl_sys_errlist = no ; then
17151
17152 cat >>confdefs.h <<\_ACEOF
17153 #define DECL_SYS_ERRLIST 1
17154 _ACEOF
17155
17156
17157         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17158 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17159 if test "${ol_cv_have_sys_errlist+set}" = set; then
17160   echo $ECHO_N "(cached) $ECHO_C" >&6
17161 else
17162
17163                 cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169 #include <errno.h>
17170 int
17171 main ()
17172 {
17173 char *c = (char *) *sys_errlist
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.$ac_objext conftest$ac_exeext
17179 if { (ac_try="$ac_link"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_link") 2>conftest.er1
17186   ac_status=$?
17187   grep -v '^ *+' conftest.er1 >conftest.err
17188   rm -f conftest.er1
17189   cat conftest.err >&5
17190   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191   (exit $ac_status); } && {
17192          test -z "$ac_c_werror_flag" ||
17193          test ! -s conftest.err
17194        } && test -s conftest$ac_exeext &&
17195        $as_test_x conftest$ac_exeext; then
17196   ol_cv_have_sys_errlist=yes
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201         ol_cv_have_sys_errlist=no
17202 fi
17203
17204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17205       conftest$ac_exeext conftest.$ac_ext
17206 fi
17207 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17208 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17209 fi
17210 if test $ol_cv_have_sys_errlist = yes ; then
17211
17212 cat >>confdefs.h <<\_ACEOF
17213 #define HAVE_SYS_ERRLIST 1
17214 _ACEOF
17215
17216 fi
17217
17218
17219 for ac_func in strerror strerror_r
17220 do
17221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17225   echo $ECHO_N "(cached) $ECHO_C" >&6
17226 else
17227   cat >conftest.$ac_ext <<_ACEOF
17228 /* confdefs.h.  */
17229 _ACEOF
17230 cat confdefs.h >>conftest.$ac_ext
17231 cat >>conftest.$ac_ext <<_ACEOF
17232 /* end confdefs.h.  */
17233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17234    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17235 #define $ac_func innocuous_$ac_func
17236
17237 /* System header to define __stub macros and hopefully few prototypes,
17238     which can conflict with char $ac_func (); below.
17239     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17240     <limits.h> exists even on freestanding compilers.  */
17241
17242 #ifdef __STDC__
17243 # include <limits.h>
17244 #else
17245 # include <assert.h>
17246 #endif
17247
17248 #undef $ac_func
17249
17250 /* Override any GCC internal prototype to avoid an error.
17251    Use char because int might match the return type of a GCC
17252    builtin and then its argument prototype would still apply.  */
17253 #ifdef __cplusplus
17254 extern "C"
17255 #endif
17256 char $ac_func ();
17257 /* The GNU C library defines this for functions which it implements
17258     to always fail with ENOSYS.  Some functions are actually named
17259     something starting with __ and the normal name is an alias.  */
17260 #if defined __stub_$ac_func || defined __stub___$ac_func
17261 choke me
17262 #endif
17263
17264 int
17265 main ()
17266 {
17267 return $ac_func ();
17268   ;
17269   return 0;
17270 }
17271 _ACEOF
17272 rm -f conftest.$ac_objext conftest$ac_exeext
17273 if { (ac_try="$ac_link"
17274 case "(($ac_try" in
17275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17276   *) ac_try_echo=$ac_try;;
17277 esac
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279   (eval "$ac_link") 2>conftest.er1
17280   ac_status=$?
17281   grep -v '^ *+' conftest.er1 >conftest.err
17282   rm -f conftest.er1
17283   cat conftest.err >&5
17284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285   (exit $ac_status); } && {
17286          test -z "$ac_c_werror_flag" ||
17287          test ! -s conftest.err
17288        } && test -s conftest$ac_exeext &&
17289        $as_test_x conftest$ac_exeext; then
17290   eval "$as_ac_var=yes"
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         eval "$as_ac_var=no"
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17299       conftest$ac_exeext conftest.$ac_ext
17300 fi
17301 ac_res=`eval echo '${'$as_ac_var'}'`
17302                { echo "$as_me:$LINENO: result: $ac_res" >&5
17303 echo "${ECHO_T}$ac_res" >&6; }
17304 if test `eval echo '${'$as_ac_var'}'` = yes; then
17305   cat >>confdefs.h <<_ACEOF
17306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17307 _ACEOF
17308
17309 fi
17310 done
17311
17312 ol_cv_func_strerror_r=no
17313 if test "${ac_cv_func_strerror_r}" = yes ; then
17314         { echo "$as_me:$LINENO: checking non-posix strerror_r" >&5
17315 echo $ECHO_N "checking non-posix strerror_r... $ECHO_C" >&6; }
17316 if test "${ol_cv_nonposix_strerror_r+set}" = set; then
17317   echo $ECHO_N "(cached) $ECHO_C" >&6
17318 else
17319
17320         cat >conftest.$ac_ext <<_ACEOF
17321 /* confdefs.h.  */
17322 _ACEOF
17323 cat confdefs.h >>conftest.$ac_ext
17324 cat >>conftest.$ac_ext <<_ACEOF
17325 /* end confdefs.h.  */
17326 #include <string.h>
17327 _ACEOF
17328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17329   $EGREP "strerror_r" >/dev/null 2>&1; then
17330   ol_decl_strerror_r=yes
17331 else
17332   ol_decl_strerror_r=no
17333 fi
17334 rm -f conftest*
17335
17336         if test $ol_decl_strerror_r = yes ; then
17337                 cat >conftest.$ac_ext <<_ACEOF
17338 /* confdefs.h.  */
17339 _ACEOF
17340 cat confdefs.h >>conftest.$ac_ext
17341 cat >>conftest.$ac_ext <<_ACEOF
17342 /* end confdefs.h.  */
17343 #include <string.h>
17344 int
17345 main ()
17346 {
17347    /* from autoconf 2.59 */
17348                                 char buf[100];
17349                                 char x = *strerror_r (0, buf, sizeof buf);
17350                                 char *p = strerror_r (0, buf, sizeof buf);
17351
17352   ;
17353   return 0;
17354 }
17355 _ACEOF
17356 rm -f conftest.$ac_objext
17357 if { (ac_try="$ac_compile"
17358 case "(($ac_try" in
17359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17360   *) ac_try_echo=$ac_try;;
17361 esac
17362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17363   (eval "$ac_compile") 2>conftest.er1
17364   ac_status=$?
17365   grep -v '^ *+' conftest.er1 >conftest.err
17366   rm -f conftest.er1
17367   cat conftest.err >&5
17368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17369   (exit $ac_status); } && {
17370          test -z "$ac_c_werror_flag" ||
17371          test ! -s conftest.err
17372        } && test -s conftest.$ac_objext; then
17373   ol_cv_nonposix_strerror_r=yes
17374 else
17375   echo "$as_me: failed program was:" >&5
17376 sed 's/^/| /' conftest.$ac_ext >&5
17377
17378         ol_cv_nonposix_strerror_r=no
17379 fi
17380
17381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17382         else
17383                 if test "$cross_compiling" = yes; then
17384   ol_cv_nonposix_strerror=no
17385 else
17386   cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h.  */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h.  */
17392
17393                         main() {
17394                                 char buf[100];
17395                                 buf[0] = 0;
17396                                 strerror_r( 1, buf, sizeof buf );
17397                                 exit( buf[0] == 0 );
17398                         }
17399
17400 _ACEOF
17401 rm -f conftest$ac_exeext
17402 if { (ac_try="$ac_link"
17403 case "(($ac_try" in
17404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17405   *) ac_try_echo=$ac_try;;
17406 esac
17407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17408   (eval "$ac_link") 2>&5
17409   ac_status=$?
17410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17411   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17412   { (case "(($ac_try" in
17413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414   *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417   (eval "$ac_try") 2>&5
17418   ac_status=$?
17419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17420   (exit $ac_status); }; }; then
17421   ol_cv_nonposix_strerror_r=yes
17422 else
17423   echo "$as_me: program exited with status $ac_status" >&5
17424 echo "$as_me: failed program was:" >&5
17425 sed 's/^/| /' conftest.$ac_ext >&5
17426
17427 ( exit $ac_status )
17428 ol_cv_nonposix_strerror=no
17429 fi
17430 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17431 fi
17432
17433
17434         fi
17435
17436 fi
17437 { echo "$as_me:$LINENO: result: $ol_cv_nonposix_strerror_r" >&5
17438 echo "${ECHO_T}$ol_cv_nonposix_strerror_r" >&6; }
17439 if test $ol_cv_nonposix_strerror_r = yes ; then
17440
17441 cat >>confdefs.h <<\_ACEOF
17442 #define HAVE_NONPOSIX_STRERROR_R 1
17443 _ACEOF
17444
17445 fi
17446
17447 elif test "${ac_cv_func_strerror}" = no ; then
17448         { echo "$as_me:$LINENO: checking declaration of sys_errlist" >&5
17449 echo $ECHO_N "checking declaration of sys_errlist... $ECHO_C" >&6; }
17450 if test "${ol_cv_dcl_sys_errlist+set}" = set; then
17451   echo $ECHO_N "(cached) $ECHO_C" >&6
17452 else
17453
17454         cat >conftest.$ac_ext <<_ACEOF
17455 /* confdefs.h.  */
17456 _ACEOF
17457 cat confdefs.h >>conftest.$ac_ext
17458 cat >>conftest.$ac_ext <<_ACEOF
17459 /* end confdefs.h.  */
17460
17461 #include <stdio.h>
17462 #include <sys/types.h>
17463 #include <errno.h>
17464 #ifdef _WIN32
17465 #include <stdlib.h>
17466 #endif
17467 int
17468 main ()
17469 {
17470 char *c = (char *) *sys_errlist
17471   ;
17472   return 0;
17473 }
17474 _ACEOF
17475 rm -f conftest.$ac_objext
17476 if { (ac_try="$ac_compile"
17477 case "(($ac_try" in
17478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479   *) ac_try_echo=$ac_try;;
17480 esac
17481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17482   (eval "$ac_compile") 2>conftest.er1
17483   ac_status=$?
17484   grep -v '^ *+' conftest.er1 >conftest.err
17485   rm -f conftest.er1
17486   cat conftest.err >&5
17487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488   (exit $ac_status); } && {
17489          test -z "$ac_c_werror_flag" ||
17490          test ! -s conftest.err
17491        } && test -s conftest.$ac_objext; then
17492   ol_cv_dcl_sys_errlist=yes
17493         ol_cv_have_sys_errlist=yes
17494 else
17495   echo "$as_me: failed program was:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17497
17498         ol_cv_dcl_sys_errlist=no
17499 fi
17500
17501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17502 fi
17503 { echo "$as_me:$LINENO: result: $ol_cv_dcl_sys_errlist" >&5
17504 echo "${ECHO_T}$ol_cv_dcl_sys_errlist" >&6; }
17505 #
17506 # It's possible (for near-UNIX clones) that sys_errlist doesn't exist
17507 if test $ol_cv_dcl_sys_errlist = no ; then
17508
17509 cat >>confdefs.h <<\_ACEOF
17510 #define DECL_SYS_ERRLIST 1
17511 _ACEOF
17512
17513
17514         { echo "$as_me:$LINENO: checking existence of sys_errlist" >&5
17515 echo $ECHO_N "checking existence of sys_errlist... $ECHO_C" >&6; }
17516 if test "${ol_cv_have_sys_errlist+set}" = set; then
17517   echo $ECHO_N "(cached) $ECHO_C" >&6
17518 else
17519
17520                 cat >conftest.$ac_ext <<_ACEOF
17521 /* confdefs.h.  */
17522 _ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h.  */
17526 #include <errno.h>
17527 int
17528 main ()
17529 {
17530 char *c = (char *) *sys_errlist
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 rm -f conftest.$ac_objext conftest$ac_exeext
17536 if { (ac_try="$ac_link"
17537 case "(($ac_try" in
17538   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539   *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542   (eval "$ac_link") 2>conftest.er1
17543   ac_status=$?
17544   grep -v '^ *+' conftest.er1 >conftest.err
17545   rm -f conftest.er1
17546   cat conftest.err >&5
17547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548   (exit $ac_status); } && {
17549          test -z "$ac_c_werror_flag" ||
17550          test ! -s conftest.err
17551        } && test -s conftest$ac_exeext &&
17552        $as_test_x conftest$ac_exeext; then
17553   ol_cv_have_sys_errlist=yes
17554 else
17555   echo "$as_me: failed program was:" >&5
17556 sed 's/^/| /' conftest.$ac_ext >&5
17557
17558         ol_cv_have_sys_errlist=no
17559 fi
17560
17561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17562       conftest$ac_exeext conftest.$ac_ext
17563 fi
17564 { echo "$as_me:$LINENO: result: $ol_cv_have_sys_errlist" >&5
17565 echo "${ECHO_T}$ol_cv_have_sys_errlist" >&6; }
17566 fi
17567 if test $ol_cv_have_sys_errlist = yes ; then
17568
17569 cat >>confdefs.h <<\_ACEOF
17570 #define HAVE_SYS_ERRLIST 1
17571 _ACEOF
17572
17573 fi
17574
17575 fi
17576
17577
17578
17579 for ac_header in regex.h
17580 do
17581 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17582 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17583 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17584 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17585   echo $ECHO_N "(cached) $ECHO_C" >&6
17586 else
17587   cat >conftest.$ac_ext <<_ACEOF
17588 /* confdefs.h.  */
17589 _ACEOF
17590 cat confdefs.h >>conftest.$ac_ext
17591 cat >>conftest.$ac_ext <<_ACEOF
17592 /* end confdefs.h.  */
17593 $ac_includes_default
17594 #ifdef HAVE_SYS_TYPES_H
17595 #include <sys/types.h>
17596 #endif
17597
17598
17599 #include <$ac_header>
17600 _ACEOF
17601 rm -f conftest.$ac_objext
17602 if { (ac_try="$ac_compile"
17603 case "(($ac_try" in
17604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17605   *) ac_try_echo=$ac_try;;
17606 esac
17607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17608   (eval "$ac_compile") 2>conftest.er1
17609   ac_status=$?
17610   grep -v '^ *+' conftest.er1 >conftest.err
17611   rm -f conftest.er1
17612   cat conftest.err >&5
17613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17614   (exit $ac_status); } && {
17615          test -z "$ac_c_werror_flag" ||
17616          test ! -s conftest.err
17617        } && test -s conftest.$ac_objext; then
17618   eval "$as_ac_Header=yes"
17619 else
17620   echo "$as_me: failed program was:" >&5
17621 sed 's/^/| /' conftest.$ac_ext >&5
17622
17623         eval "$as_ac_Header=no"
17624 fi
17625
17626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17627 fi
17628 ac_res=`eval echo '${'$as_ac_Header'}'`
17629                { echo "$as_me:$LINENO: result: $ac_res" >&5
17630 echo "${ECHO_T}$ac_res" >&6; }
17631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17632   cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17634 _ACEOF
17635
17636 fi
17637
17638 done
17639
17640
17641 if test "$ac_cv_header_regex_h" != yes ; then
17642         { { echo "$as_me:$LINENO: error: POSIX regex.h required." >&5
17643 echo "$as_me: error: POSIX regex.h required." >&2;}
17644    { (exit 1); exit 1; }; }
17645 fi
17646 { echo "$as_me:$LINENO: checking for library containing regfree" >&5
17647 echo $ECHO_N "checking for library containing regfree... $ECHO_C" >&6; }
17648 if test "${ac_cv_search_regfree+set}" = set; then
17649   echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651   ac_func_search_save_LIBS=$LIBS
17652 cat >conftest.$ac_ext <<_ACEOF
17653 /* confdefs.h.  */
17654 _ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h.  */
17658
17659 /* Override any GCC internal prototype to avoid an error.
17660    Use char because int might match the return type of a GCC
17661    builtin and then its argument prototype would still apply.  */
17662 #ifdef __cplusplus
17663 extern "C"
17664 #endif
17665 char regfree ();
17666 int
17667 main ()
17668 {
17669 return regfree ();
17670   ;
17671   return 0;
17672 }
17673 _ACEOF
17674 for ac_lib in '' regex gnuregex; do
17675   if test -z "$ac_lib"; then
17676     ac_res="none required"
17677   else
17678     ac_res=-l$ac_lib
17679     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17680   fi
17681   rm -f conftest.$ac_objext conftest$ac_exeext
17682 if { (ac_try="$ac_link"
17683 case "(($ac_try" in
17684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17685   *) ac_try_echo=$ac_try;;
17686 esac
17687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17688   (eval "$ac_link") 2>conftest.er1
17689   ac_status=$?
17690   grep -v '^ *+' conftest.er1 >conftest.err
17691   rm -f conftest.er1
17692   cat conftest.err >&5
17693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17694   (exit $ac_status); } && {
17695          test -z "$ac_c_werror_flag" ||
17696          test ! -s conftest.err
17697        } && test -s conftest$ac_exeext &&
17698        $as_test_x conftest$ac_exeext; then
17699   ac_cv_search_regfree=$ac_res
17700 else
17701   echo "$as_me: failed program was:" >&5
17702 sed 's/^/| /' conftest.$ac_ext >&5
17703
17704
17705 fi
17706
17707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17708       conftest$ac_exeext
17709   if test "${ac_cv_search_regfree+set}" = set; then
17710   break
17711 fi
17712 done
17713 if test "${ac_cv_search_regfree+set}" = set; then
17714   :
17715 else
17716   ac_cv_search_regfree=no
17717 fi
17718 rm conftest.$ac_ext
17719 LIBS=$ac_func_search_save_LIBS
17720 fi
17721 { echo "$as_me:$LINENO: result: $ac_cv_search_regfree" >&5
17722 echo "${ECHO_T}$ac_cv_search_regfree" >&6; }
17723 ac_res=$ac_cv_search_regfree
17724 if test "$ac_res" != no; then
17725   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17726   :
17727 else
17728   { { echo "$as_me:$LINENO: error: POSIX regex required." >&5
17729 echo "$as_me: error: POSIX regex required." >&2;}
17730    { (exit 1); exit 1; }; }
17731 fi
17732
17733
17734
17735 { echo "$as_me:$LINENO: checking for compatible POSIX regex" >&5
17736 echo $ECHO_N "checking for compatible POSIX regex... $ECHO_C" >&6; }
17737 if test "${ol_cv_c_posix_regex+set}" = set; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740
17741         if test "$cross_compiling" = yes; then
17742   ol_cv_c_posix_regex=cross
17743 else
17744   cat >conftest.$ac_ext <<_ACEOF
17745 /* confdefs.h.  */
17746 _ACEOF
17747 cat confdefs.h >>conftest.$ac_ext
17748 cat >>conftest.$ac_ext <<_ACEOF
17749 /* end confdefs.h.  */
17750
17751 #include <sys/types.h>
17752 #include <regex.h>
17753 static char *pattern, *string;
17754 main()
17755 {
17756         int rc;
17757         regex_t re;
17758
17759         pattern = "^A";
17760
17761         if(regcomp(&re, pattern, 0)) {
17762                 return -1;
17763         }
17764
17765         string = "ALL MATCH";
17766
17767         rc = regexec(&re, string, 0, (void*)0, 0);
17768
17769         regfree(&re);
17770
17771         return rc;
17772 }
17773 _ACEOF
17774 rm -f conftest$ac_exeext
17775 if { (ac_try="$ac_link"
17776 case "(($ac_try" in
17777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778   *) ac_try_echo=$ac_try;;
17779 esac
17780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17781   (eval "$ac_link") 2>&5
17782   ac_status=$?
17783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17785   { (case "(($ac_try" in
17786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787   *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790   (eval "$ac_try") 2>&5
17791   ac_status=$?
17792   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17793   (exit $ac_status); }; }; then
17794   ol_cv_c_posix_regex=yes
17795 else
17796   echo "$as_me: program exited with status $ac_status" >&5
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ( exit $ac_status )
17801 ol_cv_c_posix_regex=no
17802 fi
17803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17804 fi
17805
17806
17807 fi
17808 { echo "$as_me:$LINENO: result: $ol_cv_c_posix_regex" >&5
17809 echo "${ECHO_T}$ol_cv_c_posix_regex" >&6; }
17810
17811 if test "$ol_cv_c_posix_regex" = no ; then
17812         { { echo "$as_me:$LINENO: error: broken POSIX regex!" >&5
17813 echo "$as_me: error: broken POSIX regex!" >&2;}
17814    { (exit 1); exit 1; }; }
17815 fi
17816
17817
17818 have_uuid=no
17819
17820 for ac_header in sys/uuid.h
17821 do
17822 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17824   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17827   echo $ECHO_N "(cached) $ECHO_C" >&6
17828 fi
17829 ac_res=`eval echo '${'$as_ac_Header'}'`
17830                { echo "$as_me:$LINENO: result: $ac_res" >&5
17831 echo "${ECHO_T}$ac_res" >&6; }
17832 else
17833   # Is the header compilable?
17834 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17835 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17836 cat >conftest.$ac_ext <<_ACEOF
17837 /* confdefs.h.  */
17838 _ACEOF
17839 cat confdefs.h >>conftest.$ac_ext
17840 cat >>conftest.$ac_ext <<_ACEOF
17841 /* end confdefs.h.  */
17842 $ac_includes_default
17843 #include <$ac_header>
17844 _ACEOF
17845 rm -f conftest.$ac_objext
17846 if { (ac_try="$ac_compile"
17847 case "(($ac_try" in
17848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17849   *) ac_try_echo=$ac_try;;
17850 esac
17851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17852   (eval "$ac_compile") 2>conftest.er1
17853   ac_status=$?
17854   grep -v '^ *+' conftest.er1 >conftest.err
17855   rm -f conftest.er1
17856   cat conftest.err >&5
17857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17858   (exit $ac_status); } && {
17859          test -z "$ac_c_werror_flag" ||
17860          test ! -s conftest.err
17861        } && test -s conftest.$ac_objext; then
17862   ac_header_compiler=yes
17863 else
17864   echo "$as_me: failed program was:" >&5
17865 sed 's/^/| /' conftest.$ac_ext >&5
17866
17867         ac_header_compiler=no
17868 fi
17869
17870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17871 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17872 echo "${ECHO_T}$ac_header_compiler" >&6; }
17873
17874 # Is the header present?
17875 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
17884 _ACEOF
17885 if { (ac_try="$ac_cpp conftest.$ac_ext"
17886 case "(($ac_try" in
17887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17888   *) ac_try_echo=$ac_try;;
17889 esac
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17892   ac_status=$?
17893   grep -v '^ *+' conftest.er1 >conftest.err
17894   rm -f conftest.er1
17895   cat conftest.err >&5
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); } >/dev/null && {
17898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17899          test ! -s conftest.err
17900        }; then
17901   ac_header_preproc=yes
17902 else
17903   echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17905
17906   ac_header_preproc=no
17907 fi
17908
17909 rm -f conftest.err conftest.$ac_ext
17910 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17911 echo "${ECHO_T}$ac_header_preproc" >&6; }
17912
17913 # So?  What about this header?
17914 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17915   yes:no: )
17916     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17917 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17918     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17919 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17920     ac_header_preproc=yes
17921     ;;
17922   no:yes:* )
17923     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17924 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17925     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17926 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17927     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17928 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17929     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17930 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17931     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17932 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17933     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17934 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17935     ( cat <<\_ASBOX
17936 ## --------------------------------------------- ##
17937 ## Report this to <http://www.openldap.org/its/> ##
17938 ## --------------------------------------------- ##
17939 _ASBOX
17940      ) | sed "s/^/$as_me: WARNING:     /" >&2
17941     ;;
17942 esac
17943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17946   echo $ECHO_N "(cached) $ECHO_C" >&6
17947 else
17948   eval "$as_ac_Header=\$ac_header_preproc"
17949 fi
17950 ac_res=`eval echo '${'$as_ac_Header'}'`
17951                { echo "$as_me:$LINENO: result: $ac_res" >&5
17952 echo "${ECHO_T}$ac_res" >&6; }
17953
17954 fi
17955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17956   cat >>confdefs.h <<_ACEOF
17957 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17958 _ACEOF
17959
17960 fi
17961
17962 done
17963
17964 if test $ac_cv_header_sys_uuid_h = yes ; then
17965         save_LIBS="$LIBS"
17966         { echo "$as_me:$LINENO: checking for library containing uuid_to_str" >&5
17967 echo $ECHO_N "checking for library containing uuid_to_str... $ECHO_C" >&6; }
17968 if test "${ac_cv_search_uuid_to_str+set}" = set; then
17969   echo $ECHO_N "(cached) $ECHO_C" >&6
17970 else
17971   ac_func_search_save_LIBS=$LIBS
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h.  */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h.  */
17978
17979 /* Override any GCC internal prototype to avoid an error.
17980    Use char because int might match the return type of a GCC
17981    builtin and then its argument prototype would still apply.  */
17982 #ifdef __cplusplus
17983 extern "C"
17984 #endif
17985 char uuid_to_str ();
17986 int
17987 main ()
17988 {
17989 return uuid_to_str ();
17990   ;
17991   return 0;
17992 }
17993 _ACEOF
17994 for ac_lib in '' uuid; do
17995   if test -z "$ac_lib"; then
17996     ac_res="none required"
17997   else
17998     ac_res=-l$ac_lib
17999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18000   fi
18001   rm -f conftest.$ac_objext conftest$ac_exeext
18002 if { (ac_try="$ac_link"
18003 case "(($ac_try" in
18004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005   *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008   (eval "$ac_link") 2>conftest.er1
18009   ac_status=$?
18010   grep -v '^ *+' conftest.er1 >conftest.err
18011   rm -f conftest.er1
18012   cat conftest.err >&5
18013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014   (exit $ac_status); } && {
18015          test -z "$ac_c_werror_flag" ||
18016          test ! -s conftest.err
18017        } && test -s conftest$ac_exeext &&
18018        $as_test_x conftest$ac_exeext; then
18019   ac_cv_search_uuid_to_str=$ac_res
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18028       conftest$ac_exeext
18029   if test "${ac_cv_search_uuid_to_str+set}" = set; then
18030   break
18031 fi
18032 done
18033 if test "${ac_cv_search_uuid_to_str+set}" = set; then
18034   :
18035 else
18036   ac_cv_search_uuid_to_str=no
18037 fi
18038 rm conftest.$ac_ext
18039 LIBS=$ac_func_search_save_LIBS
18040 fi
18041 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_to_str" >&5
18042 echo "${ECHO_T}$ac_cv_search_uuid_to_str" >&6; }
18043 ac_res=$ac_cv_search_uuid_to_str
18044 if test "$ac_res" != no; then
18045   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18046   have_uuid=yes
18047 else
18048   :
18049 fi
18050
18051         { echo "$as_me:$LINENO: checking for library containing uuid_create" >&5
18052 echo $ECHO_N "checking for library containing uuid_create... $ECHO_C" >&6; }
18053 if test "${ac_cv_search_uuid_create+set}" = set; then
18054   echo $ECHO_N "(cached) $ECHO_C" >&6
18055 else
18056   ac_func_search_save_LIBS=$LIBS
18057 cat >conftest.$ac_ext <<_ACEOF
18058 /* confdefs.h.  */
18059 _ACEOF
18060 cat confdefs.h >>conftest.$ac_ext
18061 cat >>conftest.$ac_ext <<_ACEOF
18062 /* end confdefs.h.  */
18063
18064 /* Override any GCC internal prototype to avoid an error.
18065    Use char because int might match the return type of a GCC
18066    builtin and then its argument prototype would still apply.  */
18067 #ifdef __cplusplus
18068 extern "C"
18069 #endif
18070 char uuid_create ();
18071 int
18072 main ()
18073 {
18074 return uuid_create ();
18075   ;
18076   return 0;
18077 }
18078 _ACEOF
18079 for ac_lib in '' uuid; do
18080   if test -z "$ac_lib"; then
18081     ac_res="none required"
18082   else
18083     ac_res=-l$ac_lib
18084     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18085   fi
18086   rm -f conftest.$ac_objext conftest$ac_exeext
18087 if { (ac_try="$ac_link"
18088 case "(($ac_try" in
18089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18090   *) ac_try_echo=$ac_try;;
18091 esac
18092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18093   (eval "$ac_link") 2>conftest.er1
18094   ac_status=$?
18095   grep -v '^ *+' conftest.er1 >conftest.err
18096   rm -f conftest.er1
18097   cat conftest.err >&5
18098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18099   (exit $ac_status); } && {
18100          test -z "$ac_c_werror_flag" ||
18101          test ! -s conftest.err
18102        } && test -s conftest$ac_exeext &&
18103        $as_test_x conftest$ac_exeext; then
18104   ac_cv_search_uuid_create=$ac_res
18105 else
18106   echo "$as_me: failed program was:" >&5
18107 sed 's/^/| /' conftest.$ac_ext >&5
18108
18109
18110 fi
18111
18112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18113       conftest$ac_exeext
18114   if test "${ac_cv_search_uuid_create+set}" = set; then
18115   break
18116 fi
18117 done
18118 if test "${ac_cv_search_uuid_create+set}" = set; then
18119   :
18120 else
18121   ac_cv_search_uuid_create=no
18122 fi
18123 rm conftest.$ac_ext
18124 LIBS=$ac_func_search_save_LIBS
18125 fi
18126 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_create" >&5
18127 echo "${ECHO_T}$ac_cv_search_uuid_create" >&6; }
18128 ac_res=$ac_cv_search_uuid_create
18129 if test "$ac_res" != no; then
18130   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18131   :
18132 else
18133   have_uuid=no
18134 fi
18135
18136         LIBS="$save_LIBS"
18137
18138         if test $have_uuid = yes ; then
18139
18140 cat >>confdefs.h <<\_ACEOF
18141 #define HAVE_UUID_TO_STR 1
18142 _ACEOF
18143
18144
18145                 test "$ac_cv_search_uuid_to_str" = "none required" || \
18146                         SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_to_str"
18147         fi
18148 fi
18149
18150 if test $have_uuid = no ; then
18151
18152 for ac_header in uuid/uuid.h
18153 do
18154 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18155 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18156   { echo "$as_me:$LINENO: checking for $ac_header" >&5
18157 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18159   echo $ECHO_N "(cached) $ECHO_C" >&6
18160 fi
18161 ac_res=`eval echo '${'$as_ac_Header'}'`
18162                { echo "$as_me:$LINENO: result: $ac_res" >&5
18163 echo "${ECHO_T}$ac_res" >&6; }
18164 else
18165   # Is the header compilable?
18166 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18167 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18168 cat >conftest.$ac_ext <<_ACEOF
18169 /* confdefs.h.  */
18170 _ACEOF
18171 cat confdefs.h >>conftest.$ac_ext
18172 cat >>conftest.$ac_ext <<_ACEOF
18173 /* end confdefs.h.  */
18174 $ac_includes_default
18175 #include <$ac_header>
18176 _ACEOF
18177 rm -f conftest.$ac_objext
18178 if { (ac_try="$ac_compile"
18179 case "(($ac_try" in
18180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181   *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184   (eval "$ac_compile") 2>conftest.er1
18185   ac_status=$?
18186   grep -v '^ *+' conftest.er1 >conftest.err
18187   rm -f conftest.er1
18188   cat conftest.err >&5
18189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190   (exit $ac_status); } && {
18191          test -z "$ac_c_werror_flag" ||
18192          test ! -s conftest.err
18193        } && test -s conftest.$ac_objext; then
18194   ac_header_compiler=yes
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199         ac_header_compiler=no
18200 fi
18201
18202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18204 echo "${ECHO_T}$ac_header_compiler" >&6; }
18205
18206 # Is the header present?
18207 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18208 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
18216 _ACEOF
18217 if { (ac_try="$ac_cpp conftest.$ac_ext"
18218 case "(($ac_try" in
18219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18220   *) ac_try_echo=$ac_try;;
18221 esac
18222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18223   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18224   ac_status=$?
18225   grep -v '^ *+' conftest.er1 >conftest.err
18226   rm -f conftest.er1
18227   cat conftest.err >&5
18228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18229   (exit $ac_status); } >/dev/null && {
18230          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18231          test ! -s conftest.err
18232        }; then
18233   ac_header_preproc=yes
18234 else
18235   echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238   ac_header_preproc=no
18239 fi
18240
18241 rm -f conftest.err conftest.$ac_ext
18242 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18243 echo "${ECHO_T}$ac_header_preproc" >&6; }
18244
18245 # So?  What about this header?
18246 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18247   yes:no: )
18248     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18249 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18250     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18251 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18252     ac_header_preproc=yes
18253     ;;
18254   no:yes:* )
18255     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18256 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18257     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18258 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18259     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18260 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18261     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18262 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18263     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18264 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18265     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18266 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18267     ( cat <<\_ASBOX
18268 ## --------------------------------------------- ##
18269 ## Report this to <http://www.openldap.org/its/> ##
18270 ## --------------------------------------------- ##
18271 _ASBOX
18272      ) | sed "s/^/$as_me: WARNING:     /" >&2
18273     ;;
18274 esac
18275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18278   echo $ECHO_N "(cached) $ECHO_C" >&6
18279 else
18280   eval "$as_ac_Header=\$ac_header_preproc"
18281 fi
18282 ac_res=`eval echo '${'$as_ac_Header'}'`
18283                { echo "$as_me:$LINENO: result: $ac_res" >&5
18284 echo "${ECHO_T}$ac_res" >&6; }
18285
18286 fi
18287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18288   cat >>confdefs.h <<_ACEOF
18289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18290 _ACEOF
18291
18292 fi
18293
18294 done
18295
18296         if test $ac_cv_header_uuid_uuid_h = yes ; then
18297                 save_LIBS="$LIBS"
18298                 { echo "$as_me:$LINENO: checking for library containing uuid_generate" >&5
18299 echo $ECHO_N "checking for library containing uuid_generate... $ECHO_C" >&6; }
18300 if test "${ac_cv_search_uuid_generate+set}" = set; then
18301   echo $ECHO_N "(cached) $ECHO_C" >&6
18302 else
18303   ac_func_search_save_LIBS=$LIBS
18304 cat >conftest.$ac_ext <<_ACEOF
18305 /* confdefs.h.  */
18306 _ACEOF
18307 cat confdefs.h >>conftest.$ac_ext
18308 cat >>conftest.$ac_ext <<_ACEOF
18309 /* end confdefs.h.  */
18310
18311 /* Override any GCC internal prototype to avoid an error.
18312    Use char because int might match the return type of a GCC
18313    builtin and then its argument prototype would still apply.  */
18314 #ifdef __cplusplus
18315 extern "C"
18316 #endif
18317 char uuid_generate ();
18318 int
18319 main ()
18320 {
18321 return uuid_generate ();
18322   ;
18323   return 0;
18324 }
18325 _ACEOF
18326 for ac_lib in '' uuid; do
18327   if test -z "$ac_lib"; then
18328     ac_res="none required"
18329   else
18330     ac_res=-l$ac_lib
18331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18332   fi
18333   rm -f conftest.$ac_objext conftest$ac_exeext
18334 if { (ac_try="$ac_link"
18335 case "(($ac_try" in
18336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337   *) ac_try_echo=$ac_try;;
18338 esac
18339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18340   (eval "$ac_link") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_c_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest$ac_exeext &&
18350        $as_test_x conftest$ac_exeext; then
18351   ac_cv_search_uuid_generate=$ac_res
18352 else
18353   echo "$as_me: failed program was:" >&5
18354 sed 's/^/| /' conftest.$ac_ext >&5
18355
18356
18357 fi
18358
18359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18360       conftest$ac_exeext
18361   if test "${ac_cv_search_uuid_generate+set}" = set; then
18362   break
18363 fi
18364 done
18365 if test "${ac_cv_search_uuid_generate+set}" = set; then
18366   :
18367 else
18368   ac_cv_search_uuid_generate=no
18369 fi
18370 rm conftest.$ac_ext
18371 LIBS=$ac_func_search_save_LIBS
18372 fi
18373 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_generate" >&5
18374 echo "${ECHO_T}$ac_cv_search_uuid_generate" >&6; }
18375 ac_res=$ac_cv_search_uuid_generate
18376 if test "$ac_res" != no; then
18377   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18378   have_uuid=yes
18379 else
18380   :
18381 fi
18382
18383                 { echo "$as_me:$LINENO: checking for library containing uuid_unparse_lower" >&5
18384 echo $ECHO_N "checking for library containing uuid_unparse_lower... $ECHO_C" >&6; }
18385 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18386   echo $ECHO_N "(cached) $ECHO_C" >&6
18387 else
18388   ac_func_search_save_LIBS=$LIBS
18389 cat >conftest.$ac_ext <<_ACEOF
18390 /* confdefs.h.  */
18391 _ACEOF
18392 cat confdefs.h >>conftest.$ac_ext
18393 cat >>conftest.$ac_ext <<_ACEOF
18394 /* end confdefs.h.  */
18395
18396 /* Override any GCC internal prototype to avoid an error.
18397    Use char because int might match the return type of a GCC
18398    builtin and then its argument prototype would still apply.  */
18399 #ifdef __cplusplus
18400 extern "C"
18401 #endif
18402 char uuid_unparse_lower ();
18403 int
18404 main ()
18405 {
18406 return uuid_unparse_lower ();
18407   ;
18408   return 0;
18409 }
18410 _ACEOF
18411 for ac_lib in '' uuid; do
18412   if test -z "$ac_lib"; then
18413     ac_res="none required"
18414   else
18415     ac_res=-l$ac_lib
18416     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
18417   fi
18418   rm -f conftest.$ac_objext conftest$ac_exeext
18419 if { (ac_try="$ac_link"
18420 case "(($ac_try" in
18421   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422   *) ac_try_echo=$ac_try;;
18423 esac
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425   (eval "$ac_link") 2>conftest.er1
18426   ac_status=$?
18427   grep -v '^ *+' conftest.er1 >conftest.err
18428   rm -f conftest.er1
18429   cat conftest.err >&5
18430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431   (exit $ac_status); } && {
18432          test -z "$ac_c_werror_flag" ||
18433          test ! -s conftest.err
18434        } && test -s conftest$ac_exeext &&
18435        $as_test_x conftest$ac_exeext; then
18436   ac_cv_search_uuid_unparse_lower=$ac_res
18437 else
18438   echo "$as_me: failed program was:" >&5
18439 sed 's/^/| /' conftest.$ac_ext >&5
18440
18441
18442 fi
18443
18444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18445       conftest$ac_exeext
18446   if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18447   break
18448 fi
18449 done
18450 if test "${ac_cv_search_uuid_unparse_lower+set}" = set; then
18451   :
18452 else
18453   ac_cv_search_uuid_unparse_lower=no
18454 fi
18455 rm conftest.$ac_ext
18456 LIBS=$ac_func_search_save_LIBS
18457 fi
18458 { echo "$as_me:$LINENO: result: $ac_cv_search_uuid_unparse_lower" >&5
18459 echo "${ECHO_T}$ac_cv_search_uuid_unparse_lower" >&6; }
18460 ac_res=$ac_cv_search_uuid_unparse_lower
18461 if test "$ac_res" != no; then
18462   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18463   :
18464 else
18465   have_uuid=no
18466 fi
18467
18468                 LIBS="$save_LIBS"
18469
18470                 if test $have_uuid = yes ; then
18471
18472 cat >>confdefs.h <<\_ACEOF
18473 #define HAVE_UUID_GENERATE 1
18474 _ACEOF
18475
18476
18477                         test "$ac_cv_search_uuid_generate" = "none required" || \
18478                                 SLAPD_LIBS="$SLAPD_LIBS $ac_cv_search_uuid_generate"
18479                 fi
18480         fi
18481 fi
18482
18483 if test $have_uuid = no ; then
18484         { echo "$as_me:$LINENO: checking to see if -lrpcrt4 is needed for win32 UUID support" >&5
18485 echo $ECHO_N "checking to see if -lrpcrt4 is needed for win32 UUID support... $ECHO_C" >&6; }
18486         save_LIBS="$LIBS"
18487         LIBS="$LIBS -lrpcrt4"
18488         cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h.  */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h.  */
18494
18495                 int __stdcall UuidCreate(void *);
18496                 int __stdcall UuidToStringA(void *,void **);
18497
18498 int
18499 main ()
18500 {
18501
18502                 UuidCreate(0);
18503                 UuidToStringA(0,0);
18504
18505   ;
18506   return 0;
18507 }
18508 _ACEOF
18509 rm -f conftest.$ac_objext conftest$ac_exeext
18510 if { (ac_try="$ac_link"
18511 case "(($ac_try" in
18512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18513   *) ac_try_echo=$ac_try;;
18514 esac
18515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18516   (eval "$ac_link") 2>conftest.er1
18517   ac_status=$?
18518   grep -v '^ *+' conftest.er1 >conftest.err
18519   rm -f conftest.er1
18520   cat conftest.err >&5
18521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522   (exit $ac_status); } && {
18523          test -z "$ac_c_werror_flag" ||
18524          test ! -s conftest.err
18525        } && test -s conftest$ac_exeext &&
18526        $as_test_x conftest$ac_exeext; then
18527   need_rpcrt=yes
18528 else
18529   echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18531
18532         need_rpcrt=no
18533 fi
18534
18535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18536       conftest$ac_exeext conftest.$ac_ext
18537         if test $need_rpcrt = yes; then
18538                 SLAPD_LIBS="$SLAPD_LIBS -lrpcrt4"
18539         fi
18540         LIBS="$save_LIBS"
18541         { echo "$as_me:$LINENO: result: $need_rpcrt" >&5
18542 echo "${ECHO_T}$need_rpcrt" >&6; }
18543 fi
18544
18545 ol_cv_lib_resolver=no
18546 if test $ol_cv_lib_resolver = no ; then
18547         { echo "$as_me:$LINENO: checking for resolver link (default)" >&5
18548 echo $ECHO_N "checking for resolver link (default)... $ECHO_C" >&6; }
18549 if test "${ol_cv_resolver_none+set}" = set; then
18550   echo $ECHO_N "(cached) $ECHO_C" >&6
18551 else
18552
18553         ol_RESOLVER_LIB=
18554         ol_LIBS=$LIBS
18555         LIBS="$ol_RESOLVER_LIB $LIBS"
18556
18557         cat >conftest.$ac_ext <<_ACEOF
18558 /* confdefs.h.  */
18559 _ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h.  */
18563
18564 #ifdef HAVE_SYS_TYPES_H
18565 #       include <sys/types.h>
18566 #endif
18567 #include <netinet/in.h>
18568 #ifdef HAVE_ARPA_NAMESER_H
18569 #       include <arpa/nameser.h>
18570 #endif
18571 #ifdef HAVE_RESOLV_H
18572 #       include <resolv.h>
18573 #endif
18574
18575 int
18576 main ()
18577 {
18578 {
18579         int len, status;
18580         char *request = NULL;
18581         unsigned char reply[64*1024];
18582         unsigned char host[64*1024];
18583         unsigned char *p;
18584
18585 #ifdef NS_HFIXEDSZ
18586         /* Bind 8/9 interface */
18587         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18588 #else
18589         /* Bind 4 interface */
18590 # ifndef T_SRV
18591 #  define T_SRV 33
18592 # endif
18593         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18594 #endif
18595         p = reply;
18596 #ifdef NS_HFIXEDSZ
18597         /* Bind 8/9 interface */
18598         p += NS_HFIXEDSZ;
18599 #elif defined(HFIXEDSZ)
18600         /* Bind 4 interface w/ HFIXEDSZ */
18601         p += HFIXEDSZ;
18602 #else
18603         /* Bind 4 interface w/o HFIXEDSZ */
18604         p += sizeof(HEADER);
18605 #endif
18606         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18607 }
18608   ;
18609   return 0;
18610 }
18611 _ACEOF
18612 rm -f conftest.$ac_objext conftest$ac_exeext
18613 if { (ac_try="$ac_link"
18614 case "(($ac_try" in
18615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18616   *) ac_try_echo=$ac_try;;
18617 esac
18618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18619   (eval "$ac_link") 2>conftest.er1
18620   ac_status=$?
18621   grep -v '^ *+' conftest.er1 >conftest.err
18622   rm -f conftest.er1
18623   cat conftest.err >&5
18624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625   (exit $ac_status); } && {
18626          test -z "$ac_c_werror_flag" ||
18627          test ! -s conftest.err
18628        } && test -s conftest$ac_exeext &&
18629        $as_test_x conftest$ac_exeext; then
18630   ol_cv_resolver_none=yes
18631 else
18632   echo "$as_me: failed program was:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18634
18635         ol_cv_resolver_none=no
18636 fi
18637
18638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18639       conftest$ac_exeext conftest.$ac_ext
18640
18641         LIBS="$ol_LIBS"
18642
18643 fi
18644 { echo "$as_me:$LINENO: result: $ol_cv_resolver_none" >&5
18645 echo "${ECHO_T}$ol_cv_resolver_none" >&6; }
18646
18647         if test $ol_cv_resolver_none = yes ; then
18648                 ol_cv_lib_resolver=yes
18649         fi
18650 fi
18651
18652 if test $ol_cv_lib_resolver = no ; then
18653         { echo "$as_me:$LINENO: checking for resolver link (-lresolv)" >&5
18654 echo $ECHO_N "checking for resolver link (-lresolv)... $ECHO_C" >&6; }
18655 if test "${ol_cv_resolver_resolv+set}" = set; then
18656   echo $ECHO_N "(cached) $ECHO_C" >&6
18657 else
18658
18659         ol_RESOLVER_LIB=-lresolv
18660         ol_LIBS=$LIBS
18661         LIBS="$ol_RESOLVER_LIB $LIBS"
18662
18663         cat >conftest.$ac_ext <<_ACEOF
18664 /* confdefs.h.  */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h.  */
18669
18670 #ifdef HAVE_SYS_TYPES_H
18671 #       include <sys/types.h>
18672 #endif
18673 #include <netinet/in.h>
18674 #ifdef HAVE_ARPA_NAMESER_H
18675 #       include <arpa/nameser.h>
18676 #endif
18677 #ifdef HAVE_RESOLV_H
18678 #       include <resolv.h>
18679 #endif
18680
18681 int
18682 main ()
18683 {
18684 {
18685         int len, status;
18686         char *request = NULL;
18687         unsigned char reply[64*1024];
18688         unsigned char host[64*1024];
18689         unsigned char *p;
18690
18691 #ifdef NS_HFIXEDSZ
18692         /* Bind 8/9 interface */
18693         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18694 #else
18695         /* Bind 4 interface */
18696 # ifndef T_SRV
18697 #  define T_SRV 33
18698 # endif
18699         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18700 #endif
18701         p = reply;
18702 #ifdef NS_HFIXEDSZ
18703         /* Bind 8/9 interface */
18704         p += NS_HFIXEDSZ;
18705 #elif defined(HFIXEDSZ)
18706         /* Bind 4 interface w/ HFIXEDSZ */
18707         p += HFIXEDSZ;
18708 #else
18709         /* Bind 4 interface w/o HFIXEDSZ */
18710         p += sizeof(HEADER);
18711 #endif
18712         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18713 }
18714   ;
18715   return 0;
18716 }
18717 _ACEOF
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722   *) ac_try_echo=$ac_try;;
18723 esac
18724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18725   (eval "$ac_link") 2>conftest.er1
18726   ac_status=$?
18727   grep -v '^ *+' conftest.er1 >conftest.err
18728   rm -f conftest.er1
18729   cat conftest.err >&5
18730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18731   (exit $ac_status); } && {
18732          test -z "$ac_c_werror_flag" ||
18733          test ! -s conftest.err
18734        } && test -s conftest$ac_exeext &&
18735        $as_test_x conftest$ac_exeext; then
18736   ol_cv_resolver_resolv=yes
18737 else
18738   echo "$as_me: failed program was:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18740
18741         ol_cv_resolver_resolv=no
18742 fi
18743
18744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18745       conftest$ac_exeext conftest.$ac_ext
18746
18747         LIBS="$ol_LIBS"
18748
18749 fi
18750 { echo "$as_me:$LINENO: result: $ol_cv_resolver_resolv" >&5
18751 echo "${ECHO_T}$ol_cv_resolver_resolv" >&6; }
18752
18753         if test $ol_cv_resolver_resolv = yes ; then
18754                 ol_cv_lib_resolver=-lresolv
18755         fi
18756 fi
18757
18758 if test $ol_cv_lib_resolver = no ; then
18759         { echo "$as_me:$LINENO: checking for resolver link (-lbind)" >&5
18760 echo $ECHO_N "checking for resolver link (-lbind)... $ECHO_C" >&6; }
18761 if test "${ol_cv_resolver_bind+set}" = set; then
18762   echo $ECHO_N "(cached) $ECHO_C" >&6
18763 else
18764
18765         ol_RESOLVER_LIB=-lbind
18766         ol_LIBS=$LIBS
18767         LIBS="$ol_RESOLVER_LIB $LIBS"
18768
18769         cat >conftest.$ac_ext <<_ACEOF
18770 /* confdefs.h.  */
18771 _ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h.  */
18775
18776 #ifdef HAVE_SYS_TYPES_H
18777 #       include <sys/types.h>
18778 #endif
18779 #include <netinet/in.h>
18780 #ifdef HAVE_ARPA_NAMESER_H
18781 #       include <arpa/nameser.h>
18782 #endif
18783 #ifdef HAVE_RESOLV_H
18784 #       include <resolv.h>
18785 #endif
18786
18787 int
18788 main ()
18789 {
18790 {
18791         int len, status;
18792         char *request = NULL;
18793         unsigned char reply[64*1024];
18794         unsigned char host[64*1024];
18795         unsigned char *p;
18796
18797 #ifdef NS_HFIXEDSZ
18798         /* Bind 8/9 interface */
18799         len = res_query(request, ns_c_in, ns_t_srv, reply, sizeof(reply));
18800 #else
18801         /* Bind 4 interface */
18802 # ifndef T_SRV
18803 #  define T_SRV 33
18804 # endif
18805         len = res_query(request, C_IN, T_SRV, reply, sizeof(reply));
18806 #endif
18807         p = reply;
18808 #ifdef NS_HFIXEDSZ
18809         /* Bind 8/9 interface */
18810         p += NS_HFIXEDSZ;
18811 #elif defined(HFIXEDSZ)
18812         /* Bind 4 interface w/ HFIXEDSZ */
18813         p += HFIXEDSZ;
18814 #else
18815         /* Bind 4 interface w/o HFIXEDSZ */
18816         p += sizeof(HEADER);
18817 #endif
18818         status = dn_expand( reply, reply+len, p, host, sizeof(host));
18819 }
18820   ;
18821   return 0;
18822 }
18823 _ACEOF
18824 rm -f conftest.$ac_objext conftest$ac_exeext
18825 if { (ac_try="$ac_link"
18826 case "(($ac_try" in
18827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18828   *) ac_try_echo=$ac_try;;
18829 esac
18830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18831   (eval "$ac_link") 2>conftest.er1
18832   ac_status=$?
18833   grep -v '^ *+' conftest.er1 >conftest.err
18834   rm -f conftest.er1
18835   cat conftest.err >&5
18836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837   (exit $ac_status); } && {
18838          test -z "$ac_c_werror_flag" ||
18839          test ! -s conftest.err
18840        } && test -s conftest$ac_exeext &&
18841        $as_test_x conftest$ac_exeext; then
18842   ol_cv_resolver_bind=yes
18843 else
18844   echo "$as_me: failed program was:" >&5
18845 sed 's/^/| /' conftest.$ac_ext >&5
18846
18847         ol_cv_resolver_bind=no
18848 fi
18849
18850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18851       conftest$ac_exeext conftest.$ac_ext
18852
18853         LIBS="$ol_LIBS"
18854
18855 fi
18856 { echo "$as_me:$LINENO: result: $ol_cv_resolver_bind" >&5
18857 echo "${ECHO_T}$ol_cv_resolver_bind" >&6; }
18858
18859         if test $ol_cv_resolver_bind = yes ; then
18860                 ol_cv_lib_resolver=-lbind
18861         fi
18862 fi
18863
18864
18865
18866 ol_link_dnssrv=no
18867 if test "$ol_cv_lib_resolver" != no ; then
18868
18869 cat >>confdefs.h <<\_ACEOF
18870 #define HAVE_RES_QUERY 1
18871 _ACEOF
18872
18873
18874         if test "$ol_enable_dnssrv" != no ; then
18875                 ol_link_dnssrv=yes
18876         fi
18877
18878         if test "$ol_cv_lib_resolver" != yes ; then
18879                 LIBS="$ol_cv_lib_resolver $LIBS"
18880         fi
18881 fi
18882
18883 if test "$ol_enable_dnssrv" = yes || test "$ol_enable_dnssrv" = mod ; then
18884         if test "$ol_link_dnssrv" = no ; then
18885                 { { echo "$as_me:$LINENO: error: DNSSRV requires res_query()" >&5
18886 echo "$as_me: error: DNSSRV requires res_query()" >&2;}
18887    { (exit 1); exit 1; }; }
18888         fi
18889 else
18890         ol_enable_dnssrv=no
18891 fi
18892
18893
18894 for ac_func in hstrerror
18895 do
18896 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18897 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18898 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18900   echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902   cat >conftest.$ac_ext <<_ACEOF
18903 /* confdefs.h.  */
18904 _ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h.  */
18908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18910 #define $ac_func innocuous_$ac_func
18911
18912 /* System header to define __stub macros and hopefully few prototypes,
18913     which can conflict with char $ac_func (); below.
18914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18915     <limits.h> exists even on freestanding compilers.  */
18916
18917 #ifdef __STDC__
18918 # include <limits.h>
18919 #else
18920 # include <assert.h>
18921 #endif
18922
18923 #undef $ac_func
18924
18925 /* Override any GCC internal prototype to avoid an error.
18926    Use char because int might match the return type of a GCC
18927    builtin and then its argument prototype would still apply.  */
18928 #ifdef __cplusplus
18929 extern "C"
18930 #endif
18931 char $ac_func ();
18932 /* The GNU C library defines this for functions which it implements
18933     to always fail with ENOSYS.  Some functions are actually named
18934     something starting with __ and the normal name is an alias.  */
18935 #if defined __stub_$ac_func || defined __stub___$ac_func
18936 choke me
18937 #endif
18938
18939 int
18940 main ()
18941 {
18942 return $ac_func ();
18943   ;
18944   return 0;
18945 }
18946 _ACEOF
18947 rm -f conftest.$ac_objext conftest$ac_exeext
18948 if { (ac_try="$ac_link"
18949 case "(($ac_try" in
18950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951   *) ac_try_echo=$ac_try;;
18952 esac
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954   (eval "$ac_link") 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } && {
18961          test -z "$ac_c_werror_flag" ||
18962          test ! -s conftest.err
18963        } && test -s conftest$ac_exeext &&
18964        $as_test_x conftest$ac_exeext; then
18965   eval "$as_ac_var=yes"
18966 else
18967   echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18969
18970         eval "$as_ac_var=no"
18971 fi
18972
18973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18974       conftest$ac_exeext conftest.$ac_ext
18975 fi
18976 ac_res=`eval echo '${'$as_ac_var'}'`
18977                { echo "$as_me:$LINENO: result: $ac_res" >&5
18978 echo "${ECHO_T}$ac_res" >&6; }
18979 if test `eval echo '${'$as_ac_var'}'` = yes; then
18980   cat >>confdefs.h <<_ACEOF
18981 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18982 _ACEOF
18983
18984 fi
18985 done
18986
18987
18988
18989
18990
18991
18992 for ac_func in getaddrinfo getnameinfo gai_strerror inet_ntop
18993 do
18994 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18995 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18996 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18997 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18998   echo $ECHO_N "(cached) $ECHO_C" >&6
18999 else
19000   cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19008 #define $ac_func innocuous_$ac_func
19009
19010 /* System header to define __stub macros and hopefully few prototypes,
19011     which can conflict with char $ac_func (); below.
19012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19013     <limits.h> exists even on freestanding compilers.  */
19014
19015 #ifdef __STDC__
19016 # include <limits.h>
19017 #else
19018 # include <assert.h>
19019 #endif
19020
19021 #undef $ac_func
19022
19023 /* Override any GCC internal prototype to avoid an error.
19024    Use char because int might match the return type of a GCC
19025    builtin and then its argument prototype would still apply.  */
19026 #ifdef __cplusplus
19027 extern "C"
19028 #endif
19029 char $ac_func ();
19030 /* The GNU C library defines this for functions which it implements
19031     to always fail with ENOSYS.  Some functions are actually named
19032     something starting with __ and the normal name is an alias.  */
19033 #if defined __stub_$ac_func || defined __stub___$ac_func
19034 choke me
19035 #endif
19036
19037 int
19038 main ()
19039 {
19040 return $ac_func ();
19041   ;
19042   return 0;
19043 }
19044 _ACEOF
19045 rm -f conftest.$ac_objext conftest$ac_exeext
19046 if { (ac_try="$ac_link"
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_link") 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_exeext &&
19062        $as_test_x conftest$ac_exeext; then
19063   eval "$as_ac_var=yes"
19064 else
19065   echo "$as_me: failed program was:" >&5
19066 sed 's/^/| /' conftest.$ac_ext >&5
19067
19068         eval "$as_ac_var=no"
19069 fi
19070
19071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19072       conftest$ac_exeext conftest.$ac_ext
19073 fi
19074 ac_res=`eval echo '${'$as_ac_var'}'`
19075                { echo "$as_me:$LINENO: result: $ac_res" >&5
19076 echo "${ECHO_T}$ac_res" >&6; }
19077 if test `eval echo '${'$as_ac_var'}'` = yes; then
19078   cat >>confdefs.h <<_ACEOF
19079 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19080 _ACEOF
19081
19082 fi
19083 done
19084
19085
19086 ol_link_ipv6=no
19087 if test $ac_cv_func_getaddrinfo = no || test $ac_cv_func_inet_ntop = no ; then
19088         if test $ol_enable_ipv6 = yes ; then
19089                 { { echo "$as_me:$LINENO: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&5
19090 echo "$as_me: error: IPv6 support requires getaddrinfo() and inet_ntop()" >&2;}
19091    { (exit 1); exit 1; }; }
19092         fi
19093 elif test $ol_enable_ipv6 != no ; then
19094         { echo "$as_me:$LINENO: checking INET6_ADDRSTRLEN" >&5
19095 echo $ECHO_N "checking INET6_ADDRSTRLEN... $ECHO_C" >&6; }
19096 if test "${ol_cv_inet6_addrstrlen+set}" = set; then
19097   echo $ECHO_N "(cached) $ECHO_C" >&6
19098 else
19099
19100                 cat >conftest.$ac_ext <<_ACEOF
19101 /* confdefs.h.  */
19102 _ACEOF
19103 cat confdefs.h >>conftest.$ac_ext
19104 cat >>conftest.$ac_ext <<_ACEOF
19105 /* end confdefs.h.  */
19106
19107 #                       include <netinet/in.h>
19108 #                       ifdef INET6_ADDRSTRLEN
19109                                 __has_inet6_addrstrlen__;
19110 #                       endif
19111
19112 _ACEOF
19113 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19114   $EGREP "__has_inet6_addrstrlen__" >/dev/null 2>&1; then
19115   ol_cv_inet6_addrstrlen=yes
19116 else
19117   ol_cv_inet6_addrstrlen=no
19118 fi
19119 rm -f conftest*
19120
19121 fi
19122 { echo "$as_me:$LINENO: result: $ol_cv_inet6_addrstrlen" >&5
19123 echo "${ECHO_T}$ol_cv_inet6_addrstrlen" >&6; }
19124
19125
19126         { echo "$as_me:$LINENO: checking struct sockaddr_storage" >&5
19127 echo $ECHO_N "checking struct sockaddr_storage... $ECHO_C" >&6; }
19128 if test "${ol_cv_struct_sockaddr_storage+set}" = set; then
19129   echo $ECHO_N "(cached) $ECHO_C" >&6
19130 else
19131
19132                 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h.  */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h.  */
19138
19139 #include <sys/types.h>
19140 #include <sys/socket.h>
19141
19142 int
19143 main ()
19144 {
19145
19146                         struct sockaddr_storage ss;
19147
19148   ;
19149   return 0;
19150 }
19151 _ACEOF
19152 rm -f conftest.$ac_objext
19153 if { (ac_try="$ac_compile"
19154 case "(($ac_try" in
19155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19156   *) ac_try_echo=$ac_try;;
19157 esac
19158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19159   (eval "$ac_compile") 2>conftest.er1
19160   ac_status=$?
19161   grep -v '^ *+' conftest.er1 >conftest.err
19162   rm -f conftest.er1
19163   cat conftest.err >&5
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); } && {
19166          test -z "$ac_c_werror_flag" ||
19167          test ! -s conftest.err
19168        } && test -s conftest.$ac_objext; then
19169   ol_cv_struct_sockaddr_storage=yes
19170 else
19171   echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174         ol_cv_struct_sockaddr_storage=no
19175 fi
19176
19177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19178 fi
19179 { echo "$as_me:$LINENO: result: $ol_cv_struct_sockaddr_storage" >&5
19180 echo "${ECHO_T}$ol_cv_struct_sockaddr_storage" >&6; }
19181
19182         if test $ol_cv_inet6_addrstrlen = yes &&
19183            test $ol_cv_struct_sockaddr_storage = yes ; then
19184                 ol_link_ipv6=yes
19185         elif test $ol_enable_ipv6 = yes &&
19186              test $ol_cv_inet6_addrstrlen = no ; then
19187                 { { echo "$as_me:$LINENO: error: IPv6 support requires INET6_ADDRSTRLEN" >&5
19188 echo "$as_me: error: IPv6 support requires INET6_ADDRSTRLEN" >&2;}
19189    { (exit 1); exit 1; }; }
19190         elif test $ol_enable_ipv6 = yes &&
19191              test $ol_cv_struct_sockaddr_storage = no ; then
19192                 { { echo "$as_me:$LINENO: error: IPv6 support requires struct sockaddr_storage" >&5
19193 echo "$as_me: error: IPv6 support requires struct sockaddr_storage" >&2;}
19194    { (exit 1); exit 1; }; }
19195         fi
19196 fi
19197
19198 if test $ol_enable_local != no ; then
19199
19200 for ac_header in sys/un.h
19201 do
19202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19204   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19207   echo $ECHO_N "(cached) $ECHO_C" >&6
19208 fi
19209 ac_res=`eval echo '${'$as_ac_Header'}'`
19210                { echo "$as_me:$LINENO: result: $ac_res" >&5
19211 echo "${ECHO_T}$ac_res" >&6; }
19212 else
19213   # Is the header compilable?
19214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19216 cat >conftest.$ac_ext <<_ACEOF
19217 /* confdefs.h.  */
19218 _ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h.  */
19222 $ac_includes_default
19223 #include <$ac_header>
19224 _ACEOF
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229   *) ac_try_echo=$ac_try;;
19230 esac
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232   (eval "$ac_compile") 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } && {
19239          test -z "$ac_c_werror_flag" ||
19240          test ! -s conftest.err
19241        } && test -s conftest.$ac_objext; then
19242   ac_header_compiler=yes
19243 else
19244   echo "$as_me: failed program was:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19246
19247         ac_header_compiler=no
19248 fi
19249
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19252 echo "${ECHO_T}$ac_header_compiler" >&6; }
19253
19254 # Is the header present?
19255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19257 cat >conftest.$ac_ext <<_ACEOF
19258 /* confdefs.h.  */
19259 _ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h.  */
19263 #include <$ac_header>
19264 _ACEOF
19265 if { (ac_try="$ac_cpp conftest.$ac_ext"
19266 case "(($ac_try" in
19267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268   *) ac_try_echo=$ac_try;;
19269 esac
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19272   ac_status=$?
19273   grep -v '^ *+' conftest.er1 >conftest.err
19274   rm -f conftest.er1
19275   cat conftest.err >&5
19276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277   (exit $ac_status); } >/dev/null && {
19278          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19279          test ! -s conftest.err
19280        }; then
19281   ac_header_preproc=yes
19282 else
19283   echo "$as_me: failed program was:" >&5
19284 sed 's/^/| /' conftest.$ac_ext >&5
19285
19286   ac_header_preproc=no
19287 fi
19288
19289 rm -f conftest.err conftest.$ac_ext
19290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19291 echo "${ECHO_T}$ac_header_preproc" >&6; }
19292
19293 # So?  What about this header?
19294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19295   yes:no: )
19296     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19298     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19300     ac_header_preproc=yes
19301     ;;
19302   no:yes:* )
19303     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19305     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19306 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19307     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19309     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19310 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19311     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19313     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19315     ( cat <<\_ASBOX
19316 ## --------------------------------------------- ##
19317 ## Report this to <http://www.openldap.org/its/> ##
19318 ## --------------------------------------------- ##
19319 _ASBOX
19320      ) | sed "s/^/$as_me: WARNING:     /" >&2
19321     ;;
19322 esac
19323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19325 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19326   echo $ECHO_N "(cached) $ECHO_C" >&6
19327 else
19328   eval "$as_ac_Header=\$ac_header_preproc"
19329 fi
19330 ac_res=`eval echo '${'$as_ac_Header'}'`
19331                { echo "$as_me:$LINENO: result: $ac_res" >&5
19332 echo "${ECHO_T}$ac_res" >&6; }
19333
19334 fi
19335 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19336   cat >>confdefs.h <<_ACEOF
19337 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19338 _ACEOF
19339
19340 fi
19341
19342 done
19343
19344
19345         if test $ol_enable_local = auto ; then
19346                 ol_enable_local=$ac_cv_header_sys_un_h
19347         elif test $ac_cv_header_sys_un_h = no ; then
19348                 { { echo "$as_me:$LINENO: error: AF_LOCAL domain support requires sys/un.h" >&5
19349 echo "$as_me: error: AF_LOCAL domain support requires sys/un.h" >&2;}
19350    { (exit 1); exit 1; }; }
19351         fi
19352 fi
19353
19354
19355 if test $ol_with_tls = yes ; then
19356         ol_with_tls=auto
19357 fi
19358
19359 ol_link_tls=no
19360 if test $ol_with_tls = openssl || test $ol_with_tls = auto ; then
19361
19362 for ac_header in openssl/ssl.h
19363 do
19364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19366   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19369   echo $ECHO_N "(cached) $ECHO_C" >&6
19370 fi
19371 ac_res=`eval echo '${'$as_ac_Header'}'`
19372                { echo "$as_me:$LINENO: result: $ac_res" >&5
19373 echo "${ECHO_T}$ac_res" >&6; }
19374 else
19375   # Is the header compilable?
19376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19378 cat >conftest.$ac_ext <<_ACEOF
19379 /* confdefs.h.  */
19380 _ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h.  */
19384 $ac_includes_default
19385 #include <$ac_header>
19386 _ACEOF
19387 rm -f conftest.$ac_objext
19388 if { (ac_try="$ac_compile"
19389 case "(($ac_try" in
19390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19391   *) ac_try_echo=$ac_try;;
19392 esac
19393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19394   (eval "$ac_compile") 2>conftest.er1
19395   ac_status=$?
19396   grep -v '^ *+' conftest.er1 >conftest.err
19397   rm -f conftest.er1
19398   cat conftest.err >&5
19399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19400   (exit $ac_status); } && {
19401          test -z "$ac_c_werror_flag" ||
19402          test ! -s conftest.err
19403        } && test -s conftest.$ac_objext; then
19404   ac_header_compiler=yes
19405 else
19406   echo "$as_me: failed program was:" >&5
19407 sed 's/^/| /' conftest.$ac_ext >&5
19408
19409         ac_header_compiler=no
19410 fi
19411
19412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19414 echo "${ECHO_T}$ac_header_compiler" >&6; }
19415
19416 # Is the header present?
19417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19419 cat >conftest.$ac_ext <<_ACEOF
19420 /* confdefs.h.  */
19421 _ACEOF
19422 cat confdefs.h >>conftest.$ac_ext
19423 cat >>conftest.$ac_ext <<_ACEOF
19424 /* end confdefs.h.  */
19425 #include <$ac_header>
19426 _ACEOF
19427 if { (ac_try="$ac_cpp conftest.$ac_ext"
19428 case "(($ac_try" in
19429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430   *) ac_try_echo=$ac_try;;
19431 esac
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19434   ac_status=$?
19435   grep -v '^ *+' conftest.er1 >conftest.err
19436   rm -f conftest.er1
19437   cat conftest.err >&5
19438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19439   (exit $ac_status); } >/dev/null && {
19440          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19441          test ! -s conftest.err
19442        }; then
19443   ac_header_preproc=yes
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448   ac_header_preproc=no
19449 fi
19450
19451 rm -f conftest.err conftest.$ac_ext
19452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19453 echo "${ECHO_T}$ac_header_preproc" >&6; }
19454
19455 # So?  What about this header?
19456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19457   yes:no: )
19458     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19460     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19462     ac_header_preproc=yes
19463     ;;
19464   no:yes:* )
19465     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19467     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19468 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19469     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19471     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19472 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19473     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19475     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19477     ( cat <<\_ASBOX
19478 ## --------------------------------------------- ##
19479 ## Report this to <http://www.openldap.org/its/> ##
19480 ## --------------------------------------------- ##
19481 _ASBOX
19482      ) | sed "s/^/$as_me: WARNING:     /" >&2
19483     ;;
19484 esac
19485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19488   echo $ECHO_N "(cached) $ECHO_C" >&6
19489 else
19490   eval "$as_ac_Header=\$ac_header_preproc"
19491 fi
19492 ac_res=`eval echo '${'$as_ac_Header'}'`
19493                { echo "$as_me:$LINENO: result: $ac_res" >&5
19494 echo "${ECHO_T}$ac_res" >&6; }
19495
19496 fi
19497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19498   cat >>confdefs.h <<_ACEOF
19499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19500 _ACEOF
19501
19502 fi
19503
19504 done
19505
19506
19507         if test $ac_cv_header_openssl_ssl_h = yes ; then
19508                 { echo "$as_me:$LINENO: checking for SSL_library_init in -lssl" >&5
19509 echo $ECHO_N "checking for SSL_library_init in -lssl... $ECHO_C" >&6; }
19510 if test "${ac_cv_lib_ssl_SSL_library_init+set}" = set; then
19511   echo $ECHO_N "(cached) $ECHO_C" >&6
19512 else
19513   ac_check_lib_save_LIBS=$LIBS
19514 LIBS="-lssl -lcrypto $LIBS"
19515 cat >conftest.$ac_ext <<_ACEOF
19516 /* confdefs.h.  */
19517 _ACEOF
19518 cat confdefs.h >>conftest.$ac_ext
19519 cat >>conftest.$ac_ext <<_ACEOF
19520 /* end confdefs.h.  */
19521
19522 /* Override any GCC internal prototype to avoid an error.
19523    Use char because int might match the return type of a GCC
19524    builtin and then its argument prototype would still apply.  */
19525 #ifdef __cplusplus
19526 extern "C"
19527 #endif
19528 char SSL_library_init ();
19529 int
19530 main ()
19531 {
19532 return SSL_library_init ();
19533   ;
19534   return 0;
19535 }
19536 _ACEOF
19537 rm -f conftest.$ac_objext conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541   *) ac_try_echo=$ac_try;;
19542 esac
19543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19544   (eval "$ac_link") 2>conftest.er1
19545   ac_status=$?
19546   grep -v '^ *+' conftest.er1 >conftest.err
19547   rm -f conftest.er1
19548   cat conftest.err >&5
19549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } && {
19551          test -z "$ac_c_werror_flag" ||
19552          test ! -s conftest.err
19553        } && test -s conftest$ac_exeext &&
19554        $as_test_x conftest$ac_exeext; then
19555   ac_cv_lib_ssl_SSL_library_init=yes
19556 else
19557   echo "$as_me: failed program was:" >&5
19558 sed 's/^/| /' conftest.$ac_ext >&5
19559
19560         ac_cv_lib_ssl_SSL_library_init=no
19561 fi
19562
19563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19564       conftest$ac_exeext conftest.$ac_ext
19565 LIBS=$ac_check_lib_save_LIBS
19566 fi
19567 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19568 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_library_init" >&6; }
19569 if test $ac_cv_lib_ssl_SSL_library_init = yes; then
19570   have_openssl=yes
19571                         need_rsaref=no
19572 else
19573   have_openssl=no
19574 fi
19575
19576
19577                 if test $have_openssl = no ; then
19578                         { echo "$as_me:$LINENO: checking for ssl3_accept in -lssl" >&5
19579 echo $ECHO_N "checking for ssl3_accept in -lssl... $ECHO_C" >&6; }
19580 if test "${ac_cv_lib_ssl_ssl3_accept+set}" = set; then
19581   echo $ECHO_N "(cached) $ECHO_C" >&6
19582 else
19583   ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lssl -lcrypto -lRSAglue -lrsaref $LIBS"
19585 cat >conftest.$ac_ext <<_ACEOF
19586 /* confdefs.h.  */
19587 _ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h.  */
19591
19592 /* Override any GCC internal prototype to avoid an error.
19593    Use char because int might match the return type of a GCC
19594    builtin and then its argument prototype would still apply.  */
19595 #ifdef __cplusplus
19596 extern "C"
19597 #endif
19598 char ssl3_accept ();
19599 int
19600 main ()
19601 {
19602 return ssl3_accept ();
19603   ;
19604   return 0;
19605 }
19606 _ACEOF
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611   *) ac_try_echo=$ac_try;;
19612 esac
19613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19614   (eval "$ac_link") 2>conftest.er1
19615   ac_status=$?
19616   grep -v '^ *+' conftest.er1 >conftest.err
19617   rm -f conftest.er1
19618   cat conftest.err >&5
19619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620   (exit $ac_status); } && {
19621          test -z "$ac_c_werror_flag" ||
19622          test ! -s conftest.err
19623        } && test -s conftest$ac_exeext &&
19624        $as_test_x conftest$ac_exeext; then
19625   ac_cv_lib_ssl_ssl3_accept=yes
19626 else
19627   echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19629
19630         ac_cv_lib_ssl_ssl3_accept=no
19631 fi
19632
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634       conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19636 fi
19637 { echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_ssl3_accept" >&5
19638 echo "${ECHO_T}$ac_cv_lib_ssl_ssl3_accept" >&6; }
19639 if test $ac_cv_lib_ssl_ssl3_accept = yes; then
19640   have_openssl=yes
19641                                 need_rsaref=yes
19642 else
19643   have_openssl=no
19644 fi
19645
19646                 fi
19647
19648                 if test $have_openssl = yes ; then
19649                         ol_with_tls=openssl
19650                         ol_link_tls=yes
19651
19652
19653 cat >>confdefs.h <<\_ACEOF
19654 #define HAVE_OPENSSL 1
19655 _ACEOF
19656
19657
19658                         if test $need_rsaref = yes; then
19659
19660 cat >>confdefs.h <<\_ACEOF
19661 #define HAVE_RSAREF 1
19662 _ACEOF
19663
19664
19665                                 TLS_LIBS="-lssl -lcrypto -lRSAglue -lrsaref"
19666                         else
19667                                 TLS_LIBS="-lssl -lcrypto"
19668                         fi
19669
19670                         { echo "$as_me:$LINENO: checking OpenSSL library version (CRL checking capability)" >&5
19671 echo $ECHO_N "checking OpenSSL library version (CRL checking capability)... $ECHO_C" >&6; }
19672 if test "${ol_cv_ssl_crl_compat+set}" = set; then
19673   echo $ECHO_N "(cached) $ECHO_C" >&6
19674 else
19675
19676                 cat >conftest.$ac_ext <<_ACEOF
19677 /* confdefs.h.  */
19678 _ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h.  */
19682
19683 #ifdef HAVE_OPENSSL_SSL_H
19684 #include <openssl/ssl.h>
19685 #endif
19686
19687 /* Require 0.9.7d+ */
19688 #if OPENSSL_VERSION_NUMBER >= 0x0090704fL
19689         char *__ssl_compat = "0.9.7d";
19690 #endif
19691
19692 _ACEOF
19693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19694   $EGREP "__ssl_compat" >/dev/null 2>&1; then
19695   ol_cv_ssl_crl_compat=yes
19696 else
19697   ol_cv_ssl_crl_compat=no
19698 fi
19699 rm -f conftest*
19700
19701 fi
19702 { echo "$as_me:$LINENO: result: $ol_cv_ssl_crl_compat" >&5
19703 echo "${ECHO_T}$ol_cv_ssl_crl_compat" >&6; }
19704
19705                         if test $ol_cv_ssl_crl_compat = yes ; then
19706
19707 cat >>confdefs.h <<\_ACEOF
19708 #define HAVE_OPENSSL_CRL 1
19709 _ACEOF
19710
19711                         fi
19712                 fi
19713         fi
19714 fi
19715
19716 if test $ol_link_tls = no ; then
19717         if test $ol_with_tls = gnutls || test $ol_with_tls = auto ; then
19718
19719 for ac_header in gnutls/gnutls.h
19720 do
19721 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19723   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19724 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19726   echo $ECHO_N "(cached) $ECHO_C" >&6
19727 fi
19728 ac_res=`eval echo '${'$as_ac_Header'}'`
19729                { echo "$as_me:$LINENO: result: $ac_res" >&5
19730 echo "${ECHO_T}$ac_res" >&6; }
19731 else
19732   # Is the header compilable?
19733 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19735 cat >conftest.$ac_ext <<_ACEOF
19736 /* confdefs.h.  */
19737 _ACEOF
19738 cat confdefs.h >>conftest.$ac_ext
19739 cat >>conftest.$ac_ext <<_ACEOF
19740 /* end confdefs.h.  */
19741 $ac_includes_default
19742 #include <$ac_header>
19743 _ACEOF
19744 rm -f conftest.$ac_objext
19745 if { (ac_try="$ac_compile"
19746 case "(($ac_try" in
19747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19748   *) ac_try_echo=$ac_try;;
19749 esac
19750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19751   (eval "$ac_compile") 2>conftest.er1
19752   ac_status=$?
19753   grep -v '^ *+' conftest.er1 >conftest.err
19754   rm -f conftest.er1
19755   cat conftest.err >&5
19756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19757   (exit $ac_status); } && {
19758          test -z "$ac_c_werror_flag" ||
19759          test ! -s conftest.err
19760        } && test -s conftest.$ac_objext; then
19761   ac_header_compiler=yes
19762 else
19763   echo "$as_me: failed program was:" >&5
19764 sed 's/^/| /' conftest.$ac_ext >&5
19765
19766         ac_header_compiler=no
19767 fi
19768
19769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19770 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19771 echo "${ECHO_T}$ac_header_compiler" >&6; }
19772
19773 # Is the header present?
19774 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19775 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h.  */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h.  */
19782 #include <$ac_header>
19783 _ACEOF
19784 if { (ac_try="$ac_cpp conftest.$ac_ext"
19785 case "(($ac_try" in
19786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787   *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19791   ac_status=$?
19792   grep -v '^ *+' conftest.er1 >conftest.err
19793   rm -f conftest.er1
19794   cat conftest.err >&5
19795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796   (exit $ac_status); } >/dev/null && {
19797          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19798          test ! -s conftest.err
19799        }; then
19800   ac_header_preproc=yes
19801 else
19802   echo "$as_me: failed program was:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19804
19805   ac_header_preproc=no
19806 fi
19807
19808 rm -f conftest.err conftest.$ac_ext
19809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19810 echo "${ECHO_T}$ac_header_preproc" >&6; }
19811
19812 # So?  What about this header?
19813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19814   yes:no: )
19815     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19817     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19819     ac_header_preproc=yes
19820     ;;
19821   no:yes:* )
19822     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19824     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19825 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19826     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19828     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19829 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19830     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19832     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19834     ( cat <<\_ASBOX
19835 ## --------------------------------------------- ##
19836 ## Report this to <http://www.openldap.org/its/> ##
19837 ## --------------------------------------------- ##
19838 _ASBOX
19839      ) | sed "s/^/$as_me: WARNING:     /" >&2
19840     ;;
19841 esac
19842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19845   echo $ECHO_N "(cached) $ECHO_C" >&6
19846 else
19847   eval "$as_ac_Header=\$ac_header_preproc"
19848 fi
19849 ac_res=`eval echo '${'$as_ac_Header'}'`
19850                { echo "$as_me:$LINENO: result: $ac_res" >&5
19851 echo "${ECHO_T}$ac_res" >&6; }
19852
19853 fi
19854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19855   cat >>confdefs.h <<_ACEOF
19856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19857 _ACEOF
19858
19859 fi
19860
19861 done
19862
19863
19864                 if test $ac_cv_header_gnutls_gnutls_h = yes ; then
19865                         { echo "$as_me:$LINENO: checking for gnutls_init in -lgnutls" >&5
19866 echo $ECHO_N "checking for gnutls_init in -lgnutls... $ECHO_C" >&6; }
19867 if test "${ac_cv_lib_gnutls_gnutls_init+set}" = set; then
19868   echo $ECHO_N "(cached) $ECHO_C" >&6
19869 else
19870   ac_check_lib_save_LIBS=$LIBS
19871 LIBS="-lgnutls  $LIBS"
19872 cat >conftest.$ac_ext <<_ACEOF
19873 /* confdefs.h.  */
19874 _ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h.  */
19878
19879 /* Override any GCC internal prototype to avoid an error.
19880    Use char because int might match the return type of a GCC
19881    builtin and then its argument prototype would still apply.  */
19882 #ifdef __cplusplus
19883 extern "C"
19884 #endif
19885 char gnutls_init ();
19886 int
19887 main ()
19888 {
19889 return gnutls_init ();
19890   ;
19891   return 0;
19892 }
19893 _ACEOF
19894 rm -f conftest.$ac_objext conftest$ac_exeext
19895 if { (ac_try="$ac_link"
19896 case "(($ac_try" in
19897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19898   *) ac_try_echo=$ac_try;;
19899 esac
19900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19901   (eval "$ac_link") 2>conftest.er1
19902   ac_status=$?
19903   grep -v '^ *+' conftest.er1 >conftest.err
19904   rm -f conftest.er1
19905   cat conftest.err >&5
19906   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19907   (exit $ac_status); } && {
19908          test -z "$ac_c_werror_flag" ||
19909          test ! -s conftest.err
19910        } && test -s conftest$ac_exeext &&
19911        $as_test_x conftest$ac_exeext; then
19912   ac_cv_lib_gnutls_gnutls_init=yes
19913 else
19914   echo "$as_me: failed program was:" >&5
19915 sed 's/^/| /' conftest.$ac_ext >&5
19916
19917         ac_cv_lib_gnutls_gnutls_init=no
19918 fi
19919
19920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19921       conftest$ac_exeext conftest.$ac_ext
19922 LIBS=$ac_check_lib_save_LIBS
19923 fi
19924 { echo "$as_me:$LINENO: result: $ac_cv_lib_gnutls_gnutls_init" >&5
19925 echo "${ECHO_T}$ac_cv_lib_gnutls_gnutls_init" >&6; }
19926 if test $ac_cv_lib_gnutls_gnutls_init = yes; then
19927   have_gnutls=yes
19928 else
19929   have_gnutls=no
19930 fi
19931
19932
19933                         if test $have_gnutls = yes ; then
19934                                 ol_with_tls=gnutls
19935                                 ol_link_tls=yes
19936
19937                                 TLS_LIBS="-lgnutls"
19938
19939
19940 cat >>confdefs.h <<\_ACEOF
19941 #define HAVE_GNUTLS 1
19942 _ACEOF
19943
19944                         fi
19945                 fi
19946         fi
19947 fi
19948
19949 if test $ol_link_tls = no ; then
19950         if test $ol_with_tls = moznss || test $ol_with_tls = auto ; then
19951                 have_moznss=no
19952
19953 for ac_header in nssutil.h
19954 do
19955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19957   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19960   echo $ECHO_N "(cached) $ECHO_C" >&6
19961 fi
19962 ac_res=`eval echo '${'$as_ac_Header'}'`
19963                { echo "$as_me:$LINENO: result: $ac_res" >&5
19964 echo "${ECHO_T}$ac_res" >&6; }
19965 else
19966   # Is the header compilable?
19967 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19968 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19969 cat >conftest.$ac_ext <<_ACEOF
19970 /* confdefs.h.  */
19971 _ACEOF
19972 cat confdefs.h >>conftest.$ac_ext
19973 cat >>conftest.$ac_ext <<_ACEOF
19974 /* end confdefs.h.  */
19975 $ac_includes_default
19976 #include <$ac_header>
19977 _ACEOF
19978 rm -f conftest.$ac_objext
19979 if { (ac_try="$ac_compile"
19980 case "(($ac_try" in
19981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982   *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985   (eval "$ac_compile") 2>conftest.er1
19986   ac_status=$?
19987   grep -v '^ *+' conftest.er1 >conftest.err
19988   rm -f conftest.er1
19989   cat conftest.err >&5
19990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991   (exit $ac_status); } && {
19992          test -z "$ac_c_werror_flag" ||
19993          test ! -s conftest.err
19994        } && test -s conftest.$ac_objext; then
19995   ac_header_compiler=yes
19996 else
19997   echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000         ac_header_compiler=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20005 echo "${ECHO_T}$ac_header_compiler" >&6; }
20006
20007 # Is the header present?
20008 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20009 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20010 cat >conftest.$ac_ext <<_ACEOF
20011 /* confdefs.h.  */
20012 _ACEOF
20013 cat confdefs.h >>conftest.$ac_ext
20014 cat >>conftest.$ac_ext <<_ACEOF
20015 /* end confdefs.h.  */
20016 #include <$ac_header>
20017 _ACEOF
20018 if { (ac_try="$ac_cpp conftest.$ac_ext"
20019 case "(($ac_try" in
20020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20021   *) ac_try_echo=$ac_try;;
20022 esac
20023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20024   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20025   ac_status=$?
20026   grep -v '^ *+' conftest.er1 >conftest.err
20027   rm -f conftest.er1
20028   cat conftest.err >&5
20029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030   (exit $ac_status); } >/dev/null && {
20031          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20032          test ! -s conftest.err
20033        }; then
20034   ac_header_preproc=yes
20035 else
20036   echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20038
20039   ac_header_preproc=no
20040 fi
20041
20042 rm -f conftest.err conftest.$ac_ext
20043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20044 echo "${ECHO_T}$ac_header_preproc" >&6; }
20045
20046 # So?  What about this header?
20047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20048   yes:no: )
20049     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20051     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20053     ac_header_preproc=yes
20054     ;;
20055   no:yes:* )
20056     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20058     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20059 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20060     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20062     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20063 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20068     ( cat <<\_ASBOX
20069 ## --------------------------------------------- ##
20070 ## Report this to <http://www.openldap.org/its/> ##
20071 ## --------------------------------------------- ##
20072 _ASBOX
20073      ) | sed "s/^/$as_me: WARNING:     /" >&2
20074     ;;
20075 esac
20076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20079   echo $ECHO_N "(cached) $ECHO_C" >&6
20080 else
20081   eval "$as_ac_Header=\$ac_header_preproc"
20082 fi
20083 ac_res=`eval echo '${'$as_ac_Header'}'`
20084                { echo "$as_me:$LINENO: result: $ac_res" >&5
20085 echo "${ECHO_T}$ac_res" >&6; }
20086
20087 fi
20088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20089   cat >>confdefs.h <<_ACEOF
20090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20091 _ACEOF
20092
20093 fi
20094
20095 done
20096
20097                 if test "$ac_cv_header_nssutil_h" = yes ; then
20098                         { echo "$as_me:$LINENO: checking for NSS_Initialize in -lnss3" >&5
20099 echo $ECHO_N "checking for NSS_Initialize in -lnss3... $ECHO_C" >&6; }
20100 if test "${ac_cv_lib_nss3_NSS_Initialize+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103   ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lnss3  $LIBS"
20105 cat >conftest.$ac_ext <<_ACEOF
20106 /* confdefs.h.  */
20107 _ACEOF
20108 cat confdefs.h >>conftest.$ac_ext
20109 cat >>conftest.$ac_ext <<_ACEOF
20110 /* end confdefs.h.  */
20111
20112 /* Override any GCC internal prototype to avoid an error.
20113    Use char because int might match the return type of a GCC
20114    builtin and then its argument prototype would still apply.  */
20115 #ifdef __cplusplus
20116 extern "C"
20117 #endif
20118 char NSS_Initialize ();
20119 int
20120 main ()
20121 {
20122 return NSS_Initialize ();
20123   ;
20124   return 0;
20125 }
20126 _ACEOF
20127 rm -f conftest.$ac_objext conftest$ac_exeext
20128 if { (ac_try="$ac_link"
20129 case "(($ac_try" in
20130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20131   *) ac_try_echo=$ac_try;;
20132 esac
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134   (eval "$ac_link") 2>conftest.er1
20135   ac_status=$?
20136   grep -v '^ *+' conftest.er1 >conftest.err
20137   rm -f conftest.er1
20138   cat conftest.err >&5
20139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20140   (exit $ac_status); } && {
20141          test -z "$ac_c_werror_flag" ||
20142          test ! -s conftest.err
20143        } && test -s conftest$ac_exeext &&
20144        $as_test_x conftest$ac_exeext; then
20145   ac_cv_lib_nss3_NSS_Initialize=yes
20146 else
20147   echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20149
20150         ac_cv_lib_nss3_NSS_Initialize=no
20151 fi
20152
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154       conftest$ac_exeext conftest.$ac_ext
20155 LIBS=$ac_check_lib_save_LIBS
20156 fi
20157 { echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_NSS_Initialize" >&5
20158 echo "${ECHO_T}$ac_cv_lib_nss3_NSS_Initialize" >&6; }
20159 if test $ac_cv_lib_nss3_NSS_Initialize = yes; then
20160    have_moznss=yes
20161 else
20162    have_moznss=no
20163 fi
20164
20165                 fi
20166
20167                 if test "$have_moznss" = yes ; then
20168                         ol_with_tls=moznss
20169                         ol_link_tls=yes
20170
20171 cat >>confdefs.h <<\_ACEOF
20172 #define HAVE_MOZNSS 1
20173 _ACEOF
20174
20175                         TLS_LIBS="-lssl3 -lsmime3 -lnss3 -lnssutil3 -lplds4 -lplc4 -lnspr4"
20176                 else
20177                         { { echo "$as_me:$LINENO: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&5
20178 echo "$as_me: error: MozNSS not found - please specify the location to the NSPR and NSS header files in CPPFLAGS and the location to the NSPR and NSS libraries in LDFLAGS (if not in the system location)" >&2;}
20179    { (exit 1); exit 1; }; }
20180                 fi
20181         fi
20182 fi
20183
20184 WITH_TLS=no
20185 if test $ol_link_tls = yes ; then
20186
20187 cat >>confdefs.h <<\_ACEOF
20188 #define HAVE_TLS 1
20189 _ACEOF
20190
20191         WITH_TLS=yes
20192 elif test $ol_with_tls = auto ; then
20193         { echo "$as_me:$LINENO: WARNING: Could not locate TLS/SSL package" >&5
20194 echo "$as_me: WARNING: Could not locate TLS/SSL package" >&2;}
20195         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20196 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20197 elif test $ol_with_tls != no ; then
20198         { { echo "$as_me:$LINENO: error: Could not locate TLS/SSL package" >&5
20199 echo "$as_me: error: Could not locate TLS/SSL package" >&2;}
20200    { (exit 1); exit 1; }; }
20201 else
20202         { echo "$as_me:$LINENO: WARNING: TLS data protection not supported!" >&5
20203 echo "$as_me: WARNING: TLS data protection not supported!" >&2;}
20204 fi
20205
20206 if test $ol_enable_lmpasswd != no; then
20207         if test $ol_link_tls != yes ; then
20208                 { { echo "$as_me:$LINENO: error: LAN Manager passwords require OpenSSL" >&5
20209 echo "$as_me: error: LAN Manager passwords require OpenSSL" >&2;}
20210    { (exit 1); exit 1; }; }
20211         fi
20212
20213
20214 cat >>confdefs.h <<\_ACEOF
20215 #define SLAPD_LMHASH 1
20216 _ACEOF
20217
20218 fi
20219
20220 ol_link_threads=no
20221
20222 case $ol_with_threads in auto | yes | nt)
20223
20224
20225         { echo "$as_me:$LINENO: checking for _beginthread" >&5
20226 echo $ECHO_N "checking for _beginthread... $ECHO_C" >&6; }
20227 if test "${ac_cv_func__beginthread+set}" = set; then
20228   echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230   cat >conftest.$ac_ext <<_ACEOF
20231 /* confdefs.h.  */
20232 _ACEOF
20233 cat confdefs.h >>conftest.$ac_ext
20234 cat >>conftest.$ac_ext <<_ACEOF
20235 /* end confdefs.h.  */
20236 /* Define _beginthread to an innocuous variant, in case <limits.h> declares _beginthread.
20237    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20238 #define _beginthread innocuous__beginthread
20239
20240 /* System header to define __stub macros and hopefully few prototypes,
20241     which can conflict with char _beginthread (); below.
20242     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20243     <limits.h> exists even on freestanding compilers.  */
20244
20245 #ifdef __STDC__
20246 # include <limits.h>
20247 #else
20248 # include <assert.h>
20249 #endif
20250
20251 #undef _beginthread
20252
20253 /* Override any GCC internal prototype to avoid an error.
20254    Use char because int might match the return type of a GCC
20255    builtin and then its argument prototype would still apply.  */
20256 #ifdef __cplusplus
20257 extern "C"
20258 #endif
20259 char _beginthread ();
20260 /* The GNU C library defines this for functions which it implements
20261     to always fail with ENOSYS.  Some functions are actually named
20262     something starting with __ and the normal name is an alias.  */
20263 #if defined __stub__beginthread || defined __stub____beginthread
20264 choke me
20265 #endif
20266
20267 int
20268 main ()
20269 {
20270 return _beginthread ();
20271   ;
20272   return 0;
20273 }
20274 _ACEOF
20275 rm -f conftest.$ac_objext conftest$ac_exeext
20276 if { (ac_try="$ac_link"
20277 case "(($ac_try" in
20278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20279   *) ac_try_echo=$ac_try;;
20280 esac
20281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20282   (eval "$ac_link") 2>conftest.er1
20283   ac_status=$?
20284   grep -v '^ *+' conftest.er1 >conftest.err
20285   rm -f conftest.er1
20286   cat conftest.err >&5
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); } && {
20289          test -z "$ac_c_werror_flag" ||
20290          test ! -s conftest.err
20291        } && test -s conftest$ac_exeext &&
20292        $as_test_x conftest$ac_exeext; then
20293   ac_cv_func__beginthread=yes
20294 else
20295   echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298         ac_cv_func__beginthread=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20302       conftest$ac_exeext conftest.$ac_ext
20303 fi
20304 { echo "$as_me:$LINENO: result: $ac_cv_func__beginthread" >&5
20305 echo "${ECHO_T}$ac_cv_func__beginthread" >&6; }
20306
20307
20308         if test $ac_cv_func__beginthread = yes ; then
20309
20310 cat >>confdefs.h <<\_ACEOF
20311 #define HAVE_NT_THREADS 1
20312 _ACEOF
20313
20314                 ol_cv_nt_threads=yes
20315         fi
20316
20317
20318         if test "$ol_cv_nt_threads" = yes ; then
20319                 ol_link_threads=nt
20320                 ol_with_threads=found
20321                 ol_with_yielding_select=yes
20322
20323
20324 cat >>confdefs.h <<\_ACEOF
20325 #define HAVE_NT_SERVICE_MANAGER 1
20326 _ACEOF
20327
20328
20329 cat >>confdefs.h <<\_ACEOF
20330 #define HAVE_NT_EVENT_LOG 1
20331 _ACEOF
20332
20333         fi
20334
20335         if test $ol_with_threads = nt ; then
20336                 { { echo "$as_me:$LINENO: error: could not locate NT Threads" >&5
20337 echo "$as_me: error: could not locate NT Threads" >&2;}
20338    { (exit 1); exit 1; }; }
20339         fi
20340         ;;
20341 esac
20342
20343 case $ol_with_threads in auto | yes | posix)
20344
20345
20346 for ac_header in pthread.h
20347 do
20348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20350   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353   echo $ECHO_N "(cached) $ECHO_C" >&6
20354 fi
20355 ac_res=`eval echo '${'$as_ac_Header'}'`
20356                { echo "$as_me:$LINENO: result: $ac_res" >&5
20357 echo "${ECHO_T}$ac_res" >&6; }
20358 else
20359   # Is the header compilable?
20360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20362 cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368 $ac_includes_default
20369 #include <$ac_header>
20370 _ACEOF
20371 rm -f conftest.$ac_objext
20372 if { (ac_try="$ac_compile"
20373 case "(($ac_try" in
20374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20375   *) ac_try_echo=$ac_try;;
20376 esac
20377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20378   (eval "$ac_compile") 2>conftest.er1
20379   ac_status=$?
20380   grep -v '^ *+' conftest.er1 >conftest.err
20381   rm -f conftest.er1
20382   cat conftest.err >&5
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); } && {
20385          test -z "$ac_c_werror_flag" ||
20386          test ! -s conftest.err
20387        } && test -s conftest.$ac_objext; then
20388   ac_header_compiler=yes
20389 else
20390   echo "$as_me: failed program was:" >&5
20391 sed 's/^/| /' conftest.$ac_ext >&5
20392
20393         ac_header_compiler=no
20394 fi
20395
20396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20398 echo "${ECHO_T}$ac_header_compiler" >&6; }
20399
20400 # Is the header present?
20401 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20402 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20403 cat >conftest.$ac_ext <<_ACEOF
20404 /* confdefs.h.  */
20405 _ACEOF
20406 cat confdefs.h >>conftest.$ac_ext
20407 cat >>conftest.$ac_ext <<_ACEOF
20408 /* end confdefs.h.  */
20409 #include <$ac_header>
20410 _ACEOF
20411 if { (ac_try="$ac_cpp conftest.$ac_ext"
20412 case "(($ac_try" in
20413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20414   *) ac_try_echo=$ac_try;;
20415 esac
20416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20417   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20418   ac_status=$?
20419   grep -v '^ *+' conftest.er1 >conftest.err
20420   rm -f conftest.er1
20421   cat conftest.err >&5
20422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423   (exit $ac_status); } >/dev/null && {
20424          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20425          test ! -s conftest.err
20426        }; then
20427   ac_header_preproc=yes
20428 else
20429   echo "$as_me: failed program was:" >&5
20430 sed 's/^/| /' conftest.$ac_ext >&5
20431
20432   ac_header_preproc=no
20433 fi
20434
20435 rm -f conftest.err conftest.$ac_ext
20436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20437 echo "${ECHO_T}$ac_header_preproc" >&6; }
20438
20439 # So?  What about this header?
20440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20441   yes:no: )
20442     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20443 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20444     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20445 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20446     ac_header_preproc=yes
20447     ;;
20448   no:yes:* )
20449     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20450 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20451     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20452 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20453     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20454 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20455     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20456 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20457     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20458 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20459     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20460 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20461     ( cat <<\_ASBOX
20462 ## --------------------------------------------- ##
20463 ## Report this to <http://www.openldap.org/its/> ##
20464 ## --------------------------------------------- ##
20465 _ASBOX
20466      ) | sed "s/^/$as_me: WARNING:     /" >&2
20467     ;;
20468 esac
20469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20472   echo $ECHO_N "(cached) $ECHO_C" >&6
20473 else
20474   eval "$as_ac_Header=\$ac_header_preproc"
20475 fi
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477                { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20479
20480 fi
20481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20482   cat >>confdefs.h <<_ACEOF
20483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20484 _ACEOF
20485
20486 fi
20487
20488 done
20489
20490
20491         if test $ac_cv_header_pthread_h = yes ; then
20492                 { echo "$as_me:$LINENO: checking POSIX thread version" >&5
20493 echo $ECHO_N "checking POSIX thread version... $ECHO_C" >&6; }
20494 if test "${ol_cv_pthread_version+set}" = set; then
20495   echo $ECHO_N "(cached) $ECHO_C" >&6
20496 else
20497
20498         cat >conftest.$ac_ext <<_ACEOF
20499 /* confdefs.h.  */
20500 _ACEOF
20501 cat confdefs.h >>conftest.$ac_ext
20502 cat >>conftest.$ac_ext <<_ACEOF
20503 /* end confdefs.h.  */
20504
20505 #               include <pthread.h>
20506
20507 int
20508 main ()
20509 {
20510
20511                 int i = PTHREAD_CREATE_JOINABLE;
20512
20513   ;
20514   return 0;
20515 }
20516 _ACEOF
20517 rm -f conftest.$ac_objext
20518 if { (ac_try="$ac_compile"
20519 case "(($ac_try" in
20520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20521   *) ac_try_echo=$ac_try;;
20522 esac
20523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20524   (eval "$ac_compile") 2>conftest.er1
20525   ac_status=$?
20526   grep -v '^ *+' conftest.er1 >conftest.err
20527   rm -f conftest.er1
20528   cat conftest.err >&5
20529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20530   (exit $ac_status); } && {
20531          test -z "$ac_c_werror_flag" ||
20532          test ! -s conftest.err
20533        } && test -s conftest.$ac_objext; then
20534
20535         cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h.  */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h.  */
20541 #include <pthread.h>
20542
20543 _ACEOF
20544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20545   $EGREP "pthread_detach" >/dev/null 2>&1; then
20546   ol_cv_pthread_version=10
20547 else
20548   ol_cv_pthread_version=8
20549 fi
20550 rm -f conftest*
20551
20552 else
20553   echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556
20557         cat >conftest.$ac_ext <<_ACEOF
20558 /* confdefs.h.  */
20559 _ACEOF
20560 cat confdefs.h >>conftest.$ac_ext
20561 cat >>conftest.$ac_ext <<_ACEOF
20562 /* end confdefs.h.  */
20563
20564 #               include <pthread.h>
20565 #               ifdef PTHREAD_CREATE_UNDETACHED
20566                 draft7
20567 #               endif
20568
20569 _ACEOF
20570 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20571   $EGREP "draft7" >/dev/null 2>&1; then
20572   ol_cv_pthread_version=7
20573 else
20574
20575         cat >conftest.$ac_ext <<_ACEOF
20576 /* confdefs.h.  */
20577 _ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h.  */
20581 #include <pthread.h>
20582
20583 _ACEOF
20584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20585   $EGREP "pthread_attr_init" >/dev/null 2>&1; then
20586   ol_cv_pthread_version=6
20587 else
20588
20589         cat >conftest.$ac_ext <<_ACEOF
20590 /* confdefs.h.  */
20591 _ACEOF
20592 cat confdefs.h >>conftest.$ac_ext
20593 cat >>conftest.$ac_ext <<_ACEOF
20594 /* end confdefs.h.  */
20595
20596 #               include <pthread.h>
20597 #ifdef          PTHREAD_MUTEX_INITIALIZER
20598                 draft5
20599 #endif
20600
20601 _ACEOF
20602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20603   $EGREP "draft5" >/dev/null 2>&1; then
20604   ol_cv_pthread_version=5
20605 else
20606   ol_cv_pthread_version=4
20607 fi
20608 rm -f conftest*
20609
20610 fi
20611 rm -f conftest*
20612
20613 fi
20614 rm -f conftest*
20615
20616 fi
20617
20618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20619
20620 fi
20621 { echo "$as_me:$LINENO: result: $ol_cv_pthread_version" >&5
20622 echo "${ECHO_T}$ol_cv_pthread_version" >&6; }
20623
20624
20625                 if test $ol_cv_pthread_version != 0 ; then
20626
20627 cat >>confdefs.h <<_ACEOF
20628 #define HAVE_PTHREADS $ol_cv_pthread_version
20629 _ACEOF
20630
20631                 else
20632                         { { echo "$as_me:$LINENO: error: unknown pthread version" >&5
20633 echo "$as_me: error: unknown pthread version" >&2;}
20634    { (exit 1); exit 1; }; }
20635                 fi
20636
20637                 # consider threads found
20638                 ol_with_threads=found
20639
20640
20641         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
20642 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
20643 if test "${ol_cv_header_linux_threads+set}" = set; then
20644   echo $ECHO_N "(cached) $ECHO_C" >&6
20645 else
20646   cat >conftest.$ac_ext <<_ACEOF
20647 /* confdefs.h.  */
20648 _ACEOF
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h.  */
20652 #include <pthread.h>
20653 _ACEOF
20654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20655   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
20656   ol_cv_header_linux_threads=yes
20657 else
20658   ol_cv_header_linux_threads=no
20659 fi
20660 rm -f conftest*
20661
20662
20663 fi
20664 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
20665 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
20666         if test $ol_cv_header_linux_threads = yes; then
20667
20668 cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_LINUX_THREADS 1
20670 _ACEOF
20671
20672         fi
20673
20674
20675         { echo "$as_me:$LINENO: checking for GNU Pth pthread.h" >&5
20676 echo $ECHO_N "checking for GNU Pth pthread.h... $ECHO_C" >&6; }
20677 if test "${ol_cv_header_gnu_pth_pthread_h+set}" = set; then
20678   echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680   cat >conftest.$ac_ext <<_ACEOF
20681 /* confdefs.h.  */
20682 _ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h.  */
20686 #include <pthread.h>
20687 #ifdef _POSIX_THREAD_IS_GNU_PTH
20688         __gnu_pth__;
20689 #endif
20690
20691 _ACEOF
20692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20693   $EGREP "__gnu_pth__" >/dev/null 2>&1; then
20694   ol_cv_header_gnu_pth_pthread_h=yes
20695 else
20696   ol_cv_header_gnu_pth_pthread_h=no
20697 fi
20698 rm -f conftest*
20699
20700
20701 fi
20702 { echo "$as_me:$LINENO: result: $ol_cv_header_gnu_pth_pthread_h" >&5
20703 echo "${ECHO_T}$ol_cv_header_gnu_pth_pthread_h" >&6; }
20704
20705
20706                 if test $ol_cv_header_gnu_pth_pthread_h = no ; then
20707
20708 for ac_header in sched.h
20709 do
20710 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20712   { echo "$as_me:$LINENO: checking for $ac_header" >&5
20713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20715   echo $ECHO_N "(cached) $ECHO_C" >&6
20716 fi
20717 ac_res=`eval echo '${'$as_ac_Header'}'`
20718                { echo "$as_me:$LINENO: result: $ac_res" >&5
20719 echo "${ECHO_T}$ac_res" >&6; }
20720 else
20721   # Is the header compilable?
20722 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20723 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20724 cat >conftest.$ac_ext <<_ACEOF
20725 /* confdefs.h.  */
20726 _ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h.  */
20730 $ac_includes_default
20731 #include <$ac_header>
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   ac_header_compiler=yes
20751 else
20752   echo "$as_me: failed program was:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20754
20755         ac_header_compiler=no
20756 fi
20757
20758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20760 echo "${ECHO_T}$ac_header_compiler" >&6; }
20761
20762 # Is the header present?
20763 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20764 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20765 cat >conftest.$ac_ext <<_ACEOF
20766 /* confdefs.h.  */
20767 _ACEOF
20768 cat confdefs.h >>conftest.$ac_ext
20769 cat >>conftest.$ac_ext <<_ACEOF
20770 /* end confdefs.h.  */
20771 #include <$ac_header>
20772 _ACEOF
20773 if { (ac_try="$ac_cpp conftest.$ac_ext"
20774 case "(($ac_try" in
20775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776   *) ac_try_echo=$ac_try;;
20777 esac
20778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20779   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20780   ac_status=$?
20781   grep -v '^ *+' conftest.er1 >conftest.err
20782   rm -f conftest.er1
20783   cat conftest.err >&5
20784   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20785   (exit $ac_status); } >/dev/null && {
20786          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20787          test ! -s conftest.err
20788        }; then
20789   ac_header_preproc=yes
20790 else
20791   echo "$as_me: failed program was:" >&5
20792 sed 's/^/| /' conftest.$ac_ext >&5
20793
20794   ac_header_preproc=no
20795 fi
20796
20797 rm -f conftest.err conftest.$ac_ext
20798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20799 echo "${ECHO_T}$ac_header_preproc" >&6; }
20800
20801 # So?  What about this header?
20802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20803   yes:no: )
20804     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20805 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20806     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20807 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20808     ac_header_preproc=yes
20809     ;;
20810   no:yes:* )
20811     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20812 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20813     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20814 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20815     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20816 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20817     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20818 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20819     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20820 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20821     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20822 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20823     ( cat <<\_ASBOX
20824 ## --------------------------------------------- ##
20825 ## Report this to <http://www.openldap.org/its/> ##
20826 ## --------------------------------------------- ##
20827 _ASBOX
20828      ) | sed "s/^/$as_me: WARNING:     /" >&2
20829     ;;
20830 esac
20831 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20832 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20833 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20834   echo $ECHO_N "(cached) $ECHO_C" >&6
20835 else
20836   eval "$as_ac_Header=\$ac_header_preproc"
20837 fi
20838 ac_res=`eval echo '${'$as_ac_Header'}'`
20839                { echo "$as_me:$LINENO: result: $ac_res" >&5
20840 echo "${ECHO_T}$ac_res" >&6; }
20841
20842 fi
20843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20844   cat >>confdefs.h <<_ACEOF
20845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20846 _ACEOF
20847
20848 fi
20849
20850 done
20851
20852                 fi
20853
20854
20855                                 { echo "$as_me:$LINENO: checking for pthread_create in default libraries" >&5
20856 echo $ECHO_N "checking for pthread_create in default libraries... $ECHO_C" >&6; }
20857 if test "${ol_cv_pthread_create+set}" = set; then
20858   echo $ECHO_N "(cached) $ECHO_C" >&6
20859 else
20860
20861                         if test "$cross_compiling" = yes; then
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
20869 /* pthread test headers */
20870 #include <pthread.h>
20871 #if HAVE_PTHREADS < 7
20872 #include <errno.h>
20873 #endif
20874 #ifndef NULL
20875 #define NULL (void*)0
20876 #endif
20877
20878 static void *task(p)
20879         void *p;
20880 {
20881         return (void *) (p == NULL);
20882 }
20883
20884 int
20885 main ()
20886 {
20887
20888         /* pthread test function */
20889 #ifndef PTHREAD_CREATE_DETACHED
20890 #define PTHREAD_CREATE_DETACHED 1
20891 #endif
20892         pthread_t t;
20893         int status;
20894         int detach = PTHREAD_CREATE_DETACHED;
20895
20896 #if HAVE_PTHREADS > 4
20897         /* Final pthreads */
20898         pthread_attr_t attr;
20899
20900         status = pthread_attr_init(&attr);
20901         if( status ) return status;
20902
20903 #if HAVE_PTHREADS < 7
20904         status = pthread_attr_setdetachstate(&attr, &detach);
20905         if( status < 0 ) status = errno;
20906 #else
20907         status = pthread_attr_setdetachstate(&attr, detach);
20908 #endif
20909         if( status ) return status;
20910         status = pthread_create( &t, &attr, task, NULL );
20911 #if HAVE_PTHREADS < 7
20912         if( status < 0 ) status = errno;
20913 #endif
20914         if( status ) return status;
20915 #else
20916         /* Draft 4 pthreads */
20917         status = pthread_create( &t, pthread_attr_default, task, NULL );
20918         if( status ) return errno;
20919
20920         /* give thread a chance to complete */
20921         /* it should remain joinable and hence detachable */
20922         sleep( 1 );
20923
20924         status = pthread_detach( &t );
20925         if( status ) return errno;
20926 #endif
20927
20928 #ifdef HAVE_LINUX_THREADS
20929         pthread_kill_other_threads_np();
20930 #endif
20931
20932         return 0;
20933
20934   ;
20935   return 0;
20936 }
20937 _ACEOF
20938 rm -f conftest.$ac_objext conftest$ac_exeext
20939 if { (ac_try="$ac_link"
20940 case "(($ac_try" in
20941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20942   *) ac_try_echo=$ac_try;;
20943 esac
20944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20945   (eval "$ac_link") 2>conftest.er1
20946   ac_status=$?
20947   grep -v '^ *+' conftest.er1 >conftest.err
20948   rm -f conftest.er1
20949   cat conftest.err >&5
20950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20951   (exit $ac_status); } && {
20952          test -z "$ac_c_werror_flag" ||
20953          test ! -s conftest.err
20954        } && test -s conftest$ac_exeext &&
20955        $as_test_x conftest$ac_exeext; then
20956   ol_cv_pthread_create=yes
20957 else
20958   echo "$as_me: failed program was:" >&5
20959 sed 's/^/| /' conftest.$ac_ext >&5
20960
20961         ol_cv_pthread_create=no
20962 fi
20963
20964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20965       conftest$ac_exeext conftest.$ac_ext
20966 else
20967   cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h.  */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h.  */
20973
20974 /* pthread test headers */
20975 #include <pthread.h>
20976 #if HAVE_PTHREADS < 7
20977 #include <errno.h>
20978 #endif
20979 #ifndef NULL
20980 #define NULL (void*)0
20981 #endif
20982
20983 static void *task(p)
20984         void *p;
20985 {
20986         return (void *) (p == NULL);
20987 }
20988
20989
20990 int main(argc, argv)
20991         int argc;
20992         char **argv;
20993 {
20994
20995         /* pthread test function */
20996 #ifndef PTHREAD_CREATE_DETACHED
20997 #define PTHREAD_CREATE_DETACHED 1
20998 #endif
20999         pthread_t t;
21000         int status;
21001         int detach = PTHREAD_CREATE_DETACHED;
21002
21003 #if HAVE_PTHREADS > 4
21004         /* Final pthreads */
21005         pthread_attr_t attr;
21006
21007         status = pthread_attr_init(&attr);
21008         if( status ) return status;
21009
21010 #if HAVE_PTHREADS < 7
21011         status = pthread_attr_setdetachstate(&attr, &detach);
21012         if( status < 0 ) status = errno;
21013 #else
21014         status = pthread_attr_setdetachstate(&attr, detach);
21015 #endif
21016         if( status ) return status;
21017         status = pthread_create( &t, &attr, task, NULL );
21018 #if HAVE_PTHREADS < 7
21019         if( status < 0 ) status = errno;
21020 #endif
21021         if( status ) return status;
21022 #else
21023         /* Draft 4 pthreads */
21024         status = pthread_create( &t, pthread_attr_default, task, NULL );
21025         if( status ) return errno;
21026
21027         /* give thread a chance to complete */
21028         /* it should remain joinable and hence detachable */
21029         sleep( 1 );
21030
21031         status = pthread_detach( &t );
21032         if( status ) return errno;
21033 #endif
21034
21035 #ifdef HAVE_LINUX_THREADS
21036         pthread_kill_other_threads_np();
21037 #endif
21038
21039         return 0;
21040
21041 }
21042
21043 _ACEOF
21044 rm -f conftest$ac_exeext
21045 if { (ac_try="$ac_link"
21046 case "(($ac_try" in
21047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21048   *) ac_try_echo=$ac_try;;
21049 esac
21050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21051   (eval "$ac_link") 2>&5
21052   ac_status=$?
21053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21054   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21055   { (case "(($ac_try" in
21056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057   *) ac_try_echo=$ac_try;;
21058 esac
21059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21060   (eval "$ac_try") 2>&5
21061   ac_status=$?
21062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063   (exit $ac_status); }; }; then
21064   ol_cv_pthread_create=yes
21065 else
21066   echo "$as_me: program exited with status $ac_status" >&5
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ( exit $ac_status )
21071 ol_cv_pthread_create=no
21072 fi
21073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21074 fi
21075
21076
21077 fi
21078 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create" >&5
21079 echo "${ECHO_T}$ol_cv_pthread_create" >&6; }
21080
21081                 if test $ol_cv_pthread_create != no ; then
21082                         ol_link_threads=posix
21083                         ol_link_pthreads=""
21084                 fi
21085
21086                 # Pthread try link: -kthread (ol_cv_pthread_kthread)
21087 if test "$ol_link_threads" = no ; then
21088         # try -kthread
21089         { echo "$as_me:$LINENO: checking for pthread link with -kthread" >&5
21090 echo $ECHO_N "checking for pthread link with -kthread... $ECHO_C" >&6; }
21091 if test "${ol_cv_pthread_kthread+set}" = set; then
21092   echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094
21095                 # save the flags
21096                 ol_LIBS="$LIBS"
21097                 LIBS="-kthread $LIBS"
21098
21099                 if test "$cross_compiling" = yes; then
21100   cat >conftest.$ac_ext <<_ACEOF
21101 /* confdefs.h.  */
21102 _ACEOF
21103 cat confdefs.h >>conftest.$ac_ext
21104 cat >>conftest.$ac_ext <<_ACEOF
21105 /* end confdefs.h.  */
21106
21107 /* pthread test headers */
21108 #include <pthread.h>
21109 #if HAVE_PTHREADS < 7
21110 #include <errno.h>
21111 #endif
21112 #ifndef NULL
21113 #define NULL (void*)0
21114 #endif
21115
21116 static void *task(p)
21117         void *p;
21118 {
21119         return (void *) (p == NULL);
21120 }
21121
21122 int
21123 main ()
21124 {
21125
21126         /* pthread test function */
21127 #ifndef PTHREAD_CREATE_DETACHED
21128 #define PTHREAD_CREATE_DETACHED 1
21129 #endif
21130         pthread_t t;
21131         int status;
21132         int detach = PTHREAD_CREATE_DETACHED;
21133
21134 #if HAVE_PTHREADS > 4
21135         /* Final pthreads */
21136         pthread_attr_t attr;
21137
21138         status = pthread_attr_init(&attr);
21139         if( status ) return status;
21140
21141 #if HAVE_PTHREADS < 7
21142         status = pthread_attr_setdetachstate(&attr, &detach);
21143         if( status < 0 ) status = errno;
21144 #else
21145         status = pthread_attr_setdetachstate(&attr, detach);
21146 #endif
21147         if( status ) return status;
21148         status = pthread_create( &t, &attr, task, NULL );
21149 #if HAVE_PTHREADS < 7
21150         if( status < 0 ) status = errno;
21151 #endif
21152         if( status ) return status;
21153 #else
21154         /* Draft 4 pthreads */
21155         status = pthread_create( &t, pthread_attr_default, task, NULL );
21156         if( status ) return errno;
21157
21158         /* give thread a chance to complete */
21159         /* it should remain joinable and hence detachable */
21160         sleep( 1 );
21161
21162         status = pthread_detach( &t );
21163         if( status ) return errno;
21164 #endif
21165
21166 #ifdef HAVE_LINUX_THREADS
21167         pthread_kill_other_threads_np();
21168 #endif
21169
21170         return 0;
21171
21172   ;
21173   return 0;
21174 }
21175 _ACEOF
21176 rm -f conftest.$ac_objext conftest$ac_exeext
21177 if { (ac_try="$ac_link"
21178 case "(($ac_try" in
21179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180   *) ac_try_echo=$ac_try;;
21181 esac
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183   (eval "$ac_link") 2>conftest.er1
21184   ac_status=$?
21185   grep -v '^ *+' conftest.er1 >conftest.err
21186   rm -f conftest.er1
21187   cat conftest.err >&5
21188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21189   (exit $ac_status); } && {
21190          test -z "$ac_c_werror_flag" ||
21191          test ! -s conftest.err
21192        } && test -s conftest$ac_exeext &&
21193        $as_test_x conftest$ac_exeext; then
21194   ol_cv_pthread_kthread=yes
21195 else
21196   echo "$as_me: failed program was:" >&5
21197 sed 's/^/| /' conftest.$ac_ext >&5
21198
21199         ol_cv_pthread_kthread=no
21200 fi
21201
21202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21203       conftest$ac_exeext conftest.$ac_ext
21204 else
21205   cat >conftest.$ac_ext <<_ACEOF
21206 /* confdefs.h.  */
21207 _ACEOF
21208 cat confdefs.h >>conftest.$ac_ext
21209 cat >>conftest.$ac_ext <<_ACEOF
21210 /* end confdefs.h.  */
21211
21212 /* pthread test headers */
21213 #include <pthread.h>
21214 #if HAVE_PTHREADS < 7
21215 #include <errno.h>
21216 #endif
21217 #ifndef NULL
21218 #define NULL (void*)0
21219 #endif
21220
21221 static void *task(p)
21222         void *p;
21223 {
21224         return (void *) (p == NULL);
21225 }
21226
21227
21228 int main(argc, argv)
21229         int argc;
21230         char **argv;
21231 {
21232
21233         /* pthread test function */
21234 #ifndef PTHREAD_CREATE_DETACHED
21235 #define PTHREAD_CREATE_DETACHED 1
21236 #endif
21237         pthread_t t;
21238         int status;
21239         int detach = PTHREAD_CREATE_DETACHED;
21240
21241 #if HAVE_PTHREADS > 4
21242         /* Final pthreads */
21243         pthread_attr_t attr;
21244
21245         status = pthread_attr_init(&attr);
21246         if( status ) return status;
21247
21248 #if HAVE_PTHREADS < 7
21249         status = pthread_attr_setdetachstate(&attr, &detach);
21250         if( status < 0 ) status = errno;
21251 #else
21252         status = pthread_attr_setdetachstate(&attr, detach);
21253 #endif
21254         if( status ) return status;
21255         status = pthread_create( &t, &attr, task, NULL );
21256 #if HAVE_PTHREADS < 7
21257         if( status < 0 ) status = errno;
21258 #endif
21259         if( status ) return status;
21260 #else
21261         /* Draft 4 pthreads */
21262         status = pthread_create( &t, pthread_attr_default, task, NULL );
21263         if( status ) return errno;
21264
21265         /* give thread a chance to complete */
21266         /* it should remain joinable and hence detachable */
21267         sleep( 1 );
21268
21269         status = pthread_detach( &t );
21270         if( status ) return errno;
21271 #endif
21272
21273 #ifdef HAVE_LINUX_THREADS
21274         pthread_kill_other_threads_np();
21275 #endif
21276
21277         return 0;
21278
21279 }
21280
21281 _ACEOF
21282 rm -f conftest$ac_exeext
21283 if { (ac_try="$ac_link"
21284 case "(($ac_try" in
21285   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21286   *) ac_try_echo=$ac_try;;
21287 esac
21288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21289   (eval "$ac_link") 2>&5
21290   ac_status=$?
21291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21293   { (case "(($ac_try" in
21294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21295   *) ac_try_echo=$ac_try;;
21296 esac
21297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21298   (eval "$ac_try") 2>&5
21299   ac_status=$?
21300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301   (exit $ac_status); }; }; then
21302   ol_cv_pthread_kthread=yes
21303 else
21304   echo "$as_me: program exited with status $ac_status" >&5
21305 echo "$as_me: failed program was:" >&5
21306 sed 's/^/| /' conftest.$ac_ext >&5
21307
21308 ( exit $ac_status )
21309 ol_cv_pthread_kthread=no
21310 fi
21311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21312 fi
21313
21314
21315
21316                 # restore the LIBS
21317                 LIBS="$ol_LIBS"
21318
21319 fi
21320 { echo "$as_me:$LINENO: result: $ol_cv_pthread_kthread" >&5
21321 echo "${ECHO_T}$ol_cv_pthread_kthread" >&6; }
21322
21323         if test $ol_cv_pthread_kthread = yes ; then
21324                 ol_link_pthreads="-kthread"
21325                 ol_link_threads=posix
21326         fi
21327 fi
21328
21329                 # Pthread try link: -pthread (ol_cv_pthread_pthread)
21330 if test "$ol_link_threads" = no ; then
21331         # try -pthread
21332         { echo "$as_me:$LINENO: checking for pthread link with -pthread" >&5
21333 echo $ECHO_N "checking for pthread link with -pthread... $ECHO_C" >&6; }
21334 if test "${ol_cv_pthread_pthread+set}" = set; then
21335   echo $ECHO_N "(cached) $ECHO_C" >&6
21336 else
21337
21338                 # save the flags
21339                 ol_LIBS="$LIBS"
21340                 LIBS="-pthread $LIBS"
21341
21342                 if test "$cross_compiling" = yes; then
21343   cat >conftest.$ac_ext <<_ACEOF
21344 /* confdefs.h.  */
21345 _ACEOF
21346 cat confdefs.h >>conftest.$ac_ext
21347 cat >>conftest.$ac_ext <<_ACEOF
21348 /* end confdefs.h.  */
21349
21350 /* pthread test headers */
21351 #include <pthread.h>
21352 #if HAVE_PTHREADS < 7
21353 #include <errno.h>
21354 #endif
21355 #ifndef NULL
21356 #define NULL (void*)0
21357 #endif
21358
21359 static void *task(p)
21360         void *p;
21361 {
21362         return (void *) (p == NULL);
21363 }
21364
21365 int
21366 main ()
21367 {
21368
21369         /* pthread test function */
21370 #ifndef PTHREAD_CREATE_DETACHED
21371 #define PTHREAD_CREATE_DETACHED 1
21372 #endif
21373         pthread_t t;
21374         int status;
21375         int detach = PTHREAD_CREATE_DETACHED;
21376
21377 #if HAVE_PTHREADS > 4
21378         /* Final pthreads */
21379         pthread_attr_t attr;
21380
21381         status = pthread_attr_init(&attr);
21382         if( status ) return status;
21383
21384 #if HAVE_PTHREADS < 7
21385         status = pthread_attr_setdetachstate(&attr, &detach);
21386         if( status < 0 ) status = errno;
21387 #else
21388         status = pthread_attr_setdetachstate(&attr, detach);
21389 #endif
21390         if( status ) return status;
21391         status = pthread_create( &t, &attr, task, NULL );
21392 #if HAVE_PTHREADS < 7
21393         if( status < 0 ) status = errno;
21394 #endif
21395         if( status ) return status;
21396 #else
21397         /* Draft 4 pthreads */
21398         status = pthread_create( &t, pthread_attr_default, task, NULL );
21399         if( status ) return errno;
21400
21401         /* give thread a chance to complete */
21402         /* it should remain joinable and hence detachable */
21403         sleep( 1 );
21404
21405         status = pthread_detach( &t );
21406         if( status ) return errno;
21407 #endif
21408
21409 #ifdef HAVE_LINUX_THREADS
21410         pthread_kill_other_threads_np();
21411 #endif
21412
21413         return 0;
21414
21415   ;
21416   return 0;
21417 }
21418 _ACEOF
21419 rm -f conftest.$ac_objext conftest$ac_exeext
21420 if { (ac_try="$ac_link"
21421 case "(($ac_try" in
21422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21423   *) ac_try_echo=$ac_try;;
21424 esac
21425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21426   (eval "$ac_link") 2>conftest.er1
21427   ac_status=$?
21428   grep -v '^ *+' conftest.er1 >conftest.err
21429   rm -f conftest.er1
21430   cat conftest.err >&5
21431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21432   (exit $ac_status); } && {
21433          test -z "$ac_c_werror_flag" ||
21434          test ! -s conftest.err
21435        } && test -s conftest$ac_exeext &&
21436        $as_test_x conftest$ac_exeext; then
21437   ol_cv_pthread_pthread=yes
21438 else
21439   echo "$as_me: failed program was:" >&5
21440 sed 's/^/| /' conftest.$ac_ext >&5
21441
21442         ol_cv_pthread_pthread=no
21443 fi
21444
21445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21446       conftest$ac_exeext conftest.$ac_ext
21447 else
21448   cat >conftest.$ac_ext <<_ACEOF
21449 /* confdefs.h.  */
21450 _ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h.  */
21454
21455 /* pthread test headers */
21456 #include <pthread.h>
21457 #if HAVE_PTHREADS < 7
21458 #include <errno.h>
21459 #endif
21460 #ifndef NULL
21461 #define NULL (void*)0
21462 #endif
21463
21464 static void *task(p)
21465         void *p;
21466 {
21467         return (void *) (p == NULL);
21468 }
21469
21470
21471 int main(argc, argv)
21472         int argc;
21473         char **argv;
21474 {
21475
21476         /* pthread test function */
21477 #ifndef PTHREAD_CREATE_DETACHED
21478 #define PTHREAD_CREATE_DETACHED 1
21479 #endif
21480         pthread_t t;
21481         int status;
21482         int detach = PTHREAD_CREATE_DETACHED;
21483
21484 #if HAVE_PTHREADS > 4
21485         /* Final pthreads */
21486         pthread_attr_t attr;
21487
21488         status = pthread_attr_init(&attr);
21489         if( status ) return status;
21490
21491 #if HAVE_PTHREADS < 7
21492         status = pthread_attr_setdetachstate(&attr, &detach);
21493         if( status < 0 ) status = errno;
21494 #else
21495         status = pthread_attr_setdetachstate(&attr, detach);
21496 #endif
21497         if( status ) return status;
21498         status = pthread_create( &t, &attr, task, NULL );
21499 #if HAVE_PTHREADS < 7
21500         if( status < 0 ) status = errno;
21501 #endif
21502         if( status ) return status;
21503 #else
21504         /* Draft 4 pthreads */
21505         status = pthread_create( &t, pthread_attr_default, task, NULL );
21506         if( status ) return errno;
21507
21508         /* give thread a chance to complete */
21509         /* it should remain joinable and hence detachable */
21510         sleep( 1 );
21511
21512         status = pthread_detach( &t );
21513         if( status ) return errno;
21514 #endif
21515
21516 #ifdef HAVE_LINUX_THREADS
21517         pthread_kill_other_threads_np();
21518 #endif
21519
21520         return 0;
21521
21522 }
21523
21524 _ACEOF
21525 rm -f conftest$ac_exeext
21526 if { (ac_try="$ac_link"
21527 case "(($ac_try" in
21528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21529   *) ac_try_echo=$ac_try;;
21530 esac
21531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21532   (eval "$ac_link") 2>&5
21533   ac_status=$?
21534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21536   { (case "(($ac_try" in
21537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21538   *) ac_try_echo=$ac_try;;
21539 esac
21540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21541   (eval "$ac_try") 2>&5
21542   ac_status=$?
21543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21544   (exit $ac_status); }; }; then
21545   ol_cv_pthread_pthread=yes
21546 else
21547   echo "$as_me: program exited with status $ac_status" >&5
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 ( exit $ac_status )
21552 ol_cv_pthread_pthread=no
21553 fi
21554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21555 fi
21556
21557
21558
21559                 # restore the LIBS
21560                 LIBS="$ol_LIBS"
21561
21562 fi
21563 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthread" >&5
21564 echo "${ECHO_T}$ol_cv_pthread_pthread" >&6; }
21565
21566         if test $ol_cv_pthread_pthread = yes ; then
21567                 ol_link_pthreads="-pthread"
21568                 ol_link_threads=posix
21569         fi
21570 fi
21571
21572                 # Pthread try link: -pthreads (ol_cv_pthread_pthreads)
21573 if test "$ol_link_threads" = no ; then
21574         # try -pthreads
21575         { echo "$as_me:$LINENO: checking for pthread link with -pthreads" >&5
21576 echo $ECHO_N "checking for pthread link with -pthreads... $ECHO_C" >&6; }
21577 if test "${ol_cv_pthread_pthreads+set}" = set; then
21578   echo $ECHO_N "(cached) $ECHO_C" >&6
21579 else
21580
21581                 # save the flags
21582                 ol_LIBS="$LIBS"
21583                 LIBS="-pthreads $LIBS"
21584
21585                 if test "$cross_compiling" = yes; then
21586   cat >conftest.$ac_ext <<_ACEOF
21587 /* confdefs.h.  */
21588 _ACEOF
21589 cat confdefs.h >>conftest.$ac_ext
21590 cat >>conftest.$ac_ext <<_ACEOF
21591 /* end confdefs.h.  */
21592
21593 /* pthread test headers */
21594 #include <pthread.h>
21595 #if HAVE_PTHREADS < 7
21596 #include <errno.h>
21597 #endif
21598 #ifndef NULL
21599 #define NULL (void*)0
21600 #endif
21601
21602 static void *task(p)
21603         void *p;
21604 {
21605         return (void *) (p == NULL);
21606 }
21607
21608 int
21609 main ()
21610 {
21611
21612         /* pthread test function */
21613 #ifndef PTHREAD_CREATE_DETACHED
21614 #define PTHREAD_CREATE_DETACHED 1
21615 #endif
21616         pthread_t t;
21617         int status;
21618         int detach = PTHREAD_CREATE_DETACHED;
21619
21620 #if HAVE_PTHREADS > 4
21621         /* Final pthreads */
21622         pthread_attr_t attr;
21623
21624         status = pthread_attr_init(&attr);
21625         if( status ) return status;
21626
21627 #if HAVE_PTHREADS < 7
21628         status = pthread_attr_setdetachstate(&attr, &detach);
21629         if( status < 0 ) status = errno;
21630 #else
21631         status = pthread_attr_setdetachstate(&attr, detach);
21632 #endif
21633         if( status ) return status;
21634         status = pthread_create( &t, &attr, task, NULL );
21635 #if HAVE_PTHREADS < 7
21636         if( status < 0 ) status = errno;
21637 #endif
21638         if( status ) return status;
21639 #else
21640         /* Draft 4 pthreads */
21641         status = pthread_create( &t, pthread_attr_default, task, NULL );
21642         if( status ) return errno;
21643
21644         /* give thread a chance to complete */
21645         /* it should remain joinable and hence detachable */
21646         sleep( 1 );
21647
21648         status = pthread_detach( &t );
21649         if( status ) return errno;
21650 #endif
21651
21652 #ifdef HAVE_LINUX_THREADS
21653         pthread_kill_other_threads_np();
21654 #endif
21655
21656         return 0;
21657
21658   ;
21659   return 0;
21660 }
21661 _ACEOF
21662 rm -f conftest.$ac_objext conftest$ac_exeext
21663 if { (ac_try="$ac_link"
21664 case "(($ac_try" in
21665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666   *) ac_try_echo=$ac_try;;
21667 esac
21668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21669   (eval "$ac_link") 2>conftest.er1
21670   ac_status=$?
21671   grep -v '^ *+' conftest.er1 >conftest.err
21672   rm -f conftest.er1
21673   cat conftest.err >&5
21674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21675   (exit $ac_status); } && {
21676          test -z "$ac_c_werror_flag" ||
21677          test ! -s conftest.err
21678        } && test -s conftest$ac_exeext &&
21679        $as_test_x conftest$ac_exeext; then
21680   ol_cv_pthread_pthreads=yes
21681 else
21682   echo "$as_me: failed program was:" >&5
21683 sed 's/^/| /' conftest.$ac_ext >&5
21684
21685         ol_cv_pthread_pthreads=no
21686 fi
21687
21688 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21689       conftest$ac_exeext conftest.$ac_ext
21690 else
21691   cat >conftest.$ac_ext <<_ACEOF
21692 /* confdefs.h.  */
21693 _ACEOF
21694 cat confdefs.h >>conftest.$ac_ext
21695 cat >>conftest.$ac_ext <<_ACEOF
21696 /* end confdefs.h.  */
21697
21698 /* pthread test headers */
21699 #include <pthread.h>
21700 #if HAVE_PTHREADS < 7
21701 #include <errno.h>
21702 #endif
21703 #ifndef NULL
21704 #define NULL (void*)0
21705 #endif
21706
21707 static void *task(p)
21708         void *p;
21709 {
21710         return (void *) (p == NULL);
21711 }
21712
21713
21714 int main(argc, argv)
21715         int argc;
21716         char **argv;
21717 {
21718
21719         /* pthread test function */
21720 #ifndef PTHREAD_CREATE_DETACHED
21721 #define PTHREAD_CREATE_DETACHED 1
21722 #endif
21723         pthread_t t;
21724         int status;
21725         int detach = PTHREAD_CREATE_DETACHED;
21726
21727 #if HAVE_PTHREADS > 4
21728         /* Final pthreads */
21729         pthread_attr_t attr;
21730
21731         status = pthread_attr_init(&attr);
21732         if( status ) return status;
21733
21734 #if HAVE_PTHREADS < 7
21735         status = pthread_attr_setdetachstate(&attr, &detach);
21736         if( status < 0 ) status = errno;
21737 #else
21738         status = pthread_attr_setdetachstate(&attr, detach);
21739 #endif
21740         if( status ) return status;
21741         status = pthread_create( &t, &attr, task, NULL );
21742 #if HAVE_PTHREADS < 7
21743         if( status < 0 ) status = errno;
21744 #endif
21745         if( status ) return status;
21746 #else
21747         /* Draft 4 pthreads */
21748         status = pthread_create( &t, pthread_attr_default, task, NULL );
21749         if( status ) return errno;
21750
21751         /* give thread a chance to complete */
21752         /* it should remain joinable and hence detachable */
21753         sleep( 1 );
21754
21755         status = pthread_detach( &t );
21756         if( status ) return errno;
21757 #endif
21758
21759 #ifdef HAVE_LINUX_THREADS
21760         pthread_kill_other_threads_np();
21761 #endif
21762
21763         return 0;
21764
21765 }
21766
21767 _ACEOF
21768 rm -f conftest$ac_exeext
21769 if { (ac_try="$ac_link"
21770 case "(($ac_try" in
21771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21772   *) ac_try_echo=$ac_try;;
21773 esac
21774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21775   (eval "$ac_link") 2>&5
21776   ac_status=$?
21777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21778   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21779   { (case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_try") 2>&5
21785   ac_status=$?
21786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21787   (exit $ac_status); }; }; then
21788   ol_cv_pthread_pthreads=yes
21789 else
21790   echo "$as_me: program exited with status $ac_status" >&5
21791 echo "$as_me: failed program was:" >&5
21792 sed 's/^/| /' conftest.$ac_ext >&5
21793
21794 ( exit $ac_status )
21795 ol_cv_pthread_pthreads=no
21796 fi
21797 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21798 fi
21799
21800
21801
21802                 # restore the LIBS
21803                 LIBS="$ol_LIBS"
21804
21805 fi
21806 { echo "$as_me:$LINENO: result: $ol_cv_pthread_pthreads" >&5
21807 echo "${ECHO_T}$ol_cv_pthread_pthreads" >&6; }
21808
21809         if test $ol_cv_pthread_pthreads = yes ; then
21810                 ol_link_pthreads="-pthreads"
21811                 ol_link_threads=posix
21812         fi
21813 fi
21814
21815                 # Pthread try link: -mthreads (ol_cv_pthread_mthreads)
21816 if test "$ol_link_threads" = no ; then
21817         # try -mthreads
21818         { echo "$as_me:$LINENO: checking for pthread link with -mthreads" >&5
21819 echo $ECHO_N "checking for pthread link with -mthreads... $ECHO_C" >&6; }
21820 if test "${ol_cv_pthread_mthreads+set}" = set; then
21821   echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823
21824                 # save the flags
21825                 ol_LIBS="$LIBS"
21826                 LIBS="-mthreads $LIBS"
21827
21828                 if test "$cross_compiling" = yes; then
21829   cat >conftest.$ac_ext <<_ACEOF
21830 /* confdefs.h.  */
21831 _ACEOF
21832 cat confdefs.h >>conftest.$ac_ext
21833 cat >>conftest.$ac_ext <<_ACEOF
21834 /* end confdefs.h.  */
21835
21836 /* pthread test headers */
21837 #include <pthread.h>
21838 #if HAVE_PTHREADS < 7
21839 #include <errno.h>
21840 #endif
21841 #ifndef NULL
21842 #define NULL (void*)0
21843 #endif
21844
21845 static void *task(p)
21846         void *p;
21847 {
21848         return (void *) (p == NULL);
21849 }
21850
21851 int
21852 main ()
21853 {
21854
21855         /* pthread test function */
21856 #ifndef PTHREAD_CREATE_DETACHED
21857 #define PTHREAD_CREATE_DETACHED 1
21858 #endif
21859         pthread_t t;
21860         int status;
21861         int detach = PTHREAD_CREATE_DETACHED;
21862
21863 #if HAVE_PTHREADS > 4
21864         /* Final pthreads */
21865         pthread_attr_t attr;
21866
21867         status = pthread_attr_init(&attr);
21868         if( status ) return status;
21869
21870 #if HAVE_PTHREADS < 7
21871         status = pthread_attr_setdetachstate(&attr, &detach);
21872         if( status < 0 ) status = errno;
21873 #else
21874         status = pthread_attr_setdetachstate(&attr, detach);
21875 #endif
21876         if( status ) return status;
21877         status = pthread_create( &t, &attr, task, NULL );
21878 #if HAVE_PTHREADS < 7
21879         if( status < 0 ) status = errno;
21880 #endif
21881         if( status ) return status;
21882 #else
21883         /* Draft 4 pthreads */
21884         status = pthread_create( &t, pthread_attr_default, task, NULL );
21885         if( status ) return errno;
21886
21887         /* give thread a chance to complete */
21888         /* it should remain joinable and hence detachable */
21889         sleep( 1 );
21890
21891         status = pthread_detach( &t );
21892         if( status ) return errno;
21893 #endif
21894
21895 #ifdef HAVE_LINUX_THREADS
21896         pthread_kill_other_threads_np();
21897 #endif
21898
21899         return 0;
21900
21901   ;
21902   return 0;
21903 }
21904 _ACEOF
21905 rm -f conftest.$ac_objext conftest$ac_exeext
21906 if { (ac_try="$ac_link"
21907 case "(($ac_try" in
21908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21909   *) ac_try_echo=$ac_try;;
21910 esac
21911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21912   (eval "$ac_link") 2>conftest.er1
21913   ac_status=$?
21914   grep -v '^ *+' conftest.er1 >conftest.err
21915   rm -f conftest.er1
21916   cat conftest.err >&5
21917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918   (exit $ac_status); } && {
21919          test -z "$ac_c_werror_flag" ||
21920          test ! -s conftest.err
21921        } && test -s conftest$ac_exeext &&
21922        $as_test_x conftest$ac_exeext; then
21923   ol_cv_pthread_mthreads=yes
21924 else
21925   echo "$as_me: failed program was:" >&5
21926 sed 's/^/| /' conftest.$ac_ext >&5
21927
21928         ol_cv_pthread_mthreads=no
21929 fi
21930
21931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21932       conftest$ac_exeext conftest.$ac_ext
21933 else
21934   cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h.  */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h.  */
21940
21941 /* pthread test headers */
21942 #include <pthread.h>
21943 #if HAVE_PTHREADS < 7
21944 #include <errno.h>
21945 #endif
21946 #ifndef NULL
21947 #define NULL (void*)0
21948 #endif
21949
21950 static void *task(p)
21951         void *p;
21952 {
21953         return (void *) (p == NULL);
21954 }
21955
21956
21957 int main(argc, argv)
21958         int argc;
21959         char **argv;
21960 {
21961
21962         /* pthread test function */
21963 #ifndef PTHREAD_CREATE_DETACHED
21964 #define PTHREAD_CREATE_DETACHED 1
21965 #endif
21966         pthread_t t;
21967         int status;
21968         int detach = PTHREAD_CREATE_DETACHED;
21969
21970 #if HAVE_PTHREADS > 4
21971         /* Final pthreads */
21972         pthread_attr_t attr;
21973
21974         status = pthread_attr_init(&attr);
21975         if( status ) return status;
21976
21977 #if HAVE_PTHREADS < 7
21978         status = pthread_attr_setdetachstate(&attr, &detach);
21979         if( status < 0 ) status = errno;
21980 #else
21981         status = pthread_attr_setdetachstate(&attr, detach);
21982 #endif
21983         if( status ) return status;
21984         status = pthread_create( &t, &attr, task, NULL );
21985 #if HAVE_PTHREADS < 7
21986         if( status < 0 ) status = errno;
21987 #endif
21988         if( status ) return status;
21989 #else
21990         /* Draft 4 pthreads */
21991         status = pthread_create( &t, pthread_attr_default, task, NULL );
21992         if( status ) return errno;
21993
21994         /* give thread a chance to complete */
21995         /* it should remain joinable and hence detachable */
21996         sleep( 1 );
21997
21998         status = pthread_detach( &t );
21999         if( status ) return errno;
22000 #endif
22001
22002 #ifdef HAVE_LINUX_THREADS
22003         pthread_kill_other_threads_np();
22004 #endif
22005
22006         return 0;
22007
22008 }
22009
22010 _ACEOF
22011 rm -f conftest$ac_exeext
22012 if { (ac_try="$ac_link"
22013 case "(($ac_try" in
22014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22015   *) ac_try_echo=$ac_try;;
22016 esac
22017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22018   (eval "$ac_link") 2>&5
22019   ac_status=$?
22020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22022   { (case "(($ac_try" in
22023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22024   *) ac_try_echo=$ac_try;;
22025 esac
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027   (eval "$ac_try") 2>&5
22028   ac_status=$?
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); }; }; then
22031   ol_cv_pthread_mthreads=yes
22032 else
22033   echo "$as_me: program exited with status $ac_status" >&5
22034 echo "$as_me: failed program was:" >&5
22035 sed 's/^/| /' conftest.$ac_ext >&5
22036
22037 ( exit $ac_status )
22038 ol_cv_pthread_mthreads=no
22039 fi
22040 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22041 fi
22042
22043
22044
22045                 # restore the LIBS
22046                 LIBS="$ol_LIBS"
22047
22048 fi
22049 { echo "$as_me:$LINENO: result: $ol_cv_pthread_mthreads" >&5
22050 echo "${ECHO_T}$ol_cv_pthread_mthreads" >&6; }
22051
22052         if test $ol_cv_pthread_mthreads = yes ; then
22053                 ol_link_pthreads="-mthreads"
22054                 ol_link_threads=posix
22055         fi
22056 fi
22057
22058                 # Pthread try link: -thread (ol_cv_pthread_thread)
22059 if test "$ol_link_threads" = no ; then
22060         # try -thread
22061         { echo "$as_me:$LINENO: checking for pthread link with -thread" >&5
22062 echo $ECHO_N "checking for pthread link with -thread... $ECHO_C" >&6; }
22063 if test "${ol_cv_pthread_thread+set}" = set; then
22064   echo $ECHO_N "(cached) $ECHO_C" >&6
22065 else
22066
22067                 # save the flags
22068                 ol_LIBS="$LIBS"
22069                 LIBS="-thread $LIBS"
22070
22071                 if test "$cross_compiling" = yes; then
22072   cat >conftest.$ac_ext <<_ACEOF
22073 /* confdefs.h.  */
22074 _ACEOF
22075 cat confdefs.h >>conftest.$ac_ext
22076 cat >>conftest.$ac_ext <<_ACEOF
22077 /* end confdefs.h.  */
22078
22079 /* pthread test headers */
22080 #include <pthread.h>
22081 #if HAVE_PTHREADS < 7
22082 #include <errno.h>
22083 #endif
22084 #ifndef NULL
22085 #define NULL (void*)0
22086 #endif
22087
22088 static void *task(p)
22089         void *p;
22090 {
22091         return (void *) (p == NULL);
22092 }
22093
22094 int
22095 main ()
22096 {
22097
22098         /* pthread test function */
22099 #ifndef PTHREAD_CREATE_DETACHED
22100 #define PTHREAD_CREATE_DETACHED 1
22101 #endif
22102         pthread_t t;
22103         int status;
22104         int detach = PTHREAD_CREATE_DETACHED;
22105
22106 #if HAVE_PTHREADS > 4
22107         /* Final pthreads */
22108         pthread_attr_t attr;
22109
22110         status = pthread_attr_init(&attr);
22111         if( status ) return status;
22112
22113 #if HAVE_PTHREADS < 7
22114         status = pthread_attr_setdetachstate(&attr, &detach);
22115         if( status < 0 ) status = errno;
22116 #else
22117         status = pthread_attr_setdetachstate(&attr, detach);
22118 #endif
22119         if( status ) return status;
22120         status = pthread_create( &t, &attr, task, NULL );
22121 #if HAVE_PTHREADS < 7
22122         if( status < 0 ) status = errno;
22123 #endif
22124         if( status ) return status;
22125 #else
22126         /* Draft 4 pthreads */
22127         status = pthread_create( &t, pthread_attr_default, task, NULL );
22128         if( status ) return errno;
22129
22130         /* give thread a chance to complete */
22131         /* it should remain joinable and hence detachable */
22132         sleep( 1 );
22133
22134         status = pthread_detach( &t );
22135         if( status ) return errno;
22136 #endif
22137
22138 #ifdef HAVE_LINUX_THREADS
22139         pthread_kill_other_threads_np();
22140 #endif
22141
22142         return 0;
22143
22144   ;
22145   return 0;
22146 }
22147 _ACEOF
22148 rm -f conftest.$ac_objext conftest$ac_exeext
22149 if { (ac_try="$ac_link"
22150 case "(($ac_try" in
22151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22152   *) ac_try_echo=$ac_try;;
22153 esac
22154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22155   (eval "$ac_link") 2>conftest.er1
22156   ac_status=$?
22157   grep -v '^ *+' conftest.er1 >conftest.err
22158   rm -f conftest.er1
22159   cat conftest.err >&5
22160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161   (exit $ac_status); } && {
22162          test -z "$ac_c_werror_flag" ||
22163          test ! -s conftest.err
22164        } && test -s conftest$ac_exeext &&
22165        $as_test_x conftest$ac_exeext; then
22166   ol_cv_pthread_thread=yes
22167 else
22168   echo "$as_me: failed program was:" >&5
22169 sed 's/^/| /' conftest.$ac_ext >&5
22170
22171         ol_cv_pthread_thread=no
22172 fi
22173
22174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22175       conftest$ac_exeext conftest.$ac_ext
22176 else
22177   cat >conftest.$ac_ext <<_ACEOF
22178 /* confdefs.h.  */
22179 _ACEOF
22180 cat confdefs.h >>conftest.$ac_ext
22181 cat >>conftest.$ac_ext <<_ACEOF
22182 /* end confdefs.h.  */
22183
22184 /* pthread test headers */
22185 #include <pthread.h>
22186 #if HAVE_PTHREADS < 7
22187 #include <errno.h>
22188 #endif
22189 #ifndef NULL
22190 #define NULL (void*)0
22191 #endif
22192
22193 static void *task(p)
22194         void *p;
22195 {
22196         return (void *) (p == NULL);
22197 }
22198
22199
22200 int main(argc, argv)
22201         int argc;
22202         char **argv;
22203 {
22204
22205         /* pthread test function */
22206 #ifndef PTHREAD_CREATE_DETACHED
22207 #define PTHREAD_CREATE_DETACHED 1
22208 #endif
22209         pthread_t t;
22210         int status;
22211         int detach = PTHREAD_CREATE_DETACHED;
22212
22213 #if HAVE_PTHREADS > 4
22214         /* Final pthreads */
22215         pthread_attr_t attr;
22216
22217         status = pthread_attr_init(&attr);
22218         if( status ) return status;
22219
22220 #if HAVE_PTHREADS < 7
22221         status = pthread_attr_setdetachstate(&attr, &detach);
22222         if( status < 0 ) status = errno;
22223 #else
22224         status = pthread_attr_setdetachstate(&attr, detach);
22225 #endif
22226         if( status ) return status;
22227         status = pthread_create( &t, &attr, task, NULL );
22228 #if HAVE_PTHREADS < 7
22229         if( status < 0 ) status = errno;
22230 #endif
22231         if( status ) return status;
22232 #else
22233         /* Draft 4 pthreads */
22234         status = pthread_create( &t, pthread_attr_default, task, NULL );
22235         if( status ) return errno;
22236
22237         /* give thread a chance to complete */
22238         /* it should remain joinable and hence detachable */
22239         sleep( 1 );
22240
22241         status = pthread_detach( &t );
22242         if( status ) return errno;
22243 #endif
22244
22245 #ifdef HAVE_LINUX_THREADS
22246         pthread_kill_other_threads_np();
22247 #endif
22248
22249         return 0;
22250
22251 }
22252
22253 _ACEOF
22254 rm -f conftest$ac_exeext
22255 if { (ac_try="$ac_link"
22256 case "(($ac_try" in
22257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22258   *) ac_try_echo=$ac_try;;
22259 esac
22260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22261   (eval "$ac_link") 2>&5
22262   ac_status=$?
22263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22265   { (case "(($ac_try" in
22266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22267   *) ac_try_echo=$ac_try;;
22268 esac
22269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22270   (eval "$ac_try") 2>&5
22271   ac_status=$?
22272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273   (exit $ac_status); }; }; then
22274   ol_cv_pthread_thread=yes
22275 else
22276   echo "$as_me: program exited with status $ac_status" >&5
22277 echo "$as_me: failed program was:" >&5
22278 sed 's/^/| /' conftest.$ac_ext >&5
22279
22280 ( exit $ac_status )
22281 ol_cv_pthread_thread=no
22282 fi
22283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22284 fi
22285
22286
22287
22288                 # restore the LIBS
22289                 LIBS="$ol_LIBS"
22290
22291 fi
22292 { echo "$as_me:$LINENO: result: $ol_cv_pthread_thread" >&5
22293 echo "${ECHO_T}$ol_cv_pthread_thread" >&6; }
22294
22295         if test $ol_cv_pthread_thread = yes ; then
22296                 ol_link_pthreads="-thread"
22297                 ol_link_threads=posix
22298         fi
22299 fi
22300
22301
22302                 # Pthread try link: -lpthread -lmach -lexc -lc_r (ol_cv_pthread_lpthread_lmach_lexc_lc_r)
22303 if test "$ol_link_threads" = no ; then
22304         # try -lpthread -lmach -lexc -lc_r
22305         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc -lc_r" >&5
22306 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc -lc_r... $ECHO_C" >&6; }
22307 if test "${ol_cv_pthread_lpthread_lmach_lexc_lc_r+set}" = set; then
22308   echo $ECHO_N "(cached) $ECHO_C" >&6
22309 else
22310
22311                 # save the flags
22312                 ol_LIBS="$LIBS"
22313                 LIBS="-lpthread -lmach -lexc -lc_r $LIBS"
22314
22315                 if test "$cross_compiling" = yes; then
22316   cat >conftest.$ac_ext <<_ACEOF
22317 /* confdefs.h.  */
22318 _ACEOF
22319 cat confdefs.h >>conftest.$ac_ext
22320 cat >>conftest.$ac_ext <<_ACEOF
22321 /* end confdefs.h.  */
22322
22323 /* pthread test headers */
22324 #include <pthread.h>
22325 #if HAVE_PTHREADS < 7
22326 #include <errno.h>
22327 #endif
22328 #ifndef NULL
22329 #define NULL (void*)0
22330 #endif
22331
22332 static void *task(p)
22333         void *p;
22334 {
22335         return (void *) (p == NULL);
22336 }
22337
22338 int
22339 main ()
22340 {
22341
22342         /* pthread test function */
22343 #ifndef PTHREAD_CREATE_DETACHED
22344 #define PTHREAD_CREATE_DETACHED 1
22345 #endif
22346         pthread_t t;
22347         int status;
22348         int detach = PTHREAD_CREATE_DETACHED;
22349
22350 #if HAVE_PTHREADS > 4
22351         /* Final pthreads */
22352         pthread_attr_t attr;
22353
22354         status = pthread_attr_init(&attr);
22355         if( status ) return status;
22356
22357 #if HAVE_PTHREADS < 7
22358         status = pthread_attr_setdetachstate(&attr, &detach);
22359         if( status < 0 ) status = errno;
22360 #else
22361         status = pthread_attr_setdetachstate(&attr, detach);
22362 #endif
22363         if( status ) return status;
22364         status = pthread_create( &t, &attr, task, NULL );
22365 #if HAVE_PTHREADS < 7
22366         if( status < 0 ) status = errno;
22367 #endif
22368         if( status ) return status;
22369 #else
22370         /* Draft 4 pthreads */
22371         status = pthread_create( &t, pthread_attr_default, task, NULL );
22372         if( status ) return errno;
22373
22374         /* give thread a chance to complete */
22375         /* it should remain joinable and hence detachable */
22376         sleep( 1 );
22377
22378         status = pthread_detach( &t );
22379         if( status ) return errno;
22380 #endif
22381
22382 #ifdef HAVE_LINUX_THREADS
22383         pthread_kill_other_threads_np();
22384 #endif
22385
22386         return 0;
22387
22388   ;
22389   return 0;
22390 }
22391 _ACEOF
22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (ac_try="$ac_link"
22394 case "(($ac_try" in
22395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396   *) ac_try_echo=$ac_try;;
22397 esac
22398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22399   (eval "$ac_link") 2>conftest.er1
22400   ac_status=$?
22401   grep -v '^ *+' conftest.er1 >conftest.err
22402   rm -f conftest.er1
22403   cat conftest.err >&5
22404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22405   (exit $ac_status); } && {
22406          test -z "$ac_c_werror_flag" ||
22407          test ! -s conftest.err
22408        } && test -s conftest$ac_exeext &&
22409        $as_test_x conftest$ac_exeext; then
22410   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22411 else
22412   echo "$as_me: failed program was:" >&5
22413 sed 's/^/| /' conftest.$ac_ext >&5
22414
22415         ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22416 fi
22417
22418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22419       conftest$ac_exeext conftest.$ac_ext
22420 else
22421   cat >conftest.$ac_ext <<_ACEOF
22422 /* confdefs.h.  */
22423 _ACEOF
22424 cat confdefs.h >>conftest.$ac_ext
22425 cat >>conftest.$ac_ext <<_ACEOF
22426 /* end confdefs.h.  */
22427
22428 /* pthread test headers */
22429 #include <pthread.h>
22430 #if HAVE_PTHREADS < 7
22431 #include <errno.h>
22432 #endif
22433 #ifndef NULL
22434 #define NULL (void*)0
22435 #endif
22436
22437 static void *task(p)
22438         void *p;
22439 {
22440         return (void *) (p == NULL);
22441 }
22442
22443
22444 int main(argc, argv)
22445         int argc;
22446         char **argv;
22447 {
22448
22449         /* pthread test function */
22450 #ifndef PTHREAD_CREATE_DETACHED
22451 #define PTHREAD_CREATE_DETACHED 1
22452 #endif
22453         pthread_t t;
22454         int status;
22455         int detach = PTHREAD_CREATE_DETACHED;
22456
22457 #if HAVE_PTHREADS > 4
22458         /* Final pthreads */
22459         pthread_attr_t attr;
22460
22461         status = pthread_attr_init(&attr);
22462         if( status ) return status;
22463
22464 #if HAVE_PTHREADS < 7
22465         status = pthread_attr_setdetachstate(&attr, &detach);
22466         if( status < 0 ) status = errno;
22467 #else
22468         status = pthread_attr_setdetachstate(&attr, detach);
22469 #endif
22470         if( status ) return status;
22471         status = pthread_create( &t, &attr, task, NULL );
22472 #if HAVE_PTHREADS < 7
22473         if( status < 0 ) status = errno;
22474 #endif
22475         if( status ) return status;
22476 #else
22477         /* Draft 4 pthreads */
22478         status = pthread_create( &t, pthread_attr_default, task, NULL );
22479         if( status ) return errno;
22480
22481         /* give thread a chance to complete */
22482         /* it should remain joinable and hence detachable */
22483         sleep( 1 );
22484
22485         status = pthread_detach( &t );
22486         if( status ) return errno;
22487 #endif
22488
22489 #ifdef HAVE_LINUX_THREADS
22490         pthread_kill_other_threads_np();
22491 #endif
22492
22493         return 0;
22494
22495 }
22496
22497 _ACEOF
22498 rm -f conftest$ac_exeext
22499 if { (ac_try="$ac_link"
22500 case "(($ac_try" in
22501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22502   *) ac_try_echo=$ac_try;;
22503 esac
22504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22505   (eval "$ac_link") 2>&5
22506   ac_status=$?
22507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22509   { (case "(($ac_try" in
22510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22511   *) ac_try_echo=$ac_try;;
22512 esac
22513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22514   (eval "$ac_try") 2>&5
22515   ac_status=$?
22516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22517   (exit $ac_status); }; }; then
22518   ol_cv_pthread_lpthread_lmach_lexc_lc_r=yes
22519 else
22520   echo "$as_me: program exited with status $ac_status" >&5
22521 echo "$as_me: failed program was:" >&5
22522 sed 's/^/| /' conftest.$ac_ext >&5
22523
22524 ( exit $ac_status )
22525 ol_cv_pthread_lpthread_lmach_lexc_lc_r=no
22526 fi
22527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22528 fi
22529
22530
22531
22532                 # restore the LIBS
22533                 LIBS="$ol_LIBS"
22534
22535 fi
22536 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&5
22537 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc_lc_r" >&6; }
22538
22539         if test $ol_cv_pthread_lpthread_lmach_lexc_lc_r = yes ; then
22540                 ol_link_pthreads="-lpthread -lmach -lexc -lc_r"
22541                 ol_link_threads=posix
22542         fi
22543 fi
22544
22545                 # Pthread try link: -lpthread -lmach -lexc (ol_cv_pthread_lpthread_lmach_lexc)
22546 if test "$ol_link_threads" = no ; then
22547         # try -lpthread -lmach -lexc
22548         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -lmach -lexc" >&5
22549 echo $ECHO_N "checking for pthread link with -lpthread -lmach -lexc... $ECHO_C" >&6; }
22550 if test "${ol_cv_pthread_lpthread_lmach_lexc+set}" = set; then
22551   echo $ECHO_N "(cached) $ECHO_C" >&6
22552 else
22553
22554                 # save the flags
22555                 ol_LIBS="$LIBS"
22556                 LIBS="-lpthread -lmach -lexc $LIBS"
22557
22558                 if test "$cross_compiling" = yes; then
22559   cat >conftest.$ac_ext <<_ACEOF
22560 /* confdefs.h.  */
22561 _ACEOF
22562 cat confdefs.h >>conftest.$ac_ext
22563 cat >>conftest.$ac_ext <<_ACEOF
22564 /* end confdefs.h.  */
22565
22566 /* pthread test headers */
22567 #include <pthread.h>
22568 #if HAVE_PTHREADS < 7
22569 #include <errno.h>
22570 #endif
22571 #ifndef NULL
22572 #define NULL (void*)0
22573 #endif
22574
22575 static void *task(p)
22576         void *p;
22577 {
22578         return (void *) (p == NULL);
22579 }
22580
22581 int
22582 main ()
22583 {
22584
22585         /* pthread test function */
22586 #ifndef PTHREAD_CREATE_DETACHED
22587 #define PTHREAD_CREATE_DETACHED 1
22588 #endif
22589         pthread_t t;
22590         int status;
22591         int detach = PTHREAD_CREATE_DETACHED;
22592
22593 #if HAVE_PTHREADS > 4
22594         /* Final pthreads */
22595         pthread_attr_t attr;
22596
22597         status = pthread_attr_init(&attr);
22598         if( status ) return status;
22599
22600 #if HAVE_PTHREADS < 7
22601         status = pthread_attr_setdetachstate(&attr, &detach);
22602         if( status < 0 ) status = errno;
22603 #else
22604         status = pthread_attr_setdetachstate(&attr, detach);
22605 #endif
22606         if( status ) return status;
22607         status = pthread_create( &t, &attr, task, NULL );
22608 #if HAVE_PTHREADS < 7
22609         if( status < 0 ) status = errno;
22610 #endif
22611         if( status ) return status;
22612 #else
22613         /* Draft 4 pthreads */
22614         status = pthread_create( &t, pthread_attr_default, task, NULL );
22615         if( status ) return errno;
22616
22617         /* give thread a chance to complete */
22618         /* it should remain joinable and hence detachable */
22619         sleep( 1 );
22620
22621         status = pthread_detach( &t );
22622         if( status ) return errno;
22623 #endif
22624
22625 #ifdef HAVE_LINUX_THREADS
22626         pthread_kill_other_threads_np();
22627 #endif
22628
22629         return 0;
22630
22631   ;
22632   return 0;
22633 }
22634 _ACEOF
22635 rm -f conftest.$ac_objext conftest$ac_exeext
22636 if { (ac_try="$ac_link"
22637 case "(($ac_try" in
22638   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639   *) ac_try_echo=$ac_try;;
22640 esac
22641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22642   (eval "$ac_link") 2>conftest.er1
22643   ac_status=$?
22644   grep -v '^ *+' conftest.er1 >conftest.err
22645   rm -f conftest.er1
22646   cat conftest.err >&5
22647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22648   (exit $ac_status); } && {
22649          test -z "$ac_c_werror_flag" ||
22650          test ! -s conftest.err
22651        } && test -s conftest$ac_exeext &&
22652        $as_test_x conftest$ac_exeext; then
22653   ol_cv_pthread_lpthread_lmach_lexc=yes
22654 else
22655   echo "$as_me: failed program was:" >&5
22656 sed 's/^/| /' conftest.$ac_ext >&5
22657
22658         ol_cv_pthread_lpthread_lmach_lexc=no
22659 fi
22660
22661 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22662       conftest$ac_exeext conftest.$ac_ext
22663 else
22664   cat >conftest.$ac_ext <<_ACEOF
22665 /* confdefs.h.  */
22666 _ACEOF
22667 cat confdefs.h >>conftest.$ac_ext
22668 cat >>conftest.$ac_ext <<_ACEOF
22669 /* end confdefs.h.  */
22670
22671 /* pthread test headers */
22672 #include <pthread.h>
22673 #if HAVE_PTHREADS < 7
22674 #include <errno.h>
22675 #endif
22676 #ifndef NULL
22677 #define NULL (void*)0
22678 #endif
22679
22680 static void *task(p)
22681         void *p;
22682 {
22683         return (void *) (p == NULL);
22684 }
22685
22686
22687 int main(argc, argv)
22688         int argc;
22689         char **argv;
22690 {
22691
22692         /* pthread test function */
22693 #ifndef PTHREAD_CREATE_DETACHED
22694 #define PTHREAD_CREATE_DETACHED 1
22695 #endif
22696         pthread_t t;
22697         int status;
22698         int detach = PTHREAD_CREATE_DETACHED;
22699
22700 #if HAVE_PTHREADS > 4
22701         /* Final pthreads */
22702         pthread_attr_t attr;
22703
22704         status = pthread_attr_init(&attr);
22705         if( status ) return status;
22706
22707 #if HAVE_PTHREADS < 7
22708         status = pthread_attr_setdetachstate(&attr, &detach);
22709         if( status < 0 ) status = errno;
22710 #else
22711         status = pthread_attr_setdetachstate(&attr, detach);
22712 #endif
22713         if( status ) return status;
22714         status = pthread_create( &t, &attr, task, NULL );
22715 #if HAVE_PTHREADS < 7
22716         if( status < 0 ) status = errno;
22717 #endif
22718         if( status ) return status;
22719 #else
22720         /* Draft 4 pthreads */
22721         status = pthread_create( &t, pthread_attr_default, task, NULL );
22722         if( status ) return errno;
22723
22724         /* give thread a chance to complete */
22725         /* it should remain joinable and hence detachable */
22726         sleep( 1 );
22727
22728         status = pthread_detach( &t );
22729         if( status ) return errno;
22730 #endif
22731
22732 #ifdef HAVE_LINUX_THREADS
22733         pthread_kill_other_threads_np();
22734 #endif
22735
22736         return 0;
22737
22738 }
22739
22740 _ACEOF
22741 rm -f conftest$ac_exeext
22742 if { (ac_try="$ac_link"
22743 case "(($ac_try" in
22744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22745   *) ac_try_echo=$ac_try;;
22746 esac
22747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22748   (eval "$ac_link") 2>&5
22749   ac_status=$?
22750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22752   { (case "(($ac_try" in
22753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22754   *) ac_try_echo=$ac_try;;
22755 esac
22756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22757   (eval "$ac_try") 2>&5
22758   ac_status=$?
22759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22760   (exit $ac_status); }; }; then
22761   ol_cv_pthread_lpthread_lmach_lexc=yes
22762 else
22763   echo "$as_me: program exited with status $ac_status" >&5
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22766
22767 ( exit $ac_status )
22768 ol_cv_pthread_lpthread_lmach_lexc=no
22769 fi
22770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22771 fi
22772
22773
22774
22775                 # restore the LIBS
22776                 LIBS="$ol_LIBS"
22777
22778 fi
22779 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread_lmach_lexc" >&5
22780 echo "${ECHO_T}$ol_cv_pthread_lpthread_lmach_lexc" >&6; }
22781
22782         if test $ol_cv_pthread_lpthread_lmach_lexc = yes ; then
22783                 ol_link_pthreads="-lpthread -lmach -lexc"
22784                 ol_link_threads=posix
22785         fi
22786 fi
22787
22788
22789                 # Pthread try link: -lpthread -Wl,-woff,85 (ol_cv_pthread_lib_lpthread_woff)
22790 if test "$ol_link_threads" = no ; then
22791         # try -lpthread -Wl,-woff,85
22792         { echo "$as_me:$LINENO: checking for pthread link with -lpthread -Wl,-woff,85" >&5
22793 echo $ECHO_N "checking for pthread link with -lpthread -Wl,-woff,85... $ECHO_C" >&6; }
22794 if test "${ol_cv_pthread_lib_lpthread_woff+set}" = set; then
22795   echo $ECHO_N "(cached) $ECHO_C" >&6
22796 else
22797
22798                 # save the flags
22799                 ol_LIBS="$LIBS"
22800                 LIBS="-lpthread -Wl,-woff,85 $LIBS"
22801
22802                 if test "$cross_compiling" = yes; then
22803   cat >conftest.$ac_ext <<_ACEOF
22804 /* confdefs.h.  */
22805 _ACEOF
22806 cat confdefs.h >>conftest.$ac_ext
22807 cat >>conftest.$ac_ext <<_ACEOF
22808 /* end confdefs.h.  */
22809
22810 /* pthread test headers */
22811 #include <pthread.h>
22812 #if HAVE_PTHREADS < 7
22813 #include <errno.h>
22814 #endif
22815 #ifndef NULL
22816 #define NULL (void*)0
22817 #endif
22818
22819 static void *task(p)
22820         void *p;
22821 {
22822         return (void *) (p == NULL);
22823 }
22824
22825 int
22826 main ()
22827 {
22828
22829         /* pthread test function */
22830 #ifndef PTHREAD_CREATE_DETACHED
22831 #define PTHREAD_CREATE_DETACHED 1
22832 #endif
22833         pthread_t t;
22834         int status;
22835         int detach = PTHREAD_CREATE_DETACHED;
22836
22837 #if HAVE_PTHREADS > 4
22838         /* Final pthreads */
22839         pthread_attr_t attr;
22840
22841         status = pthread_attr_init(&attr);
22842         if( status ) return status;
22843
22844 #if HAVE_PTHREADS < 7
22845         status = pthread_attr_setdetachstate(&attr, &detach);
22846         if( status < 0 ) status = errno;
22847 #else
22848         status = pthread_attr_setdetachstate(&attr, detach);
22849 #endif
22850         if( status ) return status;
22851         status = pthread_create( &t, &attr, task, NULL );
22852 #if HAVE_PTHREADS < 7
22853         if( status < 0 ) status = errno;
22854 #endif
22855         if( status ) return status;
22856 #else
22857         /* Draft 4 pthreads */
22858         status = pthread_create( &t, pthread_attr_default, task, NULL );
22859         if( status ) return errno;
22860
22861         /* give thread a chance to complete */
22862         /* it should remain joinable and hence detachable */
22863         sleep( 1 );
22864
22865         status = pthread_detach( &t );
22866         if( status ) return errno;
22867 #endif
22868
22869 #ifdef HAVE_LINUX_THREADS
22870         pthread_kill_other_threads_np();
22871 #endif
22872
22873         return 0;
22874
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 rm -f conftest.$ac_objext conftest$ac_exeext
22880 if { (ac_try="$ac_link"
22881 case "(($ac_try" in
22882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883   *) ac_try_echo=$ac_try;;
22884 esac
22885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22886   (eval "$ac_link") 2>conftest.er1
22887   ac_status=$?
22888   grep -v '^ *+' conftest.er1 >conftest.err
22889   rm -f conftest.er1
22890   cat conftest.err >&5
22891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22892   (exit $ac_status); } && {
22893          test -z "$ac_c_werror_flag" ||
22894          test ! -s conftest.err
22895        } && test -s conftest$ac_exeext &&
22896        $as_test_x conftest$ac_exeext; then
22897   ol_cv_pthread_lib_lpthread_woff=yes
22898 else
22899   echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902         ol_cv_pthread_lib_lpthread_woff=no
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22906       conftest$ac_exeext conftest.$ac_ext
22907 else
22908   cat >conftest.$ac_ext <<_ACEOF
22909 /* confdefs.h.  */
22910 _ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h.  */
22914
22915 /* pthread test headers */
22916 #include <pthread.h>
22917 #if HAVE_PTHREADS < 7
22918 #include <errno.h>
22919 #endif
22920 #ifndef NULL
22921 #define NULL (void*)0
22922 #endif
22923
22924 static void *task(p)
22925         void *p;
22926 {
22927         return (void *) (p == NULL);
22928 }
22929
22930
22931 int main(argc, argv)
22932         int argc;
22933         char **argv;
22934 {
22935
22936         /* pthread test function */
22937 #ifndef PTHREAD_CREATE_DETACHED
22938 #define PTHREAD_CREATE_DETACHED 1
22939 #endif
22940         pthread_t t;
22941         int status;
22942         int detach = PTHREAD_CREATE_DETACHED;
22943
22944 #if HAVE_PTHREADS > 4
22945         /* Final pthreads */
22946         pthread_attr_t attr;
22947
22948         status = pthread_attr_init(&attr);
22949         if( status ) return status;
22950
22951 #if HAVE_PTHREADS < 7
22952         status = pthread_attr_setdetachstate(&attr, &detach);
22953         if( status < 0 ) status = errno;
22954 #else
22955         status = pthread_attr_setdetachstate(&attr, detach);
22956 #endif
22957         if( status ) return status;
22958         status = pthread_create( &t, &attr, task, NULL );
22959 #if HAVE_PTHREADS < 7
22960         if( status < 0 ) status = errno;
22961 #endif
22962         if( status ) return status;
22963 #else
22964         /* Draft 4 pthreads */
22965         status = pthread_create( &t, pthread_attr_default, task, NULL );
22966         if( status ) return errno;
22967
22968         /* give thread a chance to complete */
22969         /* it should remain joinable and hence detachable */
22970         sleep( 1 );
22971
22972         status = pthread_detach( &t );
22973         if( status ) return errno;
22974 #endif
22975
22976 #ifdef HAVE_LINUX_THREADS
22977         pthread_kill_other_threads_np();
22978 #endif
22979
22980         return 0;
22981
22982 }
22983
22984 _ACEOF
22985 rm -f conftest$ac_exeext
22986 if { (ac_try="$ac_link"
22987 case "(($ac_try" in
22988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22989   *) ac_try_echo=$ac_try;;
22990 esac
22991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22992   (eval "$ac_link") 2>&5
22993   ac_status=$?
22994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22995   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22996   { (case "(($ac_try" in
22997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22998   *) ac_try_echo=$ac_try;;
22999 esac
23000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23001   (eval "$ac_try") 2>&5
23002   ac_status=$?
23003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004   (exit $ac_status); }; }; then
23005   ol_cv_pthread_lib_lpthread_woff=yes
23006 else
23007   echo "$as_me: program exited with status $ac_status" >&5
23008 echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011 ( exit $ac_status )
23012 ol_cv_pthread_lib_lpthread_woff=no
23013 fi
23014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23015 fi
23016
23017
23018
23019                 # restore the LIBS
23020                 LIBS="$ol_LIBS"
23021
23022 fi
23023 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthread_woff" >&5
23024 echo "${ECHO_T}$ol_cv_pthread_lib_lpthread_woff" >&6; }
23025
23026         if test $ol_cv_pthread_lib_lpthread_woff = yes ; then
23027                 ol_link_pthreads="-lpthread -Wl,-woff,85"
23028                 ol_link_threads=posix
23029         fi
23030 fi
23031
23032
23033                 # Pthread try link: -lpthread (ol_cv_pthread_lpthread)
23034 if test "$ol_link_threads" = no ; then
23035         # try -lpthread
23036         { echo "$as_me:$LINENO: checking for pthread link with -lpthread" >&5
23037 echo $ECHO_N "checking for pthread link with -lpthread... $ECHO_C" >&6; }
23038 if test "${ol_cv_pthread_lpthread+set}" = set; then
23039   echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041
23042                 # save the flags
23043                 ol_LIBS="$LIBS"
23044                 LIBS="-lpthread $LIBS"
23045
23046                 if test "$cross_compiling" = yes; then
23047   cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h.  */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h.  */
23053
23054 /* pthread test headers */
23055 #include <pthread.h>
23056 #if HAVE_PTHREADS < 7
23057 #include <errno.h>
23058 #endif
23059 #ifndef NULL
23060 #define NULL (void*)0
23061 #endif
23062
23063 static void *task(p)
23064         void *p;
23065 {
23066         return (void *) (p == NULL);
23067 }
23068
23069 int
23070 main ()
23071 {
23072
23073         /* pthread test function */
23074 #ifndef PTHREAD_CREATE_DETACHED
23075 #define PTHREAD_CREATE_DETACHED 1
23076 #endif
23077         pthread_t t;
23078         int status;
23079         int detach = PTHREAD_CREATE_DETACHED;
23080
23081 #if HAVE_PTHREADS > 4
23082         /* Final pthreads */
23083         pthread_attr_t attr;
23084
23085         status = pthread_attr_init(&attr);
23086         if( status ) return status;
23087
23088 #if HAVE_PTHREADS < 7
23089         status = pthread_attr_setdetachstate(&attr, &detach);
23090         if( status < 0 ) status = errno;
23091 #else
23092         status = pthread_attr_setdetachstate(&attr, detach);
23093 #endif
23094         if( status ) return status;
23095         status = pthread_create( &t, &attr, task, NULL );
23096 #if HAVE_PTHREADS < 7
23097         if( status < 0 ) status = errno;
23098 #endif
23099         if( status ) return status;
23100 #else
23101         /* Draft 4 pthreads */
23102         status = pthread_create( &t, pthread_attr_default, task, NULL );
23103         if( status ) return errno;
23104
23105         /* give thread a chance to complete */
23106         /* it should remain joinable and hence detachable */
23107         sleep( 1 );
23108
23109         status = pthread_detach( &t );
23110         if( status ) return errno;
23111 #endif
23112
23113 #ifdef HAVE_LINUX_THREADS
23114         pthread_kill_other_threads_np();
23115 #endif
23116
23117         return 0;
23118
23119   ;
23120   return 0;
23121 }
23122 _ACEOF
23123 rm -f conftest.$ac_objext conftest$ac_exeext
23124 if { (ac_try="$ac_link"
23125 case "(($ac_try" in
23126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23127   *) ac_try_echo=$ac_try;;
23128 esac
23129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23130   (eval "$ac_link") 2>conftest.er1
23131   ac_status=$?
23132   grep -v '^ *+' conftest.er1 >conftest.err
23133   rm -f conftest.er1
23134   cat conftest.err >&5
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && {
23137          test -z "$ac_c_werror_flag" ||
23138          test ! -s conftest.err
23139        } && test -s conftest$ac_exeext &&
23140        $as_test_x conftest$ac_exeext; then
23141   ol_cv_pthread_lpthread=yes
23142 else
23143   echo "$as_me: failed program was:" >&5
23144 sed 's/^/| /' conftest.$ac_ext >&5
23145
23146         ol_cv_pthread_lpthread=no
23147 fi
23148
23149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23150       conftest$ac_exeext conftest.$ac_ext
23151 else
23152   cat >conftest.$ac_ext <<_ACEOF
23153 /* confdefs.h.  */
23154 _ACEOF
23155 cat confdefs.h >>conftest.$ac_ext
23156 cat >>conftest.$ac_ext <<_ACEOF
23157 /* end confdefs.h.  */
23158
23159 /* pthread test headers */
23160 #include <pthread.h>
23161 #if HAVE_PTHREADS < 7
23162 #include <errno.h>
23163 #endif
23164 #ifndef NULL
23165 #define NULL (void*)0
23166 #endif
23167
23168 static void *task(p)
23169         void *p;
23170 {
23171         return (void *) (p == NULL);
23172 }
23173
23174
23175 int main(argc, argv)
23176         int argc;
23177         char **argv;
23178 {
23179
23180         /* pthread test function */
23181 #ifndef PTHREAD_CREATE_DETACHED
23182 #define PTHREAD_CREATE_DETACHED 1
23183 #endif
23184         pthread_t t;
23185         int status;
23186         int detach = PTHREAD_CREATE_DETACHED;
23187
23188 #if HAVE_PTHREADS > 4
23189         /* Final pthreads */
23190         pthread_attr_t attr;
23191
23192         status = pthread_attr_init(&attr);
23193         if( status ) return status;
23194
23195 #if HAVE_PTHREADS < 7
23196         status = pthread_attr_setdetachstate(&attr, &detach);
23197         if( status < 0 ) status = errno;
23198 #else
23199         status = pthread_attr_setdetachstate(&attr, detach);
23200 #endif
23201         if( status ) return status;
23202         status = pthread_create( &t, &attr, task, NULL );
23203 #if HAVE_PTHREADS < 7
23204         if( status < 0 ) status = errno;
23205 #endif
23206         if( status ) return status;
23207 #else
23208         /* Draft 4 pthreads */
23209         status = pthread_create( &t, pthread_attr_default, task, NULL );
23210         if( status ) return errno;
23211
23212         /* give thread a chance to complete */
23213         /* it should remain joinable and hence detachable */
23214         sleep( 1 );
23215
23216         status = pthread_detach( &t );
23217         if( status ) return errno;
23218 #endif
23219
23220 #ifdef HAVE_LINUX_THREADS
23221         pthread_kill_other_threads_np();
23222 #endif
23223
23224         return 0;
23225
23226 }
23227
23228 _ACEOF
23229 rm -f conftest$ac_exeext
23230 if { (ac_try="$ac_link"
23231 case "(($ac_try" in
23232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23233   *) ac_try_echo=$ac_try;;
23234 esac
23235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23236   (eval "$ac_link") 2>&5
23237   ac_status=$?
23238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23240   { (case "(($ac_try" in
23241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242   *) ac_try_echo=$ac_try;;
23243 esac
23244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23245   (eval "$ac_try") 2>&5
23246   ac_status=$?
23247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23248   (exit $ac_status); }; }; then
23249   ol_cv_pthread_lpthread=yes
23250 else
23251   echo "$as_me: program exited with status $ac_status" >&5
23252 echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 ( exit $ac_status )
23256 ol_cv_pthread_lpthread=no
23257 fi
23258 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23259 fi
23260
23261
23262
23263                 # restore the LIBS
23264                 LIBS="$ol_LIBS"
23265
23266 fi
23267 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthread" >&5
23268 echo "${ECHO_T}$ol_cv_pthread_lpthread" >&6; }
23269
23270         if test $ol_cv_pthread_lpthread = yes ; then
23271                 ol_link_pthreads="-lpthread"
23272                 ol_link_threads=posix
23273         fi
23274 fi
23275
23276                 # Pthread try link: -lc_r (ol_cv_pthread_lc_r)
23277 if test "$ol_link_threads" = no ; then
23278         # try -lc_r
23279         { echo "$as_me:$LINENO: checking for pthread link with -lc_r" >&5
23280 echo $ECHO_N "checking for pthread link with -lc_r... $ECHO_C" >&6; }
23281 if test "${ol_cv_pthread_lc_r+set}" = set; then
23282   echo $ECHO_N "(cached) $ECHO_C" >&6
23283 else
23284
23285                 # save the flags
23286                 ol_LIBS="$LIBS"
23287                 LIBS="-lc_r $LIBS"
23288
23289                 if test "$cross_compiling" = yes; then
23290   cat >conftest.$ac_ext <<_ACEOF
23291 /* confdefs.h.  */
23292 _ACEOF
23293 cat confdefs.h >>conftest.$ac_ext
23294 cat >>conftest.$ac_ext <<_ACEOF
23295 /* end confdefs.h.  */
23296
23297 /* pthread test headers */
23298 #include <pthread.h>
23299 #if HAVE_PTHREADS < 7
23300 #include <errno.h>
23301 #endif
23302 #ifndef NULL
23303 #define NULL (void*)0
23304 #endif
23305
23306 static void *task(p)
23307         void *p;
23308 {
23309         return (void *) (p == NULL);
23310 }
23311
23312 int
23313 main ()
23314 {
23315
23316         /* pthread test function */
23317 #ifndef PTHREAD_CREATE_DETACHED
23318 #define PTHREAD_CREATE_DETACHED 1
23319 #endif
23320         pthread_t t;
23321         int status;
23322         int detach = PTHREAD_CREATE_DETACHED;
23323
23324 #if HAVE_PTHREADS > 4
23325         /* Final pthreads */
23326         pthread_attr_t attr;
23327
23328         status = pthread_attr_init(&attr);
23329         if( status ) return status;
23330
23331 #if HAVE_PTHREADS < 7
23332         status = pthread_attr_setdetachstate(&attr, &detach);
23333         if( status < 0 ) status = errno;
23334 #else
23335         status = pthread_attr_setdetachstate(&attr, detach);
23336 #endif
23337         if( status ) return status;
23338         status = pthread_create( &t, &attr, task, NULL );
23339 #if HAVE_PTHREADS < 7
23340         if( status < 0 ) status = errno;
23341 #endif
23342         if( status ) return status;
23343 #else
23344         /* Draft 4 pthreads */
23345         status = pthread_create( &t, pthread_attr_default, task, NULL );
23346         if( status ) return errno;
23347
23348         /* give thread a chance to complete */
23349         /* it should remain joinable and hence detachable */
23350         sleep( 1 );
23351
23352         status = pthread_detach( &t );
23353         if( status ) return errno;
23354 #endif
23355
23356 #ifdef HAVE_LINUX_THREADS
23357         pthread_kill_other_threads_np();
23358 #endif
23359
23360         return 0;
23361
23362   ;
23363   return 0;
23364 }
23365 _ACEOF
23366 rm -f conftest.$ac_objext conftest$ac_exeext
23367 if { (ac_try="$ac_link"
23368 case "(($ac_try" in
23369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23370   *) ac_try_echo=$ac_try;;
23371 esac
23372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23373   (eval "$ac_link") 2>conftest.er1
23374   ac_status=$?
23375   grep -v '^ *+' conftest.er1 >conftest.err
23376   rm -f conftest.er1
23377   cat conftest.err >&5
23378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23379   (exit $ac_status); } && {
23380          test -z "$ac_c_werror_flag" ||
23381          test ! -s conftest.err
23382        } && test -s conftest$ac_exeext &&
23383        $as_test_x conftest$ac_exeext; then
23384   ol_cv_pthread_lc_r=yes
23385 else
23386   echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389         ol_cv_pthread_lc_r=no
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23393       conftest$ac_exeext conftest.$ac_ext
23394 else
23395   cat >conftest.$ac_ext <<_ACEOF
23396 /* confdefs.h.  */
23397 _ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h.  */
23401
23402 /* pthread test headers */
23403 #include <pthread.h>
23404 #if HAVE_PTHREADS < 7
23405 #include <errno.h>
23406 #endif
23407 #ifndef NULL
23408 #define NULL (void*)0
23409 #endif
23410
23411 static void *task(p)
23412         void *p;
23413 {
23414         return (void *) (p == NULL);
23415 }
23416
23417
23418 int main(argc, argv)
23419         int argc;
23420         char **argv;
23421 {
23422
23423         /* pthread test function */
23424 #ifndef PTHREAD_CREATE_DETACHED
23425 #define PTHREAD_CREATE_DETACHED 1
23426 #endif
23427         pthread_t t;
23428         int status;
23429         int detach = PTHREAD_CREATE_DETACHED;
23430
23431 #if HAVE_PTHREADS > 4
23432         /* Final pthreads */
23433         pthread_attr_t attr;
23434
23435         status = pthread_attr_init(&attr);
23436         if( status ) return status;
23437
23438 #if HAVE_PTHREADS < 7
23439         status = pthread_attr_setdetachstate(&attr, &detach);
23440         if( status < 0 ) status = errno;
23441 #else
23442         status = pthread_attr_setdetachstate(&attr, detach);
23443 #endif
23444         if( status ) return status;
23445         status = pthread_create( &t, &attr, task, NULL );
23446 #if HAVE_PTHREADS < 7
23447         if( status < 0 ) status = errno;
23448 #endif
23449         if( status ) return status;
23450 #else
23451         /* Draft 4 pthreads */
23452         status = pthread_create( &t, pthread_attr_default, task, NULL );
23453         if( status ) return errno;
23454
23455         /* give thread a chance to complete */
23456         /* it should remain joinable and hence detachable */
23457         sleep( 1 );
23458
23459         status = pthread_detach( &t );
23460         if( status ) return errno;
23461 #endif
23462
23463 #ifdef HAVE_LINUX_THREADS
23464         pthread_kill_other_threads_np();
23465 #endif
23466
23467         return 0;
23468
23469 }
23470
23471 _ACEOF
23472 rm -f conftest$ac_exeext
23473 if { (ac_try="$ac_link"
23474 case "(($ac_try" in
23475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23476   *) ac_try_echo=$ac_try;;
23477 esac
23478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23479   (eval "$ac_link") 2>&5
23480   ac_status=$?
23481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23482   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23483   { (case "(($ac_try" in
23484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23485   *) ac_try_echo=$ac_try;;
23486 esac
23487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23488   (eval "$ac_try") 2>&5
23489   ac_status=$?
23490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23491   (exit $ac_status); }; }; then
23492   ol_cv_pthread_lc_r=yes
23493 else
23494   echo "$as_me: program exited with status $ac_status" >&5
23495 echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498 ( exit $ac_status )
23499 ol_cv_pthread_lc_r=no
23500 fi
23501 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23502 fi
23503
23504
23505
23506                 # restore the LIBS
23507                 LIBS="$ol_LIBS"
23508
23509 fi
23510 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lc_r" >&5
23511 echo "${ECHO_T}$ol_cv_pthread_lc_r" >&6; }
23512
23513         if test $ol_cv_pthread_lc_r = yes ; then
23514                 ol_link_pthreads="-lc_r"
23515                 ol_link_threads=posix
23516         fi
23517 fi
23518
23519
23520                 # Pthread try link: -threads (ol_cv_pthread_threads)
23521 if test "$ol_link_threads" = no ; then
23522         # try -threads
23523         { echo "$as_me:$LINENO: checking for pthread link with -threads" >&5
23524 echo $ECHO_N "checking for pthread link with -threads... $ECHO_C" >&6; }
23525 if test "${ol_cv_pthread_threads+set}" = set; then
23526   echo $ECHO_N "(cached) $ECHO_C" >&6
23527 else
23528
23529                 # save the flags
23530                 ol_LIBS="$LIBS"
23531                 LIBS="-threads $LIBS"
23532
23533                 if test "$cross_compiling" = yes; then
23534   cat >conftest.$ac_ext <<_ACEOF
23535 /* confdefs.h.  */
23536 _ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h.  */
23540
23541 /* pthread test headers */
23542 #include <pthread.h>
23543 #if HAVE_PTHREADS < 7
23544 #include <errno.h>
23545 #endif
23546 #ifndef NULL
23547 #define NULL (void*)0
23548 #endif
23549
23550 static void *task(p)
23551         void *p;
23552 {
23553         return (void *) (p == NULL);
23554 }
23555
23556 int
23557 main ()
23558 {
23559
23560         /* pthread test function */
23561 #ifndef PTHREAD_CREATE_DETACHED
23562 #define PTHREAD_CREATE_DETACHED 1
23563 #endif
23564         pthread_t t;
23565         int status;
23566         int detach = PTHREAD_CREATE_DETACHED;
23567
23568 #if HAVE_PTHREADS > 4
23569         /* Final pthreads */
23570         pthread_attr_t attr;
23571
23572         status = pthread_attr_init(&attr);
23573         if( status ) return status;
23574
23575 #if HAVE_PTHREADS < 7
23576         status = pthread_attr_setdetachstate(&attr, &detach);
23577         if( status < 0 ) status = errno;
23578 #else
23579         status = pthread_attr_setdetachstate(&attr, detach);
23580 #endif
23581         if( status ) return status;
23582         status = pthread_create( &t, &attr, task, NULL );
23583 #if HAVE_PTHREADS < 7
23584         if( status < 0 ) status = errno;
23585 #endif
23586         if( status ) return status;
23587 #else
23588         /* Draft 4 pthreads */
23589         status = pthread_create( &t, pthread_attr_default, task, NULL );
23590         if( status ) return errno;
23591
23592         /* give thread a chance to complete */
23593         /* it should remain joinable and hence detachable */
23594         sleep( 1 );
23595
23596         status = pthread_detach( &t );
23597         if( status ) return errno;
23598 #endif
23599
23600 #ifdef HAVE_LINUX_THREADS
23601         pthread_kill_other_threads_np();
23602 #endif
23603
23604         return 0;
23605
23606   ;
23607   return 0;
23608 }
23609 _ACEOF
23610 rm -f conftest.$ac_objext conftest$ac_exeext
23611 if { (ac_try="$ac_link"
23612 case "(($ac_try" in
23613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23614   *) ac_try_echo=$ac_try;;
23615 esac
23616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23617   (eval "$ac_link") 2>conftest.er1
23618   ac_status=$?
23619   grep -v '^ *+' conftest.er1 >conftest.err
23620   rm -f conftest.er1
23621   cat conftest.err >&5
23622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23623   (exit $ac_status); } && {
23624          test -z "$ac_c_werror_flag" ||
23625          test ! -s conftest.err
23626        } && test -s conftest$ac_exeext &&
23627        $as_test_x conftest$ac_exeext; then
23628   ol_cv_pthread_threads=yes
23629 else
23630   echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23632
23633         ol_cv_pthread_threads=no
23634 fi
23635
23636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23637       conftest$ac_exeext conftest.$ac_ext
23638 else
23639   cat >conftest.$ac_ext <<_ACEOF
23640 /* confdefs.h.  */
23641 _ACEOF
23642 cat confdefs.h >>conftest.$ac_ext
23643 cat >>conftest.$ac_ext <<_ACEOF
23644 /* end confdefs.h.  */
23645
23646 /* pthread test headers */
23647 #include <pthread.h>
23648 #if HAVE_PTHREADS < 7
23649 #include <errno.h>
23650 #endif
23651 #ifndef NULL
23652 #define NULL (void*)0
23653 #endif
23654
23655 static void *task(p)
23656         void *p;
23657 {
23658         return (void *) (p == NULL);
23659 }
23660
23661
23662 int main(argc, argv)
23663         int argc;
23664         char **argv;
23665 {
23666
23667         /* pthread test function */
23668 #ifndef PTHREAD_CREATE_DETACHED
23669 #define PTHREAD_CREATE_DETACHED 1
23670 #endif
23671         pthread_t t;
23672         int status;
23673         int detach = PTHREAD_CREATE_DETACHED;
23674
23675 #if HAVE_PTHREADS > 4
23676         /* Final pthreads */
23677         pthread_attr_t attr;
23678
23679         status = pthread_attr_init(&attr);
23680         if( status ) return status;
23681
23682 #if HAVE_PTHREADS < 7
23683         status = pthread_attr_setdetachstate(&attr, &detach);
23684         if( status < 0 ) status = errno;
23685 #else
23686         status = pthread_attr_setdetachstate(&attr, detach);
23687 #endif
23688         if( status ) return status;
23689         status = pthread_create( &t, &attr, task, NULL );
23690 #if HAVE_PTHREADS < 7
23691         if( status < 0 ) status = errno;
23692 #endif
23693         if( status ) return status;
23694 #else
23695         /* Draft 4 pthreads */
23696         status = pthread_create( &t, pthread_attr_default, task, NULL );
23697         if( status ) return errno;
23698
23699         /* give thread a chance to complete */
23700         /* it should remain joinable and hence detachable */
23701         sleep( 1 );
23702
23703         status = pthread_detach( &t );
23704         if( status ) return errno;
23705 #endif
23706
23707 #ifdef HAVE_LINUX_THREADS
23708         pthread_kill_other_threads_np();
23709 #endif
23710
23711         return 0;
23712
23713 }
23714
23715 _ACEOF
23716 rm -f conftest$ac_exeext
23717 if { (ac_try="$ac_link"
23718 case "(($ac_try" in
23719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23720   *) ac_try_echo=$ac_try;;
23721 esac
23722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23723   (eval "$ac_link") 2>&5
23724   ac_status=$?
23725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23726   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23727   { (case "(($ac_try" in
23728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729   *) ac_try_echo=$ac_try;;
23730 esac
23731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23732   (eval "$ac_try") 2>&5
23733   ac_status=$?
23734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23735   (exit $ac_status); }; }; then
23736   ol_cv_pthread_threads=yes
23737 else
23738   echo "$as_me: program exited with status $ac_status" >&5
23739 echo "$as_me: failed program was:" >&5
23740 sed 's/^/| /' conftest.$ac_ext >&5
23741
23742 ( exit $ac_status )
23743 ol_cv_pthread_threads=no
23744 fi
23745 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23746 fi
23747
23748
23749
23750                 # restore the LIBS
23751                 LIBS="$ol_LIBS"
23752
23753 fi
23754 { echo "$as_me:$LINENO: result: $ol_cv_pthread_threads" >&5
23755 echo "${ECHO_T}$ol_cv_pthread_threads" >&6; }
23756
23757         if test $ol_cv_pthread_threads = yes ; then
23758                 ol_link_pthreads="-threads"
23759                 ol_link_threads=posix
23760         fi
23761 fi
23762
23763
23764                 # Pthread try link: -lpthreads -lmach -lexc -lc_r (ol_cv_pthread_lpthreads_lmach_lexc_lc_r)
23765 if test "$ol_link_threads" = no ; then
23766         # try -lpthreads -lmach -lexc -lc_r
23767         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc -lc_r" >&5
23768 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc -lc_r... $ECHO_C" >&6; }
23769 if test "${ol_cv_pthread_lpthreads_lmach_lexc_lc_r+set}" = set; then
23770   echo $ECHO_N "(cached) $ECHO_C" >&6
23771 else
23772
23773                 # save the flags
23774                 ol_LIBS="$LIBS"
23775                 LIBS="-lpthreads -lmach -lexc -lc_r $LIBS"
23776
23777                 if test "$cross_compiling" = yes; then
23778   cat >conftest.$ac_ext <<_ACEOF
23779 /* confdefs.h.  */
23780 _ACEOF
23781 cat confdefs.h >>conftest.$ac_ext
23782 cat >>conftest.$ac_ext <<_ACEOF
23783 /* end confdefs.h.  */
23784
23785 /* pthread test headers */
23786 #include <pthread.h>
23787 #if HAVE_PTHREADS < 7
23788 #include <errno.h>
23789 #endif
23790 #ifndef NULL
23791 #define NULL (void*)0
23792 #endif
23793
23794 static void *task(p)
23795         void *p;
23796 {
23797         return (void *) (p == NULL);
23798 }
23799
23800 int
23801 main ()
23802 {
23803
23804         /* pthread test function */
23805 #ifndef PTHREAD_CREATE_DETACHED
23806 #define PTHREAD_CREATE_DETACHED 1
23807 #endif
23808         pthread_t t;
23809         int status;
23810         int detach = PTHREAD_CREATE_DETACHED;
23811
23812 #if HAVE_PTHREADS > 4
23813         /* Final pthreads */
23814         pthread_attr_t attr;
23815
23816         status = pthread_attr_init(&attr);
23817         if( status ) return status;
23818
23819 #if HAVE_PTHREADS < 7
23820         status = pthread_attr_setdetachstate(&attr, &detach);
23821         if( status < 0 ) status = errno;
23822 #else
23823         status = pthread_attr_setdetachstate(&attr, detach);
23824 #endif
23825         if( status ) return status;
23826         status = pthread_create( &t, &attr, task, NULL );
23827 #if HAVE_PTHREADS < 7
23828         if( status < 0 ) status = errno;
23829 #endif
23830         if( status ) return status;
23831 #else
23832         /* Draft 4 pthreads */
23833         status = pthread_create( &t, pthread_attr_default, task, NULL );
23834         if( status ) return errno;
23835
23836         /* give thread a chance to complete */
23837         /* it should remain joinable and hence detachable */
23838         sleep( 1 );
23839
23840         status = pthread_detach( &t );
23841         if( status ) return errno;
23842 #endif
23843
23844 #ifdef HAVE_LINUX_THREADS
23845         pthread_kill_other_threads_np();
23846 #endif
23847
23848         return 0;
23849
23850   ;
23851   return 0;
23852 }
23853 _ACEOF
23854 rm -f conftest.$ac_objext conftest$ac_exeext
23855 if { (ac_try="$ac_link"
23856 case "(($ac_try" in
23857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23858   *) ac_try_echo=$ac_try;;
23859 esac
23860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23861   (eval "$ac_link") 2>conftest.er1
23862   ac_status=$?
23863   grep -v '^ *+' conftest.er1 >conftest.err
23864   rm -f conftest.er1
23865   cat conftest.err >&5
23866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23867   (exit $ac_status); } && {
23868          test -z "$ac_c_werror_flag" ||
23869          test ! -s conftest.err
23870        } && test -s conftest$ac_exeext &&
23871        $as_test_x conftest$ac_exeext; then
23872   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23873 else
23874   echo "$as_me: failed program was:" >&5
23875 sed 's/^/| /' conftest.$ac_ext >&5
23876
23877         ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23878 fi
23879
23880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23881       conftest$ac_exeext conftest.$ac_ext
23882 else
23883   cat >conftest.$ac_ext <<_ACEOF
23884 /* confdefs.h.  */
23885 _ACEOF
23886 cat confdefs.h >>conftest.$ac_ext
23887 cat >>conftest.$ac_ext <<_ACEOF
23888 /* end confdefs.h.  */
23889
23890 /* pthread test headers */
23891 #include <pthread.h>
23892 #if HAVE_PTHREADS < 7
23893 #include <errno.h>
23894 #endif
23895 #ifndef NULL
23896 #define NULL (void*)0
23897 #endif
23898
23899 static void *task(p)
23900         void *p;
23901 {
23902         return (void *) (p == NULL);
23903 }
23904
23905
23906 int main(argc, argv)
23907         int argc;
23908         char **argv;
23909 {
23910
23911         /* pthread test function */
23912 #ifndef PTHREAD_CREATE_DETACHED
23913 #define PTHREAD_CREATE_DETACHED 1
23914 #endif
23915         pthread_t t;
23916         int status;
23917         int detach = PTHREAD_CREATE_DETACHED;
23918
23919 #if HAVE_PTHREADS > 4
23920         /* Final pthreads */
23921         pthread_attr_t attr;
23922
23923         status = pthread_attr_init(&attr);
23924         if( status ) return status;
23925
23926 #if HAVE_PTHREADS < 7
23927         status = pthread_attr_setdetachstate(&attr, &detach);
23928         if( status < 0 ) status = errno;
23929 #else
23930         status = pthread_attr_setdetachstate(&attr, detach);
23931 #endif
23932         if( status ) return status;
23933         status = pthread_create( &t, &attr, task, NULL );
23934 #if HAVE_PTHREADS < 7
23935         if( status < 0 ) status = errno;
23936 #endif
23937         if( status ) return status;
23938 #else
23939         /* Draft 4 pthreads */
23940         status = pthread_create( &t, pthread_attr_default, task, NULL );
23941         if( status ) return errno;
23942
23943         /* give thread a chance to complete */
23944         /* it should remain joinable and hence detachable */
23945         sleep( 1 );
23946
23947         status = pthread_detach( &t );
23948         if( status ) return errno;
23949 #endif
23950
23951 #ifdef HAVE_LINUX_THREADS
23952         pthread_kill_other_threads_np();
23953 #endif
23954
23955         return 0;
23956
23957 }
23958
23959 _ACEOF
23960 rm -f conftest$ac_exeext
23961 if { (ac_try="$ac_link"
23962 case "(($ac_try" in
23963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23964   *) ac_try_echo=$ac_try;;
23965 esac
23966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23967   (eval "$ac_link") 2>&5
23968   ac_status=$?
23969   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23970   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23971   { (case "(($ac_try" in
23972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23973   *) ac_try_echo=$ac_try;;
23974 esac
23975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23976   (eval "$ac_try") 2>&5
23977   ac_status=$?
23978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23979   (exit $ac_status); }; }; then
23980   ol_cv_pthread_lpthreads_lmach_lexc_lc_r=yes
23981 else
23982   echo "$as_me: program exited with status $ac_status" >&5
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23985
23986 ( exit $ac_status )
23987 ol_cv_pthread_lpthreads_lmach_lexc_lc_r=no
23988 fi
23989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23990 fi
23991
23992
23993
23994                 # restore the LIBS
23995                 LIBS="$ol_LIBS"
23996
23997 fi
23998 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&5
23999 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc_lc_r" >&6; }
24000
24001         if test $ol_cv_pthread_lpthreads_lmach_lexc_lc_r = yes ; then
24002                 ol_link_pthreads="-lpthreads -lmach -lexc -lc_r"
24003                 ol_link_threads=posix
24004         fi
24005 fi
24006
24007                 # Pthread try link: -lpthreads -lmach -lexc (ol_cv_pthread_lpthreads_lmach_lexc)
24008 if test "$ol_link_threads" = no ; then
24009         # try -lpthreads -lmach -lexc
24010         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lmach -lexc" >&5
24011 echo $ECHO_N "checking for pthread link with -lpthreads -lmach -lexc... $ECHO_C" >&6; }
24012 if test "${ol_cv_pthread_lpthreads_lmach_lexc+set}" = set; then
24013   echo $ECHO_N "(cached) $ECHO_C" >&6
24014 else
24015
24016                 # save the flags
24017                 ol_LIBS="$LIBS"
24018                 LIBS="-lpthreads -lmach -lexc $LIBS"
24019
24020                 if test "$cross_compiling" = yes; then
24021   cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h.  */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h.  */
24027
24028 /* pthread test headers */
24029 #include <pthread.h>
24030 #if HAVE_PTHREADS < 7
24031 #include <errno.h>
24032 #endif
24033 #ifndef NULL
24034 #define NULL (void*)0
24035 #endif
24036
24037 static void *task(p)
24038         void *p;
24039 {
24040         return (void *) (p == NULL);
24041 }
24042
24043 int
24044 main ()
24045 {
24046
24047         /* pthread test function */
24048 #ifndef PTHREAD_CREATE_DETACHED
24049 #define PTHREAD_CREATE_DETACHED 1
24050 #endif
24051         pthread_t t;
24052         int status;
24053         int detach = PTHREAD_CREATE_DETACHED;
24054
24055 #if HAVE_PTHREADS > 4
24056         /* Final pthreads */
24057         pthread_attr_t attr;
24058
24059         status = pthread_attr_init(&attr);
24060         if( status ) return status;
24061
24062 #if HAVE_PTHREADS < 7
24063         status = pthread_attr_setdetachstate(&attr, &detach);
24064         if( status < 0 ) status = errno;
24065 #else
24066         status = pthread_attr_setdetachstate(&attr, detach);
24067 #endif
24068         if( status ) return status;
24069         status = pthread_create( &t, &attr, task, NULL );
24070 #if HAVE_PTHREADS < 7
24071         if( status < 0 ) status = errno;
24072 #endif
24073         if( status ) return status;
24074 #else
24075         /* Draft 4 pthreads */
24076         status = pthread_create( &t, pthread_attr_default, task, NULL );
24077         if( status ) return errno;
24078
24079         /* give thread a chance to complete */
24080         /* it should remain joinable and hence detachable */
24081         sleep( 1 );
24082
24083         status = pthread_detach( &t );
24084         if( status ) return errno;
24085 #endif
24086
24087 #ifdef HAVE_LINUX_THREADS
24088         pthread_kill_other_threads_np();
24089 #endif
24090
24091         return 0;
24092
24093   ;
24094   return 0;
24095 }
24096 _ACEOF
24097 rm -f conftest.$ac_objext conftest$ac_exeext
24098 if { (ac_try="$ac_link"
24099 case "(($ac_try" in
24100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24101   *) ac_try_echo=$ac_try;;
24102 esac
24103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24104   (eval "$ac_link") 2>conftest.er1
24105   ac_status=$?
24106   grep -v '^ *+' conftest.er1 >conftest.err
24107   rm -f conftest.er1
24108   cat conftest.err >&5
24109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24110   (exit $ac_status); } && {
24111          test -z "$ac_c_werror_flag" ||
24112          test ! -s conftest.err
24113        } && test -s conftest$ac_exeext &&
24114        $as_test_x conftest$ac_exeext; then
24115   ol_cv_pthread_lpthreads_lmach_lexc=yes
24116 else
24117   echo "$as_me: failed program was:" >&5
24118 sed 's/^/| /' conftest.$ac_ext >&5
24119
24120         ol_cv_pthread_lpthreads_lmach_lexc=no
24121 fi
24122
24123 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24124       conftest$ac_exeext conftest.$ac_ext
24125 else
24126   cat >conftest.$ac_ext <<_ACEOF
24127 /* confdefs.h.  */
24128 _ACEOF
24129 cat confdefs.h >>conftest.$ac_ext
24130 cat >>conftest.$ac_ext <<_ACEOF
24131 /* end confdefs.h.  */
24132
24133 /* pthread test headers */
24134 #include <pthread.h>
24135 #if HAVE_PTHREADS < 7
24136 #include <errno.h>
24137 #endif
24138 #ifndef NULL
24139 #define NULL (void*)0
24140 #endif
24141
24142 static void *task(p)
24143         void *p;
24144 {
24145         return (void *) (p == NULL);
24146 }
24147
24148
24149 int main(argc, argv)
24150         int argc;
24151         char **argv;
24152 {
24153
24154         /* pthread test function */
24155 #ifndef PTHREAD_CREATE_DETACHED
24156 #define PTHREAD_CREATE_DETACHED 1
24157 #endif
24158         pthread_t t;
24159         int status;
24160         int detach = PTHREAD_CREATE_DETACHED;
24161
24162 #if HAVE_PTHREADS > 4
24163         /* Final pthreads */
24164         pthread_attr_t attr;
24165
24166         status = pthread_attr_init(&attr);
24167         if( status ) return status;
24168
24169 #if HAVE_PTHREADS < 7
24170         status = pthread_attr_setdetachstate(&attr, &detach);
24171         if( status < 0 ) status = errno;
24172 #else
24173         status = pthread_attr_setdetachstate(&attr, detach);
24174 #endif
24175         if( status ) return status;
24176         status = pthread_create( &t, &attr, task, NULL );
24177 #if HAVE_PTHREADS < 7
24178         if( status < 0 ) status = errno;
24179 #endif
24180         if( status ) return status;
24181 #else
24182         /* Draft 4 pthreads */
24183         status = pthread_create( &t, pthread_attr_default, task, NULL );
24184         if( status ) return errno;
24185
24186         /* give thread a chance to complete */
24187         /* it should remain joinable and hence detachable */
24188         sleep( 1 );
24189
24190         status = pthread_detach( &t );
24191         if( status ) return errno;
24192 #endif
24193
24194 #ifdef HAVE_LINUX_THREADS
24195         pthread_kill_other_threads_np();
24196 #endif
24197
24198         return 0;
24199
24200 }
24201
24202 _ACEOF
24203 rm -f conftest$ac_exeext
24204 if { (ac_try="$ac_link"
24205 case "(($ac_try" in
24206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24207   *) ac_try_echo=$ac_try;;
24208 esac
24209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24210   (eval "$ac_link") 2>&5
24211   ac_status=$?
24212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24214   { (case "(($ac_try" in
24215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24216   *) ac_try_echo=$ac_try;;
24217 esac
24218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24219   (eval "$ac_try") 2>&5
24220   ac_status=$?
24221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24222   (exit $ac_status); }; }; then
24223   ol_cv_pthread_lpthreads_lmach_lexc=yes
24224 else
24225   echo "$as_me: program exited with status $ac_status" >&5
24226 echo "$as_me: failed program was:" >&5
24227 sed 's/^/| /' conftest.$ac_ext >&5
24228
24229 ( exit $ac_status )
24230 ol_cv_pthread_lpthreads_lmach_lexc=no
24231 fi
24232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24233 fi
24234
24235
24236
24237                 # restore the LIBS
24238                 LIBS="$ol_LIBS"
24239
24240 fi
24241 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lmach_lexc" >&5
24242 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lmach_lexc" >&6; }
24243
24244         if test $ol_cv_pthread_lpthreads_lmach_lexc = yes ; then
24245                 ol_link_pthreads="-lpthreads -lmach -lexc"
24246                 ol_link_threads=posix
24247         fi
24248 fi
24249
24250                 # Pthread try link: -lpthreads -lexc (ol_cv_pthread_lpthreads_lexc)
24251 if test "$ol_link_threads" = no ; then
24252         # try -lpthreads -lexc
24253         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads -lexc" >&5
24254 echo $ECHO_N "checking for pthread link with -lpthreads -lexc... $ECHO_C" >&6; }
24255 if test "${ol_cv_pthread_lpthreads_lexc+set}" = set; then
24256   echo $ECHO_N "(cached) $ECHO_C" >&6
24257 else
24258
24259                 # save the flags
24260                 ol_LIBS="$LIBS"
24261                 LIBS="-lpthreads -lexc $LIBS"
24262
24263                 if test "$cross_compiling" = yes; then
24264   cat >conftest.$ac_ext <<_ACEOF
24265 /* confdefs.h.  */
24266 _ACEOF
24267 cat confdefs.h >>conftest.$ac_ext
24268 cat >>conftest.$ac_ext <<_ACEOF
24269 /* end confdefs.h.  */
24270
24271 /* pthread test headers */
24272 #include <pthread.h>
24273 #if HAVE_PTHREADS < 7
24274 #include <errno.h>
24275 #endif
24276 #ifndef NULL
24277 #define NULL (void*)0
24278 #endif
24279
24280 static void *task(p)
24281         void *p;
24282 {
24283         return (void *) (p == NULL);
24284 }
24285
24286 int
24287 main ()
24288 {
24289
24290         /* pthread test function */
24291 #ifndef PTHREAD_CREATE_DETACHED
24292 #define PTHREAD_CREATE_DETACHED 1
24293 #endif
24294         pthread_t t;
24295         int status;
24296         int detach = PTHREAD_CREATE_DETACHED;
24297
24298 #if HAVE_PTHREADS > 4
24299         /* Final pthreads */
24300         pthread_attr_t attr;
24301
24302         status = pthread_attr_init(&attr);
24303         if( status ) return status;
24304
24305 #if HAVE_PTHREADS < 7
24306         status = pthread_attr_setdetachstate(&attr, &detach);
24307         if( status < 0 ) status = errno;
24308 #else
24309         status = pthread_attr_setdetachstate(&attr, detach);
24310 #endif
24311         if( status ) return status;
24312         status = pthread_create( &t, &attr, task, NULL );
24313 #if HAVE_PTHREADS < 7
24314         if( status < 0 ) status = errno;
24315 #endif
24316         if( status ) return status;
24317 #else
24318         /* Draft 4 pthreads */
24319         status = pthread_create( &t, pthread_attr_default, task, NULL );
24320         if( status ) return errno;
24321
24322         /* give thread a chance to complete */
24323         /* it should remain joinable and hence detachable */
24324         sleep( 1 );
24325
24326         status = pthread_detach( &t );
24327         if( status ) return errno;
24328 #endif
24329
24330 #ifdef HAVE_LINUX_THREADS
24331         pthread_kill_other_threads_np();
24332 #endif
24333
24334         return 0;
24335
24336   ;
24337   return 0;
24338 }
24339 _ACEOF
24340 rm -f conftest.$ac_objext conftest$ac_exeext
24341 if { (ac_try="$ac_link"
24342 case "(($ac_try" in
24343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24344   *) ac_try_echo=$ac_try;;
24345 esac
24346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24347   (eval "$ac_link") 2>conftest.er1
24348   ac_status=$?
24349   grep -v '^ *+' conftest.er1 >conftest.err
24350   rm -f conftest.er1
24351   cat conftest.err >&5
24352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24353   (exit $ac_status); } && {
24354          test -z "$ac_c_werror_flag" ||
24355          test ! -s conftest.err
24356        } && test -s conftest$ac_exeext &&
24357        $as_test_x conftest$ac_exeext; then
24358   ol_cv_pthread_lpthreads_lexc=yes
24359 else
24360   echo "$as_me: failed program was:" >&5
24361 sed 's/^/| /' conftest.$ac_ext >&5
24362
24363         ol_cv_pthread_lpthreads_lexc=no
24364 fi
24365
24366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24367       conftest$ac_exeext conftest.$ac_ext
24368 else
24369   cat >conftest.$ac_ext <<_ACEOF
24370 /* confdefs.h.  */
24371 _ACEOF
24372 cat confdefs.h >>conftest.$ac_ext
24373 cat >>conftest.$ac_ext <<_ACEOF
24374 /* end confdefs.h.  */
24375
24376 /* pthread test headers */
24377 #include <pthread.h>
24378 #if HAVE_PTHREADS < 7
24379 #include <errno.h>
24380 #endif
24381 #ifndef NULL
24382 #define NULL (void*)0
24383 #endif
24384
24385 static void *task(p)
24386         void *p;
24387 {
24388         return (void *) (p == NULL);
24389 }
24390
24391
24392 int main(argc, argv)
24393         int argc;
24394         char **argv;
24395 {
24396
24397         /* pthread test function */
24398 #ifndef PTHREAD_CREATE_DETACHED
24399 #define PTHREAD_CREATE_DETACHED 1
24400 #endif
24401         pthread_t t;
24402         int status;
24403         int detach = PTHREAD_CREATE_DETACHED;
24404
24405 #if HAVE_PTHREADS > 4
24406         /* Final pthreads */
24407         pthread_attr_t attr;
24408
24409         status = pthread_attr_init(&attr);
24410         if( status ) return status;
24411
24412 #if HAVE_PTHREADS < 7
24413         status = pthread_attr_setdetachstate(&attr, &detach);
24414         if( status < 0 ) status = errno;
24415 #else
24416         status = pthread_attr_setdetachstate(&attr, detach);
24417 #endif
24418         if( status ) return status;
24419         status = pthread_create( &t, &attr, task, NULL );
24420 #if HAVE_PTHREADS < 7
24421         if( status < 0 ) status = errno;
24422 #endif
24423         if( status ) return status;
24424 #else
24425         /* Draft 4 pthreads */
24426         status = pthread_create( &t, pthread_attr_default, task, NULL );
24427         if( status ) return errno;
24428
24429         /* give thread a chance to complete */
24430         /* it should remain joinable and hence detachable */
24431         sleep( 1 );
24432
24433         status = pthread_detach( &t );
24434         if( status ) return errno;
24435 #endif
24436
24437 #ifdef HAVE_LINUX_THREADS
24438         pthread_kill_other_threads_np();
24439 #endif
24440
24441         return 0;
24442
24443 }
24444
24445 _ACEOF
24446 rm -f conftest$ac_exeext
24447 if { (ac_try="$ac_link"
24448 case "(($ac_try" in
24449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24450   *) ac_try_echo=$ac_try;;
24451 esac
24452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24453   (eval "$ac_link") 2>&5
24454   ac_status=$?
24455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24456   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24457   { (case "(($ac_try" in
24458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24459   *) ac_try_echo=$ac_try;;
24460 esac
24461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24462   (eval "$ac_try") 2>&5
24463   ac_status=$?
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); }; }; then
24466   ol_cv_pthread_lpthreads_lexc=yes
24467 else
24468   echo "$as_me: program exited with status $ac_status" >&5
24469 echo "$as_me: failed program was:" >&5
24470 sed 's/^/| /' conftest.$ac_ext >&5
24471
24472 ( exit $ac_status )
24473 ol_cv_pthread_lpthreads_lexc=no
24474 fi
24475 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24476 fi
24477
24478
24479
24480                 # restore the LIBS
24481                 LIBS="$ol_LIBS"
24482
24483 fi
24484 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lpthreads_lexc" >&5
24485 echo "${ECHO_T}$ol_cv_pthread_lpthreads_lexc" >&6; }
24486
24487         if test $ol_cv_pthread_lpthreads_lexc = yes ; then
24488                 ol_link_pthreads="-lpthreads -lexc"
24489                 ol_link_threads=posix
24490         fi
24491 fi
24492
24493
24494                 # Pthread try link: -lpthreads (ol_cv_pthread_lib_lpthreads)
24495 if test "$ol_link_threads" = no ; then
24496         # try -lpthreads
24497         { echo "$as_me:$LINENO: checking for pthread link with -lpthreads" >&5
24498 echo $ECHO_N "checking for pthread link with -lpthreads... $ECHO_C" >&6; }
24499 if test "${ol_cv_pthread_lib_lpthreads+set}" = set; then
24500   echo $ECHO_N "(cached) $ECHO_C" >&6
24501 else
24502
24503                 # save the flags
24504                 ol_LIBS="$LIBS"
24505                 LIBS="-lpthreads $LIBS"
24506
24507                 if test "$cross_compiling" = yes; then
24508   cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h.  */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h.  */
24514
24515 /* pthread test headers */
24516 #include <pthread.h>
24517 #if HAVE_PTHREADS < 7
24518 #include <errno.h>
24519 #endif
24520 #ifndef NULL
24521 #define NULL (void*)0
24522 #endif
24523
24524 static void *task(p)
24525         void *p;
24526 {
24527         return (void *) (p == NULL);
24528 }
24529
24530 int
24531 main ()
24532 {
24533
24534         /* pthread test function */
24535 #ifndef PTHREAD_CREATE_DETACHED
24536 #define PTHREAD_CREATE_DETACHED 1
24537 #endif
24538         pthread_t t;
24539         int status;
24540         int detach = PTHREAD_CREATE_DETACHED;
24541
24542 #if HAVE_PTHREADS > 4
24543         /* Final pthreads */
24544         pthread_attr_t attr;
24545
24546         status = pthread_attr_init(&attr);
24547         if( status ) return status;
24548
24549 #if HAVE_PTHREADS < 7
24550         status = pthread_attr_setdetachstate(&attr, &detach);
24551         if( status < 0 ) status = errno;
24552 #else
24553         status = pthread_attr_setdetachstate(&attr, detach);
24554 #endif
24555         if( status ) return status;
24556         status = pthread_create( &t, &attr, task, NULL );
24557 #if HAVE_PTHREADS < 7
24558         if( status < 0 ) status = errno;
24559 #endif
24560         if( status ) return status;
24561 #else
24562         /* Draft 4 pthreads */
24563         status = pthread_create( &t, pthread_attr_default, task, NULL );
24564         if( status ) return errno;
24565
24566         /* give thread a chance to complete */
24567         /* it should remain joinable and hence detachable */
24568         sleep( 1 );
24569
24570         status = pthread_detach( &t );
24571         if( status ) return errno;
24572 #endif
24573
24574 #ifdef HAVE_LINUX_THREADS
24575         pthread_kill_other_threads_np();
24576 #endif
24577
24578         return 0;
24579
24580   ;
24581   return 0;
24582 }
24583 _ACEOF
24584 rm -f conftest.$ac_objext conftest$ac_exeext
24585 if { (ac_try="$ac_link"
24586 case "(($ac_try" in
24587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24588   *) ac_try_echo=$ac_try;;
24589 esac
24590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24591   (eval "$ac_link") 2>conftest.er1
24592   ac_status=$?
24593   grep -v '^ *+' conftest.er1 >conftest.err
24594   rm -f conftest.er1
24595   cat conftest.err >&5
24596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597   (exit $ac_status); } && {
24598          test -z "$ac_c_werror_flag" ||
24599          test ! -s conftest.err
24600        } && test -s conftest$ac_exeext &&
24601        $as_test_x conftest$ac_exeext; then
24602   ol_cv_pthread_lib_lpthreads=yes
24603 else
24604   echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24606
24607         ol_cv_pthread_lib_lpthreads=no
24608 fi
24609
24610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24611       conftest$ac_exeext conftest.$ac_ext
24612 else
24613   cat >conftest.$ac_ext <<_ACEOF
24614 /* confdefs.h.  */
24615 _ACEOF
24616 cat confdefs.h >>conftest.$ac_ext
24617 cat >>conftest.$ac_ext <<_ACEOF
24618 /* end confdefs.h.  */
24619
24620 /* pthread test headers */
24621 #include <pthread.h>
24622 #if HAVE_PTHREADS < 7
24623 #include <errno.h>
24624 #endif
24625 #ifndef NULL
24626 #define NULL (void*)0
24627 #endif
24628
24629 static void *task(p)
24630         void *p;
24631 {
24632         return (void *) (p == NULL);
24633 }
24634
24635
24636 int main(argc, argv)
24637         int argc;
24638         char **argv;
24639 {
24640
24641         /* pthread test function */
24642 #ifndef PTHREAD_CREATE_DETACHED
24643 #define PTHREAD_CREATE_DETACHED 1
24644 #endif
24645         pthread_t t;
24646         int status;
24647         int detach = PTHREAD_CREATE_DETACHED;
24648
24649 #if HAVE_PTHREADS > 4
24650         /* Final pthreads */
24651         pthread_attr_t attr;
24652
24653         status = pthread_attr_init(&attr);
24654         if( status ) return status;
24655
24656 #if HAVE_PTHREADS < 7
24657         status = pthread_attr_setdetachstate(&attr, &detach);
24658         if( status < 0 ) status = errno;
24659 #else
24660         status = pthread_attr_setdetachstate(&attr, detach);
24661 #endif
24662         if( status ) return status;
24663         status = pthread_create( &t, &attr, task, NULL );
24664 #if HAVE_PTHREADS < 7
24665         if( status < 0 ) status = errno;
24666 #endif
24667         if( status ) return status;
24668 #else
24669         /* Draft 4 pthreads */
24670         status = pthread_create( &t, pthread_attr_default, task, NULL );
24671         if( status ) return errno;
24672
24673         /* give thread a chance to complete */
24674         /* it should remain joinable and hence detachable */
24675         sleep( 1 );
24676
24677         status = pthread_detach( &t );
24678         if( status ) return errno;
24679 #endif
24680
24681 #ifdef HAVE_LINUX_THREADS
24682         pthread_kill_other_threads_np();
24683 #endif
24684
24685         return 0;
24686
24687 }
24688
24689 _ACEOF
24690 rm -f conftest$ac_exeext
24691 if { (ac_try="$ac_link"
24692 case "(($ac_try" in
24693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24694   *) ac_try_echo=$ac_try;;
24695 esac
24696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24697   (eval "$ac_link") 2>&5
24698   ac_status=$?
24699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24700   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24701   { (case "(($ac_try" in
24702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24703   *) ac_try_echo=$ac_try;;
24704 esac
24705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24706   (eval "$ac_try") 2>&5
24707   ac_status=$?
24708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24709   (exit $ac_status); }; }; then
24710   ol_cv_pthread_lib_lpthreads=yes
24711 else
24712   echo "$as_me: program exited with status $ac_status" >&5
24713 echo "$as_me: failed program was:" >&5
24714 sed 's/^/| /' conftest.$ac_ext >&5
24715
24716 ( exit $ac_status )
24717 ol_cv_pthread_lib_lpthreads=no
24718 fi
24719 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24720 fi
24721
24722
24723
24724                 # restore the LIBS
24725                 LIBS="$ol_LIBS"
24726
24727 fi
24728 { echo "$as_me:$LINENO: result: $ol_cv_pthread_lib_lpthreads" >&5
24729 echo "${ECHO_T}$ol_cv_pthread_lib_lpthreads" >&6; }
24730
24731         if test $ol_cv_pthread_lib_lpthreads = yes ; then
24732                 ol_link_pthreads="-lpthreads"
24733                 ol_link_threads=posix
24734         fi
24735 fi
24736
24737
24738                 if test $ol_link_threads != no ; then
24739                         LTHREAD_LIBS="$LTHREAD_LIBS $ol_link_pthreads"
24740
24741                                                 save_CPPFLAGS="$CPPFLAGS"
24742                         save_LIBS="$LIBS"
24743                         LIBS="$LTHREAD_LIBS $LIBS"
24744
24745
24746
24747
24748 for ac_func in sched_yield pthread_yield thr_yield
24749 do
24750 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24751 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24752 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24754   echo $ECHO_N "(cached) $ECHO_C" >&6
24755 else
24756   cat >conftest.$ac_ext <<_ACEOF
24757 /* confdefs.h.  */
24758 _ACEOF
24759 cat confdefs.h >>conftest.$ac_ext
24760 cat >>conftest.$ac_ext <<_ACEOF
24761 /* end confdefs.h.  */
24762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24764 #define $ac_func innocuous_$ac_func
24765
24766 /* System header to define __stub macros and hopefully few prototypes,
24767     which can conflict with char $ac_func (); below.
24768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24769     <limits.h> exists even on freestanding compilers.  */
24770
24771 #ifdef __STDC__
24772 # include <limits.h>
24773 #else
24774 # include <assert.h>
24775 #endif
24776
24777 #undef $ac_func
24778
24779 /* Override any GCC internal prototype to avoid an error.
24780    Use char because int might match the return type of a GCC
24781    builtin and then its argument prototype would still apply.  */
24782 #ifdef __cplusplus
24783 extern "C"
24784 #endif
24785 char $ac_func ();
24786 /* The GNU C library defines this for functions which it implements
24787     to always fail with ENOSYS.  Some functions are actually named
24788     something starting with __ and the normal name is an alias.  */
24789 #if defined __stub_$ac_func || defined __stub___$ac_func
24790 choke me
24791 #endif
24792
24793 int
24794 main ()
24795 {
24796 return $ac_func ();
24797   ;
24798   return 0;
24799 }
24800 _ACEOF
24801 rm -f conftest.$ac_objext conftest$ac_exeext
24802 if { (ac_try="$ac_link"
24803 case "(($ac_try" in
24804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24805   *) ac_try_echo=$ac_try;;
24806 esac
24807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24808   (eval "$ac_link") 2>conftest.er1
24809   ac_status=$?
24810   grep -v '^ *+' conftest.er1 >conftest.err
24811   rm -f conftest.er1
24812   cat conftest.err >&5
24813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24814   (exit $ac_status); } && {
24815          test -z "$ac_c_werror_flag" ||
24816          test ! -s conftest.err
24817        } && test -s conftest$ac_exeext &&
24818        $as_test_x conftest$ac_exeext; then
24819   eval "$as_ac_var=yes"
24820 else
24821   echo "$as_me: failed program was:" >&5
24822 sed 's/^/| /' conftest.$ac_ext >&5
24823
24824         eval "$as_ac_var=no"
24825 fi
24826
24827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24828       conftest$ac_exeext conftest.$ac_ext
24829 fi
24830 ac_res=`eval echo '${'$as_ac_var'}'`
24831                { echo "$as_me:$LINENO: result: $ac_res" >&5
24832 echo "${ECHO_T}$ac_res" >&6; }
24833 if test `eval echo '${'$as_ac_var'}'` = yes; then
24834   cat >>confdefs.h <<_ACEOF
24835 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24836 _ACEOF
24837
24838 fi
24839 done
24840
24841
24842                         if test $ac_cv_func_sched_yield = no &&
24843                            test $ac_cv_func_pthread_yield = no &&
24844                            test $ac_cv_func_thr_yield = no ; then
24845                                                                 { echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
24846 echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6; }
24847 if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
24848   echo $ECHO_N "(cached) $ECHO_C" >&6
24849 else
24850   ac_check_lib_save_LIBS=$LIBS
24851 LIBS="-lrt  $LIBS"
24852 cat >conftest.$ac_ext <<_ACEOF
24853 /* confdefs.h.  */
24854 _ACEOF
24855 cat confdefs.h >>conftest.$ac_ext
24856 cat >>conftest.$ac_ext <<_ACEOF
24857 /* end confdefs.h.  */
24858
24859 /* Override any GCC internal prototype to avoid an error.
24860    Use char because int might match the return type of a GCC
24861    builtin and then its argument prototype would still apply.  */
24862 #ifdef __cplusplus
24863 extern "C"
24864 #endif
24865 char sched_yield ();
24866 int
24867 main ()
24868 {
24869 return sched_yield ();
24870   ;
24871   return 0;
24872 }
24873 _ACEOF
24874 rm -f conftest.$ac_objext conftest$ac_exeext
24875 if { (ac_try="$ac_link"
24876 case "(($ac_try" in
24877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24878   *) ac_try_echo=$ac_try;;
24879 esac
24880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24881   (eval "$ac_link") 2>conftest.er1
24882   ac_status=$?
24883   grep -v '^ *+' conftest.er1 >conftest.err
24884   rm -f conftest.er1
24885   cat conftest.err >&5
24886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24887   (exit $ac_status); } && {
24888          test -z "$ac_c_werror_flag" ||
24889          test ! -s conftest.err
24890        } && test -s conftest$ac_exeext &&
24891        $as_test_x conftest$ac_exeext; then
24892   ac_cv_lib_rt_sched_yield=yes
24893 else
24894   echo "$as_me: failed program was:" >&5
24895 sed 's/^/| /' conftest.$ac_ext >&5
24896
24897         ac_cv_lib_rt_sched_yield=no
24898 fi
24899
24900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24901       conftest$ac_exeext conftest.$ac_ext
24902 LIBS=$ac_check_lib_save_LIBS
24903 fi
24904 { echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
24905 echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6; }
24906 if test $ac_cv_lib_rt_sched_yield = yes; then
24907   LTHREAD_LIBS="$LTHREAD_LIBS -lrt"
24908
24909 cat >>confdefs.h <<\_ACEOF
24910 #define HAVE_SCHED_YIELD 1
24911 _ACEOF
24912
24913                                         ac_cv_func_sched_yield=yes
24914 else
24915   ac_cv_func_sched_yield=no
24916 fi
24917
24918                         fi
24919                         if test $ac_cv_func_sched_yield = no &&
24920                            test $ac_cv_func_pthread_yield = no &&
24921                            test "$ac_cv_func_thr_yield" = no ; then
24922                                 { echo "$as_me:$LINENO: WARNING: could not locate sched_yield() or pthread_yield()" >&5
24923 echo "$as_me: WARNING: could not locate sched_yield() or pthread_yield()" >&2;}
24924                         fi
24925
24926
24927 for ac_func in pthread_kill
24928 do
24929 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24930 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24931 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24932 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24933   echo $ECHO_N "(cached) $ECHO_C" >&6
24934 else
24935   cat >conftest.$ac_ext <<_ACEOF
24936 /* confdefs.h.  */
24937 _ACEOF
24938 cat confdefs.h >>conftest.$ac_ext
24939 cat >>conftest.$ac_ext <<_ACEOF
24940 /* end confdefs.h.  */
24941 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24942    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24943 #define $ac_func innocuous_$ac_func
24944
24945 /* System header to define __stub macros and hopefully few prototypes,
24946     which can conflict with char $ac_func (); below.
24947     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24948     <limits.h> exists even on freestanding compilers.  */
24949
24950 #ifdef __STDC__
24951 # include <limits.h>
24952 #else
24953 # include <assert.h>
24954 #endif
24955
24956 #undef $ac_func
24957
24958 /* Override any GCC internal prototype to avoid an error.
24959    Use char because int might match the return type of a GCC
24960    builtin and then its argument prototype would still apply.  */
24961 #ifdef __cplusplus
24962 extern "C"
24963 #endif
24964 char $ac_func ();
24965 /* The GNU C library defines this for functions which it implements
24966     to always fail with ENOSYS.  Some functions are actually named
24967     something starting with __ and the normal name is an alias.  */
24968 #if defined __stub_$ac_func || defined __stub___$ac_func
24969 choke me
24970 #endif
24971
24972 int
24973 main ()
24974 {
24975 return $ac_func ();
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
24982 case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24987   (eval "$ac_link") 2>conftest.er1
24988   ac_status=$?
24989   grep -v '^ *+' conftest.er1 >conftest.err
24990   rm -f conftest.er1
24991   cat conftest.err >&5
24992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993   (exit $ac_status); } && {
24994          test -z "$ac_c_werror_flag" ||
24995          test ! -s conftest.err
24996        } && test -s conftest$ac_exeext &&
24997        $as_test_x conftest$ac_exeext; then
24998   eval "$as_ac_var=yes"
24999 else
25000   echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25002
25003         eval "$as_ac_var=no"
25004 fi
25005
25006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25007       conftest$ac_exeext conftest.$ac_ext
25008 fi
25009 ac_res=`eval echo '${'$as_ac_var'}'`
25010                { echo "$as_me:$LINENO: result: $ac_res" >&5
25011 echo "${ECHO_T}$ac_res" >&6; }
25012 if test `eval echo '${'$as_ac_var'}'` = yes; then
25013   cat >>confdefs.h <<_ACEOF
25014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25015 _ACEOF
25016
25017 fi
25018 done
25019
25020
25021                                                                         { echo "$as_me:$LINENO: checking for pthread_rwlock_destroy with <pthread.h>" >&5
25022 echo $ECHO_N "checking for pthread_rwlock_destroy with <pthread.h>... $ECHO_C" >&6; }
25023 if test "${ol_cv_func_pthread_rwlock_destroy+set}" = set; then
25024   echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026
25027                                                                 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h.  */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h.  */
25033
25034 #include <pthread.h>
25035 pthread_rwlock_t rwlock;
25036
25037 int
25038 main ()
25039 {
25040 pthread_rwlock_destroy(&rwlock);
25041   ;
25042   return 0;
25043 }
25044 _ACEOF
25045 rm -f conftest.$ac_objext conftest$ac_exeext
25046 if { (ac_try="$ac_link"
25047 case "(($ac_try" in
25048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25049   *) ac_try_echo=$ac_try;;
25050 esac
25051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25052   (eval "$ac_link") 2>conftest.er1
25053   ac_status=$?
25054   grep -v '^ *+' conftest.er1 >conftest.err
25055   rm -f conftest.er1
25056   cat conftest.err >&5
25057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25058   (exit $ac_status); } && {
25059          test -z "$ac_c_werror_flag" ||
25060          test ! -s conftest.err
25061        } && test -s conftest$ac_exeext &&
25062        $as_test_x conftest$ac_exeext; then
25063   ol_cv_func_pthread_rwlock_destroy=yes
25064 else
25065   echo "$as_me: failed program was:" >&5
25066 sed 's/^/| /' conftest.$ac_ext >&5
25067
25068         ol_cv_func_pthread_rwlock_destroy=no
25069 fi
25070
25071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25072       conftest$ac_exeext conftest.$ac_ext
25073
25074 fi
25075 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_rwlock_destroy" >&5
25076 echo "${ECHO_T}$ol_cv_func_pthread_rwlock_destroy" >&6; }
25077                         if test $ol_cv_func_pthread_rwlock_destroy = yes ; then
25078
25079 cat >>confdefs.h <<\_ACEOF
25080 #define HAVE_PTHREAD_RWLOCK_DESTROY 1
25081 _ACEOF
25082
25083                         fi
25084
25085                                                                         { echo "$as_me:$LINENO: checking for pthread_detach with <pthread.h>" >&5
25086 echo $ECHO_N "checking for pthread_detach with <pthread.h>... $ECHO_C" >&6; }
25087 if test "${ol_cv_func_pthread_detach+set}" = set; then
25088   echo $ECHO_N "(cached) $ECHO_C" >&6
25089 else
25090
25091                                                                 cat >conftest.$ac_ext <<_ACEOF
25092 /* confdefs.h.  */
25093 _ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h.  */
25097
25098 #include <pthread.h>
25099 #ifndef NULL
25100 #define NULL (void*)0
25101 #endif
25102
25103 int
25104 main ()
25105 {
25106 pthread_detach(NULL);
25107   ;
25108   return 0;
25109 }
25110 _ACEOF
25111 rm -f conftest.$ac_objext conftest$ac_exeext
25112 if { (ac_try="$ac_link"
25113 case "(($ac_try" in
25114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25115   *) ac_try_echo=$ac_try;;
25116 esac
25117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25118   (eval "$ac_link") 2>conftest.er1
25119   ac_status=$?
25120   grep -v '^ *+' conftest.er1 >conftest.err
25121   rm -f conftest.er1
25122   cat conftest.err >&5
25123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25124   (exit $ac_status); } && {
25125          test -z "$ac_c_werror_flag" ||
25126          test ! -s conftest.err
25127        } && test -s conftest$ac_exeext &&
25128        $as_test_x conftest$ac_exeext; then
25129   ol_cv_func_pthread_detach=yes
25130 else
25131   echo "$as_me: failed program was:" >&5
25132 sed 's/^/| /' conftest.$ac_ext >&5
25133
25134         ol_cv_func_pthread_detach=no
25135 fi
25136
25137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25138       conftest$ac_exeext conftest.$ac_ext
25139
25140 fi
25141 { echo "$as_me:$LINENO: result: $ol_cv_func_pthread_detach" >&5
25142 echo "${ECHO_T}$ol_cv_func_pthread_detach" >&6; }
25143
25144                         if test $ol_cv_func_pthread_detach = no ; then
25145                                 { { echo "$as_me:$LINENO: error: could not locate pthread_detach()" >&5
25146 echo "$as_me: error: could not locate pthread_detach()" >&2;}
25147    { (exit 1); exit 1; }; }
25148                         fi
25149
25150
25151 cat >>confdefs.h <<\_ACEOF
25152 #define HAVE_PTHREAD_DETACH 1
25153 _ACEOF
25154
25155
25156
25157
25158
25159
25160 for ac_func in \
25161                                 pthread_setconcurrency \
25162                                 pthread_getconcurrency \
25163                                 thr_setconcurrency \
25164                                 thr_getconcurrency \
25165
25166 do
25167 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25171   echo $ECHO_N "(cached) $ECHO_C" >&6
25172 else
25173   cat >conftest.$ac_ext <<_ACEOF
25174 /* confdefs.h.  */
25175 _ACEOF
25176 cat confdefs.h >>conftest.$ac_ext
25177 cat >>conftest.$ac_ext <<_ACEOF
25178 /* end confdefs.h.  */
25179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25180    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25181 #define $ac_func innocuous_$ac_func
25182
25183 /* System header to define __stub macros and hopefully few prototypes,
25184     which can conflict with char $ac_func (); below.
25185     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25186     <limits.h> exists even on freestanding compilers.  */
25187
25188 #ifdef __STDC__
25189 # include <limits.h>
25190 #else
25191 # include <assert.h>
25192 #endif
25193
25194 #undef $ac_func
25195
25196 /* Override any GCC internal prototype to avoid an error.
25197    Use char because int might match the return type of a GCC
25198    builtin and then its argument prototype would still apply.  */
25199 #ifdef __cplusplus
25200 extern "C"
25201 #endif
25202 char $ac_func ();
25203 /* The GNU C library defines this for functions which it implements
25204     to always fail with ENOSYS.  Some functions are actually named
25205     something starting with __ and the normal name is an alias.  */
25206 #if defined __stub_$ac_func || defined __stub___$ac_func
25207 choke me
25208 #endif
25209
25210 int
25211 main ()
25212 {
25213 return $ac_func ();
25214   ;
25215   return 0;
25216 }
25217 _ACEOF
25218 rm -f conftest.$ac_objext conftest$ac_exeext
25219 if { (ac_try="$ac_link"
25220 case "(($ac_try" in
25221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25222   *) ac_try_echo=$ac_try;;
25223 esac
25224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25225   (eval "$ac_link") 2>conftest.er1
25226   ac_status=$?
25227   grep -v '^ *+' conftest.er1 >conftest.err
25228   rm -f conftest.er1
25229   cat conftest.err >&5
25230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25231   (exit $ac_status); } && {
25232          test -z "$ac_c_werror_flag" ||
25233          test ! -s conftest.err
25234        } && test -s conftest$ac_exeext &&
25235        $as_test_x conftest$ac_exeext; then
25236   eval "$as_ac_var=yes"
25237 else
25238   echo "$as_me: failed program was:" >&5
25239 sed 's/^/| /' conftest.$ac_ext >&5
25240
25241         eval "$as_ac_var=no"
25242 fi
25243
25244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25245       conftest$ac_exeext conftest.$ac_ext
25246 fi
25247 ac_res=`eval echo '${'$as_ac_var'}'`
25248                { echo "$as_me:$LINENO: result: $ac_res" >&5
25249 echo "${ECHO_T}$ac_res" >&6; }
25250 if test `eval echo '${'$as_ac_var'}'` = yes; then
25251   cat >>confdefs.h <<_ACEOF
25252 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25253 _ACEOF
25254
25255 fi
25256 done
25257
25258
25259
25260
25261 for ac_func in pthread_kill_other_threads_np
25262 do
25263 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25264 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25265 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25266 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25267   echo $ECHO_N "(cached) $ECHO_C" >&6
25268 else
25269   cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h.  */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h.  */
25275 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25276    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25277 #define $ac_func innocuous_$ac_func
25278
25279 /* System header to define __stub macros and hopefully few prototypes,
25280     which can conflict with char $ac_func (); below.
25281     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282     <limits.h> exists even on freestanding compilers.  */
25283
25284 #ifdef __STDC__
25285 # include <limits.h>
25286 #else
25287 # include <assert.h>
25288 #endif
25289
25290 #undef $ac_func
25291
25292 /* Override any GCC internal prototype to avoid an error.
25293    Use char because int might match the return type of a GCC
25294    builtin and then its argument prototype would still apply.  */
25295 #ifdef __cplusplus
25296 extern "C"
25297 #endif
25298 char $ac_func ();
25299 /* The GNU C library defines this for functions which it implements
25300     to always fail with ENOSYS.  Some functions are actually named
25301     something starting with __ and the normal name is an alias.  */
25302 #if defined __stub_$ac_func || defined __stub___$ac_func
25303 choke me
25304 #endif
25305
25306 int
25307 main ()
25308 {
25309 return $ac_func ();
25310   ;
25311   return 0;
25312 }
25313 _ACEOF
25314 rm -f conftest.$ac_objext conftest$ac_exeext
25315 if { (ac_try="$ac_link"
25316 case "(($ac_try" in
25317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25318   *) ac_try_echo=$ac_try;;
25319 esac
25320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25321   (eval "$ac_link") 2>conftest.er1
25322   ac_status=$?
25323   grep -v '^ *+' conftest.er1 >conftest.err
25324   rm -f conftest.er1
25325   cat conftest.err >&5
25326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25327   (exit $ac_status); } && {
25328          test -z "$ac_c_werror_flag" ||
25329          test ! -s conftest.err
25330        } && test -s conftest$ac_exeext &&
25331        $as_test_x conftest$ac_exeext; then
25332   eval "$as_ac_var=yes"
25333 else
25334   echo "$as_me: failed program was:" >&5
25335 sed 's/^/| /' conftest.$ac_ext >&5
25336
25337         eval "$as_ac_var=no"
25338 fi
25339
25340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25341       conftest$ac_exeext conftest.$ac_ext
25342 fi
25343 ac_res=`eval echo '${'$as_ac_var'}'`
25344                { echo "$as_me:$LINENO: result: $ac_res" >&5
25345 echo "${ECHO_T}$ac_res" >&6; }
25346 if test `eval echo '${'$as_ac_var'}'` = yes; then
25347   cat >>confdefs.h <<_ACEOF
25348 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25349 _ACEOF
25350
25351 fi
25352 done
25353
25354         { echo "$as_me:$LINENO: checking for LinuxThreads implementation" >&5
25355 echo $ECHO_N "checking for LinuxThreads implementation... $ECHO_C" >&6; }
25356 if test "${ol_cv_sys_linux_threads+set}" = set; then
25357   echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359   ol_cv_sys_linux_threads=$ac_cv_func_pthread_kill_other_threads_np
25360 fi
25361 { echo "$as_me:$LINENO: result: $ol_cv_sys_linux_threads" >&5
25362 echo "${ECHO_T}$ol_cv_sys_linux_threads" >&6; }
25363
25364
25365
25366
25367         { echo "$as_me:$LINENO: checking for LinuxThreads consistency" >&5
25368 echo $ECHO_N "checking for LinuxThreads consistency... $ECHO_C" >&6; }
25369 if test "${ol_cv_linux_threads+set}" = set; then
25370   echo $ECHO_N "(cached) $ECHO_C" >&6
25371 else
25372
25373                 if test $ol_cv_header_linux_threads = yes &&
25374                    test $ol_cv_sys_linux_threads = yes; then
25375                         ol_cv_linux_threads=yes
25376                 elif test $ol_cv_header_linux_threads = no &&
25377                      test $ol_cv_sys_linux_threads = no; then
25378                         ol_cv_linux_threads=no
25379                 else
25380                         ol_cv_linux_threads=error
25381                 fi
25382
25383 fi
25384 { echo "$as_me:$LINENO: result: $ol_cv_linux_threads" >&5
25385 echo "${ECHO_T}$ol_cv_linux_threads" >&6; }
25386
25387
25388                         if test $ol_cv_linux_threads = error; then
25389                                 { { echo "$as_me:$LINENO: error: LinuxThreads header/library mismatch" >&5
25390 echo "$as_me: error: LinuxThreads header/library mismatch" >&2;}
25391    { (exit 1); exit 1; }; };
25392                         fi
25393
25394                         { echo "$as_me:$LINENO: checking if pthread_create() works" >&5
25395 echo $ECHO_N "checking if pthread_create() works... $ECHO_C" >&6; }
25396 if test "${ol_cv_pthread_create_works+set}" = set; then
25397   echo $ECHO_N "(cached) $ECHO_C" >&6
25398 else
25399
25400                         if test "$cross_compiling" = yes; then
25401                                 ol_cv_pthread_create_works=yes
25402 else
25403   cat >conftest.$ac_ext <<_ACEOF
25404 /* confdefs.h.  */
25405 _ACEOF
25406 cat confdefs.h >>conftest.$ac_ext
25407 cat >>conftest.$ac_ext <<_ACEOF
25408 /* end confdefs.h.  */
25409
25410 /* pthread test headers */
25411 #include <pthread.h>
25412 #if HAVE_PTHREADS < 7
25413 #include <errno.h>
25414 #endif
25415 #ifndef NULL
25416 #define NULL (void*)0
25417 #endif
25418
25419 static void *task(p)
25420         void *p;
25421 {
25422         return (void *) (p == NULL);
25423 }
25424
25425
25426 int main(argc, argv)
25427         int argc;
25428         char **argv;
25429 {
25430
25431         /* pthread test function */
25432 #ifndef PTHREAD_CREATE_DETACHED
25433 #define PTHREAD_CREATE_DETACHED 1
25434 #endif
25435         pthread_t t;
25436         int status;
25437         int detach = PTHREAD_CREATE_DETACHED;
25438
25439 #if HAVE_PTHREADS > 4
25440         /* Final pthreads */
25441         pthread_attr_t attr;
25442
25443         status = pthread_attr_init(&attr);
25444         if( status ) return status;
25445
25446 #if HAVE_PTHREADS < 7
25447         status = pthread_attr_setdetachstate(&attr, &detach);
25448         if( status < 0 ) status = errno;
25449 #else
25450         status = pthread_attr_setdetachstate(&attr, detach);
25451 #endif
25452         if( status ) return status;
25453         status = pthread_create( &t, &attr, task, NULL );
25454 #if HAVE_PTHREADS < 7
25455         if( status < 0 ) status = errno;
25456 #endif
25457         if( status ) return status;
25458 #else
25459         /* Draft 4 pthreads */
25460         status = pthread_create( &t, pthread_attr_default, task, NULL );
25461         if( status ) return errno;
25462
25463         /* give thread a chance to complete */
25464         /* it should remain joinable and hence detachable */
25465         sleep( 1 );
25466
25467         status = pthread_detach( &t );
25468         if( status ) return errno;
25469 #endif
25470
25471 #ifdef HAVE_LINUX_THREADS
25472         pthread_kill_other_threads_np();
25473 #endif
25474
25475         return 0;
25476
25477 }
25478
25479 _ACEOF
25480 rm -f conftest$ac_exeext
25481 if { (ac_try="$ac_link"
25482 case "(($ac_try" in
25483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25484   *) ac_try_echo=$ac_try;;
25485 esac
25486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25487   (eval "$ac_link") 2>&5
25488   ac_status=$?
25489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25490   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25491   { (case "(($ac_try" in
25492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25493   *) ac_try_echo=$ac_try;;
25494 esac
25495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25496   (eval "$ac_try") 2>&5
25497   ac_status=$?
25498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25499   (exit $ac_status); }; }; then
25500   ol_cv_pthread_create_works=yes
25501 else
25502   echo "$as_me: program exited with status $ac_status" >&5
25503 echo "$as_me: failed program was:" >&5
25504 sed 's/^/| /' conftest.$ac_ext >&5
25505
25506 ( exit $ac_status )
25507 ol_cv_pthread_create_works=no
25508 fi
25509 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25510 fi
25511
25512
25513 fi
25514 { echo "$as_me:$LINENO: result: $ol_cv_pthread_create_works" >&5
25515 echo "${ECHO_T}$ol_cv_pthread_create_works" >&6; }
25516
25517                         if test $ol_cv_pthread_create_works = no ; then
25518                                 { { echo "$as_me:$LINENO: error: pthread_create is not usable, check environment settings" >&5
25519 echo "$as_me: error: pthread_create is not usable, check environment settings" >&2;}
25520    { (exit 1); exit 1; }; }
25521                         fi
25522
25523                         ol_replace_broken_yield=no
25524
25525                         if test $ol_replace_broken_yield = yes ; then
25526
25527 cat >>confdefs.h <<\_ACEOF
25528 #define REPLACE_BROKEN_YIELD 1
25529 _ACEOF
25530
25531                         fi
25532
25533                                                 if test $ol_with_yielding_select = auto ; then
25534                                 { echo "$as_me:$LINENO: checking if select yields when using pthreads" >&5
25535 echo $ECHO_N "checking if select yields when using pthreads... $ECHO_C" >&6; }
25536 if test "${ol_cv_pthread_select_yields+set}" = set; then
25537   echo $ECHO_N "(cached) $ECHO_C" >&6
25538 else
25539
25540                                 if test "$cross_compiling" = yes; then
25541   ol_cv_pthread_select_yields=cross
25542 else
25543   cat >conftest.$ac_ext <<_ACEOF
25544 /* confdefs.h.  */
25545 _ACEOF
25546 cat confdefs.h >>conftest.$ac_ext
25547 cat >>conftest.$ac_ext <<_ACEOF
25548 /* end confdefs.h.  */
25549
25550 #include <sys/types.h>
25551 #include <sys/time.h>
25552 #include <unistd.h>
25553 #include <pthread.h>
25554 #ifndef NULL
25555 #define NULL (void*) 0
25556 #endif
25557
25558 static int fildes[2];
25559
25560 static void *task(p)
25561         void *p;
25562 {
25563         int i;
25564         struct timeval tv;
25565
25566         fd_set rfds;
25567
25568         tv.tv_sec=10;
25569         tv.tv_usec=0;
25570
25571         FD_ZERO(&rfds);
25572         FD_SET(fildes[0], &rfds);
25573
25574         /* we're not interested in any fds */
25575         i = select(FD_SETSIZE, &rfds, NULL, NULL, &tv);
25576
25577         if(i < 0) {
25578                 perror("select");
25579                 exit(10);
25580         }
25581
25582         exit(0); /* if we exit here, the select blocked the whole process */
25583 }
25584
25585 int main(argc, argv)
25586         int argc;
25587         char **argv;
25588 {
25589         pthread_t t;
25590
25591         /* create a pipe to select */
25592         if(pipe(&fildes[0])) {
25593                 perror("select");
25594                 exit(1);
25595         }
25596
25597 #ifdef HAVE_PTHREAD_SETCONCURRENCY
25598         (void) pthread_setconcurrency(2);
25599 #else
25600 #ifdef HAVE_THR_SETCONCURRENCY
25601         /* Set Solaris LWP concurrency to 2 */
25602         thr_setconcurrency(2);
25603 #endif
25604 #endif
25605
25606 #if HAVE_PTHREADS < 6
25607         pthread_create(&t, pthread_attr_default, task, NULL);
25608 #else
25609         pthread_create(&t, NULL, task, NULL);
25610 #endif
25611
25612         /* make sure task runs first */
25613 #ifdef HAVE_THR_YIELD
25614         thr_yield();
25615 #elif defined( HAVE_SCHED_YIELD )
25616         sched_yield();
25617 #elif defined( HAVE_PTHREAD_YIELD )
25618         pthread_yield();
25619 #endif
25620
25621         exit(2);
25622 }
25623 _ACEOF
25624 rm -f conftest$ac_exeext
25625 if { (ac_try="$ac_link"
25626 case "(($ac_try" in
25627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25628   *) ac_try_echo=$ac_try;;
25629 esac
25630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25631   (eval "$ac_link") 2>&5
25632   ac_status=$?
25633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25635   { (case "(($ac_try" in
25636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25637   *) ac_try_echo=$ac_try;;
25638 esac
25639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25640   (eval "$ac_try") 2>&5
25641   ac_status=$?
25642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25643   (exit $ac_status); }; }; then
25644   ol_cv_pthread_select_yields=no
25645 else
25646   echo "$as_me: program exited with status $ac_status" >&5
25647 echo "$as_me: failed program was:" >&5
25648 sed 's/^/| /' conftest.$ac_ext >&5
25649
25650 ( exit $ac_status )
25651 ol_cv_pthread_select_yields=yes
25652 fi
25653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25654 fi
25655
25656
25657 fi
25658 { echo "$as_me:$LINENO: result: $ol_cv_pthread_select_yields" >&5
25659 echo "${ECHO_T}$ol_cv_pthread_select_yields" >&6; }
25660
25661                                 if test $ol_cv_pthread_select_yields = cross ; then
25662                                         { { echo "$as_me:$LINENO: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&5
25663 echo "$as_me: error: crossing compiling: use --with-yielding_select=yes|no|manual" >&2;}
25664    { (exit 1); exit 1; }; }
25665                                 fi
25666
25667                                 if test $ol_cv_pthread_select_yields = yes ; then
25668                                         ol_with_yielding_select=yes
25669                                 fi
25670                         fi
25671
25672                                                 CPPFLAGS="$save_CPPFLAGS"
25673                         LIBS="$save_LIBS"
25674                 else
25675                         { { echo "$as_me:$LINENO: error: could not locate usable POSIX Threads" >&5
25676 echo "$as_me: error: could not locate usable POSIX Threads" >&2;}
25677    { (exit 1); exit 1; }; }
25678                 fi
25679         fi
25680
25681         if test $ol_with_threads = posix ; then
25682                 { { echo "$as_me:$LINENO: error: could not locate POSIX Threads" >&5
25683 echo "$as_me: error: could not locate POSIX Threads" >&2;}
25684    { (exit 1); exit 1; }; }
25685         fi
25686         ;;
25687 esac
25688
25689 case $ol_with_threads in auto | yes | mach)
25690
25691
25692
25693 for ac_header in mach/cthreads.h cthreads.h
25694 do
25695 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25697   { echo "$as_me:$LINENO: checking for $ac_header" >&5
25698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25700   echo $ECHO_N "(cached) $ECHO_C" >&6
25701 fi
25702 ac_res=`eval echo '${'$as_ac_Header'}'`
25703                { echo "$as_me:$LINENO: result: $ac_res" >&5
25704 echo "${ECHO_T}$ac_res" >&6; }
25705 else
25706   # Is the header compilable?
25707 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
25708 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
25709 cat >conftest.$ac_ext <<_ACEOF
25710 /* confdefs.h.  */
25711 _ACEOF
25712 cat confdefs.h >>conftest.$ac_ext
25713 cat >>conftest.$ac_ext <<_ACEOF
25714 /* end confdefs.h.  */
25715 $ac_includes_default
25716 #include <$ac_header>
25717 _ACEOF
25718 rm -f conftest.$ac_objext
25719 if { (ac_try="$ac_compile"
25720 case "(($ac_try" in
25721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25722   *) ac_try_echo=$ac_try;;
25723 esac
25724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25725   (eval "$ac_compile") 2>conftest.er1
25726   ac_status=$?
25727   grep -v '^ *+' conftest.er1 >conftest.err
25728   rm -f conftest.er1
25729   cat conftest.err >&5
25730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25731   (exit $ac_status); } && {
25732          test -z "$ac_c_werror_flag" ||
25733          test ! -s conftest.err
25734        } && test -s conftest.$ac_objext; then
25735   ac_header_compiler=yes
25736 else
25737   echo "$as_me: failed program was:" >&5
25738 sed 's/^/| /' conftest.$ac_ext >&5
25739
25740         ac_header_compiler=no
25741 fi
25742
25743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25744 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25745 echo "${ECHO_T}$ac_header_compiler" >&6; }
25746
25747 # Is the header present?
25748 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
25749 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
25750 cat >conftest.$ac_ext <<_ACEOF
25751 /* confdefs.h.  */
25752 _ACEOF
25753 cat confdefs.h >>conftest.$ac_ext
25754 cat >>conftest.$ac_ext <<_ACEOF
25755 /* end confdefs.h.  */
25756 #include <$ac_header>
25757 _ACEOF
25758 if { (ac_try="$ac_cpp conftest.$ac_ext"
25759 case "(($ac_try" in
25760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25761   *) ac_try_echo=$ac_try;;
25762 esac
25763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25765   ac_status=$?
25766   grep -v '^ *+' conftest.er1 >conftest.err
25767   rm -f conftest.er1
25768   cat conftest.err >&5
25769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25770   (exit $ac_status); } >/dev/null && {
25771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25772          test ! -s conftest.err
25773        }; then
25774   ac_header_preproc=yes
25775 else
25776   echo "$as_me: failed program was:" >&5
25777 sed 's/^/| /' conftest.$ac_ext >&5
25778
25779   ac_header_preproc=no
25780 fi
25781
25782 rm -f conftest.err conftest.$ac_ext
25783 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25784 echo "${ECHO_T}$ac_header_preproc" >&6; }
25785
25786 # So?  What about this header?
25787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25788   yes:no: )
25789     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25790 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25791     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25792 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25793     ac_header_preproc=yes
25794     ;;
25795   no:yes:* )
25796     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25797 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25798     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
25799 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
25800     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25801 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25802     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
25803 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
25804     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25805 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25806     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25807 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25808     ( cat <<\_ASBOX
25809 ## --------------------------------------------- ##
25810 ## Report this to <http://www.openldap.org/its/> ##
25811 ## --------------------------------------------- ##
25812 _ASBOX
25813      ) | sed "s/^/$as_me: WARNING:     /" >&2
25814     ;;
25815 esac
25816 { echo "$as_me:$LINENO: checking for $ac_header" >&5
25817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
25818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25819   echo $ECHO_N "(cached) $ECHO_C" >&6
25820 else
25821   eval "$as_ac_Header=\$ac_header_preproc"
25822 fi
25823 ac_res=`eval echo '${'$as_ac_Header'}'`
25824                { echo "$as_me:$LINENO: result: $ac_res" >&5
25825 echo "${ECHO_T}$ac_res" >&6; }
25826
25827 fi
25828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25829   cat >>confdefs.h <<_ACEOF
25830 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25831 _ACEOF
25832
25833 fi
25834
25835 done
25836
25837         if test $ac_cv_header_mach_cthreads_h = yes ; then
25838                 ol_with_threads=found
25839
25840                                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
25841 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
25842 if test "${ac_cv_func_cthread_fork+set}" = set; then
25843   echo $ECHO_N "(cached) $ECHO_C" >&6
25844 else
25845   cat >conftest.$ac_ext <<_ACEOF
25846 /* confdefs.h.  */
25847 _ACEOF
25848 cat confdefs.h >>conftest.$ac_ext
25849 cat >>conftest.$ac_ext <<_ACEOF
25850 /* end confdefs.h.  */
25851 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
25852    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25853 #define cthread_fork innocuous_cthread_fork
25854
25855 /* System header to define __stub macros and hopefully few prototypes,
25856     which can conflict with char cthread_fork (); below.
25857     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25858     <limits.h> exists even on freestanding compilers.  */
25859
25860 #ifdef __STDC__
25861 # include <limits.h>
25862 #else
25863 # include <assert.h>
25864 #endif
25865
25866 #undef cthread_fork
25867
25868 /* Override any GCC internal prototype to avoid an error.
25869    Use char because int might match the return type of a GCC
25870    builtin and then its argument prototype would still apply.  */
25871 #ifdef __cplusplus
25872 extern "C"
25873 #endif
25874 char cthread_fork ();
25875 /* The GNU C library defines this for functions which it implements
25876     to always fail with ENOSYS.  Some functions are actually named
25877     something starting with __ and the normal name is an alias.  */
25878 #if defined __stub_cthread_fork || defined __stub___cthread_fork
25879 choke me
25880 #endif
25881
25882 int
25883 main ()
25884 {
25885 return cthread_fork ();
25886   ;
25887   return 0;
25888 }
25889 _ACEOF
25890 rm -f conftest.$ac_objext conftest$ac_exeext
25891 if { (ac_try="$ac_link"
25892 case "(($ac_try" in
25893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25894   *) ac_try_echo=$ac_try;;
25895 esac
25896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25897   (eval "$ac_link") 2>conftest.er1
25898   ac_status=$?
25899   grep -v '^ *+' conftest.er1 >conftest.err
25900   rm -f conftest.er1
25901   cat conftest.err >&5
25902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903   (exit $ac_status); } && {
25904          test -z "$ac_c_werror_flag" ||
25905          test ! -s conftest.err
25906        } && test -s conftest$ac_exeext &&
25907        $as_test_x conftest$ac_exeext; then
25908   ac_cv_func_cthread_fork=yes
25909 else
25910   echo "$as_me: failed program was:" >&5
25911 sed 's/^/| /' conftest.$ac_ext >&5
25912
25913         ac_cv_func_cthread_fork=no
25914 fi
25915
25916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25917       conftest$ac_exeext conftest.$ac_ext
25918 fi
25919 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
25920 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
25921 if test $ac_cv_func_cthread_fork = yes; then
25922   ol_link_threads=yes
25923 fi
25924
25925
25926                 if test $ol_link_threads = no ; then
25927                                                                         { echo "$as_me:$LINENO: checking for cthread_fork with -all_load" >&5
25928 echo $ECHO_N "checking for cthread_fork with -all_load... $ECHO_C" >&6; }
25929 if test "${ol_cv_cthread_all_load+set}" = set; then
25930   echo $ECHO_N "(cached) $ECHO_C" >&6
25931 else
25932
25933                                                                 save_LIBS="$LIBS"
25934                                 LIBS="-all_load $LIBS"
25935                                 cat >conftest.$ac_ext <<_ACEOF
25936 /* confdefs.h.  */
25937 _ACEOF
25938 cat confdefs.h >>conftest.$ac_ext
25939 cat >>conftest.$ac_ext <<_ACEOF
25940 /* end confdefs.h.  */
25941 #include <mach/cthreads.h>
25942 int
25943 main ()
25944 {
25945
25946                                         cthread_fork((void *)0, (void *)0);
25947
25948   ;
25949   return 0;
25950 }
25951 _ACEOF
25952 rm -f conftest.$ac_objext conftest$ac_exeext
25953 if { (ac_try="$ac_link"
25954 case "(($ac_try" in
25955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25956   *) ac_try_echo=$ac_try;;
25957 esac
25958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25959   (eval "$ac_link") 2>conftest.er1
25960   ac_status=$?
25961   grep -v '^ *+' conftest.er1 >conftest.err
25962   rm -f conftest.er1
25963   cat conftest.err >&5
25964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25965   (exit $ac_status); } && {
25966          test -z "$ac_c_werror_flag" ||
25967          test ! -s conftest.err
25968        } && test -s conftest$ac_exeext &&
25969        $as_test_x conftest$ac_exeext; then
25970   ol_cv_cthread_all_load=yes
25971 else
25972   echo "$as_me: failed program was:" >&5
25973 sed 's/^/| /' conftest.$ac_ext >&5
25974
25975         ol_cv_cthread_all_load=no
25976 fi
25977
25978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25979       conftest$ac_exeext conftest.$ac_ext
25980                                                                 LIBS="$save_LIBS"
25981
25982 fi
25983 { echo "$as_me:$LINENO: result: $ol_cv_cthread_all_load" >&5
25984 echo "${ECHO_T}$ol_cv_cthread_all_load" >&6; }
25985
25986                         if test $ol_cv_cthread_all_load = yes ; then
25987                                 LTHREAD_LIBS="$LTHREAD_LIBS -all_load"
25988                                 ol_link_threads=mach
25989                                 ol_with_threads=found
25990                         fi
25991                 fi
25992
25993         elif test $ac_cv_header_cthreads_h = yes ; then
25994
25995                 ol_with_threads=found
25996
25997                                 save_LIBS="$LIBS"
25998                 LIBS="$LIBS -lthreads"
25999                 { echo "$as_me:$LINENO: checking for cthread_fork" >&5
26000 echo $ECHO_N "checking for cthread_fork... $ECHO_C" >&6; }
26001 if test "${ac_cv_func_cthread_fork+set}" = set; then
26002   echo $ECHO_N "(cached) $ECHO_C" >&6
26003 else
26004   cat >conftest.$ac_ext <<_ACEOF
26005 /* confdefs.h.  */
26006 _ACEOF
26007 cat confdefs.h >>conftest.$ac_ext
26008 cat >>conftest.$ac_ext <<_ACEOF
26009 /* end confdefs.h.  */
26010 /* Define cthread_fork to an innocuous variant, in case <limits.h> declares cthread_fork.
26011    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26012 #define cthread_fork innocuous_cthread_fork
26013
26014 /* System header to define __stub macros and hopefully few prototypes,
26015     which can conflict with char cthread_fork (); below.
26016     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26017     <limits.h> exists even on freestanding compilers.  */
26018
26019 #ifdef __STDC__
26020 # include <limits.h>
26021 #else
26022 # include <assert.h>
26023 #endif
26024
26025 #undef cthread_fork
26026
26027 /* Override any GCC internal prototype to avoid an error.
26028    Use char because int might match the return type of a GCC
26029    builtin and then its argument prototype would still apply.  */
26030 #ifdef __cplusplus
26031 extern "C"
26032 #endif
26033 char cthread_fork ();
26034 /* The GNU C library defines this for functions which it implements
26035     to always fail with ENOSYS.  Some functions are actually named
26036     something starting with __ and the normal name is an alias.  */
26037 #if defined __stub_cthread_fork || defined __stub___cthread_fork
26038 choke me
26039 #endif
26040
26041 int
26042 main ()
26043 {
26044 return cthread_fork ();
26045   ;
26046   return 0;
26047 }
26048 _ACEOF
26049 rm -f conftest.$ac_objext conftest$ac_exeext
26050 if { (ac_try="$ac_link"
26051 case "(($ac_try" in
26052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26053   *) ac_try_echo=$ac_try;;
26054 esac
26055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26056   (eval "$ac_link") 2>conftest.er1
26057   ac_status=$?
26058   grep -v '^ *+' conftest.er1 >conftest.err
26059   rm -f conftest.er1
26060   cat conftest.err >&5
26061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062   (exit $ac_status); } && {
26063          test -z "$ac_c_werror_flag" ||
26064          test ! -s conftest.err
26065        } && test -s conftest$ac_exeext &&
26066        $as_test_x conftest$ac_exeext; then
26067   ac_cv_func_cthread_fork=yes
26068 else
26069   echo "$as_me: failed program was:" >&5
26070 sed 's/^/| /' conftest.$ac_ext >&5
26071
26072         ac_cv_func_cthread_fork=no
26073 fi
26074
26075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26076       conftest$ac_exeext conftest.$ac_ext
26077 fi
26078 { echo "$as_me:$LINENO: result: $ac_cv_func_cthread_fork" >&5
26079 echo "${ECHO_T}$ac_cv_func_cthread_fork" >&6; }
26080 if test $ac_cv_func_cthread_fork = yes; then
26081   ol_link_threads=yes
26082 fi
26083
26084                 LIBS="$save_LIBS"
26085
26086                 if test $ol_link_threads = yes ; then
26087                         LTHREAD_LIBS="-lthreads"
26088                         ol_link_threads=mach
26089                         ol_with_threads=found
26090                 else
26091                         { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26092 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26093    { (exit 1); exit 1; }; }
26094                 fi
26095
26096         elif test $ol_with_threads = mach ; then
26097                 { { echo "$as_me:$LINENO: error: could not locate Mach CThreads" >&5
26098 echo "$as_me: error: could not locate Mach CThreads" >&2;}
26099    { (exit 1); exit 1; }; }
26100         fi
26101
26102         if test $ol_link_threads = mach ; then
26103
26104 cat >>confdefs.h <<\_ACEOF
26105 #define HAVE_MACH_CTHREADS 1
26106 _ACEOF
26107
26108         elif test $ol_with_threads = found ; then
26109                 { { echo "$as_me:$LINENO: error: could not link with Mach CThreads" >&5
26110 echo "$as_me: error: could not link with Mach CThreads" >&2;}
26111    { (exit 1); exit 1; }; }
26112         fi
26113         ;;
26114 esac
26115
26116 case $ol_with_threads in auto | yes | pth)
26117
26118
26119 for ac_header in pth.h
26120 do
26121 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26122 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26123   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26124 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26126   echo $ECHO_N "(cached) $ECHO_C" >&6
26127 fi
26128 ac_res=`eval echo '${'$as_ac_Header'}'`
26129                { echo "$as_me:$LINENO: result: $ac_res" >&5
26130 echo "${ECHO_T}$ac_res" >&6; }
26131 else
26132   # Is the header compilable?
26133 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26134 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26135 cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141 $ac_includes_default
26142 #include <$ac_header>
26143 _ACEOF
26144 rm -f conftest.$ac_objext
26145 if { (ac_try="$ac_compile"
26146 case "(($ac_try" in
26147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26148   *) ac_try_echo=$ac_try;;
26149 esac
26150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26151   (eval "$ac_compile") 2>conftest.er1
26152   ac_status=$?
26153   grep -v '^ *+' conftest.er1 >conftest.err
26154   rm -f conftest.er1
26155   cat conftest.err >&5
26156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26157   (exit $ac_status); } && {
26158          test -z "$ac_c_werror_flag" ||
26159          test ! -s conftest.err
26160        } && test -s conftest.$ac_objext; then
26161   ac_header_compiler=yes
26162 else
26163   echo "$as_me: failed program was:" >&5
26164 sed 's/^/| /' conftest.$ac_ext >&5
26165
26166         ac_header_compiler=no
26167 fi
26168
26169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26170 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26171 echo "${ECHO_T}$ac_header_compiler" >&6; }
26172
26173 # Is the header present?
26174 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26176 cat >conftest.$ac_ext <<_ACEOF
26177 /* confdefs.h.  */
26178 _ACEOF
26179 cat confdefs.h >>conftest.$ac_ext
26180 cat >>conftest.$ac_ext <<_ACEOF
26181 /* end confdefs.h.  */
26182 #include <$ac_header>
26183 _ACEOF
26184 if { (ac_try="$ac_cpp conftest.$ac_ext"
26185 case "(($ac_try" in
26186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26187   *) ac_try_echo=$ac_try;;
26188 esac
26189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26190   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26191   ac_status=$?
26192   grep -v '^ *+' conftest.er1 >conftest.err
26193   rm -f conftest.er1
26194   cat conftest.err >&5
26195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26196   (exit $ac_status); } >/dev/null && {
26197          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26198          test ! -s conftest.err
26199        }; then
26200   ac_header_preproc=yes
26201 else
26202   echo "$as_me: failed program was:" >&5
26203 sed 's/^/| /' conftest.$ac_ext >&5
26204
26205   ac_header_preproc=no
26206 fi
26207
26208 rm -f conftest.err conftest.$ac_ext
26209 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26210 echo "${ECHO_T}$ac_header_preproc" >&6; }
26211
26212 # So?  What about this header?
26213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26214   yes:no: )
26215     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26217     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26219     ac_header_preproc=yes
26220     ;;
26221   no:yes:* )
26222     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26224     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26225 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26226     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26228     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26229 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26230     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26232     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26234     ( cat <<\_ASBOX
26235 ## --------------------------------------------- ##
26236 ## Report this to <http://www.openldap.org/its/> ##
26237 ## --------------------------------------------- ##
26238 _ASBOX
26239      ) | sed "s/^/$as_me: WARNING:     /" >&2
26240     ;;
26241 esac
26242 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26243 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26245   echo $ECHO_N "(cached) $ECHO_C" >&6
26246 else
26247   eval "$as_ac_Header=\$ac_header_preproc"
26248 fi
26249 ac_res=`eval echo '${'$as_ac_Header'}'`
26250                { echo "$as_me:$LINENO: result: $ac_res" >&5
26251 echo "${ECHO_T}$ac_res" >&6; }
26252
26253 fi
26254 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26255   cat >>confdefs.h <<_ACEOF
26256 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26257 _ACEOF
26258
26259 fi
26260
26261 done
26262
26263
26264         if test $ac_cv_header_pth_h = yes ; then
26265                 { echo "$as_me:$LINENO: checking for pth_version in -lpth" >&5
26266 echo $ECHO_N "checking for pth_version in -lpth... $ECHO_C" >&6; }
26267 if test "${ac_cv_lib_pth_pth_version+set}" = set; then
26268   echo $ECHO_N "(cached) $ECHO_C" >&6
26269 else
26270   ac_check_lib_save_LIBS=$LIBS
26271 LIBS="-lpth  $LIBS"
26272 cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h.  */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h.  */
26278
26279 /* Override any GCC internal prototype to avoid an error.
26280    Use char because int might match the return type of a GCC
26281    builtin and then its argument prototype would still apply.  */
26282 #ifdef __cplusplus
26283 extern "C"
26284 #endif
26285 char pth_version ();
26286 int
26287 main ()
26288 {
26289 return pth_version ();
26290   ;
26291   return 0;
26292 }
26293 _ACEOF
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (ac_try="$ac_link"
26296 case "(($ac_try" in
26297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26298   *) ac_try_echo=$ac_try;;
26299 esac
26300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26301   (eval "$ac_link") 2>conftest.er1
26302   ac_status=$?
26303   grep -v '^ *+' conftest.er1 >conftest.err
26304   rm -f conftest.er1
26305   cat conftest.err >&5
26306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26307   (exit $ac_status); } && {
26308          test -z "$ac_c_werror_flag" ||
26309          test ! -s conftest.err
26310        } && test -s conftest$ac_exeext &&
26311        $as_test_x conftest$ac_exeext; then
26312   ac_cv_lib_pth_pth_version=yes
26313 else
26314   echo "$as_me: failed program was:" >&5
26315 sed 's/^/| /' conftest.$ac_ext >&5
26316
26317         ac_cv_lib_pth_pth_version=no
26318 fi
26319
26320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26321       conftest$ac_exeext conftest.$ac_ext
26322 LIBS=$ac_check_lib_save_LIBS
26323 fi
26324 { echo "$as_me:$LINENO: result: $ac_cv_lib_pth_pth_version" >&5
26325 echo "${ECHO_T}$ac_cv_lib_pth_pth_version" >&6; }
26326 if test $ac_cv_lib_pth_pth_version = yes; then
26327   have_pth=yes
26328 else
26329   have_pth=no
26330 fi
26331
26332
26333                 if test $have_pth = yes ; then
26334
26335 cat >>confdefs.h <<\_ACEOF
26336 #define HAVE_GNU_PTH 1
26337 _ACEOF
26338
26339                         LTHREAD_LIBS="$LTHREAD_LIBS -lpth"
26340                         ol_link_threads=pth
26341                         ol_with_threads=found
26342
26343                         if test $ol_with_yielding_select = auto ; then
26344                                 ol_with_yielding_select=yes
26345                         fi
26346                 fi
26347         fi
26348         ;;
26349 esac
26350
26351 case $ol_with_threads in auto | yes | lwp)
26352
26353
26354
26355 for ac_header in thread.h synch.h
26356 do
26357 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26359   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26362   echo $ECHO_N "(cached) $ECHO_C" >&6
26363 fi
26364 ac_res=`eval echo '${'$as_ac_Header'}'`
26365                { echo "$as_me:$LINENO: result: $ac_res" >&5
26366 echo "${ECHO_T}$ac_res" >&6; }
26367 else
26368   # Is the header compilable?
26369 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26370 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26371 cat >conftest.$ac_ext <<_ACEOF
26372 /* confdefs.h.  */
26373 _ACEOF
26374 cat confdefs.h >>conftest.$ac_ext
26375 cat >>conftest.$ac_ext <<_ACEOF
26376 /* end confdefs.h.  */
26377 $ac_includes_default
26378 #include <$ac_header>
26379 _ACEOF
26380 rm -f conftest.$ac_objext
26381 if { (ac_try="$ac_compile"
26382 case "(($ac_try" in
26383   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26384   *) ac_try_echo=$ac_try;;
26385 esac
26386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26387   (eval "$ac_compile") 2>conftest.er1
26388   ac_status=$?
26389   grep -v '^ *+' conftest.er1 >conftest.err
26390   rm -f conftest.er1
26391   cat conftest.err >&5
26392   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26393   (exit $ac_status); } && {
26394          test -z "$ac_c_werror_flag" ||
26395          test ! -s conftest.err
26396        } && test -s conftest.$ac_objext; then
26397   ac_header_compiler=yes
26398 else
26399   echo "$as_me: failed program was:" >&5
26400 sed 's/^/| /' conftest.$ac_ext >&5
26401
26402         ac_header_compiler=no
26403 fi
26404
26405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26407 echo "${ECHO_T}$ac_header_compiler" >&6; }
26408
26409 # Is the header present?
26410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26412 cat >conftest.$ac_ext <<_ACEOF
26413 /* confdefs.h.  */
26414 _ACEOF
26415 cat confdefs.h >>conftest.$ac_ext
26416 cat >>conftest.$ac_ext <<_ACEOF
26417 /* end confdefs.h.  */
26418 #include <$ac_header>
26419 _ACEOF
26420 if { (ac_try="$ac_cpp conftest.$ac_ext"
26421 case "(($ac_try" in
26422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26423   *) ac_try_echo=$ac_try;;
26424 esac
26425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26426   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26427   ac_status=$?
26428   grep -v '^ *+' conftest.er1 >conftest.err
26429   rm -f conftest.er1
26430   cat conftest.err >&5
26431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432   (exit $ac_status); } >/dev/null && {
26433          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26434          test ! -s conftest.err
26435        }; then
26436   ac_header_preproc=yes
26437 else
26438   echo "$as_me: failed program was:" >&5
26439 sed 's/^/| /' conftest.$ac_ext >&5
26440
26441   ac_header_preproc=no
26442 fi
26443
26444 rm -f conftest.err conftest.$ac_ext
26445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26446 echo "${ECHO_T}$ac_header_preproc" >&6; }
26447
26448 # So?  What about this header?
26449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26450   yes:no: )
26451     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26453     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26455     ac_header_preproc=yes
26456     ;;
26457   no:yes:* )
26458     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26460     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26461 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26462     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26464     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26465 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26466     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26468     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26470     ( cat <<\_ASBOX
26471 ## --------------------------------------------- ##
26472 ## Report this to <http://www.openldap.org/its/> ##
26473 ## --------------------------------------------- ##
26474 _ASBOX
26475      ) | sed "s/^/$as_me: WARNING:     /" >&2
26476     ;;
26477 esac
26478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26481   echo $ECHO_N "(cached) $ECHO_C" >&6
26482 else
26483   eval "$as_ac_Header=\$ac_header_preproc"
26484 fi
26485 ac_res=`eval echo '${'$as_ac_Header'}'`
26486                { echo "$as_me:$LINENO: result: $ac_res" >&5
26487 echo "${ECHO_T}$ac_res" >&6; }
26488
26489 fi
26490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26491   cat >>confdefs.h <<_ACEOF
26492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26493 _ACEOF
26494
26495 fi
26496
26497 done
26498
26499         if test $ac_cv_header_thread_h = yes &&
26500            test $ac_cv_header_synch_h = yes ; then
26501                 { echo "$as_me:$LINENO: checking for thr_create in -lthread" >&5
26502 echo $ECHO_N "checking for thr_create in -lthread... $ECHO_C" >&6; }
26503 if test "${ac_cv_lib_thread_thr_create+set}" = set; then
26504   echo $ECHO_N "(cached) $ECHO_C" >&6
26505 else
26506   ac_check_lib_save_LIBS=$LIBS
26507 LIBS="-lthread  $LIBS"
26508 cat >conftest.$ac_ext <<_ACEOF
26509 /* confdefs.h.  */
26510 _ACEOF
26511 cat confdefs.h >>conftest.$ac_ext
26512 cat >>conftest.$ac_ext <<_ACEOF
26513 /* end confdefs.h.  */
26514
26515 /* Override any GCC internal prototype to avoid an error.
26516    Use char because int might match the return type of a GCC
26517    builtin and then its argument prototype would still apply.  */
26518 #ifdef __cplusplus
26519 extern "C"
26520 #endif
26521 char thr_create ();
26522 int
26523 main ()
26524 {
26525 return thr_create ();
26526   ;
26527   return 0;
26528 }
26529 _ACEOF
26530 rm -f conftest.$ac_objext conftest$ac_exeext
26531 if { (ac_try="$ac_link"
26532 case "(($ac_try" in
26533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26534   *) ac_try_echo=$ac_try;;
26535 esac
26536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26537   (eval "$ac_link") 2>conftest.er1
26538   ac_status=$?
26539   grep -v '^ *+' conftest.er1 >conftest.err
26540   rm -f conftest.er1
26541   cat conftest.err >&5
26542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543   (exit $ac_status); } && {
26544          test -z "$ac_c_werror_flag" ||
26545          test ! -s conftest.err
26546        } && test -s conftest$ac_exeext &&
26547        $as_test_x conftest$ac_exeext; then
26548   ac_cv_lib_thread_thr_create=yes
26549 else
26550   echo "$as_me: failed program was:" >&5
26551 sed 's/^/| /' conftest.$ac_ext >&5
26552
26553         ac_cv_lib_thread_thr_create=no
26554 fi
26555
26556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26557       conftest$ac_exeext conftest.$ac_ext
26558 LIBS=$ac_check_lib_save_LIBS
26559 fi
26560 { echo "$as_me:$LINENO: result: $ac_cv_lib_thread_thr_create" >&5
26561 echo "${ECHO_T}$ac_cv_lib_thread_thr_create" >&6; }
26562 if test $ac_cv_lib_thread_thr_create = yes; then
26563   have_thr=yes
26564 else
26565   have_thr=no
26566 fi
26567
26568
26569                 if test $have_thr = yes ; then
26570
26571 cat >>confdefs.h <<\_ACEOF
26572 #define HAVE_THR 1
26573 _ACEOF
26574
26575                         LTHREAD_LIBS="$LTHREAD_LIBS -lthread"
26576                         ol_link_threads=thr
26577
26578                         if test $ol_with_yielding_select = auto ; then
26579                                 ol_with_yielding_select=yes
26580                         fi
26581
26582
26583
26584 for ac_func in \
26585                                 thr_setconcurrency \
26586                                 thr_getconcurrency \
26587
26588 do
26589 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26590 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26591 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26592 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26593   echo $ECHO_N "(cached) $ECHO_C" >&6
26594 else
26595   cat >conftest.$ac_ext <<_ACEOF
26596 /* confdefs.h.  */
26597 _ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h.  */
26601 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26602    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26603 #define $ac_func innocuous_$ac_func
26604
26605 /* System header to define __stub macros and hopefully few prototypes,
26606     which can conflict with char $ac_func (); below.
26607     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26608     <limits.h> exists even on freestanding compilers.  */
26609
26610 #ifdef __STDC__
26611 # include <limits.h>
26612 #else
26613 # include <assert.h>
26614 #endif
26615
26616 #undef $ac_func
26617
26618 /* Override any GCC internal prototype to avoid an error.
26619    Use char because int might match the return type of a GCC
26620    builtin and then its argument prototype would still apply.  */
26621 #ifdef __cplusplus
26622 extern "C"
26623 #endif
26624 char $ac_func ();
26625 /* The GNU C library defines this for functions which it implements
26626     to always fail with ENOSYS.  Some functions are actually named
26627     something starting with __ and the normal name is an alias.  */
26628 #if defined __stub_$ac_func || defined __stub___$ac_func
26629 choke me
26630 #endif
26631
26632 int
26633 main ()
26634 {
26635 return $ac_func ();
26636   ;
26637   return 0;
26638 }
26639 _ACEOF
26640 rm -f conftest.$ac_objext conftest$ac_exeext
26641 if { (ac_try="$ac_link"
26642 case "(($ac_try" in
26643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26644   *) ac_try_echo=$ac_try;;
26645 esac
26646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26647   (eval "$ac_link") 2>conftest.er1
26648   ac_status=$?
26649   grep -v '^ *+' conftest.er1 >conftest.err
26650   rm -f conftest.er1
26651   cat conftest.err >&5
26652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26653   (exit $ac_status); } && {
26654          test -z "$ac_c_werror_flag" ||
26655          test ! -s conftest.err
26656        } && test -s conftest$ac_exeext &&
26657        $as_test_x conftest$ac_exeext; then
26658   eval "$as_ac_var=yes"
26659 else
26660   echo "$as_me: failed program was:" >&5
26661 sed 's/^/| /' conftest.$ac_ext >&5
26662
26663         eval "$as_ac_var=no"
26664 fi
26665
26666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26667       conftest$ac_exeext conftest.$ac_ext
26668 fi
26669 ac_res=`eval echo '${'$as_ac_var'}'`
26670                { echo "$as_me:$LINENO: result: $ac_res" >&5
26671 echo "${ECHO_T}$ac_res" >&6; }
26672 if test `eval echo '${'$as_ac_var'}'` = yes; then
26673   cat >>confdefs.h <<_ACEOF
26674 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26675 _ACEOF
26676
26677 fi
26678 done
26679
26680                 fi
26681         fi
26682         ;;
26683 esac
26684
26685 if test $ol_with_yielding_select = yes ; then
26686
26687 cat >>confdefs.h <<\_ACEOF
26688 #define HAVE_YIELDING_SELECT 1
26689 _ACEOF
26690
26691 fi
26692
26693 if test $ol_with_threads = manual ; then
26694                 ol_link_threads=yes
26695
26696         { echo "$as_me:$LINENO: WARNING: thread defines and link options must be set manually" >&5
26697 echo "$as_me: WARNING: thread defines and link options must be set manually" >&2;}
26698
26699
26700
26701 for ac_header in pthread.h sched.h
26702 do
26703 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26705   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26708   echo $ECHO_N "(cached) $ECHO_C" >&6
26709 fi
26710 ac_res=`eval echo '${'$as_ac_Header'}'`
26711                { echo "$as_me:$LINENO: result: $ac_res" >&5
26712 echo "${ECHO_T}$ac_res" >&6; }
26713 else
26714   # Is the header compilable?
26715 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26716 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26717 cat >conftest.$ac_ext <<_ACEOF
26718 /* confdefs.h.  */
26719 _ACEOF
26720 cat confdefs.h >>conftest.$ac_ext
26721 cat >>conftest.$ac_ext <<_ACEOF
26722 /* end confdefs.h.  */
26723 $ac_includes_default
26724 #include <$ac_header>
26725 _ACEOF
26726 rm -f conftest.$ac_objext
26727 if { (ac_try="$ac_compile"
26728 case "(($ac_try" in
26729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26730   *) ac_try_echo=$ac_try;;
26731 esac
26732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26733   (eval "$ac_compile") 2>conftest.er1
26734   ac_status=$?
26735   grep -v '^ *+' conftest.er1 >conftest.err
26736   rm -f conftest.er1
26737   cat conftest.err >&5
26738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26739   (exit $ac_status); } && {
26740          test -z "$ac_c_werror_flag" ||
26741          test ! -s conftest.err
26742        } && test -s conftest.$ac_objext; then
26743   ac_header_compiler=yes
26744 else
26745   echo "$as_me: failed program was:" >&5
26746 sed 's/^/| /' conftest.$ac_ext >&5
26747
26748         ac_header_compiler=no
26749 fi
26750
26751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26752 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26753 echo "${ECHO_T}$ac_header_compiler" >&6; }
26754
26755 # Is the header present?
26756 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
26757 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
26758 cat >conftest.$ac_ext <<_ACEOF
26759 /* confdefs.h.  */
26760 _ACEOF
26761 cat confdefs.h >>conftest.$ac_ext
26762 cat >>conftest.$ac_ext <<_ACEOF
26763 /* end confdefs.h.  */
26764 #include <$ac_header>
26765 _ACEOF
26766 if { (ac_try="$ac_cpp conftest.$ac_ext"
26767 case "(($ac_try" in
26768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26769   *) ac_try_echo=$ac_try;;
26770 esac
26771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26772   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
26773   ac_status=$?
26774   grep -v '^ *+' conftest.er1 >conftest.err
26775   rm -f conftest.er1
26776   cat conftest.err >&5
26777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26778   (exit $ac_status); } >/dev/null && {
26779          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
26780          test ! -s conftest.err
26781        }; then
26782   ac_header_preproc=yes
26783 else
26784   echo "$as_me: failed program was:" >&5
26785 sed 's/^/| /' conftest.$ac_ext >&5
26786
26787   ac_header_preproc=no
26788 fi
26789
26790 rm -f conftest.err conftest.$ac_ext
26791 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26792 echo "${ECHO_T}$ac_header_preproc" >&6; }
26793
26794 # So?  What about this header?
26795 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26796   yes:no: )
26797     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26798 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26800 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26801     ac_header_preproc=yes
26802     ;;
26803   no:yes:* )
26804     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26805 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26806     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
26807 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
26808     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26809 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26810     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
26811 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
26812     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26813 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26814     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26815 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26816     ( cat <<\_ASBOX
26817 ## --------------------------------------------- ##
26818 ## Report this to <http://www.openldap.org/its/> ##
26819 ## --------------------------------------------- ##
26820 _ASBOX
26821      ) | sed "s/^/$as_me: WARNING:     /" >&2
26822     ;;
26823 esac
26824 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26825 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26827   echo $ECHO_N "(cached) $ECHO_C" >&6
26828 else
26829   eval "$as_ac_Header=\$ac_header_preproc"
26830 fi
26831 ac_res=`eval echo '${'$as_ac_Header'}'`
26832                { echo "$as_me:$LINENO: result: $ac_res" >&5
26833 echo "${ECHO_T}$ac_res" >&6; }
26834
26835 fi
26836 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26837   cat >>confdefs.h <<_ACEOF
26838 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26839 _ACEOF
26840
26841 fi
26842
26843 done
26844
26845
26846
26847 for ac_func in sched_yield pthread_yield
26848 do
26849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
26851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
26852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26853   echo $ECHO_N "(cached) $ECHO_C" >&6
26854 else
26855   cat >conftest.$ac_ext <<_ACEOF
26856 /* confdefs.h.  */
26857 _ACEOF
26858 cat confdefs.h >>conftest.$ac_ext
26859 cat >>conftest.$ac_ext <<_ACEOF
26860 /* end confdefs.h.  */
26861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26862    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26863 #define $ac_func innocuous_$ac_func
26864
26865 /* System header to define __stub macros and hopefully few prototypes,
26866     which can conflict with char $ac_func (); below.
26867     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26868     <limits.h> exists even on freestanding compilers.  */
26869
26870 #ifdef __STDC__
26871 # include <limits.h>
26872 #else
26873 # include <assert.h>
26874 #endif
26875
26876 #undef $ac_func
26877
26878 /* Override any GCC internal prototype to avoid an error.
26879    Use char because int might match the return type of a GCC
26880    builtin and then its argument prototype would still apply.  */
26881 #ifdef __cplusplus
26882 extern "C"
26883 #endif
26884 char $ac_func ();
26885 /* The GNU C library defines this for functions which it implements
26886     to always fail with ENOSYS.  Some functions are actually named
26887     something starting with __ and the normal name is an alias.  */
26888 #if defined __stub_$ac_func || defined __stub___$ac_func
26889 choke me
26890 #endif
26891
26892 int
26893 main ()
26894 {
26895 return $ac_func ();
26896   ;
26897   return 0;
26898 }
26899 _ACEOF
26900 rm -f conftest.$ac_objext conftest$ac_exeext
26901 if { (ac_try="$ac_link"
26902 case "(($ac_try" in
26903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26904   *) ac_try_echo=$ac_try;;
26905 esac
26906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26907   (eval "$ac_link") 2>conftest.er1
26908   ac_status=$?
26909   grep -v '^ *+' conftest.er1 >conftest.err
26910   rm -f conftest.er1
26911   cat conftest.err >&5
26912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913   (exit $ac_status); } && {
26914          test -z "$ac_c_werror_flag" ||
26915          test ! -s conftest.err
26916        } && test -s conftest$ac_exeext &&
26917        $as_test_x conftest$ac_exeext; then
26918   eval "$as_ac_var=yes"
26919 else
26920   echo "$as_me: failed program was:" >&5
26921 sed 's/^/| /' conftest.$ac_ext >&5
26922
26923         eval "$as_ac_var=no"
26924 fi
26925
26926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26927       conftest$ac_exeext conftest.$ac_ext
26928 fi
26929 ac_res=`eval echo '${'$as_ac_var'}'`
26930                { echo "$as_me:$LINENO: result: $ac_res" >&5
26931 echo "${ECHO_T}$ac_res" >&6; }
26932 if test `eval echo '${'$as_ac_var'}'` = yes; then
26933   cat >>confdefs.h <<_ACEOF
26934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26935 _ACEOF
26936
26937 fi
26938 done
26939
26940
26941         { echo "$as_me:$LINENO: checking for LinuxThreads pthread.h" >&5
26942 echo $ECHO_N "checking for LinuxThreads pthread.h... $ECHO_C" >&6; }
26943 if test "${ol_cv_header_linux_threads+set}" = set; then
26944   echo $ECHO_N "(cached) $ECHO_C" >&6
26945 else
26946   cat >conftest.$ac_ext <<_ACEOF
26947 /* confdefs.h.  */
26948 _ACEOF
26949 cat confdefs.h >>conftest.$ac_ext
26950 cat >>conftest.$ac_ext <<_ACEOF
26951 /* end confdefs.h.  */
26952 #include <pthread.h>
26953 _ACEOF
26954 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26955   $EGREP "pthread_kill_other_threads_np" >/dev/null 2>&1; then
26956   ol_cv_header_linux_threads=yes
26957 else
26958   ol_cv_header_linux_threads=no
26959 fi
26960 rm -f conftest*
26961
26962
26963 fi
26964 { echo "$as_me:$LINENO: result: $ol_cv_header_linux_threads" >&5
26965 echo "${ECHO_T}$ol_cv_header_linux_threads" >&6; }
26966         if test $ol_cv_header_linux_threads = yes; then
26967
26968 cat >>confdefs.h <<\_ACEOF
26969 #define HAVE_LINUX_THREADS 1
26970 _ACEOF
26971
26972         fi
26973
26974
26975
26976 for ac_header in mach/cthreads.h
26977 do
26978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26980   { echo "$as_me:$LINENO: checking for $ac_header" >&5
26981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26983   echo $ECHO_N "(cached) $ECHO_C" >&6
26984 fi
26985 ac_res=`eval echo '${'$as_ac_Header'}'`
26986                { echo "$as_me:$LINENO: result: $ac_res" >&5
26987 echo "${ECHO_T}$ac_res" >&6; }
26988 else
26989   # Is the header compilable?
26990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
26991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
26992 cat >conftest.$ac_ext <<_ACEOF
26993 /* confdefs.h.  */
26994 _ACEOF
26995 cat confdefs.h >>conftest.$ac_ext
26996 cat >>conftest.$ac_ext <<_ACEOF
26997 /* end confdefs.h.  */
26998 $ac_includes_default
26999 #include <$ac_header>
27000 _ACEOF
27001 rm -f conftest.$ac_objext
27002 if { (ac_try="$ac_compile"
27003 case "(($ac_try" in
27004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27005   *) ac_try_echo=$ac_try;;
27006 esac
27007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27008   (eval "$ac_compile") 2>conftest.er1
27009   ac_status=$?
27010   grep -v '^ *+' conftest.er1 >conftest.err
27011   rm -f conftest.er1
27012   cat conftest.err >&5
27013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014   (exit $ac_status); } && {
27015          test -z "$ac_c_werror_flag" ||
27016          test ! -s conftest.err
27017        } && test -s conftest.$ac_objext; then
27018   ac_header_compiler=yes
27019 else
27020   echo "$as_me: failed program was:" >&5
27021 sed 's/^/| /' conftest.$ac_ext >&5
27022
27023         ac_header_compiler=no
27024 fi
27025
27026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27028 echo "${ECHO_T}$ac_header_compiler" >&6; }
27029
27030 # Is the header present?
27031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27033 cat >conftest.$ac_ext <<_ACEOF
27034 /* confdefs.h.  */
27035 _ACEOF
27036 cat confdefs.h >>conftest.$ac_ext
27037 cat >>conftest.$ac_ext <<_ACEOF
27038 /* end confdefs.h.  */
27039 #include <$ac_header>
27040 _ACEOF
27041 if { (ac_try="$ac_cpp conftest.$ac_ext"
27042 case "(($ac_try" in
27043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27044   *) ac_try_echo=$ac_try;;
27045 esac
27046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27047   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27048   ac_status=$?
27049   grep -v '^ *+' conftest.er1 >conftest.err
27050   rm -f conftest.er1
27051   cat conftest.err >&5
27052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27053   (exit $ac_status); } >/dev/null && {
27054          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27055          test ! -s conftest.err
27056        }; then
27057   ac_header_preproc=yes
27058 else
27059   echo "$as_me: failed program was:" >&5
27060 sed 's/^/| /' conftest.$ac_ext >&5
27061
27062   ac_header_preproc=no
27063 fi
27064
27065 rm -f conftest.err conftest.$ac_ext
27066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27067 echo "${ECHO_T}$ac_header_preproc" >&6; }
27068
27069 # So?  What about this header?
27070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27071   yes:no: )
27072     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27074     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27076     ac_header_preproc=yes
27077     ;;
27078   no:yes:* )
27079     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27081     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27082 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27083     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27085     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27086 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27087     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27089     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27091     ( cat <<\_ASBOX
27092 ## --------------------------------------------- ##
27093 ## Report this to <http://www.openldap.org/its/> ##
27094 ## --------------------------------------------- ##
27095 _ASBOX
27096      ) | sed "s/^/$as_me: WARNING:     /" >&2
27097     ;;
27098 esac
27099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27102   echo $ECHO_N "(cached) $ECHO_C" >&6
27103 else
27104   eval "$as_ac_Header=\$ac_header_preproc"
27105 fi
27106 ac_res=`eval echo '${'$as_ac_Header'}'`
27107                { echo "$as_me:$LINENO: result: $ac_res" >&5
27108 echo "${ECHO_T}$ac_res" >&6; }
27109
27110 fi
27111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27112   cat >>confdefs.h <<_ACEOF
27113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27114 _ACEOF
27115
27116 fi
27117
27118 done
27119
27120
27121
27122 for ac_header in thread.h synch.h
27123 do
27124 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27125 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27126   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27127 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27128 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27129   echo $ECHO_N "(cached) $ECHO_C" >&6
27130 fi
27131 ac_res=`eval echo '${'$as_ac_Header'}'`
27132                { echo "$as_me:$LINENO: result: $ac_res" >&5
27133 echo "${ECHO_T}$ac_res" >&6; }
27134 else
27135   # Is the header compilable?
27136 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27137 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27138 cat >conftest.$ac_ext <<_ACEOF
27139 /* confdefs.h.  */
27140 _ACEOF
27141 cat confdefs.h >>conftest.$ac_ext
27142 cat >>conftest.$ac_ext <<_ACEOF
27143 /* end confdefs.h.  */
27144 $ac_includes_default
27145 #include <$ac_header>
27146 _ACEOF
27147 rm -f conftest.$ac_objext
27148 if { (ac_try="$ac_compile"
27149 case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27154   (eval "$ac_compile") 2>conftest.er1
27155   ac_status=$?
27156   grep -v '^ *+' conftest.er1 >conftest.err
27157   rm -f conftest.er1
27158   cat conftest.err >&5
27159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27160   (exit $ac_status); } && {
27161          test -z "$ac_c_werror_flag" ||
27162          test ! -s conftest.err
27163        } && test -s conftest.$ac_objext; then
27164   ac_header_compiler=yes
27165 else
27166   echo "$as_me: failed program was:" >&5
27167 sed 's/^/| /' conftest.$ac_ext >&5
27168
27169         ac_header_compiler=no
27170 fi
27171
27172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27174 echo "${ECHO_T}$ac_header_compiler" >&6; }
27175
27176 # Is the header present?
27177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
27178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
27179 cat >conftest.$ac_ext <<_ACEOF
27180 /* confdefs.h.  */
27181 _ACEOF
27182 cat confdefs.h >>conftest.$ac_ext
27183 cat >>conftest.$ac_ext <<_ACEOF
27184 /* end confdefs.h.  */
27185 #include <$ac_header>
27186 _ACEOF
27187 if { (ac_try="$ac_cpp conftest.$ac_ext"
27188 case "(($ac_try" in
27189   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27190   *) ac_try_echo=$ac_try;;
27191 esac
27192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27193   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
27194   ac_status=$?
27195   grep -v '^ *+' conftest.er1 >conftest.err
27196   rm -f conftest.er1
27197   cat conftest.err >&5
27198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27199   (exit $ac_status); } >/dev/null && {
27200          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
27201          test ! -s conftest.err
27202        }; then
27203   ac_header_preproc=yes
27204 else
27205   echo "$as_me: failed program was:" >&5
27206 sed 's/^/| /' conftest.$ac_ext >&5
27207
27208   ac_header_preproc=no
27209 fi
27210
27211 rm -f conftest.err conftest.$ac_ext
27212 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27213 echo "${ECHO_T}$ac_header_preproc" >&6; }
27214
27215 # So?  What about this header?
27216 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27217   yes:no: )
27218     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27219 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27220     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27221 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27222     ac_header_preproc=yes
27223     ;;
27224   no:yes:* )
27225     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27226 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27227     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
27228 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
27229     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27230 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27231     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
27232 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
27233     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27234 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27235     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27236 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27237     ( cat <<\_ASBOX
27238 ## --------------------------------------------- ##
27239 ## Report this to <http://www.openldap.org/its/> ##
27240 ## --------------------------------------------- ##
27241 _ASBOX
27242      ) | sed "s/^/$as_me: WARNING:     /" >&2
27243     ;;
27244 esac
27245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
27246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27248   echo $ECHO_N "(cached) $ECHO_C" >&6
27249 else
27250   eval "$as_ac_Header=\$ac_header_preproc"
27251 fi
27252 ac_res=`eval echo '${'$as_ac_Header'}'`
27253                { echo "$as_me:$LINENO: result: $ac_res" >&5
27254 echo "${ECHO_T}$ac_res" >&6; }
27255
27256 fi
27257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27258   cat >>confdefs.h <<_ACEOF
27259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27260 _ACEOF
27261
27262 fi
27263
27264 done
27265
27266 fi
27267
27268 if test $ol_link_threads != no && test $ol_link_threads != nt ; then
27269                         cat >>confdefs.h <<\_ACEOF
27270 #define REENTRANT 1
27271 _ACEOF
27272
27273         cat >>confdefs.h <<\_ACEOF
27274 #define _REENTRANT 1
27275 _ACEOF
27276
27277         cat >>confdefs.h <<\_ACEOF
27278 #define THREAD_SAFE 1
27279 _ACEOF
27280
27281         cat >>confdefs.h <<\_ACEOF
27282 #define _THREAD_SAFE 1
27283 _ACEOF
27284
27285         cat >>confdefs.h <<\_ACEOF
27286 #define THREADSAFE 1
27287 _ACEOF
27288
27289         cat >>confdefs.h <<\_ACEOF
27290 #define _THREADSAFE 1
27291 _ACEOF
27292
27293         cat >>confdefs.h <<\_ACEOF
27294 #define _SGI_MP_SOURCE 1
27295 _ACEOF
27296
27297
27298                         { echo "$as_me:$LINENO: checking for thread specific errno" >&5
27299 echo $ECHO_N "checking for thread specific errno... $ECHO_C" >&6; }
27300 if test "${ol_cv_errno_thread_specific+set}" = set; then
27301   echo $ECHO_N "(cached) $ECHO_C" >&6
27302 else
27303
27304                 cat >conftest.$ac_ext <<_ACEOF
27305 /* confdefs.h.  */
27306 _ACEOF
27307 cat confdefs.h >>conftest.$ac_ext
27308 cat >>conftest.$ac_ext <<_ACEOF
27309 /* end confdefs.h.  */
27310 #include <errno.h>
27311 int
27312 main ()
27313 {
27314 errno = 0;
27315   ;
27316   return 0;
27317 }
27318 _ACEOF
27319 rm -f conftest.$ac_objext conftest$ac_exeext
27320 if { (ac_try="$ac_link"
27321 case "(($ac_try" in
27322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27323   *) ac_try_echo=$ac_try;;
27324 esac
27325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27326   (eval "$ac_link") 2>conftest.er1
27327   ac_status=$?
27328   grep -v '^ *+' conftest.er1 >conftest.err
27329   rm -f conftest.er1
27330   cat conftest.err >&5
27331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27332   (exit $ac_status); } && {
27333          test -z "$ac_c_werror_flag" ||
27334          test ! -s conftest.err
27335        } && test -s conftest$ac_exeext &&
27336        $as_test_x conftest$ac_exeext; then
27337   ol_cv_errno_thread_specific=yes
27338 else
27339   echo "$as_me: failed program was:" >&5
27340 sed 's/^/| /' conftest.$ac_ext >&5
27341
27342         ol_cv_errno_thread_specific=no
27343 fi
27344
27345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27346       conftest$ac_exeext conftest.$ac_ext
27347
27348 fi
27349 { echo "$as_me:$LINENO: result: $ol_cv_errno_thread_specific" >&5
27350 echo "${ECHO_T}$ol_cv_errno_thread_specific" >&6; }
27351
27352                         { echo "$as_me:$LINENO: checking for thread specific h_errno" >&5
27353 echo $ECHO_N "checking for thread specific h_errno... $ECHO_C" >&6; }
27354 if test "${ol_cv_h_errno_thread_specific+set}" = set; then
27355   echo $ECHO_N "(cached) $ECHO_C" >&6
27356 else
27357
27358                 cat >conftest.$ac_ext <<_ACEOF
27359 /* confdefs.h.  */
27360 _ACEOF
27361 cat confdefs.h >>conftest.$ac_ext
27362 cat >>conftest.$ac_ext <<_ACEOF
27363 /* end confdefs.h.  */
27364 #include <netdb.h>
27365 int
27366 main ()
27367 {
27368 h_errno = 0;
27369   ;
27370   return 0;
27371 }
27372 _ACEOF
27373 rm -f conftest.$ac_objext conftest$ac_exeext
27374 if { (ac_try="$ac_link"
27375 case "(($ac_try" in
27376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27377   *) ac_try_echo=$ac_try;;
27378 esac
27379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27380   (eval "$ac_link") 2>conftest.er1
27381   ac_status=$?
27382   grep -v '^ *+' conftest.er1 >conftest.err
27383   rm -f conftest.er1
27384   cat conftest.err >&5
27385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27386   (exit $ac_status); } && {
27387          test -z "$ac_c_werror_flag" ||
27388          test ! -s conftest.err
27389        } && test -s conftest$ac_exeext &&
27390        $as_test_x conftest$ac_exeext; then
27391   ol_cv_h_errno_thread_specific=yes
27392 else
27393   echo "$as_me: failed program was:" >&5
27394 sed 's/^/| /' conftest.$ac_ext >&5
27395
27396         ol_cv_h_errno_thread_specific=no
27397 fi
27398
27399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27400       conftest$ac_exeext conftest.$ac_ext
27401
27402 fi
27403 { echo "$as_me:$LINENO: result: $ol_cv_h_errno_thread_specific" >&5
27404 echo "${ECHO_T}$ol_cv_h_errno_thread_specific" >&6; }
27405
27406         if test $ol_cv_errno_thread_specific != yes ||
27407            test $ol_cv_h_errno_thread_specific != yes ; then
27408                 LIBS="$LTHREAD_LIBS $LIBS"
27409                 LTHREAD_LIBS=""
27410         fi
27411
27412 fi
27413
27414 if test $ol_link_threads = no ; then
27415         if test $ol_with_threads = yes ; then
27416                 { { echo "$as_me:$LINENO: error: no suitable thread support" >&5
27417 echo "$as_me: error: no suitable thread support" >&2;}
27418    { (exit 1); exit 1; }; }
27419         fi
27420
27421         if test $ol_with_threads = auto ; then
27422                 { echo "$as_me:$LINENO: WARNING: no suitable thread support, disabling threads" >&5
27423 echo "$as_me: WARNING: no suitable thread support, disabling threads" >&2;}
27424                 ol_with_threads=no
27425         fi
27426
27427
27428 cat >>confdefs.h <<\_ACEOF
27429 #define NO_THREADS 1
27430 _ACEOF
27431
27432         LTHREAD_LIBS=""
27433         BUILD_THREAD=no
27434 else
27435         BUILD_THREAD=yes
27436 fi
27437
27438 if test $ol_link_threads != no ; then
27439
27440 cat >>confdefs.h <<\_ACEOF
27441 #define LDAP_API_FEATURE_X_OPENLDAP_THREAD_SAFE 1
27442 _ACEOF
27443
27444 fi
27445
27446
27447
27448
27449
27450
27451 for ac_func in \
27452         ctime_r                 \
27453         gmtime_r localtime_r \
27454         gethostbyname_r gethostbyaddr_r \
27455
27456 do
27457 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27458 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27459 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27460 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27461   echo $ECHO_N "(cached) $ECHO_C" >&6
27462 else
27463   cat >conftest.$ac_ext <<_ACEOF
27464 /* confdefs.h.  */
27465 _ACEOF
27466 cat confdefs.h >>conftest.$ac_ext
27467 cat >>conftest.$ac_ext <<_ACEOF
27468 /* end confdefs.h.  */
27469 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27470    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27471 #define $ac_func innocuous_$ac_func
27472
27473 /* System header to define __stub macros and hopefully few prototypes,
27474     which can conflict with char $ac_func (); below.
27475     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27476     <limits.h> exists even on freestanding compilers.  */
27477
27478 #ifdef __STDC__
27479 # include <limits.h>
27480 #else
27481 # include <assert.h>
27482 #endif
27483
27484 #undef $ac_func
27485
27486 /* Override any GCC internal prototype to avoid an error.
27487    Use char because int might match the return type of a GCC
27488    builtin and then its argument prototype would still apply.  */
27489 #ifdef __cplusplus
27490 extern "C"
27491 #endif
27492 char $ac_func ();
27493 /* The GNU C library defines this for functions which it implements
27494     to always fail with ENOSYS.  Some functions are actually named
27495     something starting with __ and the normal name is an alias.  */
27496 #if defined __stub_$ac_func || defined __stub___$ac_func
27497 choke me
27498 #endif
27499
27500 int
27501 main ()
27502 {
27503 return $ac_func ();
27504   ;
27505   return 0;
27506 }
27507 _ACEOF
27508 rm -f conftest.$ac_objext conftest$ac_exeext
27509 if { (ac_try="$ac_link"
27510 case "(($ac_try" in
27511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27512   *) ac_try_echo=$ac_try;;
27513 esac
27514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27515   (eval "$ac_link") 2>conftest.er1
27516   ac_status=$?
27517   grep -v '^ *+' conftest.er1 >conftest.err
27518   rm -f conftest.er1
27519   cat conftest.err >&5
27520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27521   (exit $ac_status); } && {
27522          test -z "$ac_c_werror_flag" ||
27523          test ! -s conftest.err
27524        } && test -s conftest$ac_exeext &&
27525        $as_test_x conftest$ac_exeext; then
27526   eval "$as_ac_var=yes"
27527 else
27528   echo "$as_me: failed program was:" >&5
27529 sed 's/^/| /' conftest.$ac_ext >&5
27530
27531         eval "$as_ac_var=no"
27532 fi
27533
27534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27535       conftest$ac_exeext conftest.$ac_ext
27536 fi
27537 ac_res=`eval echo '${'$as_ac_var'}'`
27538                { echo "$as_me:$LINENO: result: $ac_res" >&5
27539 echo "${ECHO_T}$ac_res" >&6; }
27540 if test `eval echo '${'$as_ac_var'}'` = yes; then
27541   cat >>confdefs.h <<_ACEOF
27542 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27543 _ACEOF
27544
27545 fi
27546 done
27547
27548
27549 if test "$ac_cv_func_ctime_r" = no ; then
27550         ol_cv_func_ctime_r_nargs=0
27551 else
27552         { echo "$as_me:$LINENO: checking number of arguments of ctime_r" >&5
27553 echo $ECHO_N "checking number of arguments of ctime_r... $ECHO_C" >&6; }
27554 if test "${ol_cv_func_ctime_r_nargs+set}" = set; then
27555   echo $ECHO_N "(cached) $ECHO_C" >&6
27556 else
27557   cat >conftest.$ac_ext <<_ACEOF
27558 /* confdefs.h.  */
27559 _ACEOF
27560 cat confdefs.h >>conftest.$ac_ext
27561 cat >>conftest.$ac_ext <<_ACEOF
27562 /* end confdefs.h.  */
27563 #include <time.h>
27564 int
27565 main ()
27566 {
27567 time_t ti; char *buffer; ctime_r(&ti,buffer,32);
27568   ;
27569   return 0;
27570 }
27571 _ACEOF
27572 rm -f conftest.$ac_objext
27573 if { (ac_try="$ac_compile"
27574 case "(($ac_try" in
27575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27576   *) ac_try_echo=$ac_try;;
27577 esac
27578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27579   (eval "$ac_compile") 2>conftest.er1
27580   ac_status=$?
27581   grep -v '^ *+' conftest.er1 >conftest.err
27582   rm -f conftest.er1
27583   cat conftest.err >&5
27584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27585   (exit $ac_status); } && {
27586          test -z "$ac_c_werror_flag" ||
27587          test ! -s conftest.err
27588        } && test -s conftest.$ac_objext; then
27589   ol_cv_func_ctime_r_nargs3=yes
27590 else
27591   echo "$as_me: failed program was:" >&5
27592 sed 's/^/| /' conftest.$ac_ext >&5
27593
27594         ol_cv_func_ctime_r_nargs3=no
27595 fi
27596
27597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27598
27599         cat >conftest.$ac_ext <<_ACEOF
27600 /* confdefs.h.  */
27601 _ACEOF
27602 cat confdefs.h >>conftest.$ac_ext
27603 cat >>conftest.$ac_ext <<_ACEOF
27604 /* end confdefs.h.  */
27605 #include <time.h>
27606 int
27607 main ()
27608 {
27609 time_t ti; char *buffer; ctime_r(&ti,buffer);
27610   ;
27611   return 0;
27612 }
27613 _ACEOF
27614 rm -f conftest.$ac_objext
27615 if { (ac_try="$ac_compile"
27616 case "(($ac_try" in
27617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27618   *) ac_try_echo=$ac_try;;
27619 esac
27620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27621   (eval "$ac_compile") 2>conftest.er1
27622   ac_status=$?
27623   grep -v '^ *+' conftest.er1 >conftest.err
27624   rm -f conftest.er1
27625   cat conftest.err >&5
27626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27627   (exit $ac_status); } && {
27628          test -z "$ac_c_werror_flag" ||
27629          test ! -s conftest.err
27630        } && test -s conftest.$ac_objext; then
27631   ol_cv_func_ctime_r_nargs2=yes
27632 else
27633   echo "$as_me: failed program was:" >&5
27634 sed 's/^/| /' conftest.$ac_ext >&5
27635
27636         ol_cv_func_ctime_r_nargs2=no
27637 fi
27638
27639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27640
27641         if test $ol_cv_func_ctime_r_nargs3 = yes &&
27642            test $ol_cv_func_ctime_r_nargs2 = no ; then
27643
27644                 ol_cv_func_ctime_r_nargs=3
27645
27646         elif test $ol_cv_func_ctime_r_nargs3 = no &&
27647              test $ol_cv_func_ctime_r_nargs2 = yes ; then
27648
27649                 ol_cv_func_ctime_r_nargs=2
27650
27651         else
27652                 ol_cv_func_ctime_r_nargs=0
27653         fi
27654
27655 fi
27656 { echo "$as_me:$LINENO: result: $ol_cv_func_ctime_r_nargs" >&5
27657 echo "${ECHO_T}$ol_cv_func_ctime_r_nargs" >&6; }
27658
27659   if test $ol_cv_func_ctime_r_nargs -gt 1 ; then
27660
27661 cat >>confdefs.h <<_ACEOF
27662 #define CTIME_R_NARGS $ol_cv_func_ctime_r_nargs
27663 _ACEOF
27664
27665   fi
27666
27667 fi
27668
27669 if test "$ac_cv_func_gethostbyname_r" = yes ; then
27670         { echo "$as_me:$LINENO: checking number of arguments of gethostbyname_r" >&5
27671 echo $ECHO_N "checking number of arguments of gethostbyname_r... $ECHO_C" >&6; }
27672 if test "${ol_cv_func_gethostbyname_r_nargs+set}" = set; then
27673   echo $ECHO_N "(cached) $ECHO_C" >&6
27674 else
27675   cat >conftest.$ac_ext <<_ACEOF
27676 /* confdefs.h.  */
27677 _ACEOF
27678 cat confdefs.h >>conftest.$ac_ext
27679 cat >>conftest.$ac_ext <<_ACEOF
27680 /* end confdefs.h.  */
27681 #include <sys/types.h>
27682 #include <sys/socket.h>
27683 #include <netinet/in.h>
27684 #include <netdb.h>
27685 #define BUFSIZE (sizeof(struct hostent)+10)
27686 int
27687 main ()
27688 {
27689 struct hostent hent; char buffer[BUFSIZE];
27690                 int bufsize=BUFSIZE;int h_errno;
27691                 (void)gethostbyname_r("segovia.cs.purdue.edu", &hent,
27692                         buffer, bufsize, &h_errno);
27693   ;
27694   return 0;
27695 }
27696 _ACEOF
27697 rm -f conftest.$ac_objext
27698 if { (ac_try="$ac_compile"
27699 case "(($ac_try" in
27700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27701   *) ac_try_echo=$ac_try;;
27702 esac
27703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27704   (eval "$ac_compile") 2>conftest.er1
27705   ac_status=$?
27706   grep -v '^ *+' conftest.er1 >conftest.err
27707   rm -f conftest.er1
27708   cat conftest.err >&5
27709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27710   (exit $ac_status); } && {
27711          test -z "$ac_c_werror_flag" ||
27712          test ! -s conftest.err
27713        } && test -s conftest.$ac_objext; then
27714   ol_cv_func_gethostbyname_r_nargs5=yes
27715 else
27716   echo "$as_me: failed program was:" >&5
27717 sed 's/^/| /' conftest.$ac_ext >&5
27718
27719         ol_cv_func_gethostbyname_r_nargs5=no
27720 fi
27721
27722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27723
27724         cat >conftest.$ac_ext <<_ACEOF
27725 /* confdefs.h.  */
27726 _ACEOF
27727 cat confdefs.h >>conftest.$ac_ext
27728 cat >>conftest.$ac_ext <<_ACEOF
27729 /* end confdefs.h.  */
27730 #include <sys/types.h>
27731 #include <sys/socket.h>
27732 #include <netinet/in.h>
27733 #include <netdb.h>
27734 #define BUFSIZE (sizeof(struct hostent)+10)
27735 int
27736 main ()
27737 {
27738 struct hostent hent;struct hostent *rhent;
27739                 char buffer[BUFSIZE];
27740                 int bufsize=BUFSIZE;int h_errno;
27741                 (void)gethostbyname_r("localhost", &hent, buffer, bufsize,
27742                         &rhent, &h_errno);
27743   ;
27744   return 0;
27745 }
27746 _ACEOF
27747 rm -f conftest.$ac_objext
27748 if { (ac_try="$ac_compile"
27749 case "(($ac_try" in
27750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27751   *) ac_try_echo=$ac_try;;
27752 esac
27753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27754   (eval "$ac_compile") 2>conftest.er1
27755   ac_status=$?
27756   grep -v '^ *+' conftest.er1 >conftest.err
27757   rm -f conftest.er1
27758   cat conftest.err >&5
27759   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27760   (exit $ac_status); } && {
27761          test -z "$ac_c_werror_flag" ||
27762          test ! -s conftest.err
27763        } && test -s conftest.$ac_objext; then
27764   ol_cv_func_gethostbyname_r_nargs6=yes
27765 else
27766   echo "$as_me: failed program was:" >&5
27767 sed 's/^/| /' conftest.$ac_ext >&5
27768
27769         ol_cv_func_gethostbyname_r_nargs6=no
27770 fi
27771
27772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27773
27774         if test $ol_cv_func_gethostbyname_r_nargs5 = yes &&
27775            test $ol_cv_func_gethostbyname_r_nargs6 = no ; then
27776
27777                 ol_cv_func_gethostbyname_r_nargs=5
27778
27779         elif test $ol_cv_func_gethostbyname_r_nargs5 = no &&
27780              test $ol_cv_func_gethostbyname_r_nargs6 = yes ; then
27781
27782                 ol_cv_func_gethostbyname_r_nargs=6
27783
27784         else
27785                 ol_cv_func_gethostbyname_r_nargs=0
27786         fi
27787
27788 fi
27789 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyname_r_nargs" >&5
27790 echo "${ECHO_T}$ol_cv_func_gethostbyname_r_nargs" >&6; }
27791   if test $ol_cv_func_gethostbyname_r_nargs -gt 1 ; then
27792
27793 cat >>confdefs.h <<_ACEOF
27794 #define GETHOSTBYNAME_R_NARGS $ol_cv_func_gethostbyname_r_nargs
27795 _ACEOF
27796
27797   fi
27798
27799 else
27800         ol_cv_func_gethostbyname_r_nargs=0
27801 fi
27802
27803 if test "$ac_cv_func_gethostbyaddr_r" = yes ; then
27804         { echo "$as_me:$LINENO: checking number of arguments of gethostbyaddr_r" >&5
27805 echo $ECHO_N "checking number of arguments of gethostbyaddr_r... $ECHO_C" >&6; }
27806 if test "${ol_cv_func_gethostbyaddr_r_nargs+set}" = set; then
27807   echo $ECHO_N "(cached) $ECHO_C" >&6
27808 else
27809   cat >conftest.$ac_ext <<_ACEOF
27810 /* confdefs.h.  */
27811 _ACEOF
27812 cat confdefs.h >>conftest.$ac_ext
27813 cat >>conftest.$ac_ext <<_ACEOF
27814 /* end confdefs.h.  */
27815 #include <sys/types.h>
27816 #include <sys/socket.h>
27817 #include <netinet/in.h>
27818 #include <netdb.h>
27819 #define BUFSIZE (sizeof(struct hostent)+10)
27820 int
27821 main ()
27822 {
27823 struct hostent hent; char buffer[BUFSIZE];
27824             struct in_addr add;
27825             size_t alen=sizeof(struct in_addr);
27826             int bufsize=BUFSIZE;int h_errno;
27827                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27828                         alen, AF_INET, &hent, buffer, bufsize, &h_errno);
27829   ;
27830   return 0;
27831 }
27832 _ACEOF
27833 rm -f conftest.$ac_objext
27834 if { (ac_try="$ac_compile"
27835 case "(($ac_try" in
27836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27837   *) ac_try_echo=$ac_try;;
27838 esac
27839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27840   (eval "$ac_compile") 2>conftest.er1
27841   ac_status=$?
27842   grep -v '^ *+' conftest.er1 >conftest.err
27843   rm -f conftest.er1
27844   cat conftest.err >&5
27845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27846   (exit $ac_status); } && {
27847          test -z "$ac_c_werror_flag" ||
27848          test ! -s conftest.err
27849        } && test -s conftest.$ac_objext; then
27850   ol_cv_func_gethostbyaddr_r_nargs7=yes
27851 else
27852   echo "$as_me: failed program was:" >&5
27853 sed 's/^/| /' conftest.$ac_ext >&5
27854
27855         ol_cv_func_gethostbyaddr_r_nargs7=no
27856 fi
27857
27858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27859
27860         cat >conftest.$ac_ext <<_ACEOF
27861 /* confdefs.h.  */
27862 _ACEOF
27863 cat confdefs.h >>conftest.$ac_ext
27864 cat >>conftest.$ac_ext <<_ACEOF
27865 /* end confdefs.h.  */
27866 #include <sys/types.h>
27867 #include <sys/socket.h>
27868 #include <netinet/in.h>
27869 #include <netdb.h>
27870 #define BUFSIZE (sizeof(struct hostent)+10)
27871 int
27872 main ()
27873 {
27874 struct hostent hent;
27875                 struct hostent *rhent; char buffer[BUFSIZE];
27876                 struct in_addr add;
27877                 size_t alen=sizeof(struct in_addr);
27878                 int bufsize=BUFSIZE;int h_errno;
27879                 (void)gethostbyaddr_r( (void *)&(add.s_addr),
27880                         alen, AF_INET, &hent, buffer, bufsize,
27881                         &rhent, &h_errno);
27882   ;
27883   return 0;
27884 }
27885 _ACEOF
27886 rm -f conftest.$ac_objext
27887 if { (ac_try="$ac_compile"
27888 case "(($ac_try" in
27889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27890   *) ac_try_echo=$ac_try;;
27891 esac
27892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27893   (eval "$ac_compile") 2>conftest.er1
27894   ac_status=$?
27895   grep -v '^ *+' conftest.er1 >conftest.err
27896   rm -f conftest.er1
27897   cat conftest.err >&5
27898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27899   (exit $ac_status); } && {
27900          test -z "$ac_c_werror_flag" ||
27901          test ! -s conftest.err
27902        } && test -s conftest.$ac_objext; then
27903   ol_cv_func_gethostbyaddr_r_nargs8=yes
27904 else
27905   echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27907
27908         ol_cv_func_gethostbyaddr_r_nargs8=no
27909 fi
27910
27911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27912
27913         if test $ol_cv_func_gethostbyaddr_r_nargs7 = yes &&
27914            test $ol_cv_func_gethostbyaddr_r_nargs8 = no ; then
27915
27916                 ol_cv_func_gethostbyaddr_r_nargs=7
27917
27918         elif test $ol_cv_func_gethostbyaddr_r_nargs7 = no &&
27919              test $ol_cv_func_gethostbyaddr_r_nargs8 = yes ; then
27920
27921                 ol_cv_func_gethostbyaddr_r_nargs=8
27922
27923         else
27924                 ol_cv_func_gethostbyaddr_r_nargs=0
27925         fi
27926
27927 fi
27928 { echo "$as_me:$LINENO: result: $ol_cv_func_gethostbyaddr_r_nargs" >&5
27929 echo "${ECHO_T}$ol_cv_func_gethostbyaddr_r_nargs" >&6; }
27930   if test $ol_cv_func_gethostbyaddr_r_nargs -gt 1 ; then
27931
27932 cat >>confdefs.h <<_ACEOF
27933 #define GETHOSTBYADDR_R_NARGS $ol_cv_func_gethostbyaddr_r_nargs
27934 _ACEOF
27935
27936   fi
27937
27938 else
27939         ol_cv_func_gethostbyaddr_r_nargs=0
27940 fi
27941
27942 ol_link_bdb=no
27943
27944 if test $ol_enable_bdb/$ol_enable_hdb != no/no; then
27945         ol_cv_berkeley_db=no
27946
27947 for ac_header in db.h
27948 do
27949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27951   { echo "$as_me:$LINENO: checking for $ac_header" >&5
27952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
27953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
27954   echo $ECHO_N "(cached) $ECHO_C" >&6
27955 fi
27956 ac_res=`eval echo '${'$as_ac_Header'}'`
27957                { echo "$as_me:$LINENO: result: $ac_res" >&5
27958 echo "${ECHO_T}$ac_res" >&6; }
27959 else
27960   # Is the header compilable?
27961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
27962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
27963 cat >conftest.$ac_ext <<_ACEOF
27964 /* confdefs.h.  */
27965 _ACEOF
27966 cat confdefs.h >>conftest.$ac_ext
27967 cat >>conftest.$ac_ext <<_ACEOF
27968 /* end confdefs.h.  */
27969 $ac_includes_default
27970 #include <$ac_header>
27971 _ACEOF
27972 rm -f conftest.$ac_objext
27973 if { (ac_try="$ac_compile"
27974 case "(($ac_try" in
27975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27976   *) ac_try_echo=$ac_try;;
27977 esac
27978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27979   (eval "$ac_compile") 2>conftest.er1
27980   ac_status=$?
27981   grep -v '^ *+' conftest.er1 >conftest.err
27982   rm -f conftest.er1
27983   cat conftest.err >&5
27984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985   (exit $ac_status); } && {
27986          test -z "$ac_c_werror_flag" ||
27987          test ! -s conftest.err
27988        } && test -s conftest.$ac_objext; then
27989   ac_header_compiler=yes
27990 else
27991   echo "$as_me: failed program was:" >&5
27992 sed 's/^/| /' conftest.$ac_ext >&5
27993
27994         ac_header_compiler=no
27995 fi
27996
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27999 echo "${ECHO_T}$ac_header_compiler" >&6; }
28000
28001 # Is the header present?
28002 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
28003 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
28004 cat >conftest.$ac_ext <<_ACEOF
28005 /* confdefs.h.  */
28006 _ACEOF
28007 cat confdefs.h >>conftest.$ac_ext
28008 cat >>conftest.$ac_ext <<_ACEOF
28009 /* end confdefs.h.  */
28010 #include <$ac_header>
28011 _ACEOF
28012 if { (ac_try="$ac_cpp conftest.$ac_ext"
28013 case "(($ac_try" in
28014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28015   *) ac_try_echo=$ac_try;;
28016 esac
28017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28019   ac_status=$?
28020   grep -v '^ *+' conftest.er1 >conftest.err
28021   rm -f conftest.er1
28022   cat conftest.err >&5
28023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28024   (exit $ac_status); } >/dev/null && {
28025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28026          test ! -s conftest.err
28027        }; then
28028   ac_header_preproc=yes
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033   ac_header_preproc=no
28034 fi
28035
28036 rm -f conftest.err conftest.$ac_ext
28037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28038 echo "${ECHO_T}$ac_header_preproc" >&6; }
28039
28040 # So?  What about this header?
28041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28042   yes:no: )
28043     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28045     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28047     ac_header_preproc=yes
28048     ;;
28049   no:yes:* )
28050     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28052     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28053 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28054     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28056     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28057 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28058     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28060     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28062     ( cat <<\_ASBOX
28063 ## --------------------------------------------- ##
28064 ## Report this to <http://www.openldap.org/its/> ##
28065 ## --------------------------------------------- ##
28066 _ASBOX
28067      ) | sed "s/^/$as_me: WARNING:     /" >&2
28068     ;;
28069 esac
28070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
28071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
28072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28073   echo $ECHO_N "(cached) $ECHO_C" >&6
28074 else
28075   eval "$as_ac_Header=\$ac_header_preproc"
28076 fi
28077 ac_res=`eval echo '${'$as_ac_Header'}'`
28078                { echo "$as_me:$LINENO: result: $ac_res" >&5
28079 echo "${ECHO_T}$ac_res" >&6; }
28080
28081 fi
28082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28083   cat >>confdefs.h <<_ACEOF
28084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28085 _ACEOF
28086
28087 fi
28088
28089 done
28090
28091 if test $ac_cv_header_db_h = yes; then
28092         { echo "$as_me:$LINENO: checking for Berkeley DB major version in db.h" >&5
28093 echo $ECHO_N "checking for Berkeley DB major version in db.h... $ECHO_C" >&6; }
28094 if test "${ol_cv_bdb_major+set}" = set; then
28095   echo $ECHO_N "(cached) $ECHO_C" >&6
28096 else
28097
28098         cat >conftest.$ac_ext <<_ACEOF
28099
28100 #include <db.h>
28101 #ifndef DB_VERSION_MAJOR
28102 #       define DB_VERSION_MAJOR 1
28103 #endif
28104 __db_version DB_VERSION_MAJOR
28105
28106 _ACEOF
28107         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28108         ol_cv_bdb_major=${3}
28109
28110 fi
28111 { echo "$as_me:$LINENO: result: $ol_cv_bdb_major" >&5
28112 echo "${ECHO_T}$ol_cv_bdb_major" >&6; }
28113 case $ol_cv_bdb_major in [1-9]*) : ;; *)
28114         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB major version in db.h" >&5
28115 echo "$as_me: error: Unknown Berkeley DB major version in db.h" >&2;}
28116    { (exit 1); exit 1; }; } ;;
28117 esac
28118
28119 { echo "$as_me:$LINENO: checking for Berkeley DB minor version in db.h" >&5
28120 echo $ECHO_N "checking for Berkeley DB minor version in db.h... $ECHO_C" >&6; }
28121 if test "${ol_cv_bdb_minor+set}" = set; then
28122   echo $ECHO_N "(cached) $ECHO_C" >&6
28123 else
28124
28125         cat >conftest.$ac_ext <<_ACEOF
28126
28127 #include <db.h>
28128 #ifndef DB_VERSION_MINOR
28129 #       define DB_VERSION_MINOR 0
28130 #endif
28131 __db_version DB_VERSION_MINOR
28132
28133 _ACEOF
28134         set X `eval "$ac_cpp conftest.$ac_ext" | $EGREP __db_version` none none
28135         ol_cv_bdb_minor=${3}
28136
28137 fi
28138 { echo "$as_me:$LINENO: result: $ol_cv_bdb_minor" >&5
28139 echo "${ECHO_T}$ol_cv_bdb_minor" >&6; }
28140 case $ol_cv_bdb_minor in [0-9]*) : ;; *)
28141         { { echo "$as_me:$LINENO: error: Unknown Berkeley DB minor version in db.h" >&5
28142 echo "$as_me: error: Unknown Berkeley DB minor version in db.h" >&2;}
28143    { (exit 1); exit 1; }; } ;;
28144 esac
28145
28146         { echo "$as_me:$LINENO: checking if Berkeley DB version supported by BDB/HDB backends" >&5
28147 echo $ECHO_N "checking if Berkeley DB version supported by BDB/HDB backends... $ECHO_C" >&6; }
28148 if test "${ol_cv_bdb_compat+set}" = set; then
28149   echo $ECHO_N "(cached) $ECHO_C" >&6
28150 else
28151
28152         cat >conftest.$ac_ext <<_ACEOF
28153 /* confdefs.h.  */
28154 _ACEOF
28155 cat confdefs.h >>conftest.$ac_ext
28156 cat >>conftest.$ac_ext <<_ACEOF
28157 /* end confdefs.h.  */
28158
28159 #include <db.h>
28160
28161  /* this check could be improved */
28162 #ifndef DB_VERSION_MAJOR
28163 #       define DB_VERSION_MAJOR 1
28164 #endif
28165 #ifndef DB_VERSION_MINOR
28166 #       define DB_VERSION_MINOR 0
28167 #endif
28168
28169 #define DB_VERSION_MM   ((DB_VERSION_MAJOR<<8)|DB_VERSION_MINOR)
28170
28171 /* require 4.4 or later */
28172 #if DB_VERSION_MM >= 0x0404
28173         __db_version_compat
28174 #endif
28175
28176 _ACEOF
28177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28178   $EGREP "__db_version_compat" >/dev/null 2>&1; then
28179   ol_cv_bdb_compat=yes
28180 else
28181   ol_cv_bdb_compat=no
28182 fi
28183 rm -f conftest*
28184
28185 fi
28186 { echo "$as_me:$LINENO: result: $ol_cv_bdb_compat" >&5
28187 echo "${ECHO_T}$ol_cv_bdb_compat" >&6; }
28188
28189
28190         if test $ol_cv_bdb_compat != yes ; then
28191                 { { echo "$as_me:$LINENO: error: BerkeleyDB version incompatible with BDB/HDB backends" >&5
28192 echo "$as_me: error: BerkeleyDB version incompatible with BDB/HDB backends" >&2;}
28193    { (exit 1); exit 1; }; }
28194         fi
28195
28196         ol_cv_lib_db=no
28197
28198 if test $ol_cv_bdb_major = 5 ; then
28199         if test $ol_cv_lib_db = no ; then
28200         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)" >&5
28201 echo $ECHO_N "checking for Berkeley DB link (-ldb-5.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28202 if test "${ol_cv_db_db_5_dot_m+set}" = set; then
28203   echo $ECHO_N "(cached) $ECHO_C" >&6
28204 else
28205
28206         ol_DB_LIB=-ldb-5.$ol_cv_bdb_minor
28207         ol_LIBS=$LIBS
28208         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28209
28210         cat >conftest.$ac_ext <<_ACEOF
28211 /* confdefs.h.  */
28212 _ACEOF
28213 cat confdefs.h >>conftest.$ac_ext
28214 cat >>conftest.$ac_ext <<_ACEOF
28215 /* end confdefs.h.  */
28216
28217 #ifdef HAVE_DB_185_H
28218 # include <db_185.h>
28219 #else
28220 # include <db.h>
28221 #endif
28222
28223 #ifndef DB_VERSION_MAJOR
28224 # define DB_VERSION_MAJOR 1
28225 #endif
28226
28227 #ifndef NULL
28228 #define NULL ((void*)0)
28229 #endif
28230
28231 int
28232 main ()
28233 {
28234
28235 #if DB_VERSION_MAJOR > 2
28236         db_env_create( NULL, 0 );
28237 #elif DB_VERSION_MAJOR > 1
28238         db_appexit( NULL );
28239 #else
28240         (void) dbopen( NULL, 0, 0, 0, NULL);
28241 #endif
28242
28243   ;
28244   return 0;
28245 }
28246 _ACEOF
28247 rm -f conftest.$ac_objext conftest$ac_exeext
28248 if { (ac_try="$ac_link"
28249 case "(($ac_try" in
28250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28251   *) ac_try_echo=$ac_try;;
28252 esac
28253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28254   (eval "$ac_link") 2>conftest.er1
28255   ac_status=$?
28256   grep -v '^ *+' conftest.er1 >conftest.err
28257   rm -f conftest.er1
28258   cat conftest.err >&5
28259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28260   (exit $ac_status); } && {
28261          test -z "$ac_c_werror_flag" ||
28262          test ! -s conftest.err
28263        } && test -s conftest$ac_exeext &&
28264        $as_test_x conftest$ac_exeext; then
28265   ol_cv_db_db_5_dot_m=yes
28266 else
28267   echo "$as_me: failed program was:" >&5
28268 sed 's/^/| /' conftest.$ac_ext >&5
28269
28270         ol_cv_db_db_5_dot_m=no
28271 fi
28272
28273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28274       conftest$ac_exeext conftest.$ac_ext
28275
28276         LIBS="$ol_LIBS"
28277
28278 fi
28279 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_dot_m" >&5
28280 echo "${ECHO_T}$ol_cv_db_db_5_dot_m" >&6; }
28281
28282         if test $ol_cv_db_db_5_dot_m = yes ; then
28283                 ol_cv_lib_db=-ldb-5.$ol_cv_bdb_minor
28284         fi
28285 fi
28286
28287         if test $ol_cv_lib_db = no ; then
28288         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)" >&5
28289 echo $ECHO_N "checking for Berkeley DB link (-ldb5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28290 if test "${ol_cv_db_db5m+set}" = set; then
28291   echo $ECHO_N "(cached) $ECHO_C" >&6
28292 else
28293
28294         ol_DB_LIB=-ldb5$ol_cv_bdb_minor
28295         ol_LIBS=$LIBS
28296         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28297
28298         cat >conftest.$ac_ext <<_ACEOF
28299 /* confdefs.h.  */
28300 _ACEOF
28301 cat confdefs.h >>conftest.$ac_ext
28302 cat >>conftest.$ac_ext <<_ACEOF
28303 /* end confdefs.h.  */
28304
28305 #ifdef HAVE_DB_185_H
28306 # include <db_185.h>
28307 #else
28308 # include <db.h>
28309 #endif
28310
28311 #ifndef DB_VERSION_MAJOR
28312 # define DB_VERSION_MAJOR 1
28313 #endif
28314
28315 #ifndef NULL
28316 #define NULL ((void*)0)
28317 #endif
28318
28319 int
28320 main ()
28321 {
28322
28323 #if DB_VERSION_MAJOR > 2
28324         db_env_create( NULL, 0 );
28325 #elif DB_VERSION_MAJOR > 1
28326         db_appexit( NULL );
28327 #else
28328         (void) dbopen( NULL, 0, 0, 0, NULL);
28329 #endif
28330
28331   ;
28332   return 0;
28333 }
28334 _ACEOF
28335 rm -f conftest.$ac_objext conftest$ac_exeext
28336 if { (ac_try="$ac_link"
28337 case "(($ac_try" in
28338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28339   *) ac_try_echo=$ac_try;;
28340 esac
28341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28342   (eval "$ac_link") 2>conftest.er1
28343   ac_status=$?
28344   grep -v '^ *+' conftest.er1 >conftest.err
28345   rm -f conftest.er1
28346   cat conftest.err >&5
28347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28348   (exit $ac_status); } && {
28349          test -z "$ac_c_werror_flag" ||
28350          test ! -s conftest.err
28351        } && test -s conftest$ac_exeext &&
28352        $as_test_x conftest$ac_exeext; then
28353   ol_cv_db_db5m=yes
28354 else
28355   echo "$as_me: failed program was:" >&5
28356 sed 's/^/| /' conftest.$ac_ext >&5
28357
28358         ol_cv_db_db5m=no
28359 fi
28360
28361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28362       conftest$ac_exeext conftest.$ac_ext
28363
28364         LIBS="$ol_LIBS"
28365
28366 fi
28367 { echo "$as_me:$LINENO: result: $ol_cv_db_db5m" >&5
28368 echo "${ECHO_T}$ol_cv_db_db5m" >&6; }
28369
28370         if test $ol_cv_db_db5m = yes ; then
28371                 ol_cv_lib_db=-ldb5$ol_cv_bdb_minor
28372         fi
28373 fi
28374
28375         if test $ol_cv_lib_db = no ; then
28376         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)" >&5
28377 echo $ECHO_N "checking for Berkeley DB link (-ldb-5$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28378 if test "${ol_cv_db_db_5m+set}" = set; then
28379   echo $ECHO_N "(cached) $ECHO_C" >&6
28380 else
28381
28382         ol_DB_LIB=-ldb-5$ol_cv_bdb_minor
28383         ol_LIBS=$LIBS
28384         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28385
28386         cat >conftest.$ac_ext <<_ACEOF
28387 /* confdefs.h.  */
28388 _ACEOF
28389 cat confdefs.h >>conftest.$ac_ext
28390 cat >>conftest.$ac_ext <<_ACEOF
28391 /* end confdefs.h.  */
28392
28393 #ifdef HAVE_DB_185_H
28394 # include <db_185.h>
28395 #else
28396 # include <db.h>
28397 #endif
28398
28399 #ifndef DB_VERSION_MAJOR
28400 # define DB_VERSION_MAJOR 1
28401 #endif
28402
28403 #ifndef NULL
28404 #define NULL ((void*)0)
28405 #endif
28406
28407 int
28408 main ()
28409 {
28410
28411 #if DB_VERSION_MAJOR > 2
28412         db_env_create( NULL, 0 );
28413 #elif DB_VERSION_MAJOR > 1
28414         db_appexit( NULL );
28415 #else
28416         (void) dbopen( NULL, 0, 0, 0, NULL);
28417 #endif
28418
28419   ;
28420   return 0;
28421 }
28422 _ACEOF
28423 rm -f conftest.$ac_objext conftest$ac_exeext
28424 if { (ac_try="$ac_link"
28425 case "(($ac_try" in
28426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28427   *) ac_try_echo=$ac_try;;
28428 esac
28429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28430   (eval "$ac_link") 2>conftest.er1
28431   ac_status=$?
28432   grep -v '^ *+' conftest.er1 >conftest.err
28433   rm -f conftest.er1
28434   cat conftest.err >&5
28435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28436   (exit $ac_status); } && {
28437          test -z "$ac_c_werror_flag" ||
28438          test ! -s conftest.err
28439        } && test -s conftest$ac_exeext &&
28440        $as_test_x conftest$ac_exeext; then
28441   ol_cv_db_db_5m=yes
28442 else
28443   echo "$as_me: failed program was:" >&5
28444 sed 's/^/| /' conftest.$ac_ext >&5
28445
28446         ol_cv_db_db_5m=no
28447 fi
28448
28449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28450       conftest$ac_exeext conftest.$ac_ext
28451
28452         LIBS="$ol_LIBS"
28453
28454 fi
28455 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5m" >&5
28456 echo "${ECHO_T}$ol_cv_db_db_5m" >&6; }
28457
28458         if test $ol_cv_db_db_5m = yes ; then
28459                 ol_cv_lib_db=-ldb-5$ol_cv_bdb_minor
28460         fi
28461 fi
28462
28463         if test $ol_cv_lib_db = no ; then
28464         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)" >&5
28465 echo $ECHO_N "checking for Berkeley DB link (-ldb-5-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28466 if test "${ol_cv_db_db_5_m+set}" = set; then
28467   echo $ECHO_N "(cached) $ECHO_C" >&6
28468 else
28469
28470         ol_DB_LIB=-ldb-5-$ol_cv_bdb_minor
28471         ol_LIBS=$LIBS
28472         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28473
28474         cat >conftest.$ac_ext <<_ACEOF
28475 /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480
28481 #ifdef HAVE_DB_185_H
28482 # include <db_185.h>
28483 #else
28484 # include <db.h>
28485 #endif
28486
28487 #ifndef DB_VERSION_MAJOR
28488 # define DB_VERSION_MAJOR 1
28489 #endif
28490
28491 #ifndef NULL
28492 #define NULL ((void*)0)
28493 #endif
28494
28495 int
28496 main ()
28497 {
28498
28499 #if DB_VERSION_MAJOR > 2
28500         db_env_create( NULL, 0 );
28501 #elif DB_VERSION_MAJOR > 1
28502         db_appexit( NULL );
28503 #else
28504         (void) dbopen( NULL, 0, 0, 0, NULL);
28505 #endif
28506
28507   ;
28508   return 0;
28509 }
28510 _ACEOF
28511 rm -f conftest.$ac_objext conftest$ac_exeext
28512 if { (ac_try="$ac_link"
28513 case "(($ac_try" in
28514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28515   *) ac_try_echo=$ac_try;;
28516 esac
28517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28518   (eval "$ac_link") 2>conftest.er1
28519   ac_status=$?
28520   grep -v '^ *+' conftest.er1 >conftest.err
28521   rm -f conftest.er1
28522   cat conftest.err >&5
28523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28524   (exit $ac_status); } && {
28525          test -z "$ac_c_werror_flag" ||
28526          test ! -s conftest.err
28527        } && test -s conftest$ac_exeext &&
28528        $as_test_x conftest$ac_exeext; then
28529   ol_cv_db_db_5_m=yes
28530 else
28531   echo "$as_me: failed program was:" >&5
28532 sed 's/^/| /' conftest.$ac_ext >&5
28533
28534         ol_cv_db_db_5_m=no
28535 fi
28536
28537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28538       conftest$ac_exeext conftest.$ac_ext
28539
28540         LIBS="$ol_LIBS"
28541
28542 fi
28543 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5_m" >&5
28544 echo "${ECHO_T}$ol_cv_db_db_5_m" >&6; }
28545
28546         if test $ol_cv_db_db_5_m = yes ; then
28547                 ol_cv_lib_db=-ldb-5-$ol_cv_bdb_minor
28548         fi
28549 fi
28550
28551         if test $ol_cv_lib_db = no ; then
28552         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-5)" >&5
28553 echo $ECHO_N "checking for Berkeley DB link (-ldb-5)... $ECHO_C" >&6; }
28554 if test "${ol_cv_db_db_5+set}" = set; then
28555   echo $ECHO_N "(cached) $ECHO_C" >&6
28556 else
28557
28558         ol_DB_LIB=-ldb-5
28559         ol_LIBS=$LIBS
28560         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28561
28562         cat >conftest.$ac_ext <<_ACEOF
28563 /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569 #ifdef HAVE_DB_185_H
28570 # include <db_185.h>
28571 #else
28572 # include <db.h>
28573 #endif
28574
28575 #ifndef DB_VERSION_MAJOR
28576 # define DB_VERSION_MAJOR 1
28577 #endif
28578
28579 #ifndef NULL
28580 #define NULL ((void*)0)
28581 #endif
28582
28583 int
28584 main ()
28585 {
28586
28587 #if DB_VERSION_MAJOR > 2
28588         db_env_create( NULL, 0 );
28589 #elif DB_VERSION_MAJOR > 1
28590         db_appexit( NULL );
28591 #else
28592         (void) dbopen( NULL, 0, 0, 0, NULL);
28593 #endif
28594
28595   ;
28596   return 0;
28597 }
28598 _ACEOF
28599 rm -f conftest.$ac_objext conftest$ac_exeext
28600 if { (ac_try="$ac_link"
28601 case "(($ac_try" in
28602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28603   *) ac_try_echo=$ac_try;;
28604 esac
28605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28606   (eval "$ac_link") 2>conftest.er1
28607   ac_status=$?
28608   grep -v '^ *+' conftest.er1 >conftest.err
28609   rm -f conftest.er1
28610   cat conftest.err >&5
28611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28612   (exit $ac_status); } && {
28613          test -z "$ac_c_werror_flag" ||
28614          test ! -s conftest.err
28615        } && test -s conftest$ac_exeext &&
28616        $as_test_x conftest$ac_exeext; then
28617   ol_cv_db_db_5=yes
28618 else
28619   echo "$as_me: failed program was:" >&5
28620 sed 's/^/| /' conftest.$ac_ext >&5
28621
28622         ol_cv_db_db_5=no
28623 fi
28624
28625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28626       conftest$ac_exeext conftest.$ac_ext
28627
28628         LIBS="$ol_LIBS"
28629
28630 fi
28631 { echo "$as_me:$LINENO: result: $ol_cv_db_db_5" >&5
28632 echo "${ECHO_T}$ol_cv_db_db_5" >&6; }
28633
28634         if test $ol_cv_db_db_5 = yes ; then
28635                 ol_cv_lib_db=-ldb-5
28636         fi
28637 fi
28638
28639         if test $ol_cv_lib_db = no ; then
28640         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb5)" >&5
28641 echo $ECHO_N "checking for Berkeley DB link (-ldb5)... $ECHO_C" >&6; }
28642 if test "${ol_cv_db_db5+set}" = set; then
28643   echo $ECHO_N "(cached) $ECHO_C" >&6
28644 else
28645
28646         ol_DB_LIB=-ldb5
28647         ol_LIBS=$LIBS
28648         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28649
28650         cat >conftest.$ac_ext <<_ACEOF
28651 /* confdefs.h.  */
28652 _ACEOF
28653 cat confdefs.h >>conftest.$ac_ext
28654 cat >>conftest.$ac_ext <<_ACEOF
28655 /* end confdefs.h.  */
28656
28657 #ifdef HAVE_DB_185_H
28658 # include <db_185.h>
28659 #else
28660 # include <db.h>
28661 #endif
28662
28663 #ifndef DB_VERSION_MAJOR
28664 # define DB_VERSION_MAJOR 1
28665 #endif
28666
28667 #ifndef NULL
28668 #define NULL ((void*)0)
28669 #endif
28670
28671 int
28672 main ()
28673 {
28674
28675 #if DB_VERSION_MAJOR > 2
28676         db_env_create( NULL, 0 );
28677 #elif DB_VERSION_MAJOR > 1
28678         db_appexit( NULL );
28679 #else
28680         (void) dbopen( NULL, 0, 0, 0, NULL);
28681 #endif
28682
28683   ;
28684   return 0;
28685 }
28686 _ACEOF
28687 rm -f conftest.$ac_objext conftest$ac_exeext
28688 if { (ac_try="$ac_link"
28689 case "(($ac_try" in
28690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28691   *) ac_try_echo=$ac_try;;
28692 esac
28693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28694   (eval "$ac_link") 2>conftest.er1
28695   ac_status=$?
28696   grep -v '^ *+' conftest.er1 >conftest.err
28697   rm -f conftest.er1
28698   cat conftest.err >&5
28699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28700   (exit $ac_status); } && {
28701          test -z "$ac_c_werror_flag" ||
28702          test ! -s conftest.err
28703        } && test -s conftest$ac_exeext &&
28704        $as_test_x conftest$ac_exeext; then
28705   ol_cv_db_db5=yes
28706 else
28707   echo "$as_me: failed program was:" >&5
28708 sed 's/^/| /' conftest.$ac_ext >&5
28709
28710         ol_cv_db_db5=no
28711 fi
28712
28713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28714       conftest$ac_exeext conftest.$ac_ext
28715
28716         LIBS="$ol_LIBS"
28717
28718 fi
28719 { echo "$as_me:$LINENO: result: $ol_cv_db_db5" >&5
28720 echo "${ECHO_T}$ol_cv_db_db5" >&6; }
28721
28722         if test $ol_cv_db_db5 = yes ; then
28723                 ol_cv_lib_db=-ldb5
28724         fi
28725 fi
28726
28727 elif test $ol_cv_bdb_major = 4 ; then
28728         if test $ol_cv_lib_db = no ; then
28729         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)" >&5
28730 echo $ECHO_N "checking for Berkeley DB link (-ldb-4.$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28731 if test "${ol_cv_db_db_4_dot_m+set}" = set; then
28732   echo $ECHO_N "(cached) $ECHO_C" >&6
28733 else
28734
28735         ol_DB_LIB=-ldb-4.$ol_cv_bdb_minor
28736         ol_LIBS=$LIBS
28737         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
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 #ifdef HAVE_DB_185_H
28747 # include <db_185.h>
28748 #else
28749 # include <db.h>
28750 #endif
28751
28752 #ifndef DB_VERSION_MAJOR
28753 # define DB_VERSION_MAJOR 1
28754 #endif
28755
28756 #ifndef NULL
28757 #define NULL ((void*)0)
28758 #endif
28759
28760 int
28761 main ()
28762 {
28763
28764 #if DB_VERSION_MAJOR > 2
28765         db_env_create( NULL, 0 );
28766 #elif DB_VERSION_MAJOR > 1
28767         db_appexit( NULL );
28768 #else
28769         (void) dbopen( NULL, 0, 0, 0, NULL);
28770 #endif
28771
28772   ;
28773   return 0;
28774 }
28775 _ACEOF
28776 rm -f conftest.$ac_objext conftest$ac_exeext
28777 if { (ac_try="$ac_link"
28778 case "(($ac_try" in
28779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780   *) ac_try_echo=$ac_try;;
28781 esac
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783   (eval "$ac_link") 2>conftest.er1
28784   ac_status=$?
28785   grep -v '^ *+' conftest.er1 >conftest.err
28786   rm -f conftest.er1
28787   cat conftest.err >&5
28788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28789   (exit $ac_status); } && {
28790          test -z "$ac_c_werror_flag" ||
28791          test ! -s conftest.err
28792        } && test -s conftest$ac_exeext &&
28793        $as_test_x conftest$ac_exeext; then
28794   ol_cv_db_db_4_dot_m=yes
28795 else
28796   echo "$as_me: failed program was:" >&5
28797 sed 's/^/| /' conftest.$ac_ext >&5
28798
28799         ol_cv_db_db_4_dot_m=no
28800 fi
28801
28802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28803       conftest$ac_exeext conftest.$ac_ext
28804
28805         LIBS="$ol_LIBS"
28806
28807 fi
28808 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_dot_m" >&5
28809 echo "${ECHO_T}$ol_cv_db_db_4_dot_m" >&6; }
28810
28811         if test $ol_cv_db_db_4_dot_m = yes ; then
28812                 ol_cv_lib_db=-ldb-4.$ol_cv_bdb_minor
28813         fi
28814 fi
28815
28816         if test $ol_cv_lib_db = no ; then
28817         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)" >&5
28818 echo $ECHO_N "checking for Berkeley DB link (-ldb4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28819 if test "${ol_cv_db_db4m+set}" = set; then
28820   echo $ECHO_N "(cached) $ECHO_C" >&6
28821 else
28822
28823         ol_DB_LIB=-ldb4$ol_cv_bdb_minor
28824         ol_LIBS=$LIBS
28825         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28826
28827         cat >conftest.$ac_ext <<_ACEOF
28828 /* confdefs.h.  */
28829 _ACEOF
28830 cat confdefs.h >>conftest.$ac_ext
28831 cat >>conftest.$ac_ext <<_ACEOF
28832 /* end confdefs.h.  */
28833
28834 #ifdef HAVE_DB_185_H
28835 # include <db_185.h>
28836 #else
28837 # include <db.h>
28838 #endif
28839
28840 #ifndef DB_VERSION_MAJOR
28841 # define DB_VERSION_MAJOR 1
28842 #endif
28843
28844 #ifndef NULL
28845 #define NULL ((void*)0)
28846 #endif
28847
28848 int
28849 main ()
28850 {
28851
28852 #if DB_VERSION_MAJOR > 2
28853         db_env_create( NULL, 0 );
28854 #elif DB_VERSION_MAJOR > 1
28855         db_appexit( NULL );
28856 #else
28857         (void) dbopen( NULL, 0, 0, 0, NULL);
28858 #endif
28859
28860   ;
28861   return 0;
28862 }
28863 _ACEOF
28864 rm -f conftest.$ac_objext conftest$ac_exeext
28865 if { (ac_try="$ac_link"
28866 case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871   (eval "$ac_link") 2>conftest.er1
28872   ac_status=$?
28873   grep -v '^ *+' conftest.er1 >conftest.err
28874   rm -f conftest.er1
28875   cat conftest.err >&5
28876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28877   (exit $ac_status); } && {
28878          test -z "$ac_c_werror_flag" ||
28879          test ! -s conftest.err
28880        } && test -s conftest$ac_exeext &&
28881        $as_test_x conftest$ac_exeext; then
28882   ol_cv_db_db4m=yes
28883 else
28884   echo "$as_me: failed program was:" >&5
28885 sed 's/^/| /' conftest.$ac_ext >&5
28886
28887         ol_cv_db_db4m=no
28888 fi
28889
28890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28891       conftest$ac_exeext conftest.$ac_ext
28892
28893         LIBS="$ol_LIBS"
28894
28895 fi
28896 { echo "$as_me:$LINENO: result: $ol_cv_db_db4m" >&5
28897 echo "${ECHO_T}$ol_cv_db_db4m" >&6; }
28898
28899         if test $ol_cv_db_db4m = yes ; then
28900                 ol_cv_lib_db=-ldb4$ol_cv_bdb_minor
28901         fi
28902 fi
28903
28904         if test $ol_cv_lib_db = no ; then
28905         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)" >&5
28906 echo $ECHO_N "checking for Berkeley DB link (-ldb-4$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28907 if test "${ol_cv_db_db_4m+set}" = set; then
28908   echo $ECHO_N "(cached) $ECHO_C" >&6
28909 else
28910
28911         ol_DB_LIB=-ldb-4$ol_cv_bdb_minor
28912         ol_LIBS=$LIBS
28913         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
28914
28915         cat >conftest.$ac_ext <<_ACEOF
28916 /* confdefs.h.  */
28917 _ACEOF
28918 cat confdefs.h >>conftest.$ac_ext
28919 cat >>conftest.$ac_ext <<_ACEOF
28920 /* end confdefs.h.  */
28921
28922 #ifdef HAVE_DB_185_H
28923 # include <db_185.h>
28924 #else
28925 # include <db.h>
28926 #endif
28927
28928 #ifndef DB_VERSION_MAJOR
28929 # define DB_VERSION_MAJOR 1
28930 #endif
28931
28932 #ifndef NULL
28933 #define NULL ((void*)0)
28934 #endif
28935
28936 int
28937 main ()
28938 {
28939
28940 #if DB_VERSION_MAJOR > 2
28941         db_env_create( NULL, 0 );
28942 #elif DB_VERSION_MAJOR > 1
28943         db_appexit( NULL );
28944 #else
28945         (void) dbopen( NULL, 0, 0, 0, NULL);
28946 #endif
28947
28948   ;
28949   return 0;
28950 }
28951 _ACEOF
28952 rm -f conftest.$ac_objext conftest$ac_exeext
28953 if { (ac_try="$ac_link"
28954 case "(($ac_try" in
28955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28956   *) ac_try_echo=$ac_try;;
28957 esac
28958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28959   (eval "$ac_link") 2>conftest.er1
28960   ac_status=$?
28961   grep -v '^ *+' conftest.er1 >conftest.err
28962   rm -f conftest.er1
28963   cat conftest.err >&5
28964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28965   (exit $ac_status); } && {
28966          test -z "$ac_c_werror_flag" ||
28967          test ! -s conftest.err
28968        } && test -s conftest$ac_exeext &&
28969        $as_test_x conftest$ac_exeext; then
28970   ol_cv_db_db_4m=yes
28971 else
28972   echo "$as_me: failed program was:" >&5
28973 sed 's/^/| /' conftest.$ac_ext >&5
28974
28975         ol_cv_db_db_4m=no
28976 fi
28977
28978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28979       conftest$ac_exeext conftest.$ac_ext
28980
28981         LIBS="$ol_LIBS"
28982
28983 fi
28984 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4m" >&5
28985 echo "${ECHO_T}$ol_cv_db_db_4m" >&6; }
28986
28987         if test $ol_cv_db_db_4m = yes ; then
28988                 ol_cv_lib_db=-ldb-4$ol_cv_bdb_minor
28989         fi
28990 fi
28991
28992         if test $ol_cv_lib_db = no ; then
28993         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)" >&5
28994 echo $ECHO_N "checking for Berkeley DB link (-ldb-4-$ol_cv_bdb_minor)... $ECHO_C" >&6; }
28995 if test "${ol_cv_db_db_4_m+set}" = set; then
28996   echo $ECHO_N "(cached) $ECHO_C" >&6
28997 else
28998
28999         ol_DB_LIB=-ldb-4-$ol_cv_bdb_minor
29000         ol_LIBS=$LIBS
29001         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29002
29003         cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009
29010 #ifdef HAVE_DB_185_H
29011 # include <db_185.h>
29012 #else
29013 # include <db.h>
29014 #endif
29015
29016 #ifndef DB_VERSION_MAJOR
29017 # define DB_VERSION_MAJOR 1
29018 #endif
29019
29020 #ifndef NULL
29021 #define NULL ((void*)0)
29022 #endif
29023
29024 int
29025 main ()
29026 {
29027
29028 #if DB_VERSION_MAJOR > 2
29029         db_env_create( NULL, 0 );
29030 #elif DB_VERSION_MAJOR > 1
29031         db_appexit( NULL );
29032 #else
29033         (void) dbopen( NULL, 0, 0, 0, NULL);
29034 #endif
29035
29036   ;
29037   return 0;
29038 }
29039 _ACEOF
29040 rm -f conftest.$ac_objext conftest$ac_exeext
29041 if { (ac_try="$ac_link"
29042 case "(($ac_try" in
29043   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29044   *) ac_try_echo=$ac_try;;
29045 esac
29046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29047   (eval "$ac_link") 2>conftest.er1
29048   ac_status=$?
29049   grep -v '^ *+' conftest.er1 >conftest.err
29050   rm -f conftest.er1
29051   cat conftest.err >&5
29052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29053   (exit $ac_status); } && {
29054          test -z "$ac_c_werror_flag" ||
29055          test ! -s conftest.err
29056        } && test -s conftest$ac_exeext &&
29057        $as_test_x conftest$ac_exeext; then
29058   ol_cv_db_db_4_m=yes
29059 else
29060   echo "$as_me: failed program was:" >&5
29061 sed 's/^/| /' conftest.$ac_ext >&5
29062
29063         ol_cv_db_db_4_m=no
29064 fi
29065
29066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29067       conftest$ac_exeext conftest.$ac_ext
29068
29069         LIBS="$ol_LIBS"
29070
29071 fi
29072 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4_m" >&5
29073 echo "${ECHO_T}$ol_cv_db_db_4_m" >&6; }
29074
29075         if test $ol_cv_db_db_4_m = yes ; then
29076                 ol_cv_lib_db=-ldb-4-$ol_cv_bdb_minor
29077         fi
29078 fi
29079
29080         if test $ol_cv_lib_db = no ; then
29081         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb-4)" >&5
29082 echo $ECHO_N "checking for Berkeley DB link (-ldb-4)... $ECHO_C" >&6; }
29083 if test "${ol_cv_db_db_4+set}" = set; then
29084   echo $ECHO_N "(cached) $ECHO_C" >&6
29085 else
29086
29087         ol_DB_LIB=-ldb-4
29088         ol_LIBS=$LIBS
29089         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29090
29091         cat >conftest.$ac_ext <<_ACEOF
29092 /* confdefs.h.  */
29093 _ACEOF
29094 cat confdefs.h >>conftest.$ac_ext
29095 cat >>conftest.$ac_ext <<_ACEOF
29096 /* end confdefs.h.  */
29097
29098 #ifdef HAVE_DB_185_H
29099 # include <db_185.h>
29100 #else
29101 # include <db.h>
29102 #endif
29103
29104 #ifndef DB_VERSION_MAJOR
29105 # define DB_VERSION_MAJOR 1
29106 #endif
29107
29108 #ifndef NULL
29109 #define NULL ((void*)0)
29110 #endif
29111
29112 int
29113 main ()
29114 {
29115
29116 #if DB_VERSION_MAJOR > 2
29117         db_env_create( NULL, 0 );
29118 #elif DB_VERSION_MAJOR > 1
29119         db_appexit( NULL );
29120 #else
29121         (void) dbopen( NULL, 0, 0, 0, NULL);
29122 #endif
29123
29124   ;
29125   return 0;
29126 }
29127 _ACEOF
29128 rm -f conftest.$ac_objext conftest$ac_exeext
29129 if { (ac_try="$ac_link"
29130 case "(($ac_try" in
29131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29132   *) ac_try_echo=$ac_try;;
29133 esac
29134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29135   (eval "$ac_link") 2>conftest.er1
29136   ac_status=$?
29137   grep -v '^ *+' conftest.er1 >conftest.err
29138   rm -f conftest.er1
29139   cat conftest.err >&5
29140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141   (exit $ac_status); } && {
29142          test -z "$ac_c_werror_flag" ||
29143          test ! -s conftest.err
29144        } && test -s conftest$ac_exeext &&
29145        $as_test_x conftest$ac_exeext; then
29146   ol_cv_db_db_4=yes
29147 else
29148   echo "$as_me: failed program was:" >&5
29149 sed 's/^/| /' conftest.$ac_ext >&5
29150
29151         ol_cv_db_db_4=no
29152 fi
29153
29154 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29155       conftest$ac_exeext conftest.$ac_ext
29156
29157         LIBS="$ol_LIBS"
29158
29159 fi
29160 { echo "$as_me:$LINENO: result: $ol_cv_db_db_4" >&5
29161 echo "${ECHO_T}$ol_cv_db_db_4" >&6; }
29162
29163         if test $ol_cv_db_db_4 = yes ; then
29164                 ol_cv_lib_db=-ldb-4
29165         fi
29166 fi
29167
29168         if test $ol_cv_lib_db = no ; then
29169         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb4)" >&5
29170 echo $ECHO_N "checking for Berkeley DB link (-ldb4)... $ECHO_C" >&6; }
29171 if test "${ol_cv_db_db4+set}" = set; then
29172   echo $ECHO_N "(cached) $ECHO_C" >&6
29173 else
29174
29175         ol_DB_LIB=-ldb4
29176         ol_LIBS=$LIBS
29177         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29178
29179         cat >conftest.$ac_ext <<_ACEOF
29180 /* confdefs.h.  */
29181 _ACEOF
29182 cat confdefs.h >>conftest.$ac_ext
29183 cat >>conftest.$ac_ext <<_ACEOF
29184 /* end confdefs.h.  */
29185
29186 #ifdef HAVE_DB_185_H
29187 # include <db_185.h>
29188 #else
29189 # include <db.h>
29190 #endif
29191
29192 #ifndef DB_VERSION_MAJOR
29193 # define DB_VERSION_MAJOR 1
29194 #endif
29195
29196 #ifndef NULL
29197 #define NULL ((void*)0)
29198 #endif
29199
29200 int
29201 main ()
29202 {
29203
29204 #if DB_VERSION_MAJOR > 2
29205         db_env_create( NULL, 0 );
29206 #elif DB_VERSION_MAJOR > 1
29207         db_appexit( NULL );
29208 #else
29209         (void) dbopen( NULL, 0, 0, 0, NULL);
29210 #endif
29211
29212   ;
29213   return 0;
29214 }
29215 _ACEOF
29216 rm -f conftest.$ac_objext conftest$ac_exeext
29217 if { (ac_try="$ac_link"
29218 case "(($ac_try" in
29219   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29220   *) ac_try_echo=$ac_try;;
29221 esac
29222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29223   (eval "$ac_link") 2>conftest.er1
29224   ac_status=$?
29225   grep -v '^ *+' conftest.er1 >conftest.err
29226   rm -f conftest.er1
29227   cat conftest.err >&5
29228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29229   (exit $ac_status); } && {
29230          test -z "$ac_c_werror_flag" ||
29231          test ! -s conftest.err
29232        } && test -s conftest$ac_exeext &&
29233        $as_test_x conftest$ac_exeext; then
29234   ol_cv_db_db4=yes
29235 else
29236   echo "$as_me: failed program was:" >&5
29237 sed 's/^/| /' conftest.$ac_ext >&5
29238
29239         ol_cv_db_db4=no
29240 fi
29241
29242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29243       conftest$ac_exeext conftest.$ac_ext
29244
29245         LIBS="$ol_LIBS"
29246
29247 fi
29248 { echo "$as_me:$LINENO: result: $ol_cv_db_db4" >&5
29249 echo "${ECHO_T}$ol_cv_db_db4" >&6; }
29250
29251         if test $ol_cv_db_db4 = yes ; then
29252                 ol_cv_lib_db=-ldb4
29253         fi
29254 fi
29255
29256 fi
29257 if test $ol_cv_lib_db = no ; then
29258         { echo "$as_me:$LINENO: checking for Berkeley DB link (-ldb)" >&5
29259 echo $ECHO_N "checking for Berkeley DB link (-ldb)... $ECHO_C" >&6; }
29260 if test "${ol_cv_db_db+set}" = set; then
29261   echo $ECHO_N "(cached) $ECHO_C" >&6
29262 else
29263
29264         ol_DB_LIB=-ldb
29265         ol_LIBS=$LIBS
29266         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29267
29268         cat >conftest.$ac_ext <<_ACEOF
29269 /* confdefs.h.  */
29270 _ACEOF
29271 cat confdefs.h >>conftest.$ac_ext
29272 cat >>conftest.$ac_ext <<_ACEOF
29273 /* end confdefs.h.  */
29274
29275 #ifdef HAVE_DB_185_H
29276 # include <db_185.h>
29277 #else
29278 # include <db.h>
29279 #endif
29280
29281 #ifndef DB_VERSION_MAJOR
29282 # define DB_VERSION_MAJOR 1
29283 #endif
29284
29285 #ifndef NULL
29286 #define NULL ((void*)0)
29287 #endif
29288
29289 int
29290 main ()
29291 {
29292
29293 #if DB_VERSION_MAJOR > 2
29294         db_env_create( NULL, 0 );
29295 #elif DB_VERSION_MAJOR > 1
29296         db_appexit( NULL );
29297 #else
29298         (void) dbopen( NULL, 0, 0, 0, NULL);
29299 #endif
29300
29301   ;
29302   return 0;
29303 }
29304 _ACEOF
29305 rm -f conftest.$ac_objext conftest$ac_exeext
29306 if { (ac_try="$ac_link"
29307 case "(($ac_try" in
29308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29309   *) ac_try_echo=$ac_try;;
29310 esac
29311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29312   (eval "$ac_link") 2>conftest.er1
29313   ac_status=$?
29314   grep -v '^ *+' conftest.er1 >conftest.err
29315   rm -f conftest.er1
29316   cat conftest.err >&5
29317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29318   (exit $ac_status); } && {
29319          test -z "$ac_c_werror_flag" ||
29320          test ! -s conftest.err
29321        } && test -s conftest$ac_exeext &&
29322        $as_test_x conftest$ac_exeext; then
29323   ol_cv_db_db=yes
29324 else
29325   echo "$as_me: failed program was:" >&5
29326 sed 's/^/| /' conftest.$ac_ext >&5
29327
29328         ol_cv_db_db=no
29329 fi
29330
29331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29332       conftest$ac_exeext conftest.$ac_ext
29333
29334         LIBS="$ol_LIBS"
29335
29336 fi
29337 { echo "$as_me:$LINENO: result: $ol_cv_db_db" >&5
29338 echo "${ECHO_T}$ol_cv_db_db" >&6; }
29339
29340         if test $ol_cv_db_db = yes ; then
29341                 ol_cv_lib_db=-ldb
29342         fi
29343 fi
29344
29345 if test $ol_cv_lib_db = no ; then
29346         { echo "$as_me:$LINENO: checking for Berkeley DB link (default)" >&5
29347 echo $ECHO_N "checking for Berkeley DB link (default)... $ECHO_C" >&6; }
29348 if test "${ol_cv_db_none+set}" = set; then
29349   echo $ECHO_N "(cached) $ECHO_C" >&6
29350 else
29351
29352         ol_DB_LIB=
29353         ol_LIBS=$LIBS
29354         LIBS="$ol_DB_LIB $LTHREAD_LIBS $LIBS"
29355
29356         cat >conftest.$ac_ext <<_ACEOF
29357 /* confdefs.h.  */
29358 _ACEOF
29359 cat confdefs.h >>conftest.$ac_ext
29360 cat >>conftest.$ac_ext <<_ACEOF
29361 /* end confdefs.h.  */
29362
29363 #ifdef HAVE_DB_185_H
29364 # include <db_185.h>
29365 #else
29366 # include <db.h>
29367 #endif
29368
29369 #ifndef DB_VERSION_MAJOR
29370 # define DB_VERSION_MAJOR 1
29371 #endif
29372
29373 #ifndef NULL
29374 #define NULL ((void*)0)
29375 #endif
29376
29377 int
29378 main ()
29379 {
29380
29381 #if DB_VERSION_MAJOR > 2
29382         db_env_create( NULL, 0 );
29383 #elif DB_VERSION_MAJOR > 1
29384         db_appexit( NULL );
29385 #else
29386         (void) dbopen( NULL, 0, 0, 0, NULL);
29387 #endif
29388
29389   ;
29390   return 0;
29391 }
29392 _ACEOF
29393 rm -f conftest.$ac_objext conftest$ac_exeext
29394 if { (ac_try="$ac_link"
29395 case "(($ac_try" in
29396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29397   *) ac_try_echo=$ac_try;;
29398 esac
29399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29400   (eval "$ac_link") 2>conftest.er1
29401   ac_status=$?
29402   grep -v '^ *+' conftest.er1 >conftest.err
29403   rm -f conftest.er1
29404   cat conftest.err >&5
29405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29406   (exit $ac_status); } && {
29407          test -z "$ac_c_werror_flag" ||
29408          test ! -s conftest.err
29409        } && test -s conftest$ac_exeext &&
29410        $as_test_x conftest$ac_exeext; then
29411   ol_cv_db_none=yes
29412 else
29413   echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416         ol_cv_db_none=no
29417 fi
29418
29419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29420       conftest$ac_exeext conftest.$ac_ext
29421
29422         LIBS="$ol_LIBS"
29423
29424 fi
29425 { echo "$as_me:$LINENO: result: $ol_cv_db_none" >&5
29426 echo "${ECHO_T}$ol_cv_db_none" >&6; }
29427
29428         if test $ol_cv_db_none = yes ; then
29429                 ol_cv_lib_db=yes
29430         fi
29431 fi
29432
29433
29434         if test "$ol_cv_lib_db" != no ; then
29435                 ol_cv_berkeley_db=yes
29436                 { echo "$as_me:$LINENO: checking for Berkeley DB library and header version match" >&5
29437 echo $ECHO_N "checking for Berkeley DB library and header version match... $ECHO_C" >&6; }
29438 if test "${ol_cv_berkeley_db_version+set}" = set; then
29439   echo $ECHO_N "(cached) $ECHO_C" >&6
29440 else
29441
29442         ol_LIBS="$LIBS"
29443         LIBS="$LTHREAD_LIBS $LIBS"
29444         if test $ol_cv_lib_db != yes ; then
29445                 LIBS="$ol_cv_lib_db $LIBS"
29446         fi
29447
29448         if test "$cross_compiling" = yes; then
29449   ol_cv_berkeley_db_version=cross
29450 else
29451   cat >conftest.$ac_ext <<_ACEOF
29452 /* confdefs.h.  */
29453 _ACEOF
29454 cat confdefs.h >>conftest.$ac_ext
29455 cat >>conftest.$ac_ext <<_ACEOF
29456 /* end confdefs.h.  */
29457
29458 #ifdef HAVE_DB_185_H
29459         choke me;
29460 #else
29461 #include <db.h>
29462 #endif
29463 #ifndef DB_VERSION_MAJOR
29464 # define DB_VERSION_MAJOR 1
29465 #endif
29466 #ifndef NULL
29467 #define NULL ((void *)0)
29468 #endif
29469 main()
29470 {
29471 #if DB_VERSION_MAJOR > 1
29472         char *version;
29473         int major, minor, patch;
29474
29475         version = db_version( &major, &minor, &patch );
29476
29477         if( major != DB_VERSION_MAJOR ||
29478                 minor != DB_VERSION_MINOR ||
29479                 patch != DB_VERSION_PATCH )
29480         {
29481                 printf("Berkeley DB version mismatch\n"
29482                         "\theader: %s\n\tlibrary: %s\n",
29483                         DB_VERSION_STRING, version);
29484                 return 1;
29485         }
29486 #endif
29487
29488         return 0;
29489 }
29490 _ACEOF
29491 rm -f conftest$ac_exeext
29492 if { (ac_try="$ac_link"
29493 case "(($ac_try" in
29494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29495   *) ac_try_echo=$ac_try;;
29496 esac
29497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29498   (eval "$ac_link") 2>&5
29499   ac_status=$?
29500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29501   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29502   { (case "(($ac_try" in
29503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29504   *) ac_try_echo=$ac_try;;
29505 esac
29506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29507   (eval "$ac_try") 2>&5
29508   ac_status=$?
29509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29510   (exit $ac_status); }; }; then
29511   ol_cv_berkeley_db_version=yes
29512 else
29513   echo "$as_me: program exited with status $ac_status" >&5
29514 echo "$as_me: failed program was:" >&5
29515 sed 's/^/| /' conftest.$ac_ext >&5
29516
29517 ( exit $ac_status )
29518 ol_cv_berkeley_db_version=no
29519 fi
29520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29521 fi
29522
29523
29524
29525         LIBS="$ol_LIBS"
29526
29527 fi
29528 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_version" >&5
29529 echo "${ECHO_T}$ol_cv_berkeley_db_version" >&6; }
29530
29531         if test $ol_cv_berkeley_db_version = no ; then
29532                 { { echo "$as_me:$LINENO: error: Berkeley DB version mismatch" >&5
29533 echo "$as_me: error: Berkeley DB version mismatch" >&2;}
29534    { (exit 1); exit 1; }; }
29535         fi
29536
29537                 { echo "$as_me:$LINENO: checking for Berkeley DB thread support" >&5
29538 echo $ECHO_N "checking for Berkeley DB thread support... $ECHO_C" >&6; }
29539 if test "${ol_cv_berkeley_db_thread+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542
29543         ol_LIBS="$LIBS"
29544         LIBS="$LTHREAD_LIBS $LIBS"
29545         if test $ol_cv_lib_db != yes ; then
29546                 LIBS="$ol_cv_lib_db $LIBS"
29547         fi
29548
29549         if test "$cross_compiling" = yes; then
29550   ol_cv_berkeley_db_thread=cross
29551 else
29552   cat >conftest.$ac_ext <<_ACEOF
29553 /* confdefs.h.  */
29554 _ACEOF
29555 cat confdefs.h >>conftest.$ac_ext
29556 cat >>conftest.$ac_ext <<_ACEOF
29557 /* end confdefs.h.  */
29558
29559 #ifdef HAVE_DB_185_H
29560         choke me;
29561 #else
29562 #include <db.h>
29563 #endif
29564 #ifndef NULL
29565 #define NULL ((void *)0)
29566 #endif
29567 main()
29568 {
29569         int rc;
29570         u_int32_t flags = DB_CREATE |
29571 #ifdef DB_PRIVATE
29572                 DB_PRIVATE |
29573 #endif
29574                 DB_THREAD;
29575
29576 #if DB_VERSION_MAJOR > 2
29577         DB_ENV *env = NULL;
29578
29579         rc = db_env_create( &env, 0 );
29580
29581         flags |= DB_INIT_MPOOL;
29582 #ifdef DB_MPOOL_PRIVATE
29583         flags |= DB_MPOOL_PRIVATE;
29584 #endif
29585
29586         if( rc ) {
29587                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29588                 return rc;
29589         }
29590
29591 #if (DB_VERSION_MAJOR > 3) || (DB_VERSION_MINOR >= 1)
29592         rc = (env->open)( env, NULL, flags, 0 );
29593 #else
29594         rc = (env->open)( env, NULL, NULL, flags, 0 );
29595 #endif
29596
29597         if ( rc == 0 ) {
29598                 rc = env->close( env, 0 );
29599         }
29600
29601         if( rc ) {
29602                 printf("BerkeleyDB: %s\n", db_strerror(rc) );
29603                 return rc;
29604         }
29605
29606 #else
29607         DB_ENV env;
29608         memset( &env, '\0', sizeof(env) );
29609
29610         rc = db_appinit( NULL, NULL, &env, flags );
29611
29612         if( rc == 0 ) {
29613                 db_appexit( &env );
29614         }
29615
29616         unlink("__db_mpool.share");
29617         unlink("__db_lock.share");
29618 #endif
29619
29620         return rc;
29621 }
29622 _ACEOF
29623 rm -f conftest$ac_exeext
29624 if { (ac_try="$ac_link"
29625 case "(($ac_try" in
29626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29627   *) ac_try_echo=$ac_try;;
29628 esac
29629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29630   (eval "$ac_link") 2>&5
29631   ac_status=$?
29632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29633   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29634   { (case "(($ac_try" in
29635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29636   *) ac_try_echo=$ac_try;;
29637 esac
29638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29639   (eval "$ac_try") 2>&5
29640   ac_status=$?
29641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29642   (exit $ac_status); }; }; then
29643   ol_cv_berkeley_db_thread=yes
29644 else
29645   echo "$as_me: program exited with status $ac_status" >&5
29646 echo "$as_me: failed program was:" >&5
29647 sed 's/^/| /' conftest.$ac_ext >&5
29648
29649 ( exit $ac_status )
29650 ol_cv_berkeley_db_thread=no
29651 fi
29652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29653 fi
29654
29655
29656
29657         LIBS="$ol_LIBS"
29658
29659 fi
29660 { echo "$as_me:$LINENO: result: $ol_cv_berkeley_db_thread" >&5
29661 echo "${ECHO_T}$ol_cv_berkeley_db_thread" >&6; }
29662
29663         if test $ol_cv_berkeley_db_thread != no ; then
29664
29665 cat >>confdefs.h <<\_ACEOF
29666 #define HAVE_BERKELEY_DB_THREAD 1
29667 _ACEOF
29668
29669         fi
29670
29671         fi
29672 fi
29673
29674
29675         if test $ol_cv_berkeley_db = no ; then
29676                 { { echo "$as_me:$LINENO: error: BDB/HDB: BerkeleyDB not available" >&5
29677 echo "$as_me: error: BDB/HDB: BerkeleyDB not available" >&2;}
29678    { (exit 1); exit 1; }; }
29679         fi
29680
29681
29682 cat >>confdefs.h <<\_ACEOF
29683 #define HAVE_BERKELEY_DB 1
29684 _ACEOF
29685
29686
29687                         if test $ol_cv_lib_db != yes ; then
29688                 BDB_LIBS="$BDB_LIBS $ol_cv_lib_db"
29689         fi
29690
29691         SLAPD_LIBS="$SLAPD_LIBS \$(BDB_LIBS)"
29692
29693         ol_link_bdb=yes
29694 fi
29695
29696
29697 if test $ol_enable_dynamic = yes && test $enable_shared = yes ; then
29698         BUILD_LIBS_DYNAMIC=shared
29699
29700 cat >>confdefs.h <<\_ACEOF
29701 #define LDAP_LIBS_DYNAMIC 1
29702 _ACEOF
29703
29704         LTSTATIC=""
29705 else
29706         BUILD_LIBS_DYNAMIC=static
29707         LTSTATIC="-static"
29708 fi
29709
29710 if test $ol_enable_wrappers != no ; then
29711
29712 for ac_header in tcpd.h
29713 do
29714 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
29715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29716   { echo "$as_me:$LINENO: checking for $ac_header" >&5
29717 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29718 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29719   echo $ECHO_N "(cached) $ECHO_C" >&6
29720 fi
29721 ac_res=`eval echo '${'$as_ac_Header'}'`
29722                { echo "$as_me:$LINENO: result: $ac_res" >&5
29723 echo "${ECHO_T}$ac_res" >&6; }
29724 else
29725   # Is the header compilable?
29726 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
29727 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
29728 cat >conftest.$ac_ext <<_ACEOF
29729 /* confdefs.h.  */
29730 _ACEOF
29731 cat confdefs.h >>conftest.$ac_ext
29732 cat >>conftest.$ac_ext <<_ACEOF
29733 /* end confdefs.h.  */
29734 $ac_includes_default
29735 #include <$ac_header>
29736 _ACEOF
29737 rm -f conftest.$ac_objext
29738 if { (ac_try="$ac_compile"
29739 case "(($ac_try" in
29740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29741   *) ac_try_echo=$ac_try;;
29742 esac
29743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29744   (eval "$ac_compile") 2>conftest.er1
29745   ac_status=$?
29746   grep -v '^ *+' conftest.er1 >conftest.err
29747   rm -f conftest.er1
29748   cat conftest.err >&5
29749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29750   (exit $ac_status); } && {
29751          test -z "$ac_c_werror_flag" ||
29752          test ! -s conftest.err
29753        } && test -s conftest.$ac_objext; then
29754   ac_header_compiler=yes
29755 else
29756   echo "$as_me: failed program was:" >&5
29757 sed 's/^/| /' conftest.$ac_ext >&5
29758
29759         ac_header_compiler=no
29760 fi
29761
29762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29764 echo "${ECHO_T}$ac_header_compiler" >&6; }
29765
29766 # Is the header present?
29767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
29768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
29769 cat >conftest.$ac_ext <<_ACEOF
29770 /* confdefs.h.  */
29771 _ACEOF
29772 cat confdefs.h >>conftest.$ac_ext
29773 cat >>conftest.$ac_ext <<_ACEOF
29774 /* end confdefs.h.  */
29775 #include <$ac_header>
29776 _ACEOF
29777 if { (ac_try="$ac_cpp conftest.$ac_ext"
29778 case "(($ac_try" in
29779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29780   *) ac_try_echo=$ac_try;;
29781 esac
29782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29783   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29784   ac_status=$?
29785   grep -v '^ *+' conftest.er1 >conftest.err
29786   rm -f conftest.er1
29787   cat conftest.err >&5
29788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29789   (exit $ac_status); } >/dev/null && {
29790          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29791          test ! -s conftest.err
29792        }; then
29793   ac_header_preproc=yes
29794 else
29795   echo "$as_me: failed program was:" >&5
29796 sed 's/^/| /' conftest.$ac_ext >&5
29797
29798   ac_header_preproc=no
29799 fi
29800
29801 rm -f conftest.err conftest.$ac_ext
29802 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29803 echo "${ECHO_T}$ac_header_preproc" >&6; }
29804
29805 # So?  What about this header?
29806 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29807   yes:no: )
29808     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29809 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29810     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29811 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29812     ac_header_preproc=yes
29813     ;;
29814   no:yes:* )
29815     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29816 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29817     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29818 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29819     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29820 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29821     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29822 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29823     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29824 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29825     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29826 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29827     ( cat <<\_ASBOX
29828 ## --------------------------------------------- ##
29829 ## Report this to <http://www.openldap.org/its/> ##
29830 ## --------------------------------------------- ##
29831 _ASBOX
29832      ) | sed "s/^/$as_me: WARNING:     /" >&2
29833     ;;
29834 esac
29835 { echo "$as_me:$LINENO: checking for $ac_header" >&5
29836 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
29837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29838   echo $ECHO_N "(cached) $ECHO_C" >&6
29839 else
29840   eval "$as_ac_Header=\$ac_header_preproc"
29841 fi
29842 ac_res=`eval echo '${'$as_ac_Header'}'`
29843                { echo "$as_me:$LINENO: result: $ac_res" >&5
29844 echo "${ECHO_T}$ac_res" >&6; }
29845
29846 fi
29847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
29848   cat >>confdefs.h <<_ACEOF
29849 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
29850 _ACEOF
29851
29852                 { echo "$as_me:$LINENO: checking for TCP wrappers library" >&5
29853 echo $ECHO_N "checking for TCP wrappers library... $ECHO_C" >&6; }
29854                 save_LIBS="$LIBS"
29855                 LIBS="$LIBS -lwrap"
29856                 cat >conftest.$ac_ext <<_ACEOF
29857 /* confdefs.h.  */
29858 _ACEOF
29859 cat confdefs.h >>conftest.$ac_ext
29860 cat >>conftest.$ac_ext <<_ACEOF
29861 /* end confdefs.h.  */
29862
29863 #include <tcpd.h>
29864 int allow_severity = 0;
29865 int deny_severity  = 0;
29866
29867 struct request_info *req;
29868
29869 int
29870 main ()
29871 {
29872
29873 hosts_access(req)
29874
29875   ;
29876   return 0;
29877 }
29878 _ACEOF
29879 rm -f conftest.$ac_objext conftest$ac_exeext
29880 if { (ac_try="$ac_link"
29881 case "(($ac_try" in
29882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29883   *) ac_try_echo=$ac_try;;
29884 esac
29885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29886   (eval "$ac_link") 2>conftest.er1
29887   ac_status=$?
29888   grep -v '^ *+' conftest.er1 >conftest.err
29889   rm -f conftest.er1
29890   cat conftest.err >&5
29891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29892   (exit $ac_status); } && {
29893          test -z "$ac_c_werror_flag" ||
29894          test ! -s conftest.err
29895        } && test -s conftest$ac_exeext &&
29896        $as_test_x conftest$ac_exeext; then
29897   { echo "$as_me:$LINENO: result: -lwrap" >&5
29898 echo "${ECHO_T}-lwrap" >&6; }
29899                 have_wrappers=yes
29900                 LIBS="$save_LIBS"
29901 else
29902   echo "$as_me: failed program was:" >&5
29903 sed 's/^/| /' conftest.$ac_ext >&5
29904
29905
29906                                 LIBS="$LIBS -lnsl"
29907                 cat >conftest.$ac_ext <<_ACEOF
29908 /* confdefs.h.  */
29909 _ACEOF
29910 cat confdefs.h >>conftest.$ac_ext
29911 cat >>conftest.$ac_ext <<_ACEOF
29912 /* end confdefs.h.  */
29913
29914 #include <tcpd.h>
29915 int allow_severity = 0;
29916 int deny_severity  = 0;
29917
29918 struct request_info *req;
29919
29920 int
29921 main ()
29922 {
29923
29924 hosts_access(req)
29925
29926   ;
29927   return 0;
29928 }
29929 _ACEOF
29930 rm -f conftest.$ac_objext conftest$ac_exeext
29931 if { (ac_try="$ac_link"
29932 case "(($ac_try" in
29933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29934   *) ac_try_echo=$ac_try;;
29935 esac
29936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29937   (eval "$ac_link") 2>conftest.er1
29938   ac_status=$?
29939   grep -v '^ *+' conftest.er1 >conftest.err
29940   rm -f conftest.er1
29941   cat conftest.err >&5
29942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29943   (exit $ac_status); } && {
29944          test -z "$ac_c_werror_flag" ||
29945          test ! -s conftest.err
29946        } && test -s conftest$ac_exeext &&
29947        $as_test_x conftest$ac_exeext; then
29948   { echo "$as_me:$LINENO: result: -lwrap -lnsl" >&5
29949 echo "${ECHO_T}-lwrap -lnsl" >&6; }
29950                 have_wrappers=yes
29951                 LIBS="$save_LIBS -lnsl"
29952 else
29953   echo "$as_me: failed program was:" >&5
29954 sed 's/^/| /' conftest.$ac_ext >&5
29955
29956
29957                 { echo "$as_me:$LINENO: result: no" >&5
29958 echo "${ECHO_T}no" >&6; }
29959                 have_wrappers=no
29960                 LIBS=$save_LIBS
29961 fi
29962
29963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29964       conftest$ac_exeext conftest.$ac_ext
29965 fi
29966
29967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29968       conftest$ac_exeext conftest.$ac_ext
29969 else
29970   have_wrappers=no
29971 fi
29972
29973 done
29974
29975
29976         if test $have_wrappers = yes ; then
29977
29978 cat >>confdefs.h <<\_ACEOF
29979 #define HAVE_TCPD 1
29980 _ACEOF
29981
29982                 WRAP_LIBS="-lwrap"
29983         elif test $ol_enable_wrappers = yes ; then
29984                 { { echo "$as_me:$LINENO: error: could not find TCP wrappers, select apppropriate options or disable" >&5
29985 echo "$as_me: error: could not find TCP wrappers, select apppropriate options or disable" >&2;}
29986    { (exit 1); exit 1; }; }
29987         else
29988                 { echo "$as_me:$LINENO: WARNING: could not find TCP wrappers, support disabled" >&5
29989 echo "$as_me: WARNING: could not find TCP wrappers, support disabled" >&2;}
29990                 WRAP_LIBS=""
29991         fi
29992 fi
29993
29994 if test $ol_enable_syslog != no ; then
29995         { echo "$as_me:$LINENO: checking for openlog" >&5
29996 echo $ECHO_N "checking for openlog... $ECHO_C" >&6; }
29997 if test "${ac_cv_func_openlog+set}" = set; then
29998   echo $ECHO_N "(cached) $ECHO_C" >&6
29999 else
30000   cat >conftest.$ac_ext <<_ACEOF
30001 /* confdefs.h.  */
30002 _ACEOF
30003 cat confdefs.h >>conftest.$ac_ext
30004 cat >>conftest.$ac_ext <<_ACEOF
30005 /* end confdefs.h.  */
30006 /* Define openlog to an innocuous variant, in case <limits.h> declares openlog.
30007    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30008 #define openlog innocuous_openlog
30009
30010 /* System header to define __stub macros and hopefully few prototypes,
30011     which can conflict with char openlog (); below.
30012     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30013     <limits.h> exists even on freestanding compilers.  */
30014
30015 #ifdef __STDC__
30016 # include <limits.h>
30017 #else
30018 # include <assert.h>
30019 #endif
30020
30021 #undef openlog
30022
30023 /* Override any GCC internal prototype to avoid an error.
30024    Use char because int might match the return type of a GCC
30025    builtin and then its argument prototype would still apply.  */
30026 #ifdef __cplusplus
30027 extern "C"
30028 #endif
30029 char openlog ();
30030 /* The GNU C library defines this for functions which it implements
30031     to always fail with ENOSYS.  Some functions are actually named
30032     something starting with __ and the normal name is an alias.  */
30033 #if defined __stub_openlog || defined __stub___openlog
30034 choke me
30035 #endif
30036
30037 int
30038 main ()
30039 {
30040 return openlog ();
30041   ;
30042   return 0;
30043 }
30044 _ACEOF
30045 rm -f conftest.$ac_objext conftest$ac_exeext
30046 if { (ac_try="$ac_link"
30047 case "(($ac_try" in
30048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30049   *) ac_try_echo=$ac_try;;
30050 esac
30051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30052   (eval "$ac_link") 2>conftest.er1
30053   ac_status=$?
30054   grep -v '^ *+' conftest.er1 >conftest.err
30055   rm -f conftest.er1
30056   cat conftest.err >&5
30057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30058   (exit $ac_status); } && {
30059          test -z "$ac_c_werror_flag" ||
30060          test ! -s conftest.err
30061        } && test -s conftest$ac_exeext &&
30062        $as_test_x conftest$ac_exeext; then
30063   ac_cv_func_openlog=yes
30064 else
30065   echo "$as_me: failed program was:" >&5
30066 sed 's/^/| /' conftest.$ac_ext >&5
30067
30068         ac_cv_func_openlog=no
30069 fi
30070
30071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30072       conftest$ac_exeext conftest.$ac_ext
30073 fi
30074 { echo "$as_me:$LINENO: result: $ac_cv_func_openlog" >&5
30075 echo "${ECHO_T}$ac_cv_func_openlog" >&6; }
30076
30077         if test $ac_cv_func_openlog = no && test $ol_enable_syslog = yes; then
30078                 { { echo "$as_me:$LINENO: error: could not find syslog" >&5
30079 echo "$as_me: error: could not find syslog" >&2;}
30080    { (exit select appropriate options or disable); exit select appropriate options or disable; }; }
30081         fi
30082         ol_enable_syslog=$ac_cv_func_openlog
30083 fi
30084
30085 ol_link_sql=no
30086 if test $ol_enable_sql != no ; then
30087
30088
30089 for ac_header in sql.h sqlext.h
30090 do
30091 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30092 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30093   { echo "$as_me:$LINENO: checking for $ac_header" >&5
30094 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30095 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30096   echo $ECHO_N "(cached) $ECHO_C" >&6
30097 fi
30098 ac_res=`eval echo '${'$as_ac_Header'}'`
30099                { echo "$as_me:$LINENO: result: $ac_res" >&5
30100 echo "${ECHO_T}$ac_res" >&6; }
30101 else
30102   # Is the header compilable?
30103 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
30104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
30105 cat >conftest.$ac_ext <<_ACEOF
30106 /* confdefs.h.  */
30107 _ACEOF
30108 cat confdefs.h >>conftest.$ac_ext
30109 cat >>conftest.$ac_ext <<_ACEOF
30110 /* end confdefs.h.  */
30111 $ac_includes_default
30112 #include <$ac_header>
30113 _ACEOF
30114 rm -f conftest.$ac_objext
30115 if { (ac_try="$ac_compile"
30116 case "(($ac_try" in
30117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30118   *) ac_try_echo=$ac_try;;
30119 esac
30120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30121   (eval "$ac_compile") 2>conftest.er1
30122   ac_status=$?
30123   grep -v '^ *+' conftest.er1 >conftest.err
30124   rm -f conftest.er1
30125   cat conftest.err >&5
30126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30127   (exit $ac_status); } && {
30128          test -z "$ac_c_werror_flag" ||
30129          test ! -s conftest.err
30130        } && test -s conftest.$ac_objext; then
30131   ac_header_compiler=yes
30132 else
30133   echo "$as_me: failed program was:" >&5
30134 sed 's/^/| /' conftest.$ac_ext >&5
30135
30136         ac_header_compiler=no
30137 fi
30138
30139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30140 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30141 echo "${ECHO_T}$ac_header_compiler" >&6; }
30142
30143 # Is the header present?
30144 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
30145 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
30146 cat >conftest.$ac_ext <<_ACEOF
30147 /* confdefs.h.  */
30148 _ACEOF
30149 cat confdefs.h >>conftest.$ac_ext
30150 cat >>conftest.$ac_ext <<_ACEOF
30151 /* end confdefs.h.  */
30152 #include <$ac_header>
30153 _ACEOF
30154 if { (ac_try="$ac_cpp conftest.$ac_ext"
30155 case "(($ac_try" in
30156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30157   *) ac_try_echo=$ac_try;;
30158 esac
30159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30160   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30161   ac_status=$?
30162   grep -v '^ *+' conftest.er1 >conftest.err
30163   rm -f conftest.er1
30164   cat conftest.err >&5
30165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30166   (exit $ac_status); } >/dev/null && {
30167          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30168          test ! -s conftest.err
30169        }; then
30170   ac_header_preproc=yes
30171 else
30172   echo "$as_me: failed program was:" >&5
30173 sed 's/^/| /' conftest.$ac_ext >&5
30174
30175   ac_header_preproc=no
30176 fi
30177
30178 rm -f conftest.err conftest.$ac_ext
30179 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30180 echo "${ECHO_T}$ac_header_preproc" >&6; }
30181
30182 # So?  What about this header?
30183 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30184   yes:no: )
30185     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30186 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30187     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30188 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30189     ac_header_preproc=yes
30190     ;;
30191   no:yes:* )
30192     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30193 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30194     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30195 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30196     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30197 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30198     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30199 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30200     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30201 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30202     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30203 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30204     ( cat <<\_ASBOX
30205 ## --------------------------------------------- ##
30206 ## Report this to <http://www.openldap.org/its/> ##
30207 ## --------------------------------------------- ##
30208 _ASBOX
30209      ) | sed "s/^/$as_me: WARNING:     /" >&2
30210     ;;
30211 esac
30212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30215   echo $ECHO_N "(cached) $ECHO_C" >&6
30216 else
30217   eval "$as_ac_Header=\$ac_header_preproc"
30218 fi
30219 ac_res=`eval echo '${'$as_ac_Header'}'`
30220                { echo "$as_me:$LINENO: result: $ac_res" >&5
30221 echo "${ECHO_T}$ac_res" >&6; }
30222
30223 fi
30224 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30225   cat >>confdefs.h <<_ACEOF
30226 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30227 _ACEOF
30228
30229 else
30230
30231                 { { echo "$as_me:$LINENO: error: could not locate SQL headers" >&5
30232 echo "$as_me: error: could not locate SQL headers" >&2;}
30233    { (exit 1); exit 1; }; }
30234
30235 fi
30236
30237 done
30238
30239
30240         sql_LIBS="$LIBS"
30241         LIBS="$LTHREAD_LIBS"
30242
30243         if test $ol_with_odbc = auto ; then
30244                 ol_with_odbc="iodbc unixodbc odbc32"
30245         fi
30246
30247         for odbc in $ol_with_odbc ; do
30248                 if test $ol_link_sql = no ; then
30249                         case $odbc in
30250                         iodbc)
30251                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -liodbc" >&5
30252 echo $ECHO_N "checking for SQLDriverConnect in -liodbc... $ECHO_C" >&6; }
30253 if test "${ac_cv_lib_iodbc_SQLDriverConnect+set}" = set; then
30254   echo $ECHO_N "(cached) $ECHO_C" >&6
30255 else
30256   ac_check_lib_save_LIBS=$LIBS
30257 LIBS="-liodbc  $LIBS"
30258 cat >conftest.$ac_ext <<_ACEOF
30259 /* confdefs.h.  */
30260 _ACEOF
30261 cat confdefs.h >>conftest.$ac_ext
30262 cat >>conftest.$ac_ext <<_ACEOF
30263 /* end confdefs.h.  */
30264
30265 /* Override any GCC internal prototype to avoid an error.
30266    Use char because int might match the return type of a GCC
30267    builtin and then its argument prototype would still apply.  */
30268 #ifdef __cplusplus
30269 extern "C"
30270 #endif
30271 char SQLDriverConnect ();
30272 int
30273 main ()
30274 {
30275 return SQLDriverConnect ();
30276   ;
30277   return 0;
30278 }
30279 _ACEOF
30280 rm -f conftest.$ac_objext conftest$ac_exeext
30281 if { (ac_try="$ac_link"
30282 case "(($ac_try" in
30283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30284   *) ac_try_echo=$ac_try;;
30285 esac
30286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30287   (eval "$ac_link") 2>conftest.er1
30288   ac_status=$?
30289   grep -v '^ *+' conftest.er1 >conftest.err
30290   rm -f conftest.er1
30291   cat conftest.err >&5
30292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30293   (exit $ac_status); } && {
30294          test -z "$ac_c_werror_flag" ||
30295          test ! -s conftest.err
30296        } && test -s conftest$ac_exeext &&
30297        $as_test_x conftest$ac_exeext; then
30298   ac_cv_lib_iodbc_SQLDriverConnect=yes
30299 else
30300   echo "$as_me: failed program was:" >&5
30301 sed 's/^/| /' conftest.$ac_ext >&5
30302
30303         ac_cv_lib_iodbc_SQLDriverConnect=no
30304 fi
30305
30306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30307       conftest$ac_exeext conftest.$ac_ext
30308 LIBS=$ac_check_lib_save_LIBS
30309 fi
30310 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLDriverConnect" >&5
30311 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLDriverConnect" >&6; }
30312 if test $ac_cv_lib_iodbc_SQLDriverConnect = yes; then
30313   have_iodbc=yes
30314 else
30315   have_iodbc=no
30316 fi
30317
30318                                 if test $have_iodbc = yes ; then
30319                                         ol_link_sql="-liodbc"
30320                                 fi
30321                                 ;;
30322
30323                         unixodbc)
30324                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc" >&5
30325 echo $ECHO_N "checking for SQLDriverConnect in -lodbc... $ECHO_C" >&6; }
30326 if test "${ac_cv_lib_odbc_SQLDriverConnect+set}" = set; then
30327   echo $ECHO_N "(cached) $ECHO_C" >&6
30328 else
30329   ac_check_lib_save_LIBS=$LIBS
30330 LIBS="-lodbc  $LIBS"
30331 cat >conftest.$ac_ext <<_ACEOF
30332 /* confdefs.h.  */
30333 _ACEOF
30334 cat confdefs.h >>conftest.$ac_ext
30335 cat >>conftest.$ac_ext <<_ACEOF
30336 /* end confdefs.h.  */
30337
30338 /* Override any GCC internal prototype to avoid an error.
30339    Use char because int might match the return type of a GCC
30340    builtin and then its argument prototype would still apply.  */
30341 #ifdef __cplusplus
30342 extern "C"
30343 #endif
30344 char SQLDriverConnect ();
30345 int
30346 main ()
30347 {
30348 return SQLDriverConnect ();
30349   ;
30350   return 0;
30351 }
30352 _ACEOF
30353 rm -f conftest.$ac_objext conftest$ac_exeext
30354 if { (ac_try="$ac_link"
30355 case "(($ac_try" in
30356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30357   *) ac_try_echo=$ac_try;;
30358 esac
30359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30360   (eval "$ac_link") 2>conftest.er1
30361   ac_status=$?
30362   grep -v '^ *+' conftest.er1 >conftest.err
30363   rm -f conftest.er1
30364   cat conftest.err >&5
30365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30366   (exit $ac_status); } && {
30367          test -z "$ac_c_werror_flag" ||
30368          test ! -s conftest.err
30369        } && test -s conftest$ac_exeext &&
30370        $as_test_x conftest$ac_exeext; then
30371   ac_cv_lib_odbc_SQLDriverConnect=yes
30372 else
30373   echo "$as_me: failed program was:" >&5
30374 sed 's/^/| /' conftest.$ac_ext >&5
30375
30376         ac_cv_lib_odbc_SQLDriverConnect=no
30377 fi
30378
30379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30380       conftest$ac_exeext conftest.$ac_ext
30381 LIBS=$ac_check_lib_save_LIBS
30382 fi
30383 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLDriverConnect" >&5
30384 echo "${ECHO_T}$ac_cv_lib_odbc_SQLDriverConnect" >&6; }
30385 if test $ac_cv_lib_odbc_SQLDriverConnect = yes; then
30386   have_odbc=yes
30387 else
30388   have_odbc=no
30389 fi
30390
30391                                 if test $have_odbc = yes ; then
30392                                         ol_link_sql="-lodbc"
30393                                 fi
30394                                 ;;
30395
30396                         odbc32)
30397                                 { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32" >&5
30398 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32... $ECHO_C" >&6; }
30399 if test "${ac_cv_lib_odbc32_SQLDriverConnect+set}" = set; then
30400   echo $ECHO_N "(cached) $ECHO_C" >&6
30401 else
30402   ac_check_lib_save_LIBS=$LIBS
30403 LIBS="-lodbc32  $LIBS"
30404 cat >conftest.$ac_ext <<_ACEOF
30405 /* confdefs.h.  */
30406 _ACEOF
30407 cat confdefs.h >>conftest.$ac_ext
30408 cat >>conftest.$ac_ext <<_ACEOF
30409 /* end confdefs.h.  */
30410
30411 /* Override any GCC internal prototype to avoid an error.
30412    Use char because int might match the return type of a GCC
30413    builtin and then its argument prototype would still apply.  */
30414 #ifdef __cplusplus
30415 extern "C"
30416 #endif
30417 char SQLDriverConnect ();
30418 int
30419 main ()
30420 {
30421 return SQLDriverConnect ();
30422   ;
30423   return 0;
30424 }
30425 _ACEOF
30426 rm -f conftest.$ac_objext conftest$ac_exeext
30427 if { (ac_try="$ac_link"
30428 case "(($ac_try" in
30429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30430   *) ac_try_echo=$ac_try;;
30431 esac
30432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30433   (eval "$ac_link") 2>conftest.er1
30434   ac_status=$?
30435   grep -v '^ *+' conftest.er1 >conftest.err
30436   rm -f conftest.er1
30437   cat conftest.err >&5
30438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439   (exit $ac_status); } && {
30440          test -z "$ac_c_werror_flag" ||
30441          test ! -s conftest.err
30442        } && test -s conftest$ac_exeext &&
30443        $as_test_x conftest$ac_exeext; then
30444   ac_cv_lib_odbc32_SQLDriverConnect=yes
30445 else
30446   echo "$as_me: failed program was:" >&5
30447 sed 's/^/| /' conftest.$ac_ext >&5
30448
30449         ac_cv_lib_odbc32_SQLDriverConnect=no
30450 fi
30451
30452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30453       conftest$ac_exeext conftest.$ac_ext
30454 LIBS=$ac_check_lib_save_LIBS
30455 fi
30456 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc32_SQLDriverConnect" >&5
30457 echo "${ECHO_T}$ac_cv_lib_odbc32_SQLDriverConnect" >&6; }
30458 if test $ac_cv_lib_odbc32_SQLDriverConnect = yes; then
30459   have_odbc32=yes
30460 else
30461   have_odbc32=no
30462 fi
30463
30464
30465                                                                 if test $have_odbc32 = no ; then
30466                                         { echo "$as_me:$LINENO: checking for SQLDriverConnect in -lodbc32 with windows.h" >&5
30467 echo $ECHO_N "checking for SQLDriverConnect in -lodbc32 with windows.h... $ECHO_C" >&6; }
30468                                         save_LIBS="$LIBS"
30469                                         LIBS="$LIBS -lodbc32"
30470                                         cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h.  */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h.  */
30476 #include <windows.h>
30477                                         #include <sqlext.h>
30478
30479 int
30480 main ()
30481 {
30482
30483                                                 SQLDriverConnect(NULL,NULL,NULL,0,NULL,0,NULL,0);
30484
30485   ;
30486   return 0;
30487 }
30488 _ACEOF
30489 rm -f conftest.$ac_objext conftest$ac_exeext
30490 if { (ac_try="$ac_link"
30491 case "(($ac_try" in
30492   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30493   *) ac_try_echo=$ac_try;;
30494 esac
30495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30496   (eval "$ac_link") 2>conftest.er1
30497   ac_status=$?
30498   grep -v '^ *+' conftest.er1 >conftest.err
30499   rm -f conftest.er1
30500   cat conftest.err >&5
30501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30502   (exit $ac_status); } && {
30503          test -z "$ac_c_werror_flag" ||
30504          test ! -s conftest.err
30505        } && test -s conftest$ac_exeext &&
30506        $as_test_x conftest$ac_exeext; then
30507   have_odbc32=yes
30508 else
30509   echo "$as_me: failed program was:" >&5
30510 sed 's/^/| /' conftest.$ac_ext >&5
30511
30512         have_odbc32=no
30513 fi
30514
30515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30516       conftest$ac_exeext conftest.$ac_ext
30517                                         LIBS="$save_LIBS"
30518                                         { echo "$as_me:$LINENO: result: $have_odbc32" >&5
30519 echo "${ECHO_T}$have_odbc32" >&6; }
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         getpassphrase           \
37443         getpwuid                \
37444         getpwnam                \
37445         getspnam                \
37446         gettimeofday            \
37447         initgroups              \
37448         inet_ntoa_b             \
37449         ioctl                   \
37450         lockf                   \
37451         memcpy                  \
37452         memmove                 \
37453         memrchr                 \
37454         mkstemp                 \
37455         mktemp                  \
37456         pipe                    \
37457         read                    \
37458         recv                    \
37459         recvfrom                \
37460         setpwfile               \
37461         setgid                  \
37462         setegid                 \
37463         setsid                  \
37464         setuid                  \
37465         seteuid                 \
37466         signal                  \
37467         strdup                  \
37468         strpbrk                 \
37469         strrchr                 \
37470         strsep                  \
37471         strstr                  \
37472         strtol                  \
37473         strtoul                 \
37474         strtoq                  \
37475         strtouq                 \
37476         strtoll                 \
37477         strtoull                \
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=slapi/libslapi.la
38488
38489 cat >>confdefs.h <<\_ACEOF
38490 #define HAVE_LIBLTDL 1
38491 _ACEOF
38492
38493
38494 else
38495   { { echo "$as_me:$LINENO: error: could not locate libtool -lltdl" >&5
38496 echo "$as_me: error: could not locate libtool -lltdl" >&2;}
38497    { (exit 1); exit 1; }; }
38498 fi
38499
38500
38501
38502 cat >>confdefs.h <<\_ACEOF
38503 #define LDAP_SLAPI 1
38504 _ACEOF
38505
38506 fi
38507
38508 if test "$ol_enable_debug" != no ; then
38509         if test "$ol_enable_debug" = traditional; then
38510
38511 cat >>confdefs.h <<\_ACEOF
38512 #define OLD_DEBUG 1
38513 _ACEOF
38514
38515         fi
38516
38517 cat >>confdefs.h <<\_ACEOF
38518 #define LDAP_DEBUG 1
38519 _ACEOF
38520
38521 fi
38522 if test "$ol_enable_syslog" = yes ; then
38523
38524 cat >>confdefs.h <<\_ACEOF
38525 #define LDAP_SYSLOG 1
38526 _ACEOF
38527
38528 fi
38529 if test "$ol_enable_proctitle" != no ; then
38530
38531 cat >>confdefs.h <<\_ACEOF
38532 #define LDAP_PROCTITLE 1
38533 _ACEOF
38534
38535 fi
38536 if test "$ol_enable_referrals" != no ; then
38537
38538 cat >>confdefs.h <<\_ACEOF
38539 #define LDAP_API_FEATURE_X_OPENLDAP_V2_REFERRALS LDAP_VENDOR_VERSION
38540 _ACEOF
38541
38542 fi
38543 if test "$ol_enable_local" != no; then
38544
38545 cat >>confdefs.h <<\_ACEOF
38546 #define LDAP_PF_LOCAL 1
38547 _ACEOF
38548
38549 fi
38550 if test "$ol_link_ipv6" != no; then
38551
38552 cat >>confdefs.h <<\_ACEOF
38553 #define LDAP_PF_INET6 1
38554 _ACEOF
38555
38556 fi
38557 if test "$ol_enable_cleartext" != no ; then
38558
38559 cat >>confdefs.h <<\_ACEOF
38560 #define SLAPD_CLEARTEXT 1
38561 _ACEOF
38562
38563 fi
38564 if test "$ol_enable_crypt" != no ; then
38565
38566 cat >>confdefs.h <<\_ACEOF
38567 #define SLAPD_CRYPT 1
38568 _ACEOF
38569
38570 fi
38571 if test "$ol_link_spasswd" != no ; then
38572
38573 cat >>confdefs.h <<\_ACEOF
38574 #define SLAPD_SPASSWD 1
38575 _ACEOF
38576
38577 fi
38578 if test "$ol_enable_rlookups" != no ; then
38579
38580 cat >>confdefs.h <<\_ACEOF
38581 #define SLAPD_RLOOKUPS 1
38582 _ACEOF
38583
38584 fi
38585 if test "$ol_enable_aci" != no ; then
38586         if test $ol_enable_dynacl = no ; then
38587                 ol_enable_dynacl=yes
38588                 { echo "$as_me:$LINENO: WARNING: ACIs need dynacl" >&5
38589 echo "$as_me: WARNING: ACIs need dynacl" >&2;}
38590         fi
38591         if test "$ol_enable_aci" = mod ; then
38592                 MFLAG=SLAPD_MOD_DYNAMIC
38593                                 { { echo "$as_me:$LINENO: error: ACI build as dynamic module not supported (yet)" >&5
38594 echo "$as_me: error: ACI build as dynamic module not supported (yet)" >&2;}
38595    { (exit 1); exit 1; }; }
38596         else
38597                 MFLAG=SLAPD_MOD_STATIC
38598         fi
38599         WITH_ACI_ENABLED=$ol_enable_aci
38600
38601 cat >>confdefs.h <<_ACEOF
38602 #define SLAPD_ACI_ENABLED $MFLAG
38603 _ACEOF
38604
38605 else
38606         WITH_ACI_ENABLED=no
38607 fi
38608 if test "$ol_enable_dynacl" != no ; then
38609
38610 cat >>confdefs.h <<\_ACEOF
38611 #define SLAP_DYNACL 1
38612 _ACEOF
38613
38614 fi
38615
38616 if test "$ol_link_modules" != no ; then
38617
38618 cat >>confdefs.h <<\_ACEOF
38619 #define SLAPD_MODULES 1
38620 _ACEOF
38621
38622         BUILD_SLAPD=yes
38623         SLAPD_MODULES_LDFLAGS="-dlopen self"
38624 fi
38625
38626
38627 cat >>confdefs.h <<\_ACEOF
38628 #define SLAPD_MOD_STATIC 1
38629 _ACEOF
38630
38631
38632 cat >>confdefs.h <<\_ACEOF
38633 #define SLAPD_MOD_DYNAMIC 2
38634 _ACEOF
38635
38636
38637 if test "$ol_enable_monitor" != no ; then
38638         BUILD_SLAPD=yes
38639         BUILD_MONITOR=$ol_enable_monitor
38640         if test "$ol_enable_monitor" = mod ; then
38641                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-monitor"
38642                 MFLAG=SLAPD_MOD_DYNAMIC
38643         else
38644                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-monitor"
38645                 MFLAG=SLAPD_MOD_STATIC
38646         fi
38647
38648 cat >>confdefs.h <<_ACEOF
38649 #define SLAPD_MONITOR $MFLAG
38650 _ACEOF
38651
38652 fi
38653
38654 if test "$ol_enable_bdb" != no ; then
38655         BUILD_SLAPD=yes
38656         BUILD_BDB=$ol_enable_bdb
38657         if test "$ol_enable_bdb" = mod ; then
38658                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-bdb"
38659                 MFLAG=SLAPD_MOD_DYNAMIC
38660         else
38661                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-bdb"
38662                 MFLAG=SLAPD_MOD_STATIC
38663         fi
38664
38665 cat >>confdefs.h <<_ACEOF
38666 #define SLAPD_BDB $MFLAG
38667 _ACEOF
38668
38669 fi
38670
38671 if test "$ol_enable_dnssrv" != no ; then
38672         BUILD_SLAPD=yes
38673         BUILD_DNSSRV=$ol_enable_dnssrv
38674         if test "$ol_enable_dnssrv" = mod ; then
38675                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-dnssrv"
38676                 MFLAG=SLAPD_MOD_DYNAMIC
38677         else
38678                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-dnssrv"
38679                 MFLAG=SLAPD_MOD_STATIC
38680         fi
38681
38682 cat >>confdefs.h <<_ACEOF
38683 #define SLAPD_DNSSRV $MFLAG
38684 _ACEOF
38685
38686 fi
38687
38688 if test "$ol_enable_hdb" != no ; then
38689         BUILD_SLAPD=yes
38690         BUILD_HDB=$ol_enable_hdb
38691         if test "$ol_enable_hdb" = mod ; then
38692                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-hdb"
38693                 MFLAG=SLAPD_MOD_DYNAMIC
38694         else
38695                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-hdb"
38696                 MFLAG=SLAPD_MOD_STATIC
38697         fi
38698
38699 cat >>confdefs.h <<_ACEOF
38700 #define SLAPD_HDB $MFLAG
38701 _ACEOF
38702
38703 fi
38704
38705 if test "$ol_enable_ldap" != no ; then
38706         BUILD_SLAPD=yes
38707         BUILD_LDAP=$ol_enable_ldap
38708         if test "$ol_enable_ldap" = mod ; then
38709                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ldap"
38710                 MFLAG=SLAPD_MOD_DYNAMIC
38711         else
38712                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ldap"
38713                 MFLAG=SLAPD_MOD_STATIC
38714         fi
38715
38716 cat >>confdefs.h <<_ACEOF
38717 #define SLAPD_LDAP $MFLAG
38718 _ACEOF
38719
38720 fi
38721
38722 if test "$ol_enable_meta" != no ; then
38723         BUILD_SLAPD=yes
38724         BUILD_META=$ol_enable_meta
38725         BUILD_REWRITE=yes
38726         if test "$ol_enable_meta" = mod ; then
38727                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-meta"
38728                 MFLAG=SLAPD_MOD_DYNAMIC
38729         else
38730                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-meta"
38731                 MFLAG=SLAPD_MOD_STATIC
38732         fi
38733
38734 cat >>confdefs.h <<_ACEOF
38735 #define SLAPD_META $MFLAG
38736 _ACEOF
38737
38738 fi
38739
38740 if test "$ol_enable_ndb" != no ; then
38741         BUILD_SLAPD=yes
38742         BUILD_NDB=$ol_enable_ndb
38743         if test "$ol_enable_ndb" = mod ; then
38744                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-ndb"
38745                 MFLAG=SLAPD_MOD_DYNAMIC
38746         else
38747                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-ndb"
38748                 MFLAG=SLAPD_MOD_STATIC
38749         fi
38750
38751 cat >>confdefs.h <<_ACEOF
38752 #define SLAPD_NDB $MFLAG
38753 _ACEOF
38754
38755 fi
38756
38757 if test "$ol_enable_null" != no ; then
38758         BUILD_SLAPD=yes
38759         BUILD_NULL=$ol_enable_null
38760         if test "$ol_enable_null" = mod ; then
38761                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-null"
38762                 MFLAG=SLAPD_MOD_DYNAMIC
38763         else
38764                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-null"
38765                 MFLAG=SLAPD_MOD_STATIC
38766         fi
38767
38768 cat >>confdefs.h <<_ACEOF
38769 #define SLAPD_NULL $MFLAG
38770 _ACEOF
38771
38772 fi
38773
38774 if test "$ol_enable_passwd" != no ; then
38775         BUILD_SLAPD=yes
38776         BUILD_PASSWD=$ol_enable_passwd
38777         if test "$ol_enable_passwd" = mod ; then
38778                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-passwd"
38779                 MFLAG=SLAPD_MOD_DYNAMIC
38780         else
38781                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-passwd"
38782                 MFLAG=SLAPD_MOD_STATIC
38783         fi
38784
38785 cat >>confdefs.h <<_ACEOF
38786 #define SLAPD_PASSWD $MFLAG
38787 _ACEOF
38788
38789 fi
38790
38791 if test "$ol_link_perl" != no ; then
38792         BUILD_SLAPD=yes
38793         BUILD_PERL=$ol_enable_perl
38794         if test "$ol_enable_perl" = mod ; then
38795                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-perl"
38796                 MFLAG=SLAPD_MOD_DYNAMIC
38797         else
38798                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-perl"
38799                 MFLAG=SLAPD_MOD_STATIC
38800         fi
38801
38802 cat >>confdefs.h <<_ACEOF
38803 #define SLAPD_PERL $MFLAG
38804 _ACEOF
38805
38806 fi
38807
38808 if test "$ol_enable_relay" != no ; then
38809         BUILD_SLAPD=yes
38810         BUILD_RELAY=$ol_enable_relay
38811         if test "$ol_enable_relay" = mod ; then
38812                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-relay"
38813                 MFLAG=SLAPD_MOD_DYNAMIC
38814         else
38815                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-relay"
38816                 MFLAG=SLAPD_MOD_STATIC
38817         fi
38818
38819 cat >>confdefs.h <<_ACEOF
38820 #define SLAPD_RELAY $MFLAG
38821 _ACEOF
38822
38823 fi
38824
38825 if test "$ol_enable_shell" != no ; then
38826         if test "$ol_link_threads" != no ; then
38827                 { echo "$as_me:$LINENO: WARNING: Use of --without-threads is recommended with back-shell" >&5
38828 echo "$as_me: WARNING: Use of --without-threads is recommended with back-shell" >&2;}
38829         fi
38830         BUILD_SLAPD=yes
38831         BUILD_SHELL=$ol_enable_shell
38832         if test "$ol_enable_shell" = mod ; then
38833                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-shell"
38834                 MFLAG=SLAPD_MOD_DYNAMIC
38835         else
38836                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-shell"
38837                 MFLAG=SLAPD_MOD_STATIC
38838         fi
38839
38840 cat >>confdefs.h <<_ACEOF
38841 #define SLAPD_SHELL $MFLAG
38842 _ACEOF
38843
38844 fi
38845
38846 if test "$ol_enable_sock" != no ; then
38847         BUILD_SLAPD=yes
38848         BUILD_SOCK=$ol_enable_sock
38849         if test "$ol_enable_sock" = mod ; then
38850                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sock"
38851                 MFLAG=SLAPD_MOD_DYNAMIC
38852         else
38853                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sock"
38854                 MFLAG=SLAPD_MOD_STATIC
38855         fi
38856
38857 cat >>confdefs.h <<_ACEOF
38858 #define SLAPD_SOCK $MFLAG
38859 _ACEOF
38860
38861 fi
38862
38863 if test "$ol_link_sql" != no ; then
38864         BUILD_SLAPD=yes
38865         BUILD_SQL=$ol_enable_sql
38866         if test "$ol_enable_sql" = mod; then
38867                 SLAPD_DYNAMIC_BACKENDS="$SLAPD_DYNAMIC_BACKENDS back-sql"
38868                 MFLAG=SLAPD_MOD_DYNAMIC
38869         else
38870                 SLAPD_STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS back-sql"
38871                 MFLAG=SLAPD_MOD_STATIC
38872         fi
38873
38874 cat >>confdefs.h <<_ACEOF
38875 #define SLAPD_SQL $MFLAG
38876 _ACEOF
38877
38878 fi
38879
38880 if test "$ol_enable_accesslog" != no ; then
38881         BUILD_ACCESSLOG=$ol_enable_accesslog
38882         if test "$ol_enable_accesslog" = mod ; then
38883                 MFLAG=SLAPD_MOD_DYNAMIC
38884                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS accesslog.la"
38885         else
38886                 MFLAG=SLAPD_MOD_STATIC
38887                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS accesslog.o"
38888         fi
38889
38890 cat >>confdefs.h <<_ACEOF
38891 #define SLAPD_OVER_ACCESSLOG $MFLAG
38892 _ACEOF
38893
38894 fi
38895
38896 if test "$ol_enable_auditlog" != no ; then
38897         BUILD_AUDITLOG=$ol_enable_auditlog
38898         if test "$ol_enable_auditlog" = mod ; then
38899                 MFLAG=SLAPD_MOD_DYNAMIC
38900                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
38901         else
38902                 MFLAG=SLAPD_MOD_STATIC
38903                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
38904         fi
38905
38906 cat >>confdefs.h <<_ACEOF
38907 #define SLAPD_OVER_AUDITLOG $MFLAG
38908 _ACEOF
38909
38910 fi
38911
38912 if test "$ol_enable_collect" != no ; then
38913         BUILD_COLLECT=$ol_enable_collect
38914         if test "$ol_enable_collect" = mod ; then
38915                 MFLAG=SLAPD_MOD_DYNAMIC
38916                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS collect.la"
38917         else
38918                 MFLAG=SLAPD_MOD_STATIC
38919                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS collect.o"
38920         fi
38921
38922 cat >>confdefs.h <<_ACEOF
38923 #define SLAPD_OVER_COLLECT $MFLAG
38924 _ACEOF
38925
38926 fi
38927
38928 if test "$ol_enable_constraint" != no ; then
38929         BUILD_CONSTRAINT=$ol_enable_constraint
38930         if test "$ol_enable_constraint" = mod ; then
38931                 MFLAG=SLAPD_MOD_DYNAMIC
38932                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS constraint.la"
38933         else
38934                 MFLAG=SLAPD_MOD_STATIC
38935                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS constraint.o"
38936         fi
38937
38938 cat >>confdefs.h <<_ACEOF
38939 #define SLAPD_OVER_CONSTRAINT $MFLAG
38940 _ACEOF
38941
38942 fi
38943
38944 if test "$ol_enable_dds" != no ; then
38945         BUILD_DDS=$ol_enable_dds
38946         if test "$ol_enable_dds" = mod ; then
38947                 MFLAG=SLAPD_MOD_DYNAMIC
38948                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dds.la"
38949         else
38950                 MFLAG=SLAPD_MOD_STATIC
38951                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dds.o"
38952         fi
38953
38954 cat >>confdefs.h <<_ACEOF
38955 #define SLAPD_OVER_DDS $MFLAG
38956 _ACEOF
38957
38958 fi
38959
38960 if test "$ol_enable_deref" != no ; then
38961         BUILD_DEREF=$ol_enable_deref
38962         if test "$ol_enable_deref" = mod ; then
38963                 MFLAG=SLAPD_MOD_DYNAMIC
38964                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS deref.la"
38965         else
38966                 MFLAG=SLAPD_MOD_STATIC
38967                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS deref.o"
38968         fi
38969
38970 cat >>confdefs.h <<_ACEOF
38971 #define SLAPD_OVER_DEREF $MFLAG
38972 _ACEOF
38973
38974 fi
38975
38976 if test "$ol_enable_dyngroup" != no ; then
38977         BUILD_DYNGROUP=$ol_enable_dyngroup
38978         if test "$ol_enable_dyngroup" = mod ; then
38979                 MFLAG=SLAPD_MOD_DYNAMIC
38980                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dyngroup.la"
38981         else
38982                 MFLAG=SLAPD_MOD_STATIC
38983                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dyngroup.o"
38984         fi
38985
38986 cat >>confdefs.h <<_ACEOF
38987 #define SLAPD_OVER_DYNGROUP $MFLAG
38988 _ACEOF
38989
38990 fi
38991
38992 if test "$ol_enable_dynlist" != no ; then
38993         BUILD_DYNLIST=$ol_enable_dynlist
38994         if test "$ol_enable_dynlist" = mod ; then
38995                 MFLAG=SLAPD_MOD_DYNAMIC
38996                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS dynlist.la"
38997         else
38998                 MFLAG=SLAPD_MOD_STATIC
38999                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS dynlist.o"
39000         fi
39001
39002 cat >>confdefs.h <<_ACEOF
39003 #define SLAPD_OVER_DYNLIST $MFLAG
39004 _ACEOF
39005
39006 fi
39007
39008 if test "$ol_enable_memberof" != no ; then
39009         BUILD_MEMBEROF=$ol_enable_memberof
39010         if test "$ol_enable_memberof" = mod ; then
39011                 MFLAG=SLAPD_MOD_DYNAMIC
39012                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS memberof.la"
39013         else
39014                 MFLAG=SLAPD_MOD_STATIC
39015                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS memberof.o"
39016         fi
39017
39018 cat >>confdefs.h <<_ACEOF
39019 #define SLAPD_OVER_MEMBEROF $MFLAG
39020 _ACEOF
39021
39022 fi
39023
39024 if test "$ol_enable_ppolicy" != no ; then
39025         BUILD_PPOLICY=$ol_enable_ppolicy
39026         if test "$ol_enable_ppolicy" = mod ; then
39027                 MFLAG=SLAPD_MOD_DYNAMIC
39028                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS ppolicy.la"
39029         else
39030                 MFLAG=SLAPD_MOD_STATIC
39031                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS ppolicy.o"
39032         fi
39033
39034 cat >>confdefs.h <<_ACEOF
39035 #define SLAPD_OVER_PPOLICY $MFLAG
39036 _ACEOF
39037
39038 fi
39039
39040 if test "$ol_enable_proxycache" != no ; then
39041         BUILD_PROXYCACHE=$ol_enable_proxycache
39042         if test "$ol_enable_proxycache" = mod ; then
39043                 MFLAG=SLAPD_MOD_DYNAMIC
39044                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS pcache.la"
39045         else
39046                 MFLAG=SLAPD_MOD_STATIC
39047                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS pcache.o"
39048         fi
39049
39050 cat >>confdefs.h <<_ACEOF
39051 #define SLAPD_OVER_PROXYCACHE $MFLAG
39052 _ACEOF
39053
39054 fi
39055
39056 if test "$ol_enable_refint" != no ; then
39057         BUILD_REFINT=$ol_enable_refint
39058         if test "$ol_enable_refint" = mod ; then
39059                 MFLAG=SLAPD_MOD_DYNAMIC
39060                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS refint.la"
39061         else
39062                 MFLAG=SLAPD_MOD_STATIC
39063                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS refint.o"
39064         fi
39065
39066 cat >>confdefs.h <<_ACEOF
39067 #define SLAPD_OVER_REFINT $MFLAG
39068 _ACEOF
39069
39070 fi
39071
39072 if test "$ol_enable_retcode" != no ; then
39073         BUILD_RETCODE=$ol_enable_retcode
39074         if test "$ol_enable_retcode" = mod ; then
39075                 MFLAG=SLAPD_MOD_DYNAMIC
39076                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS retcode.la"
39077         else
39078                 MFLAG=SLAPD_MOD_STATIC
39079                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS retcode.o"
39080         fi
39081
39082 cat >>confdefs.h <<_ACEOF
39083 #define SLAPD_OVER_RETCODE $MFLAG
39084 _ACEOF
39085
39086 fi
39087
39088 if test "$ol_enable_rwm" != no ; then
39089         BUILD_REWRITE=yes
39090         BUILD_RWM=$ol_enable_rwm
39091         if test "$ol_enable_rwm" = mod ; then
39092                 MFLAG=SLAPD_MOD_DYNAMIC
39093                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS rwm.la"
39094         else
39095                 MFLAG=SLAPD_MOD_STATIC
39096                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS rwm_x.o"
39097         fi
39098
39099 cat >>confdefs.h <<_ACEOF
39100 #define SLAPD_OVER_RWM $MFLAG
39101 _ACEOF
39102
39103 fi
39104
39105 if test "$ol_enable_seqmod" != no ; then
39106         BUILD_SEQMOD=$ol_enable_seqmod
39107         if test "$ol_enable_seqmod" = mod ; then
39108                 MFLAG=SLAPD_MOD_DYNAMIC
39109                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS seqmod.la"
39110         else
39111                 MFLAG=SLAPD_MOD_STATIC
39112                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS seqmod.o"
39113         fi
39114
39115 cat >>confdefs.h <<_ACEOF
39116 #define SLAPD_OVER_SEQMOD $MFLAG
39117 _ACEOF
39118
39119 fi
39120
39121 if test "$ol_enable_sssvlv" != no ; then
39122         BUILD_SSSVLV=$ol_enable_sssvlv
39123         if test "$ol_enable_sssvlv" = mod ; then
39124                 MFLAG=SLAPD_MOD_DYNAMIC
39125                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS sssvlv.la"
39126         else
39127                 MFLAG=SLAPD_MOD_STATIC
39128                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS sssvlv.o"
39129         fi
39130
39131 cat >>confdefs.h <<_ACEOF
39132 #define SLAPD_OVER_SSSVLV $MFLAG
39133 _ACEOF
39134
39135 fi
39136
39137 if test "$ol_enable_syncprov" != no ; then
39138         BUILD_SYNCPROV=$ol_enable_syncprov
39139         if test "$ol_enable_syncprov" = mod ; then
39140                 MFLAG=SLAPD_MOD_DYNAMIC
39141                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS syncprov.la"
39142         else
39143                 MFLAG=SLAPD_MOD_STATIC
39144                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS syncprov.o"
39145         fi
39146
39147 cat >>confdefs.h <<_ACEOF
39148 #define SLAPD_OVER_SYNCPROV $MFLAG
39149 _ACEOF
39150
39151 fi
39152
39153 if test "$ol_enable_translucent" != no ; then
39154         BUILD_TRANSLUCENT=$ol_enable_translucent
39155         if test "$ol_enable_translucent" = mod ; then
39156                 MFLAG=SLAPD_MOD_DYNAMIC
39157                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS translucent.la"
39158         else
39159                 MFLAG=SLAPD_MOD_STATIC
39160                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS translucent.o"
39161         fi
39162
39163 cat >>confdefs.h <<_ACEOF
39164 #define SLAPD_OVER_TRANSLUCENT $MFLAG
39165 _ACEOF
39166
39167 fi
39168
39169 if test "$ol_enable_unique" != no ; then
39170         BUILD_UNIQUE=$ol_enable_unique
39171         if test "$ol_enable_unique" = mod ; then
39172                 MFLAG=SLAPD_MOD_DYNAMIC
39173                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS unique.la"
39174         else
39175                 MFLAG=SLAPD_MOD_STATIC
39176                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS unique.o"
39177         fi
39178
39179 cat >>confdefs.h <<_ACEOF
39180 #define SLAPD_OVER_UNIQUE $MFLAG
39181 _ACEOF
39182
39183 fi
39184
39185 if test "$ol_enable_valsort" != no ; then
39186         BUILD_VALSORT=$ol_enable_valsort
39187         if test "$ol_enable_valsort" = mod ; then
39188                 MFLAG=SLAPD_MOD_DYNAMIC
39189                 SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS valsort.la"
39190         else
39191                 MFLAG=SLAPD_MOD_STATIC
39192                 SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS valsort.o"
39193         fi
39194
39195 cat >>confdefs.h <<_ACEOF
39196 #define SLAPD_OVER_VALSORT $MFLAG
39197 _ACEOF
39198
39199 fi
39200
39201 if test "$ol_enable_rewrite" != no ; then
39202
39203 cat >>confdefs.h <<\_ACEOF
39204 #define ENABLE_REWRITE 1
39205 _ACEOF
39206
39207         BUILD_REWRITE=yes
39208 fi
39209
39210 if test "$ol_enable_slapi" != no ; then
39211
39212 cat >>confdefs.h <<\_ACEOF
39213 #define ENABLE_SLAPI 1
39214 _ACEOF
39215
39216         BUILD_SLAPI=yes
39217         SLAPD_SLAPI_DEPEND=libslapi.a
39218 fi
39219
39220
39221
39222 if test "$ac_cv_mingw32" = yes -o $ol_cv_msvc = yes ; then
39223         PLAT=NT
39224         SLAPD_MODULES_LDFLAGS=
39225 else
39226         PLAT=UNIX
39227 fi
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
39304
39305
39306
39307
39308
39309
39310
39311
39312
39313
39314
39315
39316
39317
39318 # Check whether --with-xxinstall was given.
39319 if test "${with_xxinstall+set}" = set; then
39320   withval=$with_xxinstall;
39321 fi
39322
39323
39324
39325 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"
39326
39327
39328 ac_config_commands="$ac_config_commands default"
39329
39330
39331
39332 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39333 # Let make expand exec_prefix.
39334 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39335
39336 DEFS=-DHAVE_CONFIG_H
39337
39338 ac_libobjs=
39339 ac_ltlibobjs=
39340 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39341   # 1. Remove the extension, and $U if already installed.
39342   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39343   ac_i=`echo "$ac_i" | sed "$ac_script"`
39344   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
39345   #    will be set to the directory where LIBOBJS objects are built.
39346   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39347   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
39348 done
39349 LIBOBJS=$ac_libobjs
39350
39351 LTLIBOBJS=$ac_ltlibobjs
39352
39353
39354 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39355   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
39356 Usually this means the macro was only invoked conditionally." >&5
39357 echo "$as_me: error: conditional \"AMDEP\" was never defined.
39358 Usually this means the macro was only invoked conditionally." >&2;}
39359    { (exit 1); exit 1; }; }
39360 fi
39361 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39362   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39363 Usually this means the macro was only invoked conditionally." >&5
39364 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39365 Usually this means the macro was only invoked conditionally." >&2;}
39366    { (exit 1); exit 1; }; }
39367 fi
39368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39369   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
39370 Usually this means the macro was only invoked conditionally." >&5
39371 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
39372 Usually this means the macro was only invoked conditionally." >&2;}
39373    { (exit 1); exit 1; }; }
39374 fi
39375
39376 : ${CONFIG_STATUS=./config.status}
39377 ac_clean_files_save=$ac_clean_files
39378 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39379 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
39380 echo "$as_me: creating $CONFIG_STATUS" >&6;}
39381 cat >$CONFIG_STATUS <<_ACEOF
39382 #! $SHELL
39383 # Generated by $as_me.
39384 # Run this file to recreate the current configuration.
39385 # Compiler output produced by configure, useful for debugging
39386 # configure, is in config.log if it exists.
39387
39388 debug=false
39389 ac_cs_recheck=false
39390 ac_cs_silent=false
39391 SHELL=\${CONFIG_SHELL-$SHELL}
39392 _ACEOF
39393
39394 cat >>$CONFIG_STATUS <<\_ACEOF
39395 ## --------------------- ##
39396 ## M4sh Initialization.  ##
39397 ## --------------------- ##
39398
39399 # Be more Bourne compatible
39400 DUALCASE=1; export DUALCASE # for MKS sh
39401 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
39402   emulate sh
39403   NULLCMD=:
39404   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
39405   # is contrary to our usage.  Disable this feature.
39406   alias -g '${1+"$@"}'='"$@"'
39407   setopt NO_GLOB_SUBST
39408 else
39409   case `(set -o) 2>/dev/null` in
39410   *posix*) set -o posix ;;
39411 esac
39412
39413 fi
39414
39415
39416
39417
39418 # PATH needs CR
39419 # Avoid depending upon Character Ranges.
39420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39423 as_cr_digits='0123456789'
39424 as_cr_alnum=$as_cr_Letters$as_cr_digits
39425
39426 # The user is always right.
39427 if test "${PATH_SEPARATOR+set}" != set; then
39428   echo "#! /bin/sh" >conf$$.sh
39429   echo  "exit 0"   >>conf$$.sh
39430   chmod +x conf$$.sh
39431   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
39432     PATH_SEPARATOR=';'
39433   else
39434     PATH_SEPARATOR=:
39435   fi
39436   rm -f conf$$.sh
39437 fi
39438
39439 # Support unset when possible.
39440 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
39441   as_unset=unset
39442 else
39443   as_unset=false
39444 fi
39445
39446
39447 # IFS
39448 # We need space, tab and new line, in precisely that order.  Quoting is
39449 # there to prevent editors from complaining about space-tab.
39450 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39451 # splitting by setting IFS to empty value.)
39452 as_nl='
39453 '
39454 IFS=" ""        $as_nl"
39455
39456 # Find who we are.  Look in the path if we contain no directory separator.
39457 case $0 in
39458   *[\\/]* ) as_myself=$0 ;;
39459   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39460 for as_dir in $PATH
39461 do
39462   IFS=$as_save_IFS
39463   test -z "$as_dir" && as_dir=.
39464   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39465 done
39466 IFS=$as_save_IFS
39467
39468      ;;
39469 esac
39470 # We did not find ourselves, most probably we were run as `sh COMMAND'
39471 # in which case we are not to be found in the path.
39472 if test "x$as_myself" = x; then
39473   as_myself=$0
39474 fi
39475 if test ! -f "$as_myself"; then
39476   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39477   { (exit 1); exit 1; }
39478 fi
39479
39480 # Work around bugs in pre-3.0 UWIN ksh.
39481 for as_var in ENV MAIL MAILPATH
39482 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39483 done
39484 PS1='$ '
39485 PS2='> '
39486 PS4='+ '
39487
39488 # NLS nuisances.
39489 for as_var in \
39490   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
39491   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
39492   LC_TELEPHONE LC_TIME
39493 do
39494   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
39495     eval $as_var=C; export $as_var
39496   else
39497     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
39498   fi
39499 done
39500
39501 # Required to use basename.
39502 if expr a : '\(a\)' >/dev/null 2>&1 &&
39503    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39504   as_expr=expr
39505 else
39506   as_expr=false
39507 fi
39508
39509 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39510   as_basename=basename
39511 else
39512   as_basename=false
39513 fi
39514
39515
39516 # Name of the executable.
39517 as_me=`$as_basename -- "$0" ||
39518 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39519          X"$0" : 'X\(//\)$' \| \
39520          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39521 echo X/"$0" |
39522     sed '/^.*\/\([^/][^/]*\)\/*$/{
39523             s//\1/
39524             q
39525           }
39526           /^X\/\(\/\/\)$/{
39527             s//\1/
39528             q
39529           }
39530           /^X\/\(\/\).*/{
39531             s//\1/
39532             q
39533           }
39534           s/.*/./; q'`
39535
39536 # CDPATH.
39537 $as_unset CDPATH
39538
39539
39540
39541   as_lineno_1=$LINENO
39542   as_lineno_2=$LINENO
39543   test "x$as_lineno_1" != "x$as_lineno_2" &&
39544   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
39545
39546   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
39547   # uniformly replaced by the line number.  The first 'sed' inserts a
39548   # line-number line after each line using $LINENO; the second 'sed'
39549   # does the real work.  The second script uses 'N' to pair each
39550   # line-number line with the line containing $LINENO, and appends
39551   # trailing '-' during substitution so that $LINENO is not a special
39552   # case at line end.
39553   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
39554   # scripts with optimization help from Paolo Bonzini.  Blame Lee
39555   # E. McMahon (1931-1989) for sed's syntax.  :-)
39556   sed -n '
39557     p
39558     /[$]LINENO/=
39559   ' <$as_myself |
39560     sed '
39561       s/[$]LINENO.*/&-/
39562       t lineno
39563       b
39564       :lineno
39565       N
39566       :loop
39567       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
39568       t loop
39569       s/-\n.*//
39570     ' >$as_me.lineno &&
39571   chmod +x "$as_me.lineno" ||
39572     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
39573    { (exit 1); exit 1; }; }
39574
39575   # Don't try to exec as it changes $[0], causing all sort of problems
39576   # (the dirname of $[0] is not the place where we might find the
39577   # original and so on.  Autoconf is especially sensitive to this).
39578   . "./$as_me.lineno"
39579   # Exit status is that of the last command.
39580   exit
39581 }
39582
39583
39584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39585   as_dirname=dirname
39586 else
39587   as_dirname=false
39588 fi
39589
39590 ECHO_C= ECHO_N= ECHO_T=
39591 case `echo -n x` in
39592 -n*)
39593   case `echo 'x\c'` in
39594   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
39595   *)   ECHO_C='\c';;
39596   esac;;
39597 *)
39598   ECHO_N='-n';;
39599 esac
39600
39601 if expr a : '\(a\)' >/dev/null 2>&1 &&
39602    test "X`expr 00001 : '.*\(...\)'`" = X001; then
39603   as_expr=expr
39604 else
39605   as_expr=false
39606 fi
39607
39608 rm -f conf$$ conf$$.exe conf$$.file
39609 if test -d conf$$.dir; then
39610   rm -f conf$$.dir/conf$$.file
39611 else
39612   rm -f conf$$.dir
39613   mkdir conf$$.dir
39614 fi
39615 echo >conf$$.file
39616 if ln -s conf$$.file conf$$ 2>/dev/null; then
39617   as_ln_s='ln -s'
39618   # ... but there are two gotchas:
39619   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39620   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39621   # In both cases, we have to default to `cp -p'.
39622   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39623     as_ln_s='cp -p'
39624 elif ln conf$$.file conf$$ 2>/dev/null; then
39625   as_ln_s=ln
39626 else
39627   as_ln_s='cp -p'
39628 fi
39629 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39630 rmdir conf$$.dir 2>/dev/null
39631
39632 if mkdir -p . 2>/dev/null; then
39633   as_mkdir_p=:
39634 else
39635   test -d ./-p && rmdir ./-p
39636   as_mkdir_p=false
39637 fi
39638
39639 if test -x / >/dev/null 2>&1; then
39640   as_test_x='test -x'
39641 else
39642   if ls -dL / >/dev/null 2>&1; then
39643     as_ls_L_option=L
39644   else
39645     as_ls_L_option=
39646   fi
39647   as_test_x='
39648     eval sh -c '\''
39649       if test -d "$1"; then
39650         test -d "$1/.";
39651       else
39652         case $1 in
39653         -*)set "./$1";;
39654         esac;
39655         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
39656         ???[sx]*):;;*)false;;esac;fi
39657     '\'' sh
39658   '
39659 fi
39660 as_executable_p=$as_test_x
39661
39662 # Sed expression to map a string onto a valid CPP name.
39663 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
39664
39665 # Sed expression to map a string onto a valid variable name.
39666 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
39667
39668
39669 exec 6>&1
39670
39671 # Save the log message, to keep $[0] and so on meaningful, and to
39672 # report actual input values of CONFIG_FILES etc. instead of their
39673 # values after options handling.
39674 ac_log="
39675 This file was extended by $as_me, which was
39676 generated by GNU Autoconf 2.61.  Invocation command line was
39677
39678   CONFIG_FILES    = $CONFIG_FILES
39679   CONFIG_HEADERS  = $CONFIG_HEADERS
39680   CONFIG_LINKS    = $CONFIG_LINKS
39681   CONFIG_COMMANDS = $CONFIG_COMMANDS
39682   $ $0 $@
39683
39684 on `(hostname || uname -n) 2>/dev/null | sed 1q`
39685 "
39686
39687 _ACEOF
39688
39689 cat >>$CONFIG_STATUS <<_ACEOF
39690 # Files that config.status was made for.
39691 config_files="$ac_config_files"
39692 config_headers="$ac_config_headers"
39693 config_commands="$ac_config_commands"
39694
39695 _ACEOF
39696
39697 cat >>$CONFIG_STATUS <<\_ACEOF
39698 ac_cs_usage="\
39699 \`$as_me' instantiates files from templates according to the
39700 current configuration.
39701
39702 Usage: $0 [OPTIONS] [FILE]...
39703
39704   -h, --help       print this help, then exit
39705   -V, --version    print version number and configuration settings, then exit
39706   -q, --quiet      do not print progress messages
39707   -d, --debug      don't remove temporary files
39708       --recheck    update $as_me by reconfiguring in the same conditions
39709   --file=FILE[:TEMPLATE]
39710                    instantiate the configuration file FILE
39711   --header=FILE[:TEMPLATE]
39712                    instantiate the configuration header FILE
39713
39714 Configuration files:
39715 $config_files
39716
39717 Configuration headers:
39718 $config_headers
39719
39720 Configuration commands:
39721 $config_commands
39722
39723 Report bugs to <bug-autoconf@gnu.org>."
39724
39725 _ACEOF
39726 cat >>$CONFIG_STATUS <<_ACEOF
39727 ac_cs_version="\\
39728 config.status
39729 configured by $0, generated by GNU Autoconf 2.61,
39730   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
39731
39732 Copyright (C) 2006 Free Software Foundation, Inc.
39733 This config.status script is free software; the Free Software Foundation
39734 gives unlimited permission to copy, distribute and modify it."
39735
39736 ac_pwd='$ac_pwd'
39737 srcdir='$srcdir'
39738 INSTALL='$INSTALL'
39739 MKDIR_P='$MKDIR_P'
39740 _ACEOF
39741
39742 cat >>$CONFIG_STATUS <<\_ACEOF
39743 # If no file are specified by the user, then we need to provide default
39744 # value.  By we need to know if files were specified by the user.
39745 ac_need_defaults=:
39746 while test $# != 0
39747 do
39748   case $1 in
39749   --*=*)
39750     ac_option=`expr "X$1" : 'X\([^=]*\)='`
39751     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
39752     ac_shift=:
39753     ;;
39754   *)
39755     ac_option=$1
39756     ac_optarg=$2
39757     ac_shift=shift
39758     ;;
39759   esac
39760
39761   case $ac_option in
39762   # Handling of the options.
39763   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
39764     ac_cs_recheck=: ;;
39765   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39766     echo "$ac_cs_version"; exit ;;
39767   --debug | --debu | --deb | --de | --d | -d )
39768     debug=: ;;
39769   --file | --fil | --fi | --f )
39770     $ac_shift
39771     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
39772     ac_need_defaults=false;;
39773   --header | --heade | --head | --hea )
39774     $ac_shift
39775     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
39776     ac_need_defaults=false;;
39777   --he | --h)
39778     # Conflict between --help and --header
39779     { echo "$as_me: error: ambiguous option: $1
39780 Try \`$0 --help' for more information." >&2
39781    { (exit 1); exit 1; }; };;
39782   --help | --hel | -h )
39783     echo "$ac_cs_usage"; exit ;;
39784   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
39785   | -silent | --silent | --silen | --sile | --sil | --si | --s)
39786     ac_cs_silent=: ;;
39787
39788   # This is an error.
39789   -*) { echo "$as_me: error: unrecognized option: $1
39790 Try \`$0 --help' for more information." >&2
39791    { (exit 1); exit 1; }; } ;;
39792
39793   *) ac_config_targets="$ac_config_targets $1"
39794      ac_need_defaults=false ;;
39795
39796   esac
39797   shift
39798 done
39799
39800 ac_configure_extra_args=
39801
39802 if $ac_cs_silent; then
39803   exec 6>/dev/null
39804   ac_configure_extra_args="$ac_configure_extra_args --silent"
39805 fi
39806
39807 _ACEOF
39808 cat >>$CONFIG_STATUS <<_ACEOF
39809 if \$ac_cs_recheck; then
39810   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
39811   CONFIG_SHELL=$SHELL
39812   export CONFIG_SHELL
39813   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39814 fi
39815
39816 _ACEOF
39817 cat >>$CONFIG_STATUS <<\_ACEOF
39818 exec 5>>config.log
39819 {
39820   echo
39821   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
39822 ## Running $as_me. ##
39823 _ASBOX
39824   echo "$ac_log"
39825 } >&5
39826
39827 _ACEOF
39828 cat >>$CONFIG_STATUS <<_ACEOF
39829 #
39830 # INIT-COMMANDS
39831 #
39832 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
39833
39834 STATIC_BACKENDS="$SLAPD_STATIC_BACKENDS"
39835 STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS"
39836
39837
39838 _ACEOF
39839
39840 cat >>$CONFIG_STATUS <<\_ACEOF
39841
39842 # Handling of arguments.
39843 for ac_config_target in $ac_config_targets
39844 do
39845   case $ac_config_target in
39846     "include/portable.h") CONFIG_HEADERS="$CONFIG_HEADERS include/portable.h:include/portable.hin" ;;
39847     "include/ldap_features.h") CONFIG_HEADERS="$CONFIG_HEADERS include/ldap_features.h:include/ldap_features.hin" ;;
39848     "include/lber_types.h") CONFIG_HEADERS="$CONFIG_HEADERS include/lber_types.h:include/lber_types.hin" ;;
39849     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
39850     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile:build/top.mk:Makefile.in:build/dir.mk" ;;
39851     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile:build/top.mk:doc/Makefile.in:build/dir.mk" ;;
39852     "doc/man/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/Makefile:build/top.mk:doc/man/Makefile.in:build/dir.mk" ;;
39853     "doc/man/man1/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man1/Makefile:build/top.mk:doc/man/man1/Makefile.in:build/man.mk" ;;
39854     "doc/man/man3/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man3/Makefile:build/top.mk:doc/man/man3/Makefile.in:build/man.mk" ;;
39855     "doc/man/man5/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man5/Makefile:build/top.mk:doc/man/man5/Makefile.in:build/man.mk" ;;
39856     "doc/man/man8/Makefile") CONFIG_FILES="$CONFIG_FILES doc/man/man8/Makefile:build/top.mk:doc/man/man8/Makefile.in:build/man.mk" ;;
39857     "clients/Makefile") CONFIG_FILES="$CONFIG_FILES clients/Makefile:build/top.mk:clients/Makefile.in:build/dir.mk" ;;
39858     "clients/tools/Makefile") CONFIG_FILES="$CONFIG_FILES clients/tools/Makefile:build/top.mk:clients/tools/Makefile.in:build/rules.mk" ;;
39859     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile:build/top.mk:include/Makefile.in" ;;
39860     "libraries/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/Makefile:build/top.mk:libraries/Makefile.in:build/dir.mk" ;;
39861     "libraries/liblber/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblber/Makefile:build/top.mk:libraries/liblber/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39862     "libraries/libldap/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/libldap/Makefile:build/top.mk:libraries/libldap/Makefile.in:build/lib.mk:build/lib-shared.mk" ;;
39863     "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" ;;
39864     "libraries/liblunicode/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblunicode/Makefile:build/top.mk:libraries/liblunicode/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39865     "libraries/liblutil/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/liblutil/Makefile:build/top.mk:libraries/liblutil/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39866     "libraries/librewrite/Makefile") CONFIG_FILES="$CONFIG_FILES libraries/librewrite/Makefile:build/top.mk:libraries/librewrite/Makefile.in:build/lib.mk:build/lib-static.mk" ;;
39867     "servers/Makefile") CONFIG_FILES="$CONFIG_FILES servers/Makefile:build/top.mk:servers/Makefile.in:build/dir.mk" ;;
39868     "servers/slapd/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/Makefile:build/top.mk:servers/slapd/Makefile.in:build/srv.mk" ;;
39869     "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" ;;
39870     "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" ;;
39871     "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" ;;
39872     "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" ;;
39873     "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" ;;
39874     "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" ;;
39875     "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" ;;
39876     "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" ;;
39877     "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" ;;
39878     "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" ;;
39879     "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" ;;
39880     "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" ;;
39881     "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" ;;
39882     "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" ;;
39883     "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" ;;
39884     "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" ;;
39885     "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" ;;
39886     "servers/slapd/overlays/Makefile") CONFIG_FILES="$CONFIG_FILES servers/slapd/overlays/Makefile:build/top.mk:servers/slapd/overlays/Makefile.in:build/lib.mk" ;;
39887     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile:build/top.mk:tests/Makefile.in:build/dir.mk" ;;
39888     "tests/run") CONFIG_FILES="$CONFIG_FILES tests/run" ;;
39889     "tests/progs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/progs/Makefile:build/top.mk:tests/progs/Makefile.in:build/rules.mk" ;;
39890     "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
39891
39892   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
39893 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
39894    { (exit 1); exit 1; }; };;
39895   esac
39896 done
39897
39898
39899 # If the user did not use the arguments to specify the items to instantiate,
39900 # then the envvar interface is used.  Set only those that are not.
39901 # We use the long form for the default assignment because of an extremely
39902 # bizarre bug on SunOS 4.1.3.
39903 if $ac_need_defaults; then
39904   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
39905   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
39906   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
39907 fi
39908
39909 # Have a temporary directory for convenience.  Make it in the build tree
39910 # simply because there is no reason against having it here, and in addition,
39911 # creating and moving files from /tmp can sometimes cause problems.
39912 # Hook for its removal unless debugging.
39913 # Note that there is a small window in which the directory will not be cleaned:
39914 # after its creation but before its name has been assigned to `$tmp'.
39915 $debug ||
39916 {
39917   tmp=
39918   trap 'exit_status=$?
39919   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
39920 ' 0
39921   trap '{ (exit 1); exit 1; }' 1 2 13 15
39922 }
39923 # Create a (secure) tmp directory for tmp files.
39924
39925 {
39926   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
39927   test -n "$tmp" && test -d "$tmp"
39928 }  ||
39929 {
39930   tmp=./conf$$-$RANDOM
39931   (umask 077 && mkdir "$tmp")
39932 } ||
39933 {
39934    echo "$me: cannot create a temporary directory in ." >&2
39935    { (exit 1); exit 1; }
39936 }
39937
39938 #
39939 # Set up the sed scripts for CONFIG_FILES section.
39940 #
39941
39942 # No need to generate the scripts if there are no CONFIG_FILES.
39943 # This happens for instance when ./config.status config.h
39944 if test -n "$CONFIG_FILES"; then
39945
39946 _ACEOF
39947
39948
39949
39950 ac_delim='%!_!# '
39951 for ac_last_try in false false false false false :; do
39952   cat >conf$$subs.sed <<_ACEOF
39953 SHELL!$SHELL$ac_delim
39954 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
39955 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
39956 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
39957 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
39958 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
39959 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
39960 exec_prefix!$exec_prefix$ac_delim
39961 prefix!$prefix$ac_delim
39962 program_transform_name!$program_transform_name$ac_delim
39963 bindir!$bindir$ac_delim
39964 sbindir!$sbindir$ac_delim
39965 libexecdir!$libexecdir$ac_delim
39966 datarootdir!$datarootdir$ac_delim
39967 datadir!$datadir$ac_delim
39968 sysconfdir!$sysconfdir$ac_delim
39969 sharedstatedir!$sharedstatedir$ac_delim
39970 localstatedir!$localstatedir$ac_delim
39971 includedir!$includedir$ac_delim
39972 oldincludedir!$oldincludedir$ac_delim
39973 docdir!$docdir$ac_delim
39974 infodir!$infodir$ac_delim
39975 htmldir!$htmldir$ac_delim
39976 dvidir!$dvidir$ac_delim
39977 pdfdir!$pdfdir$ac_delim
39978 psdir!$psdir$ac_delim
39979 libdir!$libdir$ac_delim
39980 localedir!$localedir$ac_delim
39981 mandir!$mandir$ac_delim
39982 DEFS!$DEFS$ac_delim
39983 ECHO_C!$ECHO_C$ac_delim
39984 ECHO_N!$ECHO_N$ac_delim
39985 ECHO_T!$ECHO_T$ac_delim
39986 LIBS!$LIBS$ac_delim
39987 build_alias!$build_alias$ac_delim
39988 host_alias!$host_alias$ac_delim
39989 target_alias!$target_alias$ac_delim
39990 build!$build$ac_delim
39991 build_cpu!$build_cpu$ac_delim
39992 build_vendor!$build_vendor$ac_delim
39993 build_os!$build_os$ac_delim
39994 host!$host$ac_delim
39995 host_cpu!$host_cpu$ac_delim
39996 host_vendor!$host_vendor$ac_delim
39997 host_os!$host_os$ac_delim
39998 target!$target$ac_delim
39999 target_cpu!$target_cpu$ac_delim
40000 target_vendor!$target_vendor$ac_delim
40001 target_os!$target_os$ac_delim
40002 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
40003 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
40004 INSTALL_DATA!$INSTALL_DATA$ac_delim
40005 am__isrc!$am__isrc$ac_delim
40006 CYGPATH_W!$CYGPATH_W$ac_delim
40007 PACKAGE!$PACKAGE$ac_delim
40008 VERSION!$VERSION$ac_delim
40009 ACLOCAL!$ACLOCAL$ac_delim
40010 AUTOCONF!$AUTOCONF$ac_delim
40011 AUTOMAKE!$AUTOMAKE$ac_delim
40012 AUTOHEADER!$AUTOHEADER$ac_delim
40013 MAKEINFO!$MAKEINFO$ac_delim
40014 install_sh!$install_sh$ac_delim
40015 STRIP!$STRIP$ac_delim
40016 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
40017 mkdir_p!$mkdir_p$ac_delim
40018 AWK!$AWK$ac_delim
40019 SET_MAKE!$SET_MAKE$ac_delim
40020 am__leading_dot!$am__leading_dot$ac_delim
40021 AMTAR!$AMTAR$ac_delim
40022 am__tar!$am__tar$ac_delim
40023 am__untar!$am__untar$ac_delim
40024 OPENLDAP_LIBRELEASE!$OPENLDAP_LIBRELEASE$ac_delim
40025 OPENLDAP_LIBVERSION!$OPENLDAP_LIBVERSION$ac_delim
40026 OPENLDAP_RELEASE_DATE!$OPENLDAP_RELEASE_DATE$ac_delim
40027 top_builddir!$top_builddir$ac_delim
40028 ldap_subdir!$ldap_subdir$ac_delim
40029 CC!$CC$ac_delim
40030 AR!$AR$ac_delim
40031 CFLAGS!$CFLAGS$ac_delim
40032 LDFLAGS!$LDFLAGS$ac_delim
40033 CPPFLAGS!$CPPFLAGS$ac_delim
40034 ac_ct_CC!$ac_ct_CC$ac_delim
40035 EXEEXT!$EXEEXT$ac_delim
40036 OBJEXT!$OBJEXT$ac_delim
40037 DEPDIR!$DEPDIR$ac_delim
40038 am__include!$am__include$ac_delim
40039 am__quote!$am__quote$ac_delim
40040 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
40041 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
40042 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
40043 CCDEPMODE!$CCDEPMODE$ac_delim
40044 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
40045 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
40046 GREP!$GREP$ac_delim
40047 EGREP!$EGREP$ac_delim
40048 LN_S!$LN_S$ac_delim
40049 ECHO!$ECHO$ac_delim
40050 _ACEOF
40051
40052   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
40053     break
40054   elif $ac_last_try; then
40055     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40056 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40057    { (exit 1); exit 1; }; }
40058   else
40059     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40060   fi
40061 done
40062
40063 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40064 if test -n "$ac_eof"; then
40065   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40066   ac_eof=`expr $ac_eof + 1`
40067 fi
40068
40069 cat >>$CONFIG_STATUS <<_ACEOF
40070 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
40071 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40072 _ACEOF
40073 sed '
40074 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40075 s/^/s,@/; s/!/@,|#_!!_#|/
40076 :n
40077 t n
40078 s/'"$ac_delim"'$/,g/; t
40079 s/$/\\/; p
40080 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40081 ' >>$CONFIG_STATUS <conf$$subs.sed
40082 rm -f conf$$subs.sed
40083 cat >>$CONFIG_STATUS <<_ACEOF
40084 CEOF$ac_eof
40085 _ACEOF
40086
40087
40088 ac_delim='%!_!# '
40089 for ac_last_try in false false false false false :; do
40090   cat >conf$$subs.sed <<_ACEOF
40091 RANLIB!$RANLIB$ac_delim
40092 DLLTOOL!$DLLTOOL$ac_delim
40093 AS!$AS$ac_delim
40094 OBJDUMP!$OBJDUMP$ac_delim
40095 CPP!$CPP$ac_delim
40096 LIBTOOL!$LIBTOOL$ac_delim
40097 PERLBIN!$PERLBIN$ac_delim
40098 OL_MKDEP!$OL_MKDEP$ac_delim
40099 OL_MKDEP_FLAGS!$OL_MKDEP_FLAGS$ac_delim
40100 LTSTATIC!$LTSTATIC$ac_delim
40101 MYSQL!$MYSQL$ac_delim
40102 LIBOBJS!$LIBOBJS$ac_delim
40103 LIBSRCS!$LIBSRCS$ac_delim
40104 PLAT!$PLAT$ac_delim
40105 WITH_SASL!$WITH_SASL$ac_delim
40106 WITH_TLS!$WITH_TLS$ac_delim
40107 WITH_MODULES_ENABLED!$WITH_MODULES_ENABLED$ac_delim
40108 WITH_ACI_ENABLED!$WITH_ACI_ENABLED$ac_delim
40109 BUILD_THREAD!$BUILD_THREAD$ac_delim
40110 BUILD_LIBS_DYNAMIC!$BUILD_LIBS_DYNAMIC$ac_delim
40111 BUILD_SLAPD!$BUILD_SLAPD$ac_delim
40112 BUILD_SLAPI!$BUILD_SLAPI$ac_delim
40113 SLAPD_SLAPI_DEPEND!$SLAPD_SLAPI_DEPEND$ac_delim
40114 BUILD_BDB!$BUILD_BDB$ac_delim
40115 BUILD_DNSSRV!$BUILD_DNSSRV$ac_delim
40116 BUILD_HDB!$BUILD_HDB$ac_delim
40117 BUILD_LDAP!$BUILD_LDAP$ac_delim
40118 BUILD_META!$BUILD_META$ac_delim
40119 BUILD_MONITOR!$BUILD_MONITOR$ac_delim
40120 BUILD_NDB!$BUILD_NDB$ac_delim
40121 BUILD_NULL!$BUILD_NULL$ac_delim
40122 BUILD_PASSWD!$BUILD_PASSWD$ac_delim
40123 BUILD_RELAY!$BUILD_RELAY$ac_delim
40124 BUILD_PERL!$BUILD_PERL$ac_delim
40125 BUILD_SHELL!$BUILD_SHELL$ac_delim
40126 BUILD_SOCK!$BUILD_SOCK$ac_delim
40127 BUILD_SQL!$BUILD_SQL$ac_delim
40128 BUILD_ACCESSLOG!$BUILD_ACCESSLOG$ac_delim
40129 BUILD_AUDITLOG!$BUILD_AUDITLOG$ac_delim
40130 BUILD_COLLECT!$BUILD_COLLECT$ac_delim
40131 BUILD_CONSTRAINT!$BUILD_CONSTRAINT$ac_delim
40132 BUILD_DDS!$BUILD_DDS$ac_delim
40133 BUILD_DENYOP!$BUILD_DENYOP$ac_delim
40134 BUILD_DEREF!$BUILD_DEREF$ac_delim
40135 BUILD_DYNGROUP!$BUILD_DYNGROUP$ac_delim
40136 BUILD_DYNLIST!$BUILD_DYNLIST$ac_delim
40137 BUILD_LASTMOD!$BUILD_LASTMOD$ac_delim
40138 BUILD_MEMBEROF!$BUILD_MEMBEROF$ac_delim
40139 BUILD_PPOLICY!$BUILD_PPOLICY$ac_delim
40140 BUILD_PROXYCACHE!$BUILD_PROXYCACHE$ac_delim
40141 BUILD_REFINT!$BUILD_REFINT$ac_delim
40142 BUILD_RETCODE!$BUILD_RETCODE$ac_delim
40143 BUILD_RWM!$BUILD_RWM$ac_delim
40144 BUILD_SEQMOD!$BUILD_SEQMOD$ac_delim
40145 BUILD_SSSVLV!$BUILD_SSSVLV$ac_delim
40146 BUILD_SYNCPROV!$BUILD_SYNCPROV$ac_delim
40147 BUILD_TRANSLUCENT!$BUILD_TRANSLUCENT$ac_delim
40148 BUILD_UNIQUE!$BUILD_UNIQUE$ac_delim
40149 BUILD_VALSORT!$BUILD_VALSORT$ac_delim
40150 LDAP_LIBS!$LDAP_LIBS$ac_delim
40151 SLAPD_LIBS!$SLAPD_LIBS$ac_delim
40152 BDB_LIBS!$BDB_LIBS$ac_delim
40153 SLAPD_NDB_LIBS!$SLAPD_NDB_LIBS$ac_delim
40154 SLAPD_NDB_INCS!$SLAPD_NDB_INCS$ac_delim
40155 LTHREAD_LIBS!$LTHREAD_LIBS$ac_delim
40156 LUTIL_LIBS!$LUTIL_LIBS$ac_delim
40157 WRAP_LIBS!$WRAP_LIBS$ac_delim
40158 SLAPD_MODULES_CPPFLAGS!$SLAPD_MODULES_CPPFLAGS$ac_delim
40159 SLAPD_MODULES_LDFLAGS!$SLAPD_MODULES_LDFLAGS$ac_delim
40160 SLAPD_NO_STATIC!$SLAPD_NO_STATIC$ac_delim
40161 SLAPD_STATIC_BACKENDS!$SLAPD_STATIC_BACKENDS$ac_delim
40162 SLAPD_DYNAMIC_BACKENDS!$SLAPD_DYNAMIC_BACKENDS$ac_delim
40163 SLAPD_STATIC_OVERLAYS!$SLAPD_STATIC_OVERLAYS$ac_delim
40164 SLAPD_DYNAMIC_OVERLAYS!$SLAPD_DYNAMIC_OVERLAYS$ac_delim
40165 PERL_CPPFLAGS!$PERL_CPPFLAGS$ac_delim
40166 SLAPD_PERL_LDFLAGS!$SLAPD_PERL_LDFLAGS$ac_delim
40167 MOD_PERL_LDFLAGS!$MOD_PERL_LDFLAGS$ac_delim
40168 KRB4_LIBS!$KRB4_LIBS$ac_delim
40169 KRB5_LIBS!$KRB5_LIBS$ac_delim
40170 SASL_LIBS!$SASL_LIBS$ac_delim
40171 TLS_LIBS!$TLS_LIBS$ac_delim
40172 MODULES_LIBS!$MODULES_LIBS$ac_delim
40173 SLAPI_LIBS!$SLAPI_LIBS$ac_delim
40174 LIBSLAPI!$LIBSLAPI$ac_delim
40175 AUTH_LIBS!$AUTH_LIBS$ac_delim
40176 ICU_LIBS!$ICU_LIBS$ac_delim
40177 SLAPD_SLP_LIBS!$SLAPD_SLP_LIBS$ac_delim
40178 SLAPD_GMP_LIBS!$SLAPD_GMP_LIBS$ac_delim
40179 SLAPD_SQL_LDFLAGS!$SLAPD_SQL_LDFLAGS$ac_delim
40180 SLAPD_SQL_LIBS!$SLAPD_SQL_LIBS$ac_delim
40181 SLAPD_SQL_INCLUDES!$SLAPD_SQL_INCLUDES$ac_delim
40182 LTLIBOBJS!$LTLIBOBJS$ac_delim
40183 _ACEOF
40184
40185   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 92; then
40186     break
40187   elif $ac_last_try; then
40188     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
40189 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
40190    { (exit 1); exit 1; }; }
40191   else
40192     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40193   fi
40194 done
40195
40196 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
40197 if test -n "$ac_eof"; then
40198   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
40199   ac_eof=`expr $ac_eof + 1`
40200 fi
40201
40202 cat >>$CONFIG_STATUS <<_ACEOF
40203 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
40204 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
40205 _ACEOF
40206 sed '
40207 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
40208 s/^/s,@/; s/!/@,|#_!!_#|/
40209 :n
40210 t n
40211 s/'"$ac_delim"'$/,g/; t
40212 s/$/\\/; p
40213 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
40214 ' >>$CONFIG_STATUS <conf$$subs.sed
40215 rm -f conf$$subs.sed
40216 cat >>$CONFIG_STATUS <<_ACEOF
40217 :end
40218 s/|#_!!_#|//g
40219 CEOF$ac_eof
40220 _ACEOF
40221
40222
40223 # VPATH may cause trouble with some makes, so we remove $(srcdir),
40224 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
40225 # trailing colons and then remove the whole line if VPATH becomes empty
40226 # (actually we leave an empty line to preserve line numbers).
40227 if test "x$srcdir" = x.; then
40228   ac_vpsub='/^[  ]*VPATH[        ]*=/{
40229 s/:*\$(srcdir):*/:/
40230 s/:*\${srcdir}:*/:/
40231 s/:*@srcdir@:*/:/
40232 s/^\([^=]*=[     ]*\):*/\1/
40233 s/:*$//
40234 s/^[^=]*=[       ]*$//
40235 }'
40236 fi
40237
40238 cat >>$CONFIG_STATUS <<\_ACEOF
40239 fi # test -n "$CONFIG_FILES"
40240
40241
40242 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
40243 do
40244   case $ac_tag in
40245   :[FHLC]) ac_mode=$ac_tag; continue;;
40246   esac
40247   case $ac_mode$ac_tag in
40248   :[FHL]*:*);;
40249   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
40250 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
40251    { (exit 1); exit 1; }; };;
40252   :[FH]-) ac_tag=-:-;;
40253   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40254   esac
40255   ac_save_IFS=$IFS
40256   IFS=:
40257   set x $ac_tag
40258   IFS=$ac_save_IFS
40259   shift
40260   ac_file=$1
40261   shift
40262
40263   case $ac_mode in
40264   :L) ac_source=$1;;
40265   :[FH])
40266     ac_file_inputs=
40267     for ac_f
40268     do
40269       case $ac_f in
40270       -) ac_f="$tmp/stdin";;
40271       *) # Look for the file first in the build tree, then in the source tree
40272          # (if the path is not absolute).  The absolute path cannot be DOS-style,
40273          # because $ac_f cannot contain `:'.
40274          test -f "$ac_f" ||
40275            case $ac_f in
40276            [\\/$]*) false;;
40277            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40278            esac ||
40279            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
40280 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
40281    { (exit 1); exit 1; }; };;
40282       esac
40283       ac_file_inputs="$ac_file_inputs $ac_f"
40284     done
40285
40286     # Let's still pretend it is `configure' which instantiates (i.e., don't
40287     # use $as_me), people would be surprised to read:
40288     #    /* config.h.  Generated by config.status.  */
40289     configure_input="Generated from "`IFS=:
40290           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
40291     if test x"$ac_file" != x-; then
40292       configure_input="$ac_file.  $configure_input"
40293       { echo "$as_me:$LINENO: creating $ac_file" >&5
40294 echo "$as_me: creating $ac_file" >&6;}
40295     fi
40296
40297     case $ac_tag in
40298     *:-:* | *:-) cat >"$tmp/stdin";;
40299     esac
40300     ;;
40301   esac
40302
40303   ac_dir=`$as_dirname -- "$ac_file" ||
40304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40305          X"$ac_file" : 'X\(//\)[^/]' \| \
40306          X"$ac_file" : 'X\(//\)$' \| \
40307          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40308 echo X"$ac_file" |
40309     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40310             s//\1/
40311             q
40312           }
40313           /^X\(\/\/\)[^/].*/{
40314             s//\1/
40315             q
40316           }
40317           /^X\(\/\/\)$/{
40318             s//\1/
40319             q
40320           }
40321           /^X\(\/\).*/{
40322             s//\1/
40323             q
40324           }
40325           s/.*/./; q'`
40326   { as_dir="$ac_dir"
40327   case $as_dir in #(
40328   -*) as_dir=./$as_dir;;
40329   esac
40330   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40331     as_dirs=
40332     while :; do
40333       case $as_dir in #(
40334       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40335       *) as_qdir=$as_dir;;
40336       esac
40337       as_dirs="'$as_qdir' $as_dirs"
40338       as_dir=`$as_dirname -- "$as_dir" ||
40339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40340          X"$as_dir" : 'X\(//\)[^/]' \| \
40341          X"$as_dir" : 'X\(//\)$' \| \
40342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40343 echo X"$as_dir" |
40344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40345             s//\1/
40346             q
40347           }
40348           /^X\(\/\/\)[^/].*/{
40349             s//\1/
40350             q
40351           }
40352           /^X\(\/\/\)$/{
40353             s//\1/
40354             q
40355           }
40356           /^X\(\/\).*/{
40357             s//\1/
40358             q
40359           }
40360           s/.*/./; q'`
40361       test -d "$as_dir" && break
40362     done
40363     test -z "$as_dirs" || eval "mkdir $as_dirs"
40364   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40365 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40366    { (exit 1); exit 1; }; }; }
40367   ac_builddir=.
40368
40369 case "$ac_dir" in
40370 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
40371 *)
40372   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
40373   # A ".." for each directory in $ac_dir_suffix.
40374   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
40375   case $ac_top_builddir_sub in
40376   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
40377   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
40378   esac ;;
40379 esac
40380 ac_abs_top_builddir=$ac_pwd
40381 ac_abs_builddir=$ac_pwd$ac_dir_suffix
40382 # for backward compatibility:
40383 ac_top_builddir=$ac_top_build_prefix
40384
40385 case $srcdir in
40386   .)  # We are building in place.
40387     ac_srcdir=.
40388     ac_top_srcdir=$ac_top_builddir_sub
40389     ac_abs_top_srcdir=$ac_pwd ;;
40390   [\\/]* | ?:[\\/]* )  # Absolute name.
40391     ac_srcdir=$srcdir$ac_dir_suffix;
40392     ac_top_srcdir=$srcdir
40393     ac_abs_top_srcdir=$srcdir ;;
40394   *) # Relative name.
40395     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
40396     ac_top_srcdir=$ac_top_build_prefix$srcdir
40397     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
40398 esac
40399 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
40400
40401
40402   case $ac_mode in
40403   :F)
40404   #
40405   # CONFIG_FILE
40406   #
40407
40408   case $INSTALL in
40409   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
40410   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
40411   esac
40412   ac_MKDIR_P=$MKDIR_P
40413   case $MKDIR_P in
40414   [\\/$]* | ?:[\\/]* ) ;;
40415   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
40416   esac
40417 _ACEOF
40418
40419 cat >>$CONFIG_STATUS <<\_ACEOF
40420 # If the template does not know about datarootdir, expand it.
40421 # FIXME: This hack should be removed a few years after 2.60.
40422 ac_datarootdir_hack=; ac_datarootdir_seen=
40423
40424 case `sed -n '/datarootdir/ {
40425   p
40426   q
40427 }
40428 /@datadir@/p
40429 /@docdir@/p
40430 /@infodir@/p
40431 /@localedir@/p
40432 /@mandir@/p
40433 ' $ac_file_inputs` in
40434 *datarootdir*) ac_datarootdir_seen=yes;;
40435 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
40436   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
40437 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
40438 _ACEOF
40439 cat >>$CONFIG_STATUS <<_ACEOF
40440   ac_datarootdir_hack='
40441   s&@datadir@&$datadir&g
40442   s&@docdir@&$docdir&g
40443   s&@infodir@&$infodir&g
40444   s&@localedir@&$localedir&g
40445   s&@mandir@&$mandir&g
40446     s&\\\${datarootdir}&$datarootdir&g' ;;
40447 esac
40448 _ACEOF
40449
40450 # Neutralize VPATH when `$srcdir' = `.'.
40451 # Shell code in configure.ac might set extrasub.
40452 # FIXME: do we really want to maintain this feature?
40453 cat >>$CONFIG_STATUS <<_ACEOF
40454   sed "$ac_vpsub
40455 $extrasub
40456 _ACEOF
40457 cat >>$CONFIG_STATUS <<\_ACEOF
40458 :t
40459 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
40460 s&@configure_input@&$configure_input&;t t
40461 s&@top_builddir@&$ac_top_builddir_sub&;t t
40462 s&@srcdir@&$ac_srcdir&;t t
40463 s&@abs_srcdir@&$ac_abs_srcdir&;t t
40464 s&@top_srcdir@&$ac_top_srcdir&;t t
40465 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
40466 s&@builddir@&$ac_builddir&;t t
40467 s&@abs_builddir@&$ac_abs_builddir&;t t
40468 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
40469 s&@INSTALL@&$ac_INSTALL&;t t
40470 s&@MKDIR_P@&$ac_MKDIR_P&;t t
40471 $ac_datarootdir_hack
40472 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
40473
40474 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
40475   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
40476   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
40477   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40478 which seems to be undefined.  Please make sure it is defined." >&5
40479 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
40480 which seems to be undefined.  Please make sure it is defined." >&2;}
40481
40482   rm -f "$tmp/stdin"
40483   case $ac_file in
40484   -) cat "$tmp/out"; rm -f "$tmp/out";;
40485   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
40486   esac
40487  ;;
40488   :H)
40489   #
40490   # CONFIG_HEADER
40491   #
40492 _ACEOF
40493
40494 # Transform confdefs.h into a sed script `conftest.defines', that
40495 # substitutes the proper values into config.h.in to produce config.h.
40496 rm -f conftest.defines conftest.tail
40497 # First, append a space to every undef/define line, to ease matching.
40498 echo 's/$/ /' >conftest.defines
40499 # Then, protect against being on the right side of a sed subst, or in
40500 # an unquoted here document, in config.status.  If some macros were
40501 # called several times there might be several #defines for the same
40502 # symbol, which is useless.  But do not sort them, since the last
40503 # AC_DEFINE must be honored.
40504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40505 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
40506 # NAME is the cpp macro being defined, VALUE is the value it is being given.
40507 # PARAMS is the parameter list in the macro definition--in most cases, it's
40508 # just an empty string.
40509 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
40510 ac_dB='\\)[      (].*,\\1define\\2'
40511 ac_dC=' '
40512 ac_dD=' ,'
40513
40514 uniq confdefs.h |
40515   sed -n '
40516         t rset
40517         :rset
40518         s/^[     ]*#[    ]*define[       ][      ]*//
40519         t ok
40520         d
40521         :ok
40522         s/[\\&,]/\\&/g
40523         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
40524         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
40525   ' >>conftest.defines
40526
40527 # Remove the space that was appended to ease matching.
40528 # Then replace #undef with comments.  This is necessary, for
40529 # example, in the case of _POSIX_SOURCE, which is predefined and required
40530 # on some systems where configure will not decide to define it.
40531 # (The regexp can be short, since the line contains either #define or #undef.)
40532 echo 's/ $//
40533 s,^[     #]*u.*,/* & */,' >>conftest.defines
40534
40535 # Break up conftest.defines:
40536 ac_max_sed_lines=50
40537
40538 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
40539 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
40540 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
40541 # et cetera.
40542 ac_in='$ac_file_inputs'
40543 ac_out='"$tmp/out1"'
40544 ac_nxt='"$tmp/out2"'
40545
40546 while :
40547 do
40548   # Write a here document:
40549     cat >>$CONFIG_STATUS <<_ACEOF
40550     # First, check the format of the line:
40551     cat >"\$tmp/defines.sed" <<\\CEOF
40552 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
40553 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
40554 b
40555 :def
40556 _ACEOF
40557   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
40558   echo 'CEOF
40559     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
40560   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
40561   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
40562   grep . conftest.tail >/dev/null || break
40563   rm -f conftest.defines
40564   mv conftest.tail conftest.defines
40565 done
40566 rm -f conftest.defines conftest.tail
40567
40568 echo "ac_result=$ac_in" >>$CONFIG_STATUS
40569 cat >>$CONFIG_STATUS <<\_ACEOF
40570   if test x"$ac_file" != x-; then
40571     echo "/* $configure_input  */" >"$tmp/config.h"
40572     cat "$ac_result" >>"$tmp/config.h"
40573     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
40574       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
40575 echo "$as_me: $ac_file is unchanged" >&6;}
40576     else
40577       rm -f $ac_file
40578       mv "$tmp/config.h" $ac_file
40579     fi
40580   else
40581     echo "/* $configure_input  */"
40582     cat "$ac_result"
40583   fi
40584   rm -f "$tmp/out12"
40585 # Compute $ac_file's index in $config_headers.
40586 _am_stamp_count=1
40587 for _am_header in $config_headers :; do
40588   case $_am_header in
40589     $ac_file | $ac_file:* )
40590       break ;;
40591     * )
40592       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
40593   esac
40594 done
40595 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
40596 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40597          X$ac_file : 'X\(//\)[^/]' \| \
40598          X$ac_file : 'X\(//\)$' \| \
40599          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
40600 echo X$ac_file |
40601     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40602             s//\1/
40603             q
40604           }
40605           /^X\(\/\/\)[^/].*/{
40606             s//\1/
40607             q
40608           }
40609           /^X\(\/\/\)$/{
40610             s//\1/
40611             q
40612           }
40613           /^X\(\/\).*/{
40614             s//\1/
40615             q
40616           }
40617           s/.*/./; q'`/stamp-h$_am_stamp_count
40618  ;;
40619
40620   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
40621 echo "$as_me: executing $ac_file commands" >&6;}
40622  ;;
40623   esac
40624
40625
40626   case $ac_file$ac_mode in
40627     "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
40628   # Strip MF so we end up with the name of the file.
40629   mf=`echo "$mf" | sed -e 's/:.*$//'`
40630   # Check whether this is an Automake generated Makefile or not.
40631   # We used to match only the files named `Makefile.in', but
40632   # some people rename them; so instead we look at the file content.
40633   # Grep'ing the first line is not enough: some people post-process
40634   # each Makefile.in and add a new line on top of each file to say so.
40635   # Grep'ing the whole file is not good either: AIX grep has a line
40636   # limit of 2048, but all sed's we know have understand at least 4000.
40637   if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then
40638     dirpart=`$as_dirname -- "$mf" ||
40639 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40640          X"$mf" : 'X\(//\)[^/]' \| \
40641          X"$mf" : 'X\(//\)$' \| \
40642          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
40643 echo X"$mf" |
40644     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40645             s//\1/
40646             q
40647           }
40648           /^X\(\/\/\)[^/].*/{
40649             s//\1/
40650             q
40651           }
40652           /^X\(\/\/\)$/{
40653             s//\1/
40654             q
40655           }
40656           /^X\(\/\).*/{
40657             s//\1/
40658             q
40659           }
40660           s/.*/./; q'`
40661   else
40662     continue
40663   fi
40664   # Extract the definition of DEPDIR, am__include, and am__quote
40665   # from the Makefile without running `make'.
40666   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
40667   test -z "$DEPDIR" && continue
40668   am__include=`sed -n 's/^am__include = //p' < "$mf"`
40669   test -z "am__include" && continue
40670   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
40671   # When using ansi2knr, U may be empty or an underscore; expand it
40672   U=`sed -n 's/^U = //p' < "$mf"`
40673   # Find all dependency output files, they are included files with
40674   # $(DEPDIR) in their names.  We invoke sed twice because it is the
40675   # simplest approach to changing $(DEPDIR) to its actual value in the
40676   # expansion.
40677   for file in `sed -n "
40678     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
40679        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
40680     # Make sure the directory exists.
40681     test -f "$dirpart/$file" && continue
40682     fdir=`$as_dirname -- "$file" ||
40683 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40684          X"$file" : 'X\(//\)[^/]' \| \
40685          X"$file" : 'X\(//\)$' \| \
40686          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
40687 echo X"$file" |
40688     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40689             s//\1/
40690             q
40691           }
40692           /^X\(\/\/\)[^/].*/{
40693             s//\1/
40694             q
40695           }
40696           /^X\(\/\/\)$/{
40697             s//\1/
40698             q
40699           }
40700           /^X\(\/\).*/{
40701             s//\1/
40702             q
40703           }
40704           s/.*/./; q'`
40705     { as_dir=$dirpart/$fdir
40706   case $as_dir in #(
40707   -*) as_dir=./$as_dir;;
40708   esac
40709   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
40710     as_dirs=
40711     while :; do
40712       case $as_dir in #(
40713       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
40714       *) as_qdir=$as_dir;;
40715       esac
40716       as_dirs="'$as_qdir' $as_dirs"
40717       as_dir=`$as_dirname -- "$as_dir" ||
40718 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40719          X"$as_dir" : 'X\(//\)[^/]' \| \
40720          X"$as_dir" : 'X\(//\)$' \| \
40721          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40722 echo X"$as_dir" |
40723     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40724             s//\1/
40725             q
40726           }
40727           /^X\(\/\/\)[^/].*/{
40728             s//\1/
40729             q
40730           }
40731           /^X\(\/\/\)$/{
40732             s//\1/
40733             q
40734           }
40735           /^X\(\/\).*/{
40736             s//\1/
40737             q
40738           }
40739           s/.*/./; q'`
40740       test -d "$as_dir" && break
40741     done
40742     test -z "$as_dirs" || eval "mkdir $as_dirs"
40743   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
40744 echo "$as_me: error: cannot create directory $as_dir" >&2;}
40745    { (exit 1); exit 1; }; }; }
40746     # echo "creating $dirpart/$file"
40747     echo '# dummy' > "$dirpart/$file"
40748   done
40749 done
40750  ;;
40751     "default":C)
40752 chmod +x tests/run
40753 date > stamp-h
40754 BACKENDSC="servers/slapd/backends.c"
40755 echo "Making $BACKENDSC"
40756 rm -f $BACKENDSC
40757 cat > $BACKENDSC << ENDX
40758 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40759  *
40760  * Copyright 1998-2011 The OpenLDAP Foundation.
40761  * All rights reserved.
40762  *
40763  * Redistribution and use in source and binary forms, with or without
40764  * modification, are permitted only as authorized by the OpenLDAP
40765  * Public License.
40766  *
40767  * A copy of this license is available in the file LICENSE in the
40768  * top-level directory of the distribution or, alternatively, at
40769  * <http://www.OpenLDAP.org/license.html>.
40770  */
40771 /* This file is automatically generated by configure; please do not edit. */
40772
40773 #include "portable.h"
40774 #include "slap.h"
40775
40776 ENDX
40777 if test "${STATIC_BACKENDS}"; then
40778         for b in config ${STATIC_BACKENDS}; do
40779                 bb=`echo "${b}" | sed -e 's/back-//'`
40780                 cat >> $BACKENDSC << ENDX
40781 extern BI_init ${bb}_back_initialize;
40782 ENDX
40783         done
40784
40785         cat >> $BACKENDSC << ENDX
40786
40787 BackendInfo slap_binfo[] = {
40788 ENDX
40789
40790         for b in config ${STATIC_BACKENDS}; do
40791                 bb=`echo "${b}" | sed -e 's/back-//'`
40792                 echo "    Add ${bb} ..."
40793                 cat >> $BACKENDSC << ENDX
40794         { "${bb}", ${bb}_back_initialize },
40795 ENDX
40796         done
40797
40798         cat >> $BACKENDSC << ENDX
40799         { NULL, NULL },
40800 };
40801
40802 /* end of generated file */
40803 ENDX
40804 fi
40805 OVERLAYSC="servers/slapd/overlays/statover.c"
40806 echo "Making $OVERLAYSC"
40807 rm -f $OVERLAYSC
40808 cat > $OVERLAYSC << ENDX
40809 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
40810  *
40811  * Copyright 1998-2011 The OpenLDAP Foundation.
40812  * All rights reserved.
40813  *
40814  * Redistribution and use in source and binary forms, with or without
40815  * modification, are permitted only as authorized by the OpenLDAP
40816  * Public License.
40817  *
40818  * A copy of this license is available in the file LICENSE in the
40819  * top-level directory of the distribution or, alternatively, at
40820  * <http://www.OpenLDAP.org/license.html>.
40821  */
40822 /* This file is automatically generated by configure; please do not edit. */
40823
40824 #include "portable.h"
40825 #include "slap.h"
40826
40827 ENDX
40828 if test "${STATIC_OVERLAYS}"; then
40829         for o in ${STATIC_OVERLAYS}; do
40830                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40831                 cat >> $OVERLAYSC << ENDX
40832 extern OV_init ${oo}_initialize;
40833 ENDX
40834         done
40835 fi
40836
40837 cat >> $OVERLAYSC << ENDX
40838
40839 OverlayInit slap_oinfo[] = {
40840 ENDX
40841
40842 if test "${STATIC_OVERLAYS}"; then
40843         for o in ${STATIC_OVERLAYS}; do
40844                 oo=`echo "${o}" | sed -e 's/.o$//' -e 's/_x$//'`
40845                 echo "    Add ${oo} ..."
40846                 cat >> $OVERLAYSC << ENDX
40847         { "${oo}", ${oo}_initialize },
40848 ENDX
40849         done
40850 fi
40851
40852         cat >> $OVERLAYSC << ENDX
40853         { NULL, NULL },
40854 };
40855
40856 /* end of generated file */
40857 ENDX
40858
40859 if test "${ol_cv_mkdep}" = no; then
40860         echo '(Do not "make depend"; we do not know how to build dependencies)'
40861 else
40862         echo 'Please run "make depend" to build dependencies'
40863 fi
40864  ;;
40865
40866   esac
40867 done # for ac_tag
40868
40869
40870 { (exit 0); exit 0; }
40871 _ACEOF
40872 chmod +x $CONFIG_STATUS
40873 ac_clean_files=$ac_clean_files_save
40874
40875
40876 # configure is writing to config.log, and then calls config.status.
40877 # config.status does its own redirection, appending to config.log.
40878 # Unfortunately, on DOS this fails, as config.log is still kept open
40879 # by configure, so config.status won't be able to write to it; its
40880 # output is simply discarded.  So we exec the FD to /dev/null,
40881 # effectively closing config.log, so it can be properly (re)opened and
40882 # appended to by config.status.  When coming back to configure, we
40883 # need to make the FD available again.
40884 if test "$no_create" != yes; then
40885   ac_cs_success=:
40886   ac_config_status_args=
40887   test "$silent" = yes &&
40888     ac_config_status_args="$ac_config_status_args --quiet"
40889   exec 5>/dev/null
40890   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
40891   exec 5>>config.log
40892   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
40893   # would make configure fail if this is the last instruction.
40894   $ac_cs_success || { (exit 1); exit 1; }
40895 fi
40896