Imported Upstream version 1.6.9p14
[debian/sudo] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for sudo 1.6.9.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16   emulate sh
17   NULLCMD=:
18   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19   # is contrary to our usage.  Disable this feature.
20   alias -g '${1+"$@"}'='"$@"'
21   setopt NO_GLOB_SUBST
22 else
23   case `(set -o) 2>/dev/null` in
24   *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42   echo "#! /bin/sh" >conf$$.sh
43   echo  "exit 0"   >>conf$$.sh
44   chmod +x conf$$.sh
45   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46     PATH_SEPARATOR=';'
47   else
48     PATH_SEPARATOR=:
49   fi
50   rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55   as_unset=unset
56 else
57   as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order.  Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" ""        $as_nl"
69
70 # Find who we are.  Look in the path if we contain no directory separator.
71 case $0 in
72   *[\\/]* ) as_myself=$0 ;;
73   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76   IFS=$as_save_IFS
77   test -z "$as_dir" && as_dir=.
78   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82      ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87   as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91   { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106   LC_TELEPHONE LC_TIME
107 do
108   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109     eval $as_var=C; export $as_var
110   else
111     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112   fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117    test "X`expr 00001 : '.*\(...\)'`" = X001; then
118   as_expr=expr
119 else
120   as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124   as_basename=basename
125 else
126   as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133          X"$0" : 'X\(//\)$' \| \
134          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136     sed '/^.*\/\([^/][^/]*\)\/*$/{
137             s//\1/
138             q
139           }
140           /^X\/\(\/\/\)$/{
141             s//\1/
142             q
143           }
144           /^X\/\(\/\).*/{
145             s//\1/
146             q
147           }
148           s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155   if (eval ":") 2>/dev/null; then
156   as_have_required=yes
157 else
158   as_have_required=no
159 fi
160
161   if test $as_have_required = yes &&     (eval ":
162 (as_func_return () {
163   (exit \$1)
164 }
165 as_func_success () {
166   as_func_return 0
167 }
168 as_func_failure () {
169   as_func_return 1
170 }
171 as_func_ret_success () {
172   return 0
173 }
174 as_func_ret_failure () {
175   return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180   :
181 else
182   exitcode=1
183   echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187   exitcode=1
188   echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192   :
193 else
194   exitcode=1
195   echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199   exitcode=1
200   echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204   :
205 else
206   exitcode=1
207   echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213   as_lineno_1=\$LINENO
214   as_lineno_2=\$LINENO
215   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218   :
219 else
220   as_candidate_shells=
221     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224   IFS=$as_save_IFS
225   test -z "$as_dir" && as_dir=.
226   case $as_dir in
227          /*)
228            for as_base in sh bash ksh sh5; do
229              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230            done;;
231        esac
232 done
233 IFS=$as_save_IFS
234
235
236       for as_shell in $as_candidate_shells $SHELL; do
237          # Try only shells that exist, to save several forks.
238          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239                 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241   emulate sh
242   NULLCMD=:
243   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244   # is contrary to our usage.  Disable this feature.
245   alias -g '${1+"$@"}'='"$@"'
246   setopt NO_GLOB_SUBST
247 else
248   case `(set -o) 2>/dev/null` in
249   *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258   CONFIG_SHELL=$as_shell
259                as_have_required=yes
260                if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278   (exit $1)
279 }
280 as_func_success () {
281   as_func_return 0
282 }
283 as_func_failure () {
284   as_func_return 1
285 }
286 as_func_ret_success () {
287   return 0
288 }
289 as_func_ret_failure () {
290   return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295   :
296 else
297   exitcode=1
298   echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302   exitcode=1
303   echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307   :
308 else
309   exitcode=1
310   echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314   exitcode=1
315   echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319   :
320 else
321   exitcode=1
322   echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328   as_lineno_1=$LINENO
329   as_lineno_2=$LINENO
330   test "x$as_lineno_1" != "x$as_lineno_2" &&
331   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335   break
336 fi
337
338 fi
339
340       done
341
342       if test "x$CONFIG_SHELL" != x; then
343   for as_var in BASH_ENV ENV
344         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345         done
346         export CONFIG_SHELL
347         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351     if test $as_have_required = no; then
352   echo This script requires a shell more modern than all the
353       echo shells that I found on your system.  Please install a
354       echo modern shell, or manually run the script under such a
355       echo shell if you do have one.
356       { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367   (exit \$1)
368 }
369 as_func_success () {
370   as_func_return 0
371 }
372 as_func_failure () {
373   as_func_return 1
374 }
375 as_func_ret_success () {
376   return 0
377 }
378 as_func_ret_failure () {
379   return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384   :
385 else
386   exitcode=1
387   echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391   exitcode=1
392   echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396   :
397 else
398   exitcode=1
399   echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403   exitcode=1
404   echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408   :
409 else
410   exitcode=1
411   echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415   echo No shell found that supports shell functions.
416   echo Please tell autoconf@gnu.org about your system,
417   echo including any error possibly output before this
418   echo message
419 }
420
421
422
423   as_lineno_1=$LINENO
424   as_lineno_2=$LINENO
425   test "x$as_lineno_1" != "x$as_lineno_2" &&
426   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429   # uniformly replaced by the line number.  The first 'sed' inserts a
430   # line-number line after each line using $LINENO; the second 'sed'
431   # does the real work.  The second script uses 'N' to pair each
432   # line-number line with the line containing $LINENO, and appends
433   # trailing '-' during substitution so that $LINENO is not a special
434   # case at line end.
435   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436   # scripts with optimization help from Paolo Bonzini.  Blame Lee
437   # E. McMahon (1931-1989) for sed's syntax.  :-)
438   sed -n '
439     p
440     /[$]LINENO/=
441   ' <$as_myself |
442     sed '
443       s/[$]LINENO.*/&-/
444       t lineno
445       b
446       :lineno
447       N
448       :loop
449       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450       t loop
451       s/-\n.*//
452     ' >$as_me.lineno &&
453   chmod +x "$as_me.lineno" ||
454     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455    { (exit 1); exit 1; }; }
456
457   # Don't try to exec as it changes $[0], causing all sort of problems
458   # (the dirname of $[0] is not the place where we might find the
459   # original and so on.  Autoconf is especially sensitive to this).
460   . "./$as_me.lineno"
461   # Exit status is that of the last command.
462   exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467   as_dirname=dirname
468 else
469   as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475   case `echo 'x\c'` in
476   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
477   *)   ECHO_C='\c';;
478   esac;;
479 *)
480   ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484    test "X`expr 00001 : '.*\(...\)'`" = X001; then
485   as_expr=expr
486 else
487   as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492   rm -f conf$$.dir/conf$$.file
493 else
494   rm -f conf$$.dir
495   mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499   as_ln_s='ln -s'
500   # ... but there are two gotchas:
501   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503   # In both cases, we have to default to `cp -p'.
504   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505     as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507   as_ln_s=ln
508 else
509   as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515   as_mkdir_p=:
516 else
517   test -d ./-p && rmdir ./-p
518   as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522   as_test_x='test -x'
523 else
524   if ls -dL / >/dev/null 2>&1; then
525     as_ls_L_option=L
526   else
527     as_ls_L_option=
528   fi
529   as_test_x='
530     eval sh -c '\''
531       if test -d "$1"; then
532         test -d "$1/.";
533       else
534         case $1 in
535         -*)set "./$1";;
536         esac;
537         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538         ???[sx]*):;;*)false;;esac;fi
539     '\'' sh
540   '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558   # Remove one level of quotation (which was required for Make).
559   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560   ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565   # Discard the --no-reexec flag, and continue.
566   shift
567 elif test "X$1" = X--fallback-echo; then
568   # Avoid inline document here, it may be left over
569   :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571   # Yippee, $echo works!
572   :
573 else
574   # Restart under the correct shell.
575   exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579   # used as fallback echo
580   shift
581   cat <<EOF
582 $*
583 EOF
584   exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597        echo_test_string=`eval $cmd` &&
598        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599     then
600       break
601     fi
602   done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607    test "X$echo_testing_string" = "X$echo_test_string"; then
608   :
609 else
610   # The Solaris, AIX, and Digital Unix default echo programs unquote
611   # backslashes.  This makes it impossible to quote backslashes using
612   #   echo "$something" | sed 's/\\/\\\\/g'
613   #
614   # So, first we look for a working echo in the user's PATH.
615
616   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617   for dir in $PATH /usr/ucb; do
618     IFS="$lt_save_ifs"
619     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622        test "X$echo_testing_string" = "X$echo_test_string"; then
623       echo="$dir/echo"
624       break
625     fi
626   done
627   IFS="$lt_save_ifs"
628
629   if test "X$echo" = Xecho; then
630     # We didn't find a better echo, so look for alternatives.
631     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633        test "X$echo_testing_string" = "X$echo_test_string"; then
634       # This shell has a builtin print -r that does the trick.
635       echo='print -r'
636     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637          test "X$CONFIG_SHELL" != X/bin/ksh; then
638       # If we have ksh, try running configure again with it.
639       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640       export ORIGINAL_CONFIG_SHELL
641       CONFIG_SHELL=/bin/ksh
642       export CONFIG_SHELL
643       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644     else
645       # Try using printf.
646       echo='printf %s\n'
647       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649          test "X$echo_testing_string" = "X$echo_test_string"; then
650         # Cool, printf works
651         :
652       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653            test "X$echo_testing_string" = 'X\t' &&
654            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655            test "X$echo_testing_string" = "X$echo_test_string"; then
656         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657         export CONFIG_SHELL
658         SHELL="$CONFIG_SHELL"
659         export SHELL
660         echo="$CONFIG_SHELL $0 --fallback-echo"
661       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662            test "X$echo_testing_string" = 'X\t' &&
663            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664            test "X$echo_testing_string" = "X$echo_test_string"; then
665         echo="$CONFIG_SHELL $0 --fallback-echo"
666       else
667         # maybe with a smaller string...
668         prev=:
669
670         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672           then
673             break
674           fi
675           prev="$cmd"
676         done
677
678         if test "$prev" != 'sed 50q "$0"'; then
679           echo_test_string=`eval $prev`
680           export echo_test_string
681           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682         else
683           # Oops.  We lost completely, so just stick with echo.
684           echo=echo
685         fi
686       fi
687     fi
688   fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 exec 7<&0 </dev/null 6>&1
703
704 # Name of the host.
705 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
706 # so uname gets run too.
707 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708
709 #
710 # Initializations.
711 #
712 ac_default_prefix=/usr/local
713 ac_clean_files=
714 ac_config_libobj_dir=.
715 LIBOBJS=
716 cross_compiling=no
717 subdirs=
718 MFLAGS=
719 MAKEFLAGS=
720 SHELL=${CONFIG_SHELL-/bin/sh}
721
722 # Identity of this package.
723 PACKAGE_NAME='sudo'
724 PACKAGE_TARNAME='sudo'
725 PACKAGE_VERSION='1.6.9'
726 PACKAGE_STRING='sudo 1.6.9'
727 PACKAGE_BUGREPORT=''
728
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 #  include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #  include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 LIBTOOL
803 CFLAGS
804 PROGS
805 CPPFLAGS
806 LDFLAGS
807 SUDO_LDFLAGS
808 SUDO_OBJS
809 SUDO_LIBS
810 NET_LIBS
811 AFS_LIBS
812 GETGROUPS_LIB
813 OSDEFS
814 AUTH_OBJS
815 MANTYPE
816 MAN_POSTINSTALL
817 SUDOERS_MODE
818 SUDOERS_UID
819 SUDOERS_GID
820 DEV
821 SELINUX
822 BAMAN
823 LCMAN
824 SEMAN
825 mansectsu
826 mansectform
827 mansrcdir
828 NOEXECDIR
829 noexec_file
830 INSTALL_NOEXEC
831 DONT_LEAK_PATH_INFO
832 timedir
833 timeout
834 password_timeout
835 sudo_umask
836 passprompt
837 long_otp_prompt
838 lecture
839 logfac
840 goodpri
841 badpri
842 loglen
843 ignore_dot
844 mail_no_user
845 mail_no_host
846 mail_no_perms
847 mailto
848 mailsub
849 badpass_message
850 fqdn
851 runas_default
852 env_editor
853 passwd_tries
854 tty_tickets
855 insults
856 root_sudo
857 path_info
858 EGREPPROG
859 CC
860 ac_ct_CC
861 EXEEXT
862 OBJEXT
863 CPP
864 build
865 build_cpu
866 build_vendor
867 build_os
868 host
869 host_cpu
870 host_vendor
871 host_os
872 target
873 target_cpu
874 target_vendor
875 target_os
876 SED
877 GREP
878 EGREP
879 LN_S
880 ECHO
881 AR
882 RANLIB
883 STRIP
884 UNAMEPROG
885 TRPROG
886 NROFFPROG
887 YACC
888 YFLAGS
889 LIBOBJS
890 ALLOCA
891 KRB5CONFIG
892 LTLIBOBJS'
893 ac_subst_files=''
894       ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP
903 YACC
904 YFLAGS'
905
906
907 # Initialize some variables set by options.
908 ac_init_help=
909 ac_init_version=false
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957   # If the previous option needs an argument, assign it.
958   if test -n "$ac_prev"; then
959     eval $ac_prev=\$ac_option
960     ac_prev=
961     continue
962   fi
963
964   case $ac_option in
965   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966   *)    ac_optarg=yes ;;
967   esac
968
969   # Accept the important Cygnus configure options, so we can diagnose typos.
970
971   case $ac_dashdash$ac_option in
972   --)
973     ac_dashdash=yes ;;
974
975   -bindir | --bindir | --bindi | --bind | --bin | --bi)
976     ac_prev=bindir ;;
977   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
978     bindir=$ac_optarg ;;
979
980   -build | --build | --buil | --bui | --bu)
981     ac_prev=build_alias ;;
982   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
983     build_alias=$ac_optarg ;;
984
985   -cache-file | --cache-file | --cache-fil | --cache-fi \
986   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
987     ac_prev=cache_file ;;
988   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
989   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
990     cache_file=$ac_optarg ;;
991
992   --config-cache | -C)
993     cache_file=config.cache ;;
994
995   -datadir | --datadir | --datadi | --datad)
996     ac_prev=datadir ;;
997   -datadir=* | --datadir=* | --datadi=* | --datad=*)
998     datadir=$ac_optarg ;;
999
1000   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1001   | --dataroo | --dataro | --datar)
1002     ac_prev=datarootdir ;;
1003   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1004   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1005     datarootdir=$ac_optarg ;;
1006
1007   -disable-* | --disable-*)
1008     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1009     # Reject names that are not valid shell variable names.
1010     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1011       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1012    { (exit 1); exit 1; }; }
1013     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1014     eval enable_$ac_feature=no ;;
1015
1016   -docdir | --docdir | --docdi | --doc | --do)
1017     ac_prev=docdir ;;
1018   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1019     docdir=$ac_optarg ;;
1020
1021   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1022     ac_prev=dvidir ;;
1023   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1024     dvidir=$ac_optarg ;;
1025
1026   -enable-* | --enable-*)
1027     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1028     # Reject names that are not valid shell variable names.
1029     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1030       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1031    { (exit 1); exit 1; }; }
1032     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1033     eval enable_$ac_feature=\$ac_optarg ;;
1034
1035   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1036   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1037   | --exec | --exe | --ex)
1038     ac_prev=exec_prefix ;;
1039   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1040   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1041   | --exec=* | --exe=* | --ex=*)
1042     exec_prefix=$ac_optarg ;;
1043
1044   -gas | --gas | --ga | --g)
1045     # Obsolete; use --with-gas.
1046     with_gas=yes ;;
1047
1048   -help | --help | --hel | --he | -h)
1049     ac_init_help=long ;;
1050   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1051     ac_init_help=recursive ;;
1052   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1053     ac_init_help=short ;;
1054
1055   -host | --host | --hos | --ho)
1056     ac_prev=host_alias ;;
1057   -host=* | --host=* | --hos=* | --ho=*)
1058     host_alias=$ac_optarg ;;
1059
1060   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1061     ac_prev=htmldir ;;
1062   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1063   | --ht=*)
1064     htmldir=$ac_optarg ;;
1065
1066   -includedir | --includedir | --includedi | --included | --include \
1067   | --includ | --inclu | --incl | --inc)
1068     ac_prev=includedir ;;
1069   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1070   | --includ=* | --inclu=* | --incl=* | --inc=*)
1071     includedir=$ac_optarg ;;
1072
1073   -infodir | --infodir | --infodi | --infod | --info | --inf)
1074     ac_prev=infodir ;;
1075   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1076     infodir=$ac_optarg ;;
1077
1078   -libdir | --libdir | --libdi | --libd)
1079     ac_prev=libdir ;;
1080   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1081     libdir=$ac_optarg ;;
1082
1083   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1084   | --libexe | --libex | --libe)
1085     ac_prev=libexecdir ;;
1086   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1087   | --libexe=* | --libex=* | --libe=*)
1088     libexecdir=$ac_optarg ;;
1089
1090   -localedir | --localedir | --localedi | --localed | --locale)
1091     ac_prev=localedir ;;
1092   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1093     localedir=$ac_optarg ;;
1094
1095   -localstatedir | --localstatedir | --localstatedi | --localstated \
1096   | --localstate | --localstat | --localsta | --localst | --locals)
1097     ac_prev=localstatedir ;;
1098   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1099   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1100     localstatedir=$ac_optarg ;;
1101
1102   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1103     ac_prev=mandir ;;
1104   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1105     mandir=$ac_optarg ;;
1106
1107   -nfp | --nfp | --nf)
1108     # Obsolete; use --without-fp.
1109     with_fp=no ;;
1110
1111   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1112   | --no-cr | --no-c | -n)
1113     no_create=yes ;;
1114
1115   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1116   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1117     no_recursion=yes ;;
1118
1119   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1120   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1121   | --oldin | --oldi | --old | --ol | --o)
1122     ac_prev=oldincludedir ;;
1123   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1124   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1125   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1126     oldincludedir=$ac_optarg ;;
1127
1128   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1129     ac_prev=prefix ;;
1130   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1131     prefix=$ac_optarg ;;
1132
1133   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1134   | --program-pre | --program-pr | --program-p)
1135     ac_prev=program_prefix ;;
1136   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1137   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1138     program_prefix=$ac_optarg ;;
1139
1140   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1141   | --program-suf | --program-su | --program-s)
1142     ac_prev=program_suffix ;;
1143   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1144   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1145     program_suffix=$ac_optarg ;;
1146
1147   -program-transform-name | --program-transform-name \
1148   | --program-transform-nam | --program-transform-na \
1149   | --program-transform-n | --program-transform- \
1150   | --program-transform | --program-transfor \
1151   | --program-transfo | --program-transf \
1152   | --program-trans | --program-tran \
1153   | --progr-tra | --program-tr | --program-t)
1154     ac_prev=program_transform_name ;;
1155   -program-transform-name=* | --program-transform-name=* \
1156   | --program-transform-nam=* | --program-transform-na=* \
1157   | --program-transform-n=* | --program-transform-=* \
1158   | --program-transform=* | --program-transfor=* \
1159   | --program-transfo=* | --program-transf=* \
1160   | --program-trans=* | --program-tran=* \
1161   | --progr-tra=* | --program-tr=* | --program-t=*)
1162     program_transform_name=$ac_optarg ;;
1163
1164   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1165     ac_prev=pdfdir ;;
1166   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1167     pdfdir=$ac_optarg ;;
1168
1169   -psdir | --psdir | --psdi | --psd | --ps)
1170     ac_prev=psdir ;;
1171   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1172     psdir=$ac_optarg ;;
1173
1174   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1175   | -silent | --silent | --silen | --sile | --sil)
1176     silent=yes ;;
1177
1178   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1179     ac_prev=sbindir ;;
1180   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1181   | --sbi=* | --sb=*)
1182     sbindir=$ac_optarg ;;
1183
1184   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1185   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1186   | --sharedst | --shareds | --shared | --share | --shar \
1187   | --sha | --sh)
1188     ac_prev=sharedstatedir ;;
1189   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1190   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1191   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1192   | --sha=* | --sh=*)
1193     sharedstatedir=$ac_optarg ;;
1194
1195   -site | --site | --sit)
1196     ac_prev=site ;;
1197   -site=* | --site=* | --sit=*)
1198     site=$ac_optarg ;;
1199
1200   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1201     ac_prev=srcdir ;;
1202   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1203     srcdir=$ac_optarg ;;
1204
1205   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1206   | --syscon | --sysco | --sysc | --sys | --sy)
1207     ac_prev=sysconfdir ;;
1208   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1209   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1210     sysconfdir=$ac_optarg ;;
1211
1212   -target | --target | --targe | --targ | --tar | --ta | --t)
1213     ac_prev=target_alias ;;
1214   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1215     target_alias=$ac_optarg ;;
1216
1217   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1218     verbose=yes ;;
1219
1220   -version | --version | --versio | --versi | --vers | -V)
1221     ac_init_version=: ;;
1222
1223   -with-* | --with-*)
1224     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225     # Reject names that are not valid shell variable names.
1226     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227       { echo "$as_me: error: invalid package name: $ac_package" >&2
1228    { (exit 1); exit 1; }; }
1229     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230     eval with_$ac_package=\$ac_optarg ;;
1231
1232   -without-* | --without-*)
1233     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1234     # Reject names that are not valid shell variable names.
1235     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1236       { echo "$as_me: error: invalid package name: $ac_package" >&2
1237    { (exit 1); exit 1; }; }
1238     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1239     eval with_$ac_package=no ;;
1240
1241   --x)
1242     # Obsolete; use --with-x.
1243     with_x=yes ;;
1244
1245   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1246   | --x-incl | --x-inc | --x-in | --x-i)
1247     ac_prev=x_includes ;;
1248   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1249   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1250     x_includes=$ac_optarg ;;
1251
1252   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1253   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1254     ac_prev=x_libraries ;;
1255   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1256   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1257     x_libraries=$ac_optarg ;;
1258
1259   -*) { echo "$as_me: error: unrecognized option: $ac_option
1260 Try \`$0 --help' for more information." >&2
1261    { (exit 1); exit 1; }; }
1262     ;;
1263
1264   *=*)
1265     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1266     # Reject names that are not valid shell variable names.
1267     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1268       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1269    { (exit 1); exit 1; }; }
1270     eval $ac_envvar=\$ac_optarg
1271     export $ac_envvar ;;
1272
1273   *)
1274     # FIXME: should be removed in autoconf 3.0.
1275     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1276     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1277       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1278     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1279     ;;
1280
1281   esac
1282 done
1283
1284 if test -n "$ac_prev"; then
1285   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1286   { echo "$as_me: error: missing argument to $ac_option" >&2
1287    { (exit 1); exit 1; }; }
1288 fi
1289
1290 # Be sure to have absolute directory names.
1291 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1292                 datadir sysconfdir sharedstatedir localstatedir includedir \
1293                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1294                 libdir localedir mandir
1295 do
1296   eval ac_val=\$$ac_var
1297   case $ac_val in
1298     [\\/$]* | ?:[\\/]* )  continue;;
1299     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300   esac
1301   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1302    { (exit 1); exit 1; }; }
1303 done
1304
1305 # There might be people who depend on the old broken behavior: `$host'
1306 # used to hold the argument of --host etc.
1307 # FIXME: To remove some day.
1308 build=$build_alias
1309 host=$host_alias
1310 target=$target_alias
1311
1312 # FIXME: To remove some day.
1313 if test "x$host_alias" != x; then
1314   if test "x$build_alias" = x; then
1315     cross_compiling=maybe
1316     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1317     If a cross compiler is detected then cross compile mode will be used." >&2
1318   elif test "x$build_alias" != "x$host_alias"; then
1319     cross_compiling=yes
1320   fi
1321 fi
1322
1323 ac_tool_prefix=
1324 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1325
1326 test "$silent" = yes && exec 6>/dev/null
1327
1328
1329 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1330 ac_ls_di=`ls -di .` &&
1331 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1332   { echo "$as_me: error: Working directory cannot be determined" >&2
1333    { (exit 1); exit 1; }; }
1334 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1335   { echo "$as_me: error: pwd does not report name of working directory" >&2
1336    { (exit 1); exit 1; }; }
1337
1338
1339 # Find the source files, if location was not specified.
1340 if test -z "$srcdir"; then
1341   ac_srcdir_defaulted=yes
1342   # Try the directory containing this script, then the parent directory.
1343   ac_confdir=`$as_dirname -- "$0" ||
1344 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1345          X"$0" : 'X\(//\)[^/]' \| \
1346          X"$0" : 'X\(//\)$' \| \
1347          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1348 echo X"$0" |
1349     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1350             s//\1/
1351             q
1352           }
1353           /^X\(\/\/\)[^/].*/{
1354             s//\1/
1355             q
1356           }
1357           /^X\(\/\/\)$/{
1358             s//\1/
1359             q
1360           }
1361           /^X\(\/\).*/{
1362             s//\1/
1363             q
1364           }
1365           s/.*/./; q'`
1366   srcdir=$ac_confdir
1367   if test ! -r "$srcdir/$ac_unique_file"; then
1368     srcdir=..
1369   fi
1370 else
1371   ac_srcdir_defaulted=no
1372 fi
1373 if test ! -r "$srcdir/$ac_unique_file"; then
1374   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1375   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1376    { (exit 1); exit 1; }; }
1377 fi
1378 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1379 ac_abs_confdir=`(
1380         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1381    { (exit 1); exit 1; }; }
1382         pwd)`
1383 # When building in place, set srcdir=.
1384 if test "$ac_abs_confdir" = "$ac_pwd"; then
1385   srcdir=.
1386 fi
1387 # Remove unnecessary trailing slashes from srcdir.
1388 # Double slashes in file names in object file debugging info
1389 # mess up M-x gdb in Emacs.
1390 case $srcdir in
1391 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1392 esac
1393 for ac_var in $ac_precious_vars; do
1394   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1395   eval ac_env_${ac_var}_value=\$${ac_var}
1396   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1397   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1398 done
1399
1400 #
1401 # Report the --help message.
1402 #
1403 if test "$ac_init_help" = "long"; then
1404   # Omit some internal or obsolete options to make the list less imposing.
1405   # This message is too long to be a string in the A/UX 3.1 sh.
1406   cat <<_ACEOF
1407 \`configure' configures sudo 1.6.9 to adapt to many kinds of systems.
1408
1409 Usage: $0 [OPTION]... [VAR=VALUE]...
1410
1411 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1412 VAR=VALUE.  See below for descriptions of some of the useful variables.
1413
1414 Defaults for the options are specified in brackets.
1415
1416 Configuration:
1417   -h, --help              display this help and exit
1418       --help=short        display options specific to this package
1419       --help=recursive    display the short help of all the included packages
1420   -V, --version           display version information and exit
1421   -q, --quiet, --silent   do not print \`checking...' messages
1422       --cache-file=FILE   cache test results in FILE [disabled]
1423   -C, --config-cache      alias for \`--cache-file=config.cache'
1424   -n, --no-create         do not create output files
1425       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1426
1427 Installation directories:
1428   --prefix=PREFIX         install architecture-independent files in PREFIX
1429                           [$ac_default_prefix]
1430   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1431                           [PREFIX]
1432
1433 By default, \`make install' will install all the files in
1434 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1435 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1436 for instance \`--prefix=\$HOME'.
1437
1438 For better control, use the options below.
1439
1440 Fine tuning of the installation directories:
1441   --bindir=DIR           user executables [EPREFIX/bin]
1442   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1443   --libexecdir=DIR       program executables [EPREFIX/libexec]
1444   --sysconfdir=DIR       read-only single-machine data [etc]
1445   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1446   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1447   --libdir=DIR           object code libraries [EPREFIX/lib]
1448   --includedir=DIR       C header files [PREFIX/include]
1449   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1450   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1451   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1452   --infodir=DIR          info documentation [DATAROOTDIR/info]
1453   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1454   --mandir=DIR           man documentation [DATAROOTDIR/man]
1455   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1456   --htmldir=DIR          html documentation [DOCDIR]
1457   --dvidir=DIR           dvi documentation [DOCDIR]
1458   --pdfdir=DIR           pdf documentation [DOCDIR]
1459   --psdir=DIR            ps documentation [DOCDIR]
1460 _ACEOF
1461
1462   cat <<\_ACEOF
1463
1464 System types:
1465   --build=BUILD     configure for building on BUILD [guessed]
1466   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1467   --target=TARGET   configure for building compilers for TARGET [HOST]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472   case $ac_init_help in
1473      short | recursive ) echo "Configuration of sudo 1.6.9:";;
1474    esac
1475   cat <<\_ACEOF
1476
1477 Optional Features:
1478   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1479   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1480   --disable-authentication
1481                           Do not require authentication by default
1482   --disable-root-mailer   Don't run the mailer as root, run as the user
1483   --disable-setreuid      Don't try to use the setreuid() function
1484   --disable-setresuid     Don't try to use the setresuid() function
1485   --disable-shadow        Never use shadow passwords
1486   --disable-root-sudo     Don't allow root to run sudo
1487   --enable-log-host       Log the hostname in the log file
1488   --enable-noargs-shell   If sudo is given no arguments run a shell
1489   --enable-shell-sets-home
1490                           set $HOME to target user in shell mode
1491   --disable-path-info     Print 'command not allowed' not 'command not found'
1492   --enable-static[=PKGS]  build static libraries [default=no]
1493   --enable-shared[=PKGS]  build shared libraries [default=yes]
1494   --enable-fast-install[=PKGS]
1495                           optimize for fast installation [default=yes]
1496   --disable-libtool-lock  avoid locking (might break parallel builds)
1497   --disable-sia           Disable SIA on Digital UNIX
1498   --disable-pam-session   Disable PAM session support
1499
1500 Optional Packages:
1501   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1502   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1503   --with-otp-only         deprecated
1504   --with-alertmail        deprecated
1505   --with-CC               C compiler to use
1506   --with-rpath            pass -R flag in addition to -L for lib paths
1507   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1508   --with-incpath          additional places to look for include files
1509   --with-libpath          additional places to look for libraries
1510   --with-libraries        additional libraries to link with
1511   --with-devel            add development options
1512   --with-efence           link with -lefence for malloc() debugging
1513   --with-csops            add CSOps standard options
1514   --without-passwd        don't use passwd/shadow file for authentication
1515   --with-skey=DIR         enable S/Key support
1516   --with-opie=DIR         enable OPIE support
1517   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1518   --with-SecurID[=DIR]    enable SecurID support
1519   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1520   --with-kerb4[=DIR]      enable Kerberos IV support
1521   --with-kerb5[=DIR]      enable Kerberos V support
1522   --with-aixauth          enable AIX general authentication support
1523   --with-pam              enable PAM support
1524   --with-AFS              enable AFS support
1525   --with-DCE              enable DCE support
1526   --with-logincap         enable BSD login class support
1527   --with-bsdauth          enable BSD authentication support
1528   --with-project          enable Solaris project support
1529   --without-lecture       don't print lecture for first-time sudoer
1530   --with-logging          log via syslog, file, or both
1531   --with-logfac           syslog facility to log with (default is "local2")
1532   --with-goodpri          syslog priority for commands (def is "notice")
1533   --with-badpri           syslog priority for failures (def is "alert")
1534   --with-logpath          path to the sudo log file
1535   --with-loglen           maximum length of a log file line (default is 80)
1536   --with-ignore-dot       ignore '.' in the PATH
1537   --without-mail-if-no-user do not send mail if user not in sudoers
1538   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1539   --with-mail-if-noperms  send mail if user not allowed to run command
1540   --with-mailto           who should get sudo mail (default is "root")
1541   --with-mailsubject      subject of sudo mail
1542   --with-passprompt       default password prompt
1543   --with-badpass-message  message the user sees when the password is wrong
1544   --with-fqdn             expect fully qualified hosts in sudoers
1545   --with-timedir          path to the sudo timestamp dir
1546   --with-sendmail=path    set path to sendmail
1547   --without-sendmail      do not send mail at all
1548   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1549   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1550   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1551   --with-umask            umask with which the prog should run (default is 022)
1552   --without-umask         Preserves the umask of the user invoking sudo.
1553   --with-runas-default    User to run commands as (default is "root")
1554   --with-exempt=group     no passwd needed for users in this group
1555   --with-editor=path      Default editor for visudo (defaults to vi)
1556   --with-env-editor       Use the environment variable EDITOR for visudo
1557   --with-passwd-tries     number of tries to enter password (default is 3)
1558   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
1559   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1560   --with-tty-tickets      use a different ticket file for each tty
1561   --with-insults          insult the user for entering an incorrect password
1562   --with-all-insults      include all the sudo insult sets
1563   --with-classic-insults  include the insults from the "classic" sudo
1564   --with-csops-insults    include CSOps insults
1565   --with-hal-insults      include 2001-like insults
1566   --with-goons-insults    include the insults from the "Goon Show"
1567   --with-ldap[=DIR]       enable LDAP support
1568   --with-ldap-conf-file   path to LDAP configuration file
1569   --with-ldap-secret-file path to LDAP secret password file
1570   --with-pc-insults       replace politically incorrect insults with less offensive ones
1571   --with-secure-path      override the user's path with a built-in one
1572   --without-interfaces    don't try to read the ip addr of ether interfaces
1573   --with-stow             properly handle GNU stow packaging
1574   --with-selinux          enable SELinux support
1575   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1576   --with-pic              try to use only PIC/non-PIC objects [default=use
1577                           both]
1578   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1579
1580 Some influential environment variables:
1581   CC          C compiler command
1582   CFLAGS      C compiler flags
1583   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1584               nonstandard directory <lib dir>
1585   LIBS        libraries to pass to the linker, e.g. -l<library>
1586   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587               you have headers in a nonstandard directory <include dir>
1588   CPP         C preprocessor
1589   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1590               the first program found out of: `bison -y', `byacc', `yacc'.
1591   YFLAGS      The list of arguments that will be passed by default to $YACC.
1592               This script will default YFLAGS to the empty string to avoid a
1593               default value of `-d' given by some make applications.
1594
1595 Use these variables to override the choices made by `configure' or to help
1596 it to find libraries and programs with nonstandard names/locations.
1597
1598 _ACEOF
1599 ac_status=$?
1600 fi
1601
1602 if test "$ac_init_help" = "recursive"; then
1603   # If there are subdirs, report their specific --help.
1604   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605     test -d "$ac_dir" || continue
1606     ac_builddir=.
1607
1608 case "$ac_dir" in
1609 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1610 *)
1611   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1612   # A ".." for each directory in $ac_dir_suffix.
1613   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1614   case $ac_top_builddir_sub in
1615   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1617   esac ;;
1618 esac
1619 ac_abs_top_builddir=$ac_pwd
1620 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1621 # for backward compatibility:
1622 ac_top_builddir=$ac_top_build_prefix
1623
1624 case $srcdir in
1625   .)  # We are building in place.
1626     ac_srcdir=.
1627     ac_top_srcdir=$ac_top_builddir_sub
1628     ac_abs_top_srcdir=$ac_pwd ;;
1629   [\\/]* | ?:[\\/]* )  # Absolute name.
1630     ac_srcdir=$srcdir$ac_dir_suffix;
1631     ac_top_srcdir=$srcdir
1632     ac_abs_top_srcdir=$srcdir ;;
1633   *) # Relative name.
1634     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1635     ac_top_srcdir=$ac_top_build_prefix$srcdir
1636     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1637 esac
1638 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1639
1640     cd "$ac_dir" || { ac_status=$?; continue; }
1641     # Check for guested configure.
1642     if test -f "$ac_srcdir/configure.gnu"; then
1643       echo &&
1644       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1645     elif test -f "$ac_srcdir/configure"; then
1646       echo &&
1647       $SHELL "$ac_srcdir/configure" --help=recursive
1648     else
1649       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1650     fi || ac_status=$?
1651     cd "$ac_pwd" || { ac_status=$?; break; }
1652   done
1653 fi
1654
1655 test -n "$ac_init_help" && exit $ac_status
1656 if $ac_init_version; then
1657   cat <<\_ACEOF
1658 sudo configure 1.6.9
1659 generated by GNU Autoconf 2.61
1660
1661 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1662 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1663 This configure script is free software; the Free Software Foundation
1664 gives unlimited permission to copy, distribute and modify it.
1665 _ACEOF
1666   exit
1667 fi
1668 cat >config.log <<_ACEOF
1669 This file contains any messages produced by compilers while
1670 running configure, to aid debugging if configure makes a mistake.
1671
1672 It was created by sudo $as_me 1.6.9, which was
1673 generated by GNU Autoconf 2.61.  Invocation command line was
1674
1675   $ $0 $@
1676
1677 _ACEOF
1678 exec 5>>config.log
1679 {
1680 cat <<_ASUNAME
1681 ## --------- ##
1682 ## Platform. ##
1683 ## --------- ##
1684
1685 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1686 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1687 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1688 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1689 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1690
1691 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1692 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1693
1694 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1695 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1696 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1697 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1698 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1699 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1700 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1701
1702 _ASUNAME
1703
1704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1705 for as_dir in $PATH
1706 do
1707   IFS=$as_save_IFS
1708   test -z "$as_dir" && as_dir=.
1709   echo "PATH: $as_dir"
1710 done
1711 IFS=$as_save_IFS
1712
1713 } >&5
1714
1715 cat >&5 <<_ACEOF
1716
1717
1718 ## ----------- ##
1719 ## Core tests. ##
1720 ## ----------- ##
1721
1722 _ACEOF
1723
1724
1725 # Keep a trace of the command line.
1726 # Strip out --no-create and --no-recursion so they do not pile up.
1727 # Strip out --silent because we don't want to record it for future runs.
1728 # Also quote any args containing shell meta-characters.
1729 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_configure_args=
1731 ac_configure_args0=
1732 ac_configure_args1=
1733 ac_must_keep_next=false
1734 for ac_pass in 1 2
1735 do
1736   for ac_arg
1737   do
1738     case $ac_arg in
1739     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1740     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1741     | -silent | --silent | --silen | --sile | --sil)
1742       continue ;;
1743     *\'*)
1744       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1745     esac
1746     case $ac_pass in
1747     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1748     2)
1749       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1750       if test $ac_must_keep_next = true; then
1751         ac_must_keep_next=false # Got value, back to normal.
1752       else
1753         case $ac_arg in
1754           *=* | --config-cache | -C | -disable-* | --disable-* \
1755           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1756           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1757           | -with-* | --with-* | -without-* | --without-* | --x)
1758             case "$ac_configure_args0 " in
1759               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1760             esac
1761             ;;
1762           -* ) ac_must_keep_next=true ;;
1763         esac
1764       fi
1765       ac_configure_args="$ac_configure_args '$ac_arg'"
1766       ;;
1767     esac
1768   done
1769 done
1770 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1771 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1772
1773 # When interrupted or exit'd, cleanup temporary files, and complete
1774 # config.log.  We remove comments because anyway the quotes in there
1775 # would cause problems or look ugly.
1776 # WARNING: Use '\'' to represent an apostrophe within the trap.
1777 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1778 trap 'exit_status=$?
1779   # Save into config.log some information that might help in debugging.
1780   {
1781     echo
1782
1783     cat <<\_ASBOX
1784 ## ---------------- ##
1785 ## Cache variables. ##
1786 ## ---------------- ##
1787 _ASBOX
1788     echo
1789     # The following way of writing the cache mishandles newlines in values,
1790 (
1791   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1792     eval ac_val=\$$ac_var
1793     case $ac_val in #(
1794     *${as_nl}*)
1795       case $ac_var in #(
1796       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1797 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1798       esac
1799       case $ac_var in #(
1800       _ | IFS | as_nl) ;; #(
1801       *) $as_unset $ac_var ;;
1802       esac ;;
1803     esac
1804   done
1805   (set) 2>&1 |
1806     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1807     *${as_nl}ac_space=\ *)
1808       sed -n \
1809         "s/'\''/'\''\\\\'\'''\''/g;
1810           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1811       ;; #(
1812     *)
1813       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1814       ;;
1815     esac |
1816     sort
1817 )
1818     echo
1819
1820     cat <<\_ASBOX
1821 ## ----------------- ##
1822 ## Output variables. ##
1823 ## ----------------- ##
1824 _ASBOX
1825     echo
1826     for ac_var in $ac_subst_vars
1827     do
1828       eval ac_val=\$$ac_var
1829       case $ac_val in
1830       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1831       esac
1832       echo "$ac_var='\''$ac_val'\''"
1833     done | sort
1834     echo
1835
1836     if test -n "$ac_subst_files"; then
1837       cat <<\_ASBOX
1838 ## ------------------- ##
1839 ## File substitutions. ##
1840 ## ------------------- ##
1841 _ASBOX
1842       echo
1843       for ac_var in $ac_subst_files
1844       do
1845         eval ac_val=\$$ac_var
1846         case $ac_val in
1847         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848         esac
1849         echo "$ac_var='\''$ac_val'\''"
1850       done | sort
1851       echo
1852     fi
1853
1854     if test -s confdefs.h; then
1855       cat <<\_ASBOX
1856 ## ----------- ##
1857 ## confdefs.h. ##
1858 ## ----------- ##
1859 _ASBOX
1860       echo
1861       cat confdefs.h
1862       echo
1863     fi
1864     test "$ac_signal" != 0 &&
1865       echo "$as_me: caught signal $ac_signal"
1866     echo "$as_me: exit $exit_status"
1867   } >&5
1868   rm -f core *.core core.conftest.* &&
1869     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1870     exit $exit_status
1871 ' 0
1872 for ac_signal in 1 2 13 15; do
1873   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 done
1875 ac_signal=0
1876
1877 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1878 rm -f -r conftest* confdefs.h
1879
1880 # Predefined preprocessor variables.
1881
1882 cat >>confdefs.h <<_ACEOF
1883 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 _ACEOF
1885
1886
1887 cat >>confdefs.h <<_ACEOF
1888 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 _ACEOF
1890
1891
1892 cat >>confdefs.h <<_ACEOF
1893 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 _ACEOF
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE_STRING "$PACKAGE_STRING"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 _ACEOF
1905
1906
1907 # Let the site file select an alternate cache file if it wants to.
1908 # Prefer explicitly selected file to automatically selected ones.
1909 if test -n "$CONFIG_SITE"; then
1910   set x "$CONFIG_SITE"
1911 elif test "x$prefix" != xNONE; then
1912   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1913 else
1914   set x "$ac_default_prefix/share/config.site" \
1915         "$ac_default_prefix/etc/config.site"
1916 fi
1917 shift
1918 for ac_site_file
1919 do
1920   if test -r "$ac_site_file"; then
1921     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1922 echo "$as_me: loading site script $ac_site_file" >&6;}
1923     sed 's/^/| /' "$ac_site_file" >&5
1924     . "$ac_site_file"
1925   fi
1926 done
1927
1928 if test -r "$cache_file"; then
1929   # Some versions of bash will fail to source /dev/null (special
1930   # files actually), so we avoid doing that.
1931   if test -f "$cache_file"; then
1932     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1933 echo "$as_me: loading cache $cache_file" >&6;}
1934     case $cache_file in
1935       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1936       *)                      . "./$cache_file";;
1937     esac
1938   fi
1939 else
1940   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1941 echo "$as_me: creating cache $cache_file" >&6;}
1942   >$cache_file
1943 fi
1944
1945 # Check that the precious variables saved in the cache have kept the same
1946 # value.
1947 ac_cache_corrupted=false
1948 for ac_var in $ac_precious_vars; do
1949   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1950   eval ac_new_set=\$ac_env_${ac_var}_set
1951   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1952   eval ac_new_val=\$ac_env_${ac_var}_value
1953   case $ac_old_set,$ac_new_set in
1954     set,)
1955       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1956 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1957       ac_cache_corrupted=: ;;
1958     ,set)
1959       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1960 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1961       ac_cache_corrupted=: ;;
1962     ,);;
1963     *)
1964       if test "x$ac_old_val" != "x$ac_new_val"; then
1965         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1966 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1967         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1968 echo "$as_me:   former value:  $ac_old_val" >&2;}
1969         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1970 echo "$as_me:   current value: $ac_new_val" >&2;}
1971         ac_cache_corrupted=:
1972       fi;;
1973   esac
1974   # Pass precious variables to config.status.
1975   if test "$ac_new_set" = set; then
1976     case $ac_new_val in
1977     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1978     *) ac_arg=$ac_var=$ac_new_val ;;
1979     esac
1980     case " $ac_configure_args " in
1981       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1982       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1983     esac
1984   fi
1985 done
1986 if $ac_cache_corrupted; then
1987   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1988 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1989   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1990 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1991    { (exit 1); exit 1; }; }
1992 fi
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018 ac_ext=c
2019 ac_cpp='$CPP $CPPFLAGS'
2020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2023
2024
2025 ac_config_headers="$ac_config_headers config.h pathnames.h"
2026
2027 { echo "$as_me:$LINENO: Configuring Sudo version 1.6.9" >&5
2028 echo "$as_me: Configuring Sudo version 1.6.9" >&6;}
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085 timeout=5
2086 password_timeout=5
2087 sudo_umask=0022
2088 passprompt="Password:"
2089 long_otp_prompt=off
2090 lecture=once
2091 logfac=local2
2092 goodpri=notice
2093 badpri=alert
2094 loglen=80
2095 ignore_dot=off
2096 mail_no_user=on
2097 mail_no_host=off
2098 mail_no_perms=off
2099 mailto=root
2100 mailsub='*** SECURITY information for %h ***'
2101 badpass_message='Sorry, try again.'
2102 fqdn=off
2103 runas_default=root
2104 env_editor=off
2105 passwd_tries=3
2106 tty_tickets=off
2107 insults=off
2108 root_sudo=on
2109 path_info=on
2110 INSTALL_NOEXEC=
2111 PROGS="sudo visudo"
2112 : ${MANTYPE='man'}
2113 : ${mansrcdir='.'}
2114 : ${SUDOERS_MODE='0440'}
2115 : ${SUDOERS_UID='0'}
2116 : ${SUDOERS_GID='0'}
2117 DEV="#"
2118 SELINUX="#"
2119 BAMAN='.\" '
2120 LCMAN='.\" '
2121 SEMAN='.\" '
2122 AUTH_OBJS=
2123 AUTH_REG=
2124 AUTH_EXCL=
2125 AUTH_EXCL_DEF=
2126 AUTH_DEF=passwd
2127
2128 CHECKSHADOW=true
2129 shadow_defs=
2130 shadow_funcs=
2131 shadow_libs=
2132 shadow_libs_optional=
2133
2134 if test X"$prefix" = X"NONE"; then
2135     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2136 else
2137     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2138 fi
2139 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2140 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2141 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2142
2143
2144
2145 # Check whether --with-otp-only was given.
2146 if test "${with_otp_only+set}" = set; then
2147   withval=$with_otp_only; case $with_otp_only in
2148     yes)        with_passwd="no"
2149                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2150 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2151                 ;;
2152 esac
2153 fi
2154
2155
2156
2157 # Check whether --with-alertmail was given.
2158 if test "${with_alertmail+set}" = set; then
2159   withval=$with_alertmail; case $with_alertmail in
2160     *)          with_mailto="$with_alertmail"
2161                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2162 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2163                 ;;
2164 esac
2165 fi
2166
2167
2168
2169
2170 # Check whether --with-CC was given.
2171 if test "${with_CC+set}" = set; then
2172   withval=$with_CC; case $with_CC in
2173     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2174 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2175    { (exit 1); exit 1; }; }
2176                 ;;
2177     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2178 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2179    { (exit 1); exit 1; }; }
2180                 ;;
2181     *)          CC=$with_CC
2182                 ;;
2183 esac
2184 fi
2185
2186
2187
2188 # Check whether --with-rpath was given.
2189 if test "${with_rpath+set}" = set; then
2190   withval=$with_rpath; case $with_rpath in
2191     yes|no)     ;;
2192     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2193 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2194    { (exit 1); exit 1; }; }
2195                 ;;
2196 esac
2197 fi
2198
2199
2200
2201 # Check whether --with-blibpath was given.
2202 if test "${with_blibpath+set}" = set; then
2203   withval=$with_blibpath; case $with_blibpath in
2204     yes|no)     ;;
2205     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2206 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2207                 ;;
2208 esac
2209 fi
2210
2211
2212
2213 # Check whether --with-incpath was given.
2214 if test "${with_incpath+set}" = set; then
2215   withval=$with_incpath; case $with_incpath in
2216     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2217 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2218    { (exit 1); exit 1; }; }
2219                 ;;
2220     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2221 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2222    { (exit 1); exit 1; }; }
2223                 ;;
2224     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2225 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2226                 for i in ${with_incpath}; do
2227                     CPPFLAGS="${CPPFLAGS} -I${i}"
2228                 done
2229                 ;;
2230 esac
2231 fi
2232
2233
2234
2235 # Check whether --with-libpath was given.
2236 if test "${with_libpath+set}" = set; then
2237   withval=$with_libpath; case $with_libpath in
2238     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2239 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2240    { (exit 1); exit 1; }; }
2241                 ;;
2242     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2243 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2244    { (exit 1); exit 1; }; }
2245                 ;;
2246     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2247 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2248                 ;;
2249 esac
2250 fi
2251
2252
2253
2254 # Check whether --with-libraries was given.
2255 if test "${with_libraries+set}" = set; then
2256   withval=$with_libraries; case $with_libraries in
2257     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2258 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2259    { (exit 1); exit 1; }; }
2260                 ;;
2261     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2262 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2263    { (exit 1); exit 1; }; }
2264                 ;;
2265     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2266 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2267                 ;;
2268 esac
2269 fi
2270
2271
2272
2273 # Check whether --with-devel was given.
2274 if test "${with_devel+set}" = set; then
2275   withval=$with_devel; case $with_devel in
2276     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2277 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2278                 PROGS="${PROGS} testsudoers"
2279                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2280                 DEV=""
2281                 ;;
2282     no)         ;;
2283     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2284 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2285                 ;;
2286 esac
2287 fi
2288
2289
2290
2291 # Check whether --with-efence was given.
2292 if test "${with_efence+set}" = set; then
2293   withval=$with_efence; case $with_efence in
2294     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2295 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2296                 LIBS="${LIBS} -lefence"
2297                 if test -f /usr/local/lib/libefence.a; then
2298                     with_libpath="${with_libpath} /usr/local/lib"
2299                 fi
2300                 ;;
2301     no)         ;;
2302     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2303 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2304                 ;;
2305 esac
2306 fi
2307
2308
2309
2310 # Check whether --with-csops was given.
2311 if test "${with_csops+set}" = set; then
2312   withval=$with_csops; case $with_csops in
2313     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2314 echo "$as_me: Adding CSOps standard options" >&6;}
2315                 CHECKSIA=false
2316                 with_ignore_dot=yes
2317                 insults=on
2318                 with_classic_insults=yes
2319                 with_csops_insults=yes
2320                 with_env_editor=yes
2321                 : ${mansectsu='8'}
2322                 : ${mansectform='5'}
2323                 ;;
2324     no)         ;;
2325     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2326 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2327                 ;;
2328 esac
2329 fi
2330
2331
2332
2333 # Check whether --with-passwd was given.
2334 if test "${with_passwd+set}" = set; then
2335   withval=$with_passwd; case $with_passwd in
2336     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2337 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2338                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2339 echo "${ECHO_T}$with_passwd" >&6; }
2340                 AUTH_DEF=""
2341                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2342                 ;;
2343     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2344 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2345    { (exit 1); exit 1; }; }
2346                 ;;
2347 esac
2348 fi
2349
2350
2351
2352 # Check whether --with-skey was given.
2353 if test "${with_skey+set}" = set; then
2354   withval=$with_skey; case $with_skey in
2355     no)         with_skey=""
2356                 ;;
2357     *)          cat >>confdefs.h <<\_ACEOF
2358 #define HAVE_SKEY 1
2359 _ACEOF
2360
2361                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2362 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2363                 { echo "$as_me:$LINENO: result: yes" >&5
2364 echo "${ECHO_T}yes" >&6; }
2365                 AUTH_REG="$AUTH_REG S/Key"
2366                 ;;
2367 esac
2368 fi
2369
2370
2371
2372 # Check whether --with-opie was given.
2373 if test "${with_opie+set}" = set; then
2374   withval=$with_opie; case $with_opie in
2375     no)         with_opie=""
2376                 ;;
2377     *)          cat >>confdefs.h <<\_ACEOF
2378 #define HAVE_OPIE 1
2379 _ACEOF
2380
2381                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2382 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2383                 { echo "$as_me:$LINENO: result: yes" >&5
2384 echo "${ECHO_T}yes" >&6; }
2385                 AUTH_REG="$AUTH_REG NRL_OPIE"
2386                 ;;
2387 esac
2388 fi
2389
2390
2391
2392 # Check whether --with-long-otp-prompt was given.
2393 if test "${with_long_otp_prompt+set}" = set; then
2394   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2395     yes)        cat >>confdefs.h <<\_ACEOF
2396 #define LONG_OTP_PROMPT 1
2397 _ACEOF
2398
2399                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2400 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2401                 { echo "$as_me:$LINENO: result: yes" >&5
2402 echo "${ECHO_T}yes" >&6; }
2403                 long_otp_prompt=on
2404                 ;;
2405     no)         long_otp_prompt=off
2406                 ;;
2407     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2408 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2409    { (exit 1); exit 1; }; }
2410                 ;;
2411 esac
2412 fi
2413
2414
2415
2416 # Check whether --with-SecurID was given.
2417 if test "${with_SecurID+set}" = set; then
2418   withval=$with_SecurID; case $with_SecurID in
2419     no)         with_SecurID="";;
2420     *)          cat >>confdefs.h <<\_ACEOF
2421 #define HAVE_SECURID 1
2422 _ACEOF
2423
2424                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2425 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2426                 { echo "$as_me:$LINENO: result: yes" >&5
2427 echo "${ECHO_T}yes" >&6; }
2428                 AUTH_EXCL="$AUTH_EXCL SecurID"
2429                 ;;
2430 esac
2431 fi
2432
2433
2434
2435 # Check whether --with-fwtk was given.
2436 if test "${with_fwtk+set}" = set; then
2437   withval=$with_fwtk; case $with_fwtk in
2438     no)         with_fwtk="";;
2439     *)          cat >>confdefs.h <<\_ACEOF
2440 #define HAVE_FWTK 1
2441 _ACEOF
2442
2443                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2444 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2445                 { echo "$as_me:$LINENO: result: yes" >&5
2446 echo "${ECHO_T}yes" >&6; }
2447                 AUTH_EXCL="$AUTH_EXCL FWTK"
2448                 ;;
2449 esac
2450 fi
2451
2452
2453
2454 # Check whether --with-kerb4 was given.
2455 if test "${with_kerb4+set}" = set; then
2456   withval=$with_kerb4; case $with_kerb4 in
2457     no)         with_kerb4="";;
2458     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2459 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2460                 { echo "$as_me:$LINENO: result: yes" >&5
2461 echo "${ECHO_T}yes" >&6; }
2462                 AUTH_REG="$AUTH_REG kerb4"
2463                 ;;
2464 esac
2465 fi
2466
2467
2468
2469 # Check whether --with-kerb5 was given.
2470 if test "${with_kerb5+set}" = set; then
2471   withval=$with_kerb5; case $with_kerb5 in
2472     no)         with_kerb5="";;
2473     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2474 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2475                 { echo "$as_me:$LINENO: result: yes" >&5
2476 echo "${ECHO_T}yes" >&6; }
2477                 AUTH_REG="$AUTH_REG kerb5"
2478                 ;;
2479 esac
2480 fi
2481
2482
2483
2484 # Check whether --with-aixauth was given.
2485 if test "${with_aixauth+set}" = set; then
2486   withval=$with_aixauth; case $with_aixauth in
2487     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2488     no)         ;;
2489     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2490 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2491    { (exit 1); exit 1; }; }
2492                 ;;
2493 esac
2494 fi
2495
2496
2497
2498 # Check whether --with-pam was given.
2499 if test "${with_pam+set}" = set; then
2500   withval=$with_pam; case $with_pam in
2501     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2502     no)         ;;
2503     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2504 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2505    { (exit 1); exit 1; }; }
2506                 ;;
2507 esac
2508 fi
2509
2510
2511
2512 # Check whether --with-AFS was given.
2513 if test "${with_AFS+set}" = set; then
2514   withval=$with_AFS; case $with_AFS in
2515     yes)        cat >>confdefs.h <<\_ACEOF
2516 #define HAVE_AFS 1
2517 _ACEOF
2518
2519                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2520 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2521                 { echo "$as_me:$LINENO: result: yes" >&5
2522 echo "${ECHO_T}yes" >&6; }
2523                 AUTH_REG="$AUTH_REG AFS"
2524                 ;;
2525     no)         ;;
2526     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2527 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2528    { (exit 1); exit 1; }; }
2529                 ;;
2530 esac
2531 fi
2532
2533
2534
2535 # Check whether --with-DCE was given.
2536 if test "${with_DCE+set}" = set; then
2537   withval=$with_DCE; case $with_DCE in
2538     yes)        cat >>confdefs.h <<\_ACEOF
2539 #define HAVE_DCE 1
2540 _ACEOF
2541
2542                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2543 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2544                 { echo "$as_me:$LINENO: result: yes" >&5
2545 echo "${ECHO_T}yes" >&6; }
2546                 AUTH_REG="$AUTH_REG DCE"
2547                 ;;
2548     no)         ;;
2549     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2550 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2551    { (exit 1); exit 1; }; }
2552                 ;;
2553 esac
2554 fi
2555
2556
2557
2558 # Check whether --with-logincap was given.
2559 if test "${with_logincap+set}" = set; then
2560   withval=$with_logincap; case $with_logincap in
2561     yes|no)     ;;
2562     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2563 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2564    { (exit 1); exit 1; }; }
2565                 ;;
2566 esac
2567 fi
2568
2569
2570
2571 # Check whether --with-bsdauth was given.
2572 if test "${with_bsdauth+set}" = set; then
2573   withval=$with_bsdauth; case $with_bsdauth in
2574     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2575     no)         ;;
2576     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2577 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2578    { (exit 1); exit 1; }; }
2579                 ;;
2580 esac
2581 fi
2582
2583
2584
2585 # Check whether --with-project was given.
2586 if test "${with_project+set}" = set; then
2587   withval=$with_project; case $with_project in
2588     yes|no)     ;;
2589     no) ;;
2590     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2591 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2592    { (exit 1); exit 1; }; }
2593                 ;;
2594 esac
2595 fi
2596
2597
2598 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2599 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2600
2601 # Check whether --with-lecture was given.
2602 if test "${with_lecture+set}" = set; then
2603   withval=$with_lecture; case $with_lecture in
2604     yes|short|always)   lecture=once
2605                 ;;
2606     no|none|never)      lecture=never
2607                 ;;
2608     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2609 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2610    { (exit 1); exit 1; }; }
2611                 ;;
2612 esac
2613 fi
2614
2615 if test "$lecture" = "once"; then
2616     { echo "$as_me:$LINENO: result: yes" >&5
2617 echo "${ECHO_T}yes" >&6; }
2618 else
2619     cat >>confdefs.h <<\_ACEOF
2620 #define NO_LECTURE 1
2621 _ACEOF
2622
2623     { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2625 fi
2626
2627 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2628 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2629
2630 # Check whether --with-logging was given.
2631 if test "${with_logging+set}" = set; then
2632   withval=$with_logging; case $with_logging in
2633     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2634 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2635    { (exit 1); exit 1; }; }
2636                 ;;
2637     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2638 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2639    { (exit 1); exit 1; }; }
2640                 ;;
2641     syslog)     cat >>confdefs.h <<\_ACEOF
2642 #define LOGGING SLOG_SYSLOG
2643 _ACEOF
2644
2645                 { echo "$as_me:$LINENO: result: syslog" >&5
2646 echo "${ECHO_T}syslog" >&6; }
2647                 ;;
2648     file)       cat >>confdefs.h <<\_ACEOF
2649 #define LOGGING SLOG_FILE
2650 _ACEOF
2651
2652                 { echo "$as_me:$LINENO: result: file" >&5
2653 echo "${ECHO_T}file" >&6; }
2654                 ;;
2655     both)       cat >>confdefs.h <<\_ACEOF
2656 #define LOGGING SLOG_BOTH
2657 _ACEOF
2658
2659                 { echo "$as_me:$LINENO: result: both" >&5
2660 echo "${ECHO_T}both" >&6; }
2661                 ;;
2662     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2663 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2664    { (exit 1); exit 1; }; }
2665                 ;;
2666 esac
2667 else
2668   cat >>confdefs.h <<\_ACEOF
2669 #define LOGGING SLOG_SYSLOG
2670 _ACEOF
2671  { echo "$as_me:$LINENO: result: syslog" >&5
2672 echo "${ECHO_T}syslog" >&6; }
2673 fi
2674
2675
2676 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2677 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2678
2679 # Check whether --with-logfac was given.
2680 if test "${with_logfac+set}" = set; then
2681   withval=$with_logfac; case $with_logfac in
2682     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2683 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2684    { (exit 1); exit 1; }; }
2685                 ;;
2686     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2687 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2688    { (exit 1); exit 1; }; }
2689                 ;;
2690     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2691                 ;;
2692     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2693 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2694    { (exit 1); exit 1; }; }
2695                 ;;
2696 esac
2697 fi
2698
2699
2700 cat >>confdefs.h <<_ACEOF
2701 #define LOGFAC "$logfac"
2702 _ACEOF
2703
2704 { echo "$as_me:$LINENO: result: $logfac" >&5
2705 echo "${ECHO_T}$logfac" >&6; }
2706
2707 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2708 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2709
2710 # Check whether --with-goodpri was given.
2711 if test "${with_goodpri+set}" = set; then
2712   withval=$with_goodpri; case $with_goodpri in
2713     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2714 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2715    { (exit 1); exit 1; }; }
2716                 ;;
2717     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2718 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2719    { (exit 1); exit 1; }; }
2720                 ;;
2721     alert|crit|debug|emerg|err|info|notice|warning)
2722                 goodpri=$with_goodpri
2723                 ;;
2724     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2725 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2726    { (exit 1); exit 1; }; }
2727                 ;;
2728 esac
2729 fi
2730
2731
2732 cat >>confdefs.h <<_ACEOF
2733 #define PRI_SUCCESS "$goodpri"
2734 _ACEOF
2735
2736 { echo "$as_me:$LINENO: result: $goodpri" >&5
2737 echo "${ECHO_T}$goodpri" >&6; }
2738
2739 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2740 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2741
2742 # Check whether --with-badpri was given.
2743 if test "${with_badpri+set}" = set; then
2744   withval=$with_badpri; case $with_badpri in
2745     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2746 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2747    { (exit 1); exit 1; }; }
2748                 ;;
2749     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2750 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2751    { (exit 1); exit 1; }; }
2752                 ;;
2753     alert|crit|debug|emerg|err|info|notice|warning)
2754                 badpri=$with_badpri
2755                 ;;
2756     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2757 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2758    { (exit 1); exit 1; }; }
2759                 ;;
2760 esac
2761 fi
2762
2763
2764 cat >>confdefs.h <<_ACEOF
2765 #define PRI_FAILURE "$badpri"
2766 _ACEOF
2767
2768 { echo "$as_me:$LINENO: result: $badpri" >&5
2769 echo "${ECHO_T}$badpri" >&6; }
2770
2771
2772 # Check whether --with-logpath was given.
2773 if test "${with_logpath+set}" = set; then
2774   withval=$with_logpath; case $with_logpath in
2775     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2776 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2777    { (exit 1); exit 1; }; }
2778                 ;;
2779     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2780 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2781    { (exit 1); exit 1; }; }
2782                 ;;
2783 esac
2784 fi
2785
2786
2787 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2788 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2789
2790 # Check whether --with-loglen was given.
2791 if test "${with_loglen+set}" = set; then
2792   withval=$with_loglen; case $with_loglen in
2793     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2794 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2795    { (exit 1); exit 1; }; }
2796                 ;;
2797     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2798 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2799    { (exit 1); exit 1; }; }
2800                 ;;
2801     [0-9]*)     loglen=$with_loglen
2802                 ;;
2803     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2804 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2805    { (exit 1); exit 1; }; }
2806                 ;;
2807 esac
2808 fi
2809
2810
2811 cat >>confdefs.h <<_ACEOF
2812 #define MAXLOGFILELEN $loglen
2813 _ACEOF
2814
2815 { echo "$as_me:$LINENO: result: $loglen" >&5
2816 echo "${ECHO_T}$loglen" >&6; }
2817
2818 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2819 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2820
2821 # Check whether --with-ignore-dot was given.
2822 if test "${with_ignore_dot+set}" = set; then
2823   withval=$with_ignore_dot; case $with_ignore_dot in
2824     yes)        ignore_dot=on
2825                 ;;
2826     no)         ignore_dot=off
2827                 ;;
2828     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2829 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2830    { (exit 1); exit 1; }; }
2831                 ;;
2832 esac
2833 fi
2834
2835 if test "$ignore_dot" = "on"; then
2836     cat >>confdefs.h <<\_ACEOF
2837 #define IGNORE_DOT_PATH 1
2838 _ACEOF
2839
2840     { echo "$as_me:$LINENO: result: yes" >&5
2841 echo "${ECHO_T}yes" >&6; }
2842 else
2843     { echo "$as_me:$LINENO: result: no" >&5
2844 echo "${ECHO_T}no" >&6; }
2845 fi
2846
2847 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2848 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2849
2850 # Check whether --with-mail-if-no-user was given.
2851 if test "${with_mail_if_no_user+set}" = set; then
2852   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2853     yes)        mail_no_user=on
2854                 ;;
2855     no)         mail_no_user=off
2856                 ;;
2857     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2858 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2859    { (exit 1); exit 1; }; }
2860                 ;;
2861 esac
2862 fi
2863
2864 if test "$mail_no_user" = "on"; then
2865     cat >>confdefs.h <<\_ACEOF
2866 #define SEND_MAIL_WHEN_NO_USER 1
2867 _ACEOF
2868
2869     { echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6; }
2871 else
2872     { echo "$as_me:$LINENO: result: no" >&5
2873 echo "${ECHO_T}no" >&6; }
2874 fi
2875
2876 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2877 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2878
2879 # Check whether --with-mail-if-no-host was given.
2880 if test "${with_mail_if_no_host+set}" = set; then
2881   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2882     yes)        mail_no_host=on
2883                 ;;
2884     no)         mail_no_host=off
2885                 ;;
2886     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2887 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2888    { (exit 1); exit 1; }; }
2889                 ;;
2890 esac
2891 fi
2892
2893 if test "$mail_no_host" = "on"; then
2894     cat >>confdefs.h <<\_ACEOF
2895 #define SEND_MAIL_WHEN_NO_HOST 1
2896 _ACEOF
2897
2898     { echo "$as_me:$LINENO: result: yes" >&5
2899 echo "${ECHO_T}yes" >&6; }
2900 else
2901     { echo "$as_me:$LINENO: result: no" >&5
2902 echo "${ECHO_T}no" >&6; }
2903 fi
2904
2905 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2906 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2907
2908 # Check whether --with-mail-if-noperms was given.
2909 if test "${with_mail_if_noperms+set}" = set; then
2910   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2911     yes)        mail_noperms=on
2912                 ;;
2913     no)         mail_noperms=off
2914                 ;;
2915     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2916 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2917    { (exit 1); exit 1; }; }
2918                 ;;
2919 esac
2920 fi
2921
2922 if test "$mail_noperms" = "on"; then
2923     cat >>confdefs.h <<\_ACEOF
2924 #define SEND_MAIL_WHEN_NOT_OK 1
2925 _ACEOF
2926
2927     { echo "$as_me:$LINENO: result: yes" >&5
2928 echo "${ECHO_T}yes" >&6; }
2929 else
2930     { echo "$as_me:$LINENO: result: no" >&5
2931 echo "${ECHO_T}no" >&6; }
2932 fi
2933
2934 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2935 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2936
2937 # Check whether --with-mailto was given.
2938 if test "${with_mailto+set}" = set; then
2939   withval=$with_mailto; case $with_mailto in
2940     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2941 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2942    { (exit 1); exit 1; }; }
2943                 ;;
2944     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2945 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2946    { (exit 1); exit 1; }; }
2947                 ;;
2948     *)          mailto=$with_mailto
2949                 ;;
2950 esac
2951 fi
2952
2953
2954 cat >>confdefs.h <<_ACEOF
2955 #define MAILTO "$mailto"
2956 _ACEOF
2957
2958 { echo "$as_me:$LINENO: result: $mailto" >&5
2959 echo "${ECHO_T}$mailto" >&6; }
2960
2961
2962 # Check whether --with-mailsubject was given.
2963 if test "${with_mailsubject+set}" = set; then
2964   withval=$with_mailsubject; case $with_mailsubject in
2965     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2966 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2967    { (exit 1); exit 1; }; }
2968                 ;;
2969     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2970 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2971                 ;;
2972     *)          mailsub="$with_mailsubject"
2973                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
2974 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
2975                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
2976 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
2977                 ;;
2978 esac
2979 fi
2980
2981
2982 cat >>confdefs.h <<_ACEOF
2983 #define MAILSUBJECT "$mailsub"
2984 _ACEOF
2985
2986
2987 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
2988 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
2989
2990 # Check whether --with-passprompt was given.
2991 if test "${with_passprompt+set}" = set; then
2992   withval=$with_passprompt; case $with_passprompt in
2993     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
2994 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
2995    { (exit 1); exit 1; }; }
2996                 ;;
2997     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
2998 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
2999                 ;;
3000     *)          passprompt="$with_passprompt"
3001 esac
3002 fi
3003
3004 { echo "$as_me:$LINENO: result: $passprompt" >&5
3005 echo "${ECHO_T}$passprompt" >&6; }
3006
3007 cat >>confdefs.h <<_ACEOF
3008 #define PASSPROMPT "$passprompt"
3009 _ACEOF
3010
3011
3012 { echo "$as_me:$LINENO: checking for bad password message" >&5
3013 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3014
3015 # Check whether --with-badpass-message was given.
3016 if test "${with_badpass_message+set}" = set; then
3017   withval=$with_badpass_message; case $with_badpass_message in
3018     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3019 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3020    { (exit 1); exit 1; }; }
3021                 ;;
3022     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3023 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3024                 ;;
3025     *)          badpass_message="$with_badpass_message"
3026                 ;;
3027 esac
3028 fi
3029
3030
3031 cat >>confdefs.h <<_ACEOF
3032 #define INCORRECT_PASSWORD "$badpass_message"
3033 _ACEOF
3034
3035 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3036 echo "${ECHO_T}$badpass_message" >&6; }
3037
3038 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3039 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3040
3041 # Check whether --with-fqdn was given.
3042 if test "${with_fqdn+set}" = set; then
3043   withval=$with_fqdn; case $with_fqdn in
3044     yes)        fqdn=on
3045                 ;;
3046     no)         fqdn=off
3047                 ;;
3048     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3049 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3050    { (exit 1); exit 1; }; }
3051                 ;;
3052 esac
3053 fi
3054
3055 if test "$fqdn" = "on"; then
3056     cat >>confdefs.h <<\_ACEOF
3057 #define FQDN 1
3058 _ACEOF
3059
3060     { echo "$as_me:$LINENO: result: yes" >&5
3061 echo "${ECHO_T}yes" >&6; }
3062 else
3063     { echo "$as_me:$LINENO: result: no" >&5
3064 echo "${ECHO_T}no" >&6; }
3065 fi
3066
3067
3068 # Check whether --with-timedir was given.
3069 if test "${with_timedir+set}" = set; then
3070   withval=$with_timedir; case $with_timedir in
3071     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3072 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3073    { (exit 1); exit 1; }; }
3074                 ;;
3075     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3076 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3077    { (exit 1); exit 1; }; }
3078                 ;;
3079 esac
3080 fi
3081
3082
3083
3084 # Check whether --with-sendmail was given.
3085 if test "${with_sendmail+set}" = set; then
3086   withval=$with_sendmail; case $with_sendmail in
3087     yes)        with_sendmail=""
3088                 ;;
3089     no)         ;;
3090     *)          cat >>confdefs.h <<EOF
3091 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3092 EOF
3093
3094                 ;;
3095 esac
3096 fi
3097
3098
3099
3100 # Check whether --with-sudoers-mode was given.
3101 if test "${with_sudoers_mode+set}" = set; then
3102   withval=$with_sudoers_mode; case $with_sudoers_mode in
3103     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3104 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3105    { (exit 1); exit 1; }; }
3106                 ;;
3107     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3108 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3109    { (exit 1); exit 1; }; }
3110                 ;;
3111     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3112                 ;;
3113     0*)         SUDOERS_MODE=$with_sudoers_mode
3114                 ;;
3115     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3116 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3117    { (exit 1); exit 1; }; }
3118                 ;;
3119 esac
3120 fi
3121
3122
3123
3124 # Check whether --with-sudoers-uid was given.
3125 if test "${with_sudoers_uid+set}" = set; then
3126   withval=$with_sudoers_uid; case $with_sudoers_uid in
3127     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3128 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3129    { (exit 1); exit 1; }; }
3130                 ;;
3131     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3132 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3133    { (exit 1); exit 1; }; }
3134                 ;;
3135     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3136                 ;;
3137     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3138 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3139    { (exit 1); exit 1; }; }
3140                 ;;
3141 esac
3142 fi
3143
3144
3145
3146 # Check whether --with-sudoers-gid was given.
3147 if test "${with_sudoers_gid+set}" = set; then
3148   withval=$with_sudoers_gid; case $with_sudoers_gid in
3149     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3150 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3151    { (exit 1); exit 1; }; }
3152                 ;;
3153     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3154 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3155    { (exit 1); exit 1; }; }
3156                 ;;
3157     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3158                 ;;
3159     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3160 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3161    { (exit 1); exit 1; }; }
3162                 ;;
3163 esac
3164 fi
3165
3166
3167 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3168 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3169
3170 # Check whether --with-umask was given.
3171 if test "${with_umask+set}" = set; then
3172   withval=$with_umask; case $with_umask in
3173     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3174 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3175    { (exit 1); exit 1; }; }
3176                 ;;
3177     no)         sudo_umask=0777
3178                 ;;
3179     [0-9]*)     sudo_umask=$with_umask
3180                 ;;
3181     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3182 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3183    { (exit 1); exit 1; }; }
3184                 ;;
3185 esac
3186 fi
3187
3188
3189 cat >>confdefs.h <<_ACEOF
3190 #define SUDO_UMASK $sudo_umask
3191 _ACEOF
3192
3193 if test "$sudo_umask" = "0777"; then
3194     { echo "$as_me:$LINENO: result: user" >&5
3195 echo "${ECHO_T}user" >&6; }
3196 else
3197     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3198 echo "${ECHO_T}$sudo_umask" >&6; }
3199 fi
3200
3201 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3202 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3203
3204 # Check whether --with-runas-default was given.
3205 if test "${with_runas_default+set}" = set; then
3206   withval=$with_runas_default; case $with_runas_default in
3207     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3208 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3209    { (exit 1); exit 1; }; }
3210                 ;;
3211     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3212 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3213    { (exit 1); exit 1; }; }
3214                 ;;
3215     *)          runas_default="$with_runas_default"
3216                 ;;
3217 esac
3218 fi
3219
3220
3221 cat >>confdefs.h <<_ACEOF
3222 #define RUNAS_DEFAULT "$runas_default"
3223 _ACEOF
3224
3225 { echo "$as_me:$LINENO: result: $runas_default" >&5
3226 echo "${ECHO_T}$runas_default" >&6; }
3227
3228
3229 # Check whether --with-exempt was given.
3230 if test "${with_exempt+set}" = set; then
3231   withval=$with_exempt; case $with_exempt in
3232     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3233 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3234    { (exit 1); exit 1; }; }
3235                 ;;
3236     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3237 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3238    { (exit 1); exit 1; }; }
3239                 ;;
3240     *)
3241 cat >>confdefs.h <<_ACEOF
3242 #define EXEMPTGROUP "$with_exempt"
3243 _ACEOF
3244
3245                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3246 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3247                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3248 echo "${ECHO_T}$with_exempt" >&6; }
3249                 ;;
3250 esac
3251 fi
3252
3253
3254 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3255 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3256
3257 # Check whether --with-editor was given.
3258 if test "${with_editor+set}" = set; then
3259   withval=$with_editor; case $with_editor in
3260     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3261 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3262    { (exit 1); exit 1; }; }
3263                 ;;
3264     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3265 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3266    { (exit 1); exit 1; }; }
3267                 ;;
3268     *)
3269 cat >>confdefs.h <<_ACEOF
3270 #define EDITOR "$with_editor"
3271 _ACEOF
3272
3273                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3274 echo "${ECHO_T}$with_editor" >&6; }
3275                 ;;
3276 esac
3277 else
3278   cat >>confdefs.h <<\_ACEOF
3279 #define EDITOR _PATH_VI
3280 _ACEOF
3281  { echo "$as_me:$LINENO: result: vi" >&5
3282 echo "${ECHO_T}vi" >&6; }
3283 fi
3284
3285
3286 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3287 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3288
3289 # Check whether --with-env-editor was given.
3290 if test "${with_env_editor+set}" = set; then
3291   withval=$with_env_editor; case $with_env_editor in
3292     yes)        env_editor=on
3293                 ;;
3294     no)         env_editor=off
3295                 ;;
3296     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3297 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3298    { (exit 1); exit 1; }; }
3299                 ;;
3300 esac
3301 fi
3302
3303 if test "$env_editor" = "on"; then
3304     cat >>confdefs.h <<\_ACEOF
3305 #define ENV_EDITOR 1
3306 _ACEOF
3307
3308     { echo "$as_me:$LINENO: result: yes" >&5
3309 echo "${ECHO_T}yes" >&6; }
3310 else
3311     { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3316 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3317
3318 # Check whether --with-passwd-tries was given.
3319 if test "${with_passwd_tries+set}" = set; then
3320   withval=$with_passwd_tries; case $with_passwd_tries in
3321     yes)        ;;
3322     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3323 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3324    { (exit 1); exit 1; }; }
3325                 ;;
3326     [1-9]*)     passwd_tries=$with_passwd_tries
3327                 ;;
3328     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3329 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3330    { (exit 1); exit 1; }; }
3331                 ;;
3332 esac
3333 fi
3334
3335
3336 cat >>confdefs.h <<_ACEOF
3337 #define TRIES_FOR_PASSWORD $passwd_tries
3338 _ACEOF
3339
3340 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3341 echo "${ECHO_T}$passwd_tries" >&6; }
3342
3343 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3344 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3345
3346 # Check whether --with-timeout was given.
3347 if test "${with_timeout+set}" = set; then
3348   withval=$with_timeout; case $with_timeout in
3349     yes)        ;;
3350     no)         timeout=0
3351                 ;;
3352     [0-9]*)     timeout=$with_timeout
3353                 ;;
3354     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3355 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3356    { (exit 1); exit 1; }; }
3357                 ;;
3358 esac
3359 fi
3360
3361
3362 cat >>confdefs.h <<_ACEOF
3363 #define TIMEOUT $timeout
3364 _ACEOF
3365
3366 { echo "$as_me:$LINENO: result: $timeout" >&5
3367 echo "${ECHO_T}$timeout" >&6; }
3368
3369 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3370 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3371
3372 # Check whether --with-password-timeout was given.
3373 if test "${with_password_timeout+set}" = set; then
3374   withval=$with_password_timeout; case $with_password_timeout in
3375     yes)        ;;
3376     no)         password_timeout=0
3377                 ;;
3378     [0-9]*)     password_timeout=$with_password_timeout
3379                 ;;
3380     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3381 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3382    { (exit 1); exit 1; }; }
3383                 ;;
3384 esac
3385 fi
3386
3387
3388 cat >>confdefs.h <<_ACEOF
3389 #define PASSWORD_TIMEOUT $password_timeout
3390 _ACEOF
3391
3392 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3393 echo "${ECHO_T}$password_timeout" >&6; }
3394
3395 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3396 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3397
3398 # Check whether --with-tty-tickets was given.
3399 if test "${with_tty_tickets+set}" = set; then
3400   withval=$with_tty_tickets; case $with_tty_tickets in
3401     yes)        tty_tickets=on
3402                 ;;
3403     no)         tty_tickets=off
3404                 ;;
3405     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3406 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3407    { (exit 1); exit 1; }; }
3408                 ;;
3409 esac
3410 fi
3411
3412 if test "$tty_tickets" = "on"; then
3413     cat >>confdefs.h <<\_ACEOF
3414 #define USE_TTY_TICKETS 1
3415 _ACEOF
3416
3417     { echo "$as_me:$LINENO: result: yes" >&5
3418 echo "${ECHO_T}yes" >&6; }
3419 else
3420     { echo "$as_me:$LINENO: result: no" >&5
3421 echo "${ECHO_T}no" >&6; }
3422 fi
3423
3424 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3425 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3426
3427 # Check whether --with-insults was given.
3428 if test "${with_insults+set}" = set; then
3429   withval=$with_insults; case $with_insults in
3430     yes)        insults=on
3431                 with_classic_insults=yes
3432                 with_csops_insults=yes
3433                 ;;
3434     no)         insults=off
3435                 ;;
3436     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3437 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3438    { (exit 1); exit 1; }; }
3439                 ;;
3440 esac
3441 fi
3442
3443 if test "$insults" = "on"; then
3444     cat >>confdefs.h <<\_ACEOF
3445 #define USE_INSULTS 1
3446 _ACEOF
3447
3448     { echo "$as_me:$LINENO: result: yes" >&5
3449 echo "${ECHO_T}yes" >&6; }
3450 else
3451     { echo "$as_me:$LINENO: result: no" >&5
3452 echo "${ECHO_T}no" >&6; }
3453 fi
3454
3455
3456 # Check whether --with-all-insults was given.
3457 if test "${with_all_insults+set}" = set; then
3458   withval=$with_all_insults; case $with_all_insults in
3459     yes)        with_classic_insults=yes
3460                 with_csops_insults=yes
3461                 with_hal_insults=yes
3462                 with_goons_insults=yes
3463                 ;;
3464     no)         ;;
3465     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3466 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3467    { (exit 1); exit 1; }; }
3468                 ;;
3469 esac
3470 fi
3471
3472
3473
3474 # Check whether --with-classic-insults was given.
3475 if test "${with_classic_insults+set}" = set; then
3476   withval=$with_classic_insults; case $with_classic_insults in
3477     yes)        cat >>confdefs.h <<\_ACEOF
3478 #define CLASSIC_INSULTS 1
3479 _ACEOF
3480
3481                 ;;
3482     no)         ;;
3483     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3484 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3485    { (exit 1); exit 1; }; }
3486                 ;;
3487 esac
3488 fi
3489
3490
3491
3492 # Check whether --with-csops-insults was given.
3493 if test "${with_csops_insults+set}" = set; then
3494   withval=$with_csops_insults; case $with_csops_insults in
3495     yes)        cat >>confdefs.h <<\_ACEOF
3496 #define CSOPS_INSULTS 1
3497 _ACEOF
3498
3499                 ;;
3500     no)         ;;
3501     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3502 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3503    { (exit 1); exit 1; }; }
3504                 ;;
3505 esac
3506 fi
3507
3508
3509
3510 # Check whether --with-hal-insults was given.
3511 if test "${with_hal_insults+set}" = set; then
3512   withval=$with_hal_insults; case $with_hal_insults in
3513     yes)        cat >>confdefs.h <<\_ACEOF
3514 #define HAL_INSULTS 1
3515 _ACEOF
3516
3517                 ;;
3518     no)         ;;
3519     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3520 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3521    { (exit 1); exit 1; }; }
3522                 ;;
3523 esac
3524 fi
3525
3526
3527
3528 # Check whether --with-goons-insults was given.
3529 if test "${with_goons_insults+set}" = set; then
3530   withval=$with_goons_insults; case $with_goons_insults in
3531     yes)        cat >>confdefs.h <<\_ACEOF
3532 #define GOONS_INSULTS 1
3533 _ACEOF
3534
3535                 ;;
3536     no)         ;;
3537     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3538 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3539    { (exit 1); exit 1; }; }
3540                 ;;
3541 esac
3542 fi
3543
3544
3545
3546 # Check whether --with-ldap was given.
3547 if test "${with_ldap+set}" = set; then
3548   withval=$with_ldap; case $with_ldap in
3549     no)         with_ldap="";;
3550     *)          cat >>confdefs.h <<\_ACEOF
3551 #define HAVE_LDAP 1
3552 _ACEOF
3553
3554                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3555 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3556                 { echo "$as_me:$LINENO: result: yes" >&5
3557 echo "${ECHO_T}yes" >&6; }
3558                 ;;
3559 esac
3560 fi
3561
3562
3563 # Check whether --with-ldap-conf-file was given.
3564 if test "${with_ldap_conf_file+set}" = set; then
3565   withval=$with_ldap_conf_file;
3566 cat >>confdefs.h <<_ACEOF
3567 #define _PATH_LDAP_CONF "$with_ldap_conf_file"
3568 _ACEOF
3569
3570 fi
3571
3572
3573 # Check whether --with-ldap-secret-file was given.
3574 if test "${with_ldap_secret_file+set}" = set; then
3575   withval=$with_ldap_secret_file;
3576 cat >>confdefs.h <<_ACEOF
3577 #define _PATH_LDAP_SECRET "$with_ldap_secret_file"
3578 _ACEOF
3579
3580 fi
3581
3582
3583
3584 # Check whether --with-pc-insults was given.
3585 if test "${with_pc_insults+set}" = set; then
3586   withval=$with_pc_insults; case $with_pc_insults in
3587     yes)        cat >>confdefs.h <<\_ACEOF
3588 #define PC_INSULTS 1
3589 _ACEOF
3590
3591                 ;;
3592     no)         ;;
3593     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3594 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3595    { (exit 1); exit 1; }; }
3596                 ;;
3597 esac
3598 fi
3599
3600
3601 if test "$insults" = "on"; then
3602     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3603 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3604     i=""
3605     test "$with_goons_insults" = "yes" && i="goons ${i}"
3606     test "$with_hal_insults" = "yes" && i="hal ${i}"
3607     test "$with_csops_insults" = "yes" && i="csops ${i}"
3608     test "$with_classic_insults" = "yes" && i="classic ${i}"
3609     { echo "$as_me:$LINENO: result: $i" >&5
3610 echo "${ECHO_T}$i" >&6; }
3611 fi
3612
3613 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3614 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3615
3616 # Check whether --with-secure-path was given.
3617 if test "${with_secure_path+set}" = set; then
3618   withval=$with_secure_path; case $with_secure_path in
3619     yes)        cat >>confdefs.h <<_ACEOF
3620 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3621 _ACEOF
3622
3623                 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3624 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3625                 ;;
3626     no)         { echo "$as_me:$LINENO: result: no" >&5
3627 echo "${ECHO_T}no" >&6; }
3628                 ;;
3629     *)          cat >>confdefs.h <<_ACEOF
3630 #define SECURE_PATH "$with_secure_path"
3631 _ACEOF
3632
3633                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3634 echo "${ECHO_T}$with_secure_path" >&6; }
3635                 ;;
3636 esac
3637 else
3638   { echo "$as_me:$LINENO: result: no" >&5
3639 echo "${ECHO_T}no" >&6; }
3640 fi
3641
3642
3643 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3644 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3645
3646 # Check whether --with-interfaces was given.
3647 if test "${with_interfaces+set}" = set; then
3648   withval=$with_interfaces; case $with_interfaces in
3649     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3650 echo "${ECHO_T}yes" >&6; }
3651                 ;;
3652     no)         cat >>confdefs.h <<\_ACEOF
3653 #define STUB_LOAD_INTERFACES 1
3654 _ACEOF
3655
3656                 { echo "$as_me:$LINENO: result: no" >&5
3657 echo "${ECHO_T}no" >&6; }
3658                 ;;
3659     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3660 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3661    { (exit 1); exit 1; }; }
3662                 ;;
3663 esac
3664 else
3665   { echo "$as_me:$LINENO: result: yes" >&5
3666 echo "${ECHO_T}yes" >&6; }
3667 fi
3668
3669
3670 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3671 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3672
3673 # Check whether --with-stow was given.
3674 if test "${with_stow+set}" = set; then
3675   withval=$with_stow; case $with_stow in
3676     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3677 echo "${ECHO_T}yes" >&6; }
3678                 cat >>confdefs.h <<\_ACEOF
3679 #define USE_STOW 1
3680 _ACEOF
3681
3682                 ;;
3683     no)         { echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6; }
3685                 ;;
3686     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3687 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3688    { (exit 1); exit 1; }; }
3689                 ;;
3690 esac
3691 else
3692   { echo "$as_me:$LINENO: result: no" >&5
3693 echo "${ECHO_T}no" >&6; }
3694 fi
3695
3696
3697
3698 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3699 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3700 # Check whether --enable-authentication was given.
3701 if test "${enable_authentication+set}" = set; then
3702   enableval=$enable_authentication;  case "$enableval" in
3703     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3704 echo "${ECHO_T}yes" >&6; }
3705                 ;;
3706     no)         { echo "$as_me:$LINENO: result: no" >&5
3707 echo "${ECHO_T}no" >&6; }
3708                 cat >>confdefs.h <<\_ACEOF
3709 #define NO_AUTHENTICATION 1
3710 _ACEOF
3711
3712                 ;;
3713     *)          { echo "$as_me:$LINENO: result: no" >&5
3714 echo "${ECHO_T}no" >&6; }
3715                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&5
3716 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3717                 ;;
3718   esac
3719
3720 else
3721   { echo "$as_me:$LINENO: result: yes" >&5
3722 echo "${ECHO_T}yes" >&6; }
3723 fi
3724
3725
3726 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3727 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3728 # Check whether --enable-root-mailer was given.
3729 if test "${enable_root_mailer+set}" = set; then
3730   enableval=$enable_root_mailer;  case "$enableval" in
3731     yes)        { echo "$as_me:$LINENO: result: no" >&5
3732 echo "${ECHO_T}no" >&6; }
3733                 ;;
3734     no)         { echo "$as_me:$LINENO: result: yes" >&5
3735 echo "${ECHO_T}yes" >&6; }
3736                 cat >>confdefs.h <<\_ACEOF
3737 #define NO_ROOT_MAILER 1
3738 _ACEOF
3739
3740                 ;;
3741     *)          { echo "$as_me:$LINENO: result: no" >&5
3742 echo "${ECHO_T}no" >&6; }
3743                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3744 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3745                 ;;
3746   esac
3747
3748 else
3749   { echo "$as_me:$LINENO: result: no" >&5
3750 echo "${ECHO_T}no" >&6; }
3751 fi
3752
3753
3754 # Check whether --enable-setreuid was given.
3755 if test "${enable_setreuid+set}" = set; then
3756   enableval=$enable_setreuid;  case "$enableval" in
3757     no)         SKIP_SETREUID=yes
3758                 ;;
3759     *)          ;;
3760   esac
3761
3762 fi
3763
3764
3765 # Check whether --enable-setresuid was given.
3766 if test "${enable_setresuid+set}" = set; then
3767   enableval=$enable_setresuid;  case "$enableval" in
3768     no)         SKIP_SETRESUID=yes
3769                 ;;
3770     *)          ;;
3771   esac
3772
3773 fi
3774
3775
3776 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3777 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3778 # Check whether --enable-shadow was given.
3779 if test "${enable_shadow+set}" = set; then
3780   enableval=$enable_shadow;  case "$enableval" in
3781     yes)        { echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6; }
3783                 ;;
3784     no)         { echo "$as_me:$LINENO: result: yes" >&5
3785 echo "${ECHO_T}yes" >&6; }
3786                 CHECKSHADOW="false"
3787                 ;;
3788     *)          { echo "$as_me:$LINENO: result: no" >&5
3789 echo "${ECHO_T}no" >&6; }
3790                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3791 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3792                 ;;
3793   esac
3794
3795 else
3796   { echo "$as_me:$LINENO: result: no" >&5
3797 echo "${ECHO_T}no" >&6; }
3798 fi
3799
3800
3801 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3802 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3803 # Check whether --enable-root-sudo was given.
3804 if test "${enable_root_sudo+set}" = set; then
3805   enableval=$enable_root_sudo;  case "$enableval" in
3806     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3807 echo "${ECHO_T}yes" >&6; }
3808                 ;;
3809     no)         cat >>confdefs.h <<\_ACEOF
3810 #define NO_ROOT_SUDO 1
3811 _ACEOF
3812
3813                 { echo "$as_me:$LINENO: result: no" >&5
3814 echo "${ECHO_T}no" >&6; }
3815                 root_sudo=off
3816                 ;;
3817     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3818 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3819    { (exit 1); exit 1; }; }
3820                 ;;
3821   esac
3822
3823 else
3824   { echo "$as_me:$LINENO: result: yes" >&5
3825 echo "${ECHO_T}yes" >&6; }
3826 fi
3827
3828
3829 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3830 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3831 # Check whether --enable-log-host was given.
3832 if test "${enable_log_host+set}" = set; then
3833   enableval=$enable_log_host;  case "$enableval" in
3834     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3835 echo "${ECHO_T}yes" >&6; }
3836                 cat >>confdefs.h <<\_ACEOF
3837 #define HOST_IN_LOG 1
3838 _ACEOF
3839
3840                 ;;
3841     no)         { echo "$as_me:$LINENO: result: no" >&5
3842 echo "${ECHO_T}no" >&6; }
3843                 ;;
3844     *)          { echo "$as_me:$LINENO: result: no" >&5
3845 echo "${ECHO_T}no" >&6; }
3846                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3847 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3848                 ;;
3849   esac
3850
3851 else
3852   { echo "$as_me:$LINENO: result: no" >&5
3853 echo "${ECHO_T}no" >&6; }
3854 fi
3855
3856
3857 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3858 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3859 # Check whether --enable-noargs-shell was given.
3860 if test "${enable_noargs_shell+set}" = set; then
3861   enableval=$enable_noargs_shell;  case "$enableval" in
3862     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3863 echo "${ECHO_T}yes" >&6; }
3864                 cat >>confdefs.h <<\_ACEOF
3865 #define SHELL_IF_NO_ARGS 1
3866 _ACEOF
3867
3868                 ;;
3869     no)         { echo "$as_me:$LINENO: result: no" >&5
3870 echo "${ECHO_T}no" >&6; }
3871                 ;;
3872     *)          { echo "$as_me:$LINENO: result: no" >&5
3873 echo "${ECHO_T}no" >&6; }
3874                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3875 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3876                 ;;
3877   esac
3878
3879 else
3880   { echo "$as_me:$LINENO: result: no" >&5
3881 echo "${ECHO_T}no" >&6; }
3882 fi
3883
3884
3885 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3886 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3887 # Check whether --enable-shell-sets-home was given.
3888 if test "${enable_shell_sets_home+set}" = set; then
3889   enableval=$enable_shell_sets_home;  case "$enableval" in
3890     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3891 echo "${ECHO_T}yes" >&6; }
3892                 cat >>confdefs.h <<\_ACEOF
3893 #define SHELL_SETS_HOME 1
3894 _ACEOF
3895
3896                 ;;
3897     no)         { echo "$as_me:$LINENO: result: no" >&5
3898 echo "${ECHO_T}no" >&6; }
3899                 ;;
3900     *)          { echo "$as_me:$LINENO: result: no" >&5
3901 echo "${ECHO_T}no" >&6; }
3902                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3903 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3904                 ;;
3905   esac
3906
3907 else
3908   { echo "$as_me:$LINENO: result: no" >&5
3909 echo "${ECHO_T}no" >&6; }
3910 fi
3911
3912
3913 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3914 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3915 # Check whether --enable-path_info was given.
3916 if test "${enable_path_info+set}" = set; then
3917   enableval=$enable_path_info;  case "$enableval" in
3918     yes)        { echo "$as_me:$LINENO: result: no" >&5
3919 echo "${ECHO_T}no" >&6; }
3920                 ;;
3921     no)         { echo "$as_me:$LINENO: result: yes" >&5
3922 echo "${ECHO_T}yes" >&6; }
3923                 cat >>confdefs.h <<\_ACEOF
3924 #define DONT_LEAK_PATH_INFO 1
3925 _ACEOF
3926
3927                 path_info=off
3928                 ;;
3929     *)          { echo "$as_me:$LINENO: result: no" >&5
3930 echo "${ECHO_T}no" >&6; }
3931                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
3932 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
3933                 ;;
3934   esac
3935
3936 else
3937   { echo "$as_me:$LINENO: result: no" >&5
3938 echo "${ECHO_T}no" >&6; }
3939 fi
3940
3941
3942
3943 # Check whether --with-selinux was given.
3944 if test "${with_selinux+set}" = set; then
3945   withval=$with_selinux; case $with_selinux in
3946     yes)        cat >>confdefs.h <<\_ACEOF
3947 #define HAVE_SELINUX 1
3948 _ACEOF
3949
3950                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
3951                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
3952                 PROGS="${PROGS} sesh"
3953                 SELINUX=""
3954                 SEMAN=""
3955                 ;;
3956     no)         ;;
3957     *)          { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
3958 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
3959    { (exit 1); exit 1; }; }
3960                 ;;
3961 esac
3962 fi
3963
3964
3965 # Extract the first word of "egrep", so it can be a program name with args.
3966 set dummy egrep; ac_word=$2
3967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3969 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
3970   echo $ECHO_N "(cached) $ECHO_C" >&6
3971 else
3972   if test -n "$EGREPPROG"; then
3973   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
3974 else
3975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3976 for as_dir in $PATH
3977 do
3978   IFS=$as_save_IFS
3979   test -z "$as_dir" && as_dir=.
3980   for ac_exec_ext in '' $ac_executable_extensions; do
3981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3982     ac_cv_prog_EGREPPROG="egrep"
3983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3984     break 2
3985   fi
3986 done
3987 done
3988 IFS=$as_save_IFS
3989
3990 fi
3991 fi
3992 EGREPPROG=$ac_cv_prog_EGREPPROG
3993 if test -n "$EGREPPROG"; then
3994   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
3995 echo "${ECHO_T}$EGREPPROG" >&6; }
3996 else
3997   { echo "$as_me:$LINENO: result: no" >&5
3998 echo "${ECHO_T}no" >&6; }
3999 fi
4000
4001
4002 if test -z "$EGREPPROG"; then
4003     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4004 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4005    { (exit 1); exit 1; }; }
4006 fi
4007
4008 if test "$with_devel" != "yes"; then
4009     ac_cv_prog_cc_g=no
4010 fi
4011
4012 ac_ext=c
4013 ac_cpp='$CPP $CPPFLAGS'
4014 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4015 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4016 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4017 if test -n "$ac_tool_prefix"; then
4018   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4019 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4022 if test "${ac_cv_prog_CC+set}" = set; then
4023   echo $ECHO_N "(cached) $ECHO_C" >&6
4024 else
4025   if test -n "$CC"; then
4026   ac_cv_prog_CC="$CC" # Let the user override the test.
4027 else
4028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4029 for as_dir in $PATH
4030 do
4031   IFS=$as_save_IFS
4032   test -z "$as_dir" && as_dir=.
4033   for ac_exec_ext in '' $ac_executable_extensions; do
4034   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4035     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4036     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4037     break 2
4038   fi
4039 done
4040 done
4041 IFS=$as_save_IFS
4042
4043 fi
4044 fi
4045 CC=$ac_cv_prog_CC
4046 if test -n "$CC"; then
4047   { echo "$as_me:$LINENO: result: $CC" >&5
4048 echo "${ECHO_T}$CC" >&6; }
4049 else
4050   { echo "$as_me:$LINENO: result: no" >&5
4051 echo "${ECHO_T}no" >&6; }
4052 fi
4053
4054
4055 fi
4056 if test -z "$ac_cv_prog_CC"; then
4057   ac_ct_CC=$CC
4058   # Extract the first word of "gcc", so it can be a program name with args.
4059 set dummy gcc; ac_word=$2
4060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4062 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4063   echo $ECHO_N "(cached) $ECHO_C" >&6
4064 else
4065   if test -n "$ac_ct_CC"; then
4066   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4067 else
4068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4069 for as_dir in $PATH
4070 do
4071   IFS=$as_save_IFS
4072   test -z "$as_dir" && as_dir=.
4073   for ac_exec_ext in '' $ac_executable_extensions; do
4074   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4075     ac_cv_prog_ac_ct_CC="gcc"
4076     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4077     break 2
4078   fi
4079 done
4080 done
4081 IFS=$as_save_IFS
4082
4083 fi
4084 fi
4085 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4086 if test -n "$ac_ct_CC"; then
4087   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4088 echo "${ECHO_T}$ac_ct_CC" >&6; }
4089 else
4090   { echo "$as_me:$LINENO: result: no" >&5
4091 echo "${ECHO_T}no" >&6; }
4092 fi
4093
4094   if test "x$ac_ct_CC" = x; then
4095     CC=""
4096   else
4097     case $cross_compiling:$ac_tool_warned in
4098 yes:)
4099 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4100 whose name does not start with the host triplet.  If you think this
4101 configuration is useful to you, please write to autoconf@gnu.org." >&5
4102 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4103 whose name does not start with the host triplet.  If you think this
4104 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4105 ac_tool_warned=yes ;;
4106 esac
4107     CC=$ac_ct_CC
4108   fi
4109 else
4110   CC="$ac_cv_prog_CC"
4111 fi
4112
4113 if test -z "$CC"; then
4114           if test -n "$ac_tool_prefix"; then
4115     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4116 set dummy ${ac_tool_prefix}cc; ac_word=$2
4117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4119 if test "${ac_cv_prog_CC+set}" = set; then
4120   echo $ECHO_N "(cached) $ECHO_C" >&6
4121 else
4122   if test -n "$CC"; then
4123   ac_cv_prog_CC="$CC" # Let the user override the test.
4124 else
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4126 for as_dir in $PATH
4127 do
4128   IFS=$as_save_IFS
4129   test -z "$as_dir" && as_dir=.
4130   for ac_exec_ext in '' $ac_executable_extensions; do
4131   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4132     ac_cv_prog_CC="${ac_tool_prefix}cc"
4133     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4134     break 2
4135   fi
4136 done
4137 done
4138 IFS=$as_save_IFS
4139
4140 fi
4141 fi
4142 CC=$ac_cv_prog_CC
4143 if test -n "$CC"; then
4144   { echo "$as_me:$LINENO: result: $CC" >&5
4145 echo "${ECHO_T}$CC" >&6; }
4146 else
4147   { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4149 fi
4150
4151
4152   fi
4153 fi
4154 if test -z "$CC"; then
4155   # Extract the first word of "cc", so it can be a program name with args.
4156 set dummy cc; ac_word=$2
4157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4159 if test "${ac_cv_prog_CC+set}" = set; then
4160   echo $ECHO_N "(cached) $ECHO_C" >&6
4161 else
4162   if test -n "$CC"; then
4163   ac_cv_prog_CC="$CC" # Let the user override the test.
4164 else
4165   ac_prog_rejected=no
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4168 do
4169   IFS=$as_save_IFS
4170   test -z "$as_dir" && as_dir=.
4171   for ac_exec_ext in '' $ac_executable_extensions; do
4172   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4173     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4174        ac_prog_rejected=yes
4175        continue
4176      fi
4177     ac_cv_prog_CC="cc"
4178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4179     break 2
4180   fi
4181 done
4182 done
4183 IFS=$as_save_IFS
4184
4185 if test $ac_prog_rejected = yes; then
4186   # We found a bogon in the path, so make sure we never use it.
4187   set dummy $ac_cv_prog_CC
4188   shift
4189   if test $# != 0; then
4190     # We chose a different compiler from the bogus one.
4191     # However, it has the same basename, so the bogon will be chosen
4192     # first if we set CC to just the basename; use the full file name.
4193     shift
4194     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4195   fi
4196 fi
4197 fi
4198 fi
4199 CC=$ac_cv_prog_CC
4200 if test -n "$CC"; then
4201   { echo "$as_me:$LINENO: result: $CC" >&5
4202 echo "${ECHO_T}$CC" >&6; }
4203 else
4204   { echo "$as_me:$LINENO: result: no" >&5
4205 echo "${ECHO_T}no" >&6; }
4206 fi
4207
4208
4209 fi
4210 if test -z "$CC"; then
4211   if test -n "$ac_tool_prefix"; then
4212   for ac_prog in cl.exe
4213   do
4214     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4218 if test "${ac_cv_prog_CC+set}" = set; then
4219   echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221   if test -n "$CC"; then
4222   ac_cv_prog_CC="$CC" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4226 do
4227   IFS=$as_save_IFS
4228   test -z "$as_dir" && as_dir=.
4229   for ac_exec_ext in '' $ac_executable_extensions; do
4230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4231     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4232     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4233     break 2
4234   fi
4235 done
4236 done
4237 IFS=$as_save_IFS
4238
4239 fi
4240 fi
4241 CC=$ac_cv_prog_CC
4242 if test -n "$CC"; then
4243   { echo "$as_me:$LINENO: result: $CC" >&5
4244 echo "${ECHO_T}$CC" >&6; }
4245 else
4246   { echo "$as_me:$LINENO: result: no" >&5
4247 echo "${ECHO_T}no" >&6; }
4248 fi
4249
4250
4251     test -n "$CC" && break
4252   done
4253 fi
4254 if test -z "$CC"; then
4255   ac_ct_CC=$CC
4256   for ac_prog in cl.exe
4257 do
4258   # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4262 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4263   echo $ECHO_N "(cached) $ECHO_C" >&6
4264 else
4265   if test -n "$ac_ct_CC"; then
4266   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4270 do
4271   IFS=$as_save_IFS
4272   test -z "$as_dir" && as_dir=.
4273   for ac_exec_ext in '' $ac_executable_extensions; do
4274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4275     ac_cv_prog_ac_ct_CC="$ac_prog"
4276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4277     break 2
4278   fi
4279 done
4280 done
4281 IFS=$as_save_IFS
4282
4283 fi
4284 fi
4285 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4286 if test -n "$ac_ct_CC"; then
4287   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4288 echo "${ECHO_T}$ac_ct_CC" >&6; }
4289 else
4290   { echo "$as_me:$LINENO: result: no" >&5
4291 echo "${ECHO_T}no" >&6; }
4292 fi
4293
4294
4295   test -n "$ac_ct_CC" && break
4296 done
4297
4298   if test "x$ac_ct_CC" = x; then
4299     CC=""
4300   else
4301     case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4304 whose name does not start with the host triplet.  If you think this
4305 configuration is useful to you, please write to autoconf@gnu.org." >&5
4306 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4307 whose name does not start with the host triplet.  If you think this
4308 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4309 ac_tool_warned=yes ;;
4310 esac
4311     CC=$ac_ct_CC
4312   fi
4313 fi
4314
4315 fi
4316
4317
4318 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4319 See \`config.log' for more details." >&5
4320 echo "$as_me: error: no acceptable C compiler found in \$PATH
4321 See \`config.log' for more details." >&2;}
4322    { (exit 1); exit 1; }; }
4323
4324 # Provide some information about the compiler.
4325 echo "$as_me:$LINENO: checking for C compiler version" >&5
4326 ac_compiler=`set X $ac_compile; echo $2`
4327 { (ac_try="$ac_compiler --version >&5"
4328 case "(($ac_try" in
4329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330   *) ac_try_echo=$ac_try;;
4331 esac
4332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4333   (eval "$ac_compiler --version >&5") 2>&5
4334   ac_status=$?
4335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336   (exit $ac_status); }
4337 { (ac_try="$ac_compiler -v >&5"
4338 case "(($ac_try" in
4339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340   *) ac_try_echo=$ac_try;;
4341 esac
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343   (eval "$ac_compiler -v >&5") 2>&5
4344   ac_status=$?
4345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4346   (exit $ac_status); }
4347 { (ac_try="$ac_compiler -V >&5"
4348 case "(($ac_try" in
4349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4350   *) ac_try_echo=$ac_try;;
4351 esac
4352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4353   (eval "$ac_compiler -V >&5") 2>&5
4354   ac_status=$?
4355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356   (exit $ac_status); }
4357
4358 cat >conftest.$ac_ext <<_ACEOF
4359 /* confdefs.h.  */
4360 _ACEOF
4361 cat confdefs.h >>conftest.$ac_ext
4362 cat >>conftest.$ac_ext <<_ACEOF
4363 /* end confdefs.h.  */
4364
4365 int
4366 main ()
4367 {
4368
4369   ;
4370   return 0;
4371 }
4372 _ACEOF
4373 ac_clean_files_save=$ac_clean_files
4374 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4375 # Try to create an executable without -o first, disregard a.out.
4376 # It will help us diagnose broken compilers, and finding out an intuition
4377 # of exeext.
4378 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4379 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4380 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4381 #
4382 # List of possible output files, starting from the most likely.
4383 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4384 # only as a last resort.  b.out is created by i960 compilers.
4385 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4386 #
4387 # The IRIX 6 linker writes into existing files which may not be
4388 # executable, retaining their permissions.  Remove them first so a
4389 # subsequent execution test works.
4390 ac_rmfiles=
4391 for ac_file in $ac_files
4392 do
4393   case $ac_file in
4394     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4395     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4396   esac
4397 done
4398 rm -f $ac_rmfiles
4399
4400 if { (ac_try="$ac_link_default"
4401 case "(($ac_try" in
4402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403   *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406   (eval "$ac_link_default") 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; then
4410   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4411 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4412 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4413 # so that the user can short-circuit this test for compilers unknown to
4414 # Autoconf.
4415 for ac_file in $ac_files ''
4416 do
4417   test -f "$ac_file" || continue
4418   case $ac_file in
4419     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4420         ;;
4421     [ab].out )
4422         # We found the default executable, but exeext='' is most
4423         # certainly right.
4424         break;;
4425     *.* )
4426         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4427         then :; else
4428            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4429         fi
4430         # We set ac_cv_exeext here because the later test for it is not
4431         # safe: cross compilers may not add the suffix if given an `-o'
4432         # argument, so we may need to know it at that point already.
4433         # Even if this section looks crufty: it has the advantage of
4434         # actually working.
4435         break;;
4436     * )
4437         break;;
4438   esac
4439 done
4440 test "$ac_cv_exeext" = no && ac_cv_exeext=
4441
4442 else
4443   ac_file=''
4444 fi
4445
4446 { echo "$as_me:$LINENO: result: $ac_file" >&5
4447 echo "${ECHO_T}$ac_file" >&6; }
4448 if test -z "$ac_file"; then
4449   echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.$ac_ext >&5
4451
4452 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4453 See \`config.log' for more details." >&5
4454 echo "$as_me: error: C compiler cannot create executables
4455 See \`config.log' for more details." >&2;}
4456    { (exit 77); exit 77; }; }
4457 fi
4458
4459 ac_exeext=$ac_cv_exeext
4460
4461 # Check that the compiler produces executables we can run.  If not, either
4462 # the compiler is broken, or we cross compile.
4463 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4464 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4465 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4466 # If not cross compiling, check that we can run a simple program.
4467 if test "$cross_compiling" != yes; then
4468   if { ac_try='./$ac_file'
4469   { (case "(($ac_try" in
4470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4471   *) ac_try_echo=$ac_try;;
4472 esac
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474   (eval "$ac_try") 2>&5
4475   ac_status=$?
4476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477   (exit $ac_status); }; }; then
4478     cross_compiling=no
4479   else
4480     if test "$cross_compiling" = maybe; then
4481         cross_compiling=yes
4482     else
4483         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4484 If you meant to cross compile, use \`--host'.
4485 See \`config.log' for more details." >&5
4486 echo "$as_me: error: cannot run C compiled programs.
4487 If you meant to cross compile, use \`--host'.
4488 See \`config.log' for more details." >&2;}
4489    { (exit 1); exit 1; }; }
4490     fi
4491   fi
4492 fi
4493 { echo "$as_me:$LINENO: result: yes" >&5
4494 echo "${ECHO_T}yes" >&6; }
4495
4496 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4497 ac_clean_files=$ac_clean_files_save
4498 # Check that the compiler produces executables we can run.  If not, either
4499 # the compiler is broken, or we cross compile.
4500 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4501 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4502 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4503 echo "${ECHO_T}$cross_compiling" >&6; }
4504
4505 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4506 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4507 if { (ac_try="$ac_link"
4508 case "(($ac_try" in
4509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4510   *) ac_try_echo=$ac_try;;
4511 esac
4512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4513   (eval "$ac_link") 2>&5
4514   ac_status=$?
4515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4516   (exit $ac_status); }; then
4517   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4518 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4519 # work properly (i.e., refer to `conftest.exe'), while it won't with
4520 # `rm'.
4521 for ac_file in conftest.exe conftest conftest.*; do
4522   test -f "$ac_file" || continue
4523   case $ac_file in
4524     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4525     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4526           break;;
4527     * ) break;;
4528   esac
4529 done
4530 else
4531   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4532 See \`config.log' for more details." >&5
4533 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4534 See \`config.log' for more details." >&2;}
4535    { (exit 1); exit 1; }; }
4536 fi
4537
4538 rm -f conftest$ac_cv_exeext
4539 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4540 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4541
4542 rm -f conftest.$ac_ext
4543 EXEEXT=$ac_cv_exeext
4544 ac_exeext=$EXEEXT
4545 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4546 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4547 if test "${ac_cv_objext+set}" = set; then
4548   echo $ECHO_N "(cached) $ECHO_C" >&6
4549 else
4550   cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h.  */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h.  */
4556
4557 int
4558 main ()
4559 {
4560
4561   ;
4562   return 0;
4563 }
4564 _ACEOF
4565 rm -f conftest.o conftest.obj
4566 if { (ac_try="$ac_compile"
4567 case "(($ac_try" in
4568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4569   *) ac_try_echo=$ac_try;;
4570 esac
4571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4572   (eval "$ac_compile") 2>&5
4573   ac_status=$?
4574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575   (exit $ac_status); }; then
4576   for ac_file in conftest.o conftest.obj conftest.*; do
4577   test -f "$ac_file" || continue;
4578   case $ac_file in
4579     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4580     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4581        break;;
4582   esac
4583 done
4584 else
4585   echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4587
4588 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4589 See \`config.log' for more details." >&5
4590 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4591 See \`config.log' for more details." >&2;}
4592    { (exit 1); exit 1; }; }
4593 fi
4594
4595 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4596 fi
4597 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4598 echo "${ECHO_T}$ac_cv_objext" >&6; }
4599 OBJEXT=$ac_cv_objext
4600 ac_objext=$OBJEXT
4601 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4602 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4603 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4604   echo $ECHO_N "(cached) $ECHO_C" >&6
4605 else
4606   cat >conftest.$ac_ext <<_ACEOF
4607 /* confdefs.h.  */
4608 _ACEOF
4609 cat confdefs.h >>conftest.$ac_ext
4610 cat >>conftest.$ac_ext <<_ACEOF
4611 /* end confdefs.h.  */
4612
4613 int
4614 main ()
4615 {
4616 #ifndef __GNUC__
4617        choke me
4618 #endif
4619
4620   ;
4621   return 0;
4622 }
4623 _ACEOF
4624 rm -f conftest.$ac_objext
4625 if { (ac_try="$ac_compile"
4626 case "(($ac_try" in
4627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4628   *) ac_try_echo=$ac_try;;
4629 esac
4630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4631   (eval "$ac_compile") 2>conftest.er1
4632   ac_status=$?
4633   grep -v '^ *+' conftest.er1 >conftest.err
4634   rm -f conftest.er1
4635   cat conftest.err >&5
4636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637   (exit $ac_status); } && {
4638          test -z "$ac_c_werror_flag" ||
4639          test ! -s conftest.err
4640        } && test -s conftest.$ac_objext; then
4641   ac_compiler_gnu=yes
4642 else
4643   echo "$as_me: failed program was:" >&5
4644 sed 's/^/| /' conftest.$ac_ext >&5
4645
4646         ac_compiler_gnu=no
4647 fi
4648
4649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4650 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4651
4652 fi
4653 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4654 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4655 GCC=`test $ac_compiler_gnu = yes && echo yes`
4656 ac_test_CFLAGS=${CFLAGS+set}
4657 ac_save_CFLAGS=$CFLAGS
4658 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4659 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4660 if test "${ac_cv_prog_cc_g+set}" = set; then
4661   echo $ECHO_N "(cached) $ECHO_C" >&6
4662 else
4663   ac_save_c_werror_flag=$ac_c_werror_flag
4664    ac_c_werror_flag=yes
4665    ac_cv_prog_cc_g=no
4666    CFLAGS="-g"
4667    cat >conftest.$ac_ext <<_ACEOF
4668 /* confdefs.h.  */
4669 _ACEOF
4670 cat confdefs.h >>conftest.$ac_ext
4671 cat >>conftest.$ac_ext <<_ACEOF
4672 /* end confdefs.h.  */
4673
4674 int
4675 main ()
4676 {
4677
4678   ;
4679   return 0;
4680 }
4681 _ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (ac_try="$ac_compile"
4684 case "(($ac_try" in
4685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4686   *) ac_try_echo=$ac_try;;
4687 esac
4688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4689   (eval "$ac_compile") 2>conftest.er1
4690   ac_status=$?
4691   grep -v '^ *+' conftest.er1 >conftest.err
4692   rm -f conftest.er1
4693   cat conftest.err >&5
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); } && {
4696          test -z "$ac_c_werror_flag" ||
4697          test ! -s conftest.err
4698        } && test -s conftest.$ac_objext; then
4699   ac_cv_prog_cc_g=yes
4700 else
4701   echo "$as_me: failed program was:" >&5
4702 sed 's/^/| /' conftest.$ac_ext >&5
4703
4704         CFLAGS=""
4705       cat >conftest.$ac_ext <<_ACEOF
4706 /* confdefs.h.  */
4707 _ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h.  */
4711
4712 int
4713 main ()
4714 {
4715
4716   ;
4717   return 0;
4718 }
4719 _ACEOF
4720 rm -f conftest.$ac_objext
4721 if { (ac_try="$ac_compile"
4722 case "(($ac_try" in
4723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724   *) ac_try_echo=$ac_try;;
4725 esac
4726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4727   (eval "$ac_compile") 2>conftest.er1
4728   ac_status=$?
4729   grep -v '^ *+' conftest.er1 >conftest.err
4730   rm -f conftest.er1
4731   cat conftest.err >&5
4732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733   (exit $ac_status); } && {
4734          test -z "$ac_c_werror_flag" ||
4735          test ! -s conftest.err
4736        } && test -s conftest.$ac_objext; then
4737   :
4738 else
4739   echo "$as_me: failed program was:" >&5
4740 sed 's/^/| /' conftest.$ac_ext >&5
4741
4742         ac_c_werror_flag=$ac_save_c_werror_flag
4743          CFLAGS="-g"
4744          cat >conftest.$ac_ext <<_ACEOF
4745 /* confdefs.h.  */
4746 _ACEOF
4747 cat confdefs.h >>conftest.$ac_ext
4748 cat >>conftest.$ac_ext <<_ACEOF
4749 /* end confdefs.h.  */
4750
4751 int
4752 main ()
4753 {
4754
4755   ;
4756   return 0;
4757 }
4758 _ACEOF
4759 rm -f conftest.$ac_objext
4760 if { (ac_try="$ac_compile"
4761 case "(($ac_try" in
4762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4763   *) ac_try_echo=$ac_try;;
4764 esac
4765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4766   (eval "$ac_compile") 2>conftest.er1
4767   ac_status=$?
4768   grep -v '^ *+' conftest.er1 >conftest.err
4769   rm -f conftest.er1
4770   cat conftest.err >&5
4771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772   (exit $ac_status); } && {
4773          test -z "$ac_c_werror_flag" ||
4774          test ! -s conftest.err
4775        } && test -s conftest.$ac_objext; then
4776   ac_cv_prog_cc_g=yes
4777 else
4778   echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4780
4781
4782 fi
4783
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 fi
4786
4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4788 fi
4789
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4791    ac_c_werror_flag=$ac_save_c_werror_flag
4792 fi
4793 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4794 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4795 if test "$ac_test_CFLAGS" = set; then
4796   CFLAGS=$ac_save_CFLAGS
4797 elif test $ac_cv_prog_cc_g = yes; then
4798   if test "$GCC" = yes; then
4799     CFLAGS="-g -O2"
4800   else
4801     CFLAGS="-g"
4802   fi
4803 else
4804   if test "$GCC" = yes; then
4805     CFLAGS="-O2"
4806   else
4807     CFLAGS=
4808   fi
4809 fi
4810 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4811 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4812 if test "${ac_cv_prog_cc_c89+set}" = set; then
4813   echo $ECHO_N "(cached) $ECHO_C" >&6
4814 else
4815   ac_cv_prog_cc_c89=no
4816 ac_save_CC=$CC
4817 cat >conftest.$ac_ext <<_ACEOF
4818 /* confdefs.h.  */
4819 _ACEOF
4820 cat confdefs.h >>conftest.$ac_ext
4821 cat >>conftest.$ac_ext <<_ACEOF
4822 /* end confdefs.h.  */
4823 #include <stdarg.h>
4824 #include <stdio.h>
4825 #include <sys/types.h>
4826 #include <sys/stat.h>
4827 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4828 struct buf { int x; };
4829 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4830 static char *e (p, i)
4831      char **p;
4832      int i;
4833 {
4834   return p[i];
4835 }
4836 static char *f (char * (*g) (char **, int), char **p, ...)
4837 {
4838   char *s;
4839   va_list v;
4840   va_start (v,p);
4841   s = g (p, va_arg (v,int));
4842   va_end (v);
4843   return s;
4844 }
4845
4846 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4847    function prototypes and stuff, but not '\xHH' hex character constants.
4848    These don't provoke an error unfortunately, instead are silently treated
4849    as 'x'.  The following induces an error, until -std is added to get
4850    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4851    array size at least.  It's necessary to write '\x00'==0 to get something
4852    that's true only with -std.  */
4853 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854
4855 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4856    inside strings and character constants.  */
4857 #define FOO(x) 'x'
4858 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859
4860 int test (int i, double x);
4861 struct s1 {int (*f) (int a);};
4862 struct s2 {int (*f) (double a);};
4863 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4864 int argc;
4865 char **argv;
4866 int
4867 main ()
4868 {
4869 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4870   ;
4871   return 0;
4872 }
4873 _ACEOF
4874 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4875         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876 do
4877   CC="$ac_save_CC $ac_arg"
4878   rm -f conftest.$ac_objext
4879 if { (ac_try="$ac_compile"
4880 case "(($ac_try" in
4881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4882   *) ac_try_echo=$ac_try;;
4883 esac
4884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4885   (eval "$ac_compile") 2>conftest.er1
4886   ac_status=$?
4887   grep -v '^ *+' conftest.er1 >conftest.err
4888   rm -f conftest.er1
4889   cat conftest.err >&5
4890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4891   (exit $ac_status); } && {
4892          test -z "$ac_c_werror_flag" ||
4893          test ! -s conftest.err
4894        } && test -s conftest.$ac_objext; then
4895   ac_cv_prog_cc_c89=$ac_arg
4896 else
4897   echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900
4901 fi
4902
4903 rm -f core conftest.err conftest.$ac_objext
4904   test "x$ac_cv_prog_cc_c89" != "xno" && break
4905 done
4906 rm -f conftest.$ac_ext
4907 CC=$ac_save_CC
4908
4909 fi
4910 # AC_CACHE_VAL
4911 case "x$ac_cv_prog_cc_c89" in
4912   x)
4913     { echo "$as_me:$LINENO: result: none needed" >&5
4914 echo "${ECHO_T}none needed" >&6; } ;;
4915   xno)
4916     { echo "$as_me:$LINENO: result: unsupported" >&5
4917 echo "${ECHO_T}unsupported" >&6; } ;;
4918   *)
4919     CC="$CC $ac_cv_prog_cc_c89"
4920     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4921 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4922 esac
4923
4924
4925 ac_ext=c
4926 ac_cpp='$CPP $CPPFLAGS'
4927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4930
4931
4932 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
4933 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
4934 if test "${ac_cv_search_strerror+set}" = set; then
4935   echo $ECHO_N "(cached) $ECHO_C" >&6
4936 else
4937   ac_func_search_save_LIBS=$LIBS
4938 cat >conftest.$ac_ext <<_ACEOF
4939 /* confdefs.h.  */
4940 _ACEOF
4941 cat confdefs.h >>conftest.$ac_ext
4942 cat >>conftest.$ac_ext <<_ACEOF
4943 /* end confdefs.h.  */
4944
4945 /* Override any GCC internal prototype to avoid an error.
4946    Use char because int might match the return type of a GCC
4947    builtin and then its argument prototype would still apply.  */
4948 #ifdef __cplusplus
4949 extern "C"
4950 #endif
4951 char strerror ();
4952 int
4953 main ()
4954 {
4955 return strerror ();
4956   ;
4957   return 0;
4958 }
4959 _ACEOF
4960 for ac_lib in '' cposix; do
4961   if test -z "$ac_lib"; then
4962     ac_res="none required"
4963   else
4964     ac_res=-l$ac_lib
4965     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
4966   fi
4967   rm -f conftest.$ac_objext conftest$ac_exeext
4968 if { (ac_try="$ac_link"
4969 case "(($ac_try" in
4970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4971   *) ac_try_echo=$ac_try;;
4972 esac
4973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4974   (eval "$ac_link") 2>conftest.er1
4975   ac_status=$?
4976   grep -v '^ *+' conftest.er1 >conftest.err
4977   rm -f conftest.er1
4978   cat conftest.err >&5
4979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980   (exit $ac_status); } && {
4981          test -z "$ac_c_werror_flag" ||
4982          test ! -s conftest.err
4983        } && test -s conftest$ac_exeext &&
4984        $as_test_x conftest$ac_exeext; then
4985   ac_cv_search_strerror=$ac_res
4986 else
4987   echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990
4991 fi
4992
4993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4994       conftest$ac_exeext
4995   if test "${ac_cv_search_strerror+set}" = set; then
4996   break
4997 fi
4998 done
4999 if test "${ac_cv_search_strerror+set}" = set; then
5000   :
5001 else
5002   ac_cv_search_strerror=no
5003 fi
5004 rm conftest.$ac_ext
5005 LIBS=$ac_func_search_save_LIBS
5006 fi
5007 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5008 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5009 ac_res=$ac_cv_search_strerror
5010 if test "$ac_res" != no; then
5011   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5012
5013 fi
5014
5015 ac_ext=c
5016 ac_cpp='$CPP $CPPFLAGS'
5017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5020 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5021 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5022 # On Suns, sometimes $CPP names a directory.
5023 if test -n "$CPP" && test -d "$CPP"; then
5024   CPP=
5025 fi
5026 if test -z "$CPP"; then
5027   if test "${ac_cv_prog_CPP+set}" = set; then
5028   echo $ECHO_N "(cached) $ECHO_C" >&6
5029 else
5030       # Double quotes because CPP needs to be expanded
5031     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5032     do
5033       ac_preproc_ok=false
5034 for ac_c_preproc_warn_flag in '' yes
5035 do
5036   # Use a header file that comes with gcc, so configuring glibc
5037   # with a fresh cross-compiler works.
5038   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5039   # <limits.h> exists even on freestanding compilers.
5040   # On the NeXT, cc -E runs the code through the compiler's parser,
5041   # not just through cpp. "Syntax error" is here to catch this case.
5042   cat >conftest.$ac_ext <<_ACEOF
5043 /* confdefs.h.  */
5044 _ACEOF
5045 cat confdefs.h >>conftest.$ac_ext
5046 cat >>conftest.$ac_ext <<_ACEOF
5047 /* end confdefs.h.  */
5048 #ifdef __STDC__
5049 # include <limits.h>
5050 #else
5051 # include <assert.h>
5052 #endif
5053                      Syntax error
5054 _ACEOF
5055 if { (ac_try="$ac_cpp conftest.$ac_ext"
5056 case "(($ac_try" in
5057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5058   *) ac_try_echo=$ac_try;;
5059 esac
5060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5061   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5062   ac_status=$?
5063   grep -v '^ *+' conftest.er1 >conftest.err
5064   rm -f conftest.er1
5065   cat conftest.err >&5
5066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5067   (exit $ac_status); } >/dev/null && {
5068          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5069          test ! -s conftest.err
5070        }; then
5071   :
5072 else
5073   echo "$as_me: failed program was:" >&5
5074 sed 's/^/| /' conftest.$ac_ext >&5
5075
5076   # Broken: fails on valid input.
5077 continue
5078 fi
5079
5080 rm -f conftest.err conftest.$ac_ext
5081
5082   # OK, works on sane cases.  Now check whether nonexistent headers
5083   # can be detected and how.
5084   cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 #include <ac_nonexistent.h>
5091 _ACEOF
5092 if { (ac_try="$ac_cpp conftest.$ac_ext"
5093 case "(($ac_try" in
5094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5095   *) ac_try_echo=$ac_try;;
5096 esac
5097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5098   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5099   ac_status=$?
5100   grep -v '^ *+' conftest.er1 >conftest.err
5101   rm -f conftest.er1
5102   cat conftest.err >&5
5103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5104   (exit $ac_status); } >/dev/null && {
5105          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5106          test ! -s conftest.err
5107        }; then
5108   # Broken: success on invalid input.
5109 continue
5110 else
5111   echo "$as_me: failed program was:" >&5
5112 sed 's/^/| /' conftest.$ac_ext >&5
5113
5114   # Passes both tests.
5115 ac_preproc_ok=:
5116 break
5117 fi
5118
5119 rm -f conftest.err conftest.$ac_ext
5120
5121 done
5122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5123 rm -f conftest.err conftest.$ac_ext
5124 if $ac_preproc_ok; then
5125   break
5126 fi
5127
5128     done
5129     ac_cv_prog_CPP=$CPP
5130
5131 fi
5132   CPP=$ac_cv_prog_CPP
5133 else
5134   ac_cv_prog_CPP=$CPP
5135 fi
5136 { echo "$as_me:$LINENO: result: $CPP" >&5
5137 echo "${ECHO_T}$CPP" >&6; }
5138 ac_preproc_ok=false
5139 for ac_c_preproc_warn_flag in '' yes
5140 do
5141   # Use a header file that comes with gcc, so configuring glibc
5142   # with a fresh cross-compiler works.
5143   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5144   # <limits.h> exists even on freestanding compilers.
5145   # On the NeXT, cc -E runs the code through the compiler's parser,
5146   # not just through cpp. "Syntax error" is here to catch this case.
5147   cat >conftest.$ac_ext <<_ACEOF
5148 /* confdefs.h.  */
5149 _ACEOF
5150 cat confdefs.h >>conftest.$ac_ext
5151 cat >>conftest.$ac_ext <<_ACEOF
5152 /* end confdefs.h.  */
5153 #ifdef __STDC__
5154 # include <limits.h>
5155 #else
5156 # include <assert.h>
5157 #endif
5158                      Syntax error
5159 _ACEOF
5160 if { (ac_try="$ac_cpp conftest.$ac_ext"
5161 case "(($ac_try" in
5162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5163   *) ac_try_echo=$ac_try;;
5164 esac
5165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5166   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5167   ac_status=$?
5168   grep -v '^ *+' conftest.er1 >conftest.err
5169   rm -f conftest.er1
5170   cat conftest.err >&5
5171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5172   (exit $ac_status); } >/dev/null && {
5173          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5174          test ! -s conftest.err
5175        }; then
5176   :
5177 else
5178   echo "$as_me: failed program was:" >&5
5179 sed 's/^/| /' conftest.$ac_ext >&5
5180
5181   # Broken: fails on valid input.
5182 continue
5183 fi
5184
5185 rm -f conftest.err conftest.$ac_ext
5186
5187   # OK, works on sane cases.  Now check whether nonexistent headers
5188   # can be detected and how.
5189   cat >conftest.$ac_ext <<_ACEOF
5190 /* confdefs.h.  */
5191 _ACEOF
5192 cat confdefs.h >>conftest.$ac_ext
5193 cat >>conftest.$ac_ext <<_ACEOF
5194 /* end confdefs.h.  */
5195 #include <ac_nonexistent.h>
5196 _ACEOF
5197 if { (ac_try="$ac_cpp conftest.$ac_ext"
5198 case "(($ac_try" in
5199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200   *) ac_try_echo=$ac_try;;
5201 esac
5202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5204   ac_status=$?
5205   grep -v '^ *+' conftest.er1 >conftest.err
5206   rm -f conftest.er1
5207   cat conftest.err >&5
5208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5209   (exit $ac_status); } >/dev/null && {
5210          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5211          test ! -s conftest.err
5212        }; then
5213   # Broken: success on invalid input.
5214 continue
5215 else
5216   echo "$as_me: failed program was:" >&5
5217 sed 's/^/| /' conftest.$ac_ext >&5
5218
5219   # Passes both tests.
5220 ac_preproc_ok=:
5221 break
5222 fi
5223
5224 rm -f conftest.err conftest.$ac_ext
5225
5226 done
5227 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5228 rm -f conftest.err conftest.$ac_ext
5229 if $ac_preproc_ok; then
5230   :
5231 else
5232   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5233 See \`config.log' for more details." >&5
5234 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5235 See \`config.log' for more details." >&2;}
5236    { (exit 1); exit 1; }; }
5237 fi
5238
5239 ac_ext=c
5240 ac_cpp='$CPP $CPPFLAGS'
5241 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5242 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5244
5245
5246 ac_aux_dir=
5247 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5248   if test -f "$ac_dir/install-sh"; then
5249     ac_aux_dir=$ac_dir
5250     ac_install_sh="$ac_aux_dir/install-sh -c"
5251     break
5252   elif test -f "$ac_dir/install.sh"; then
5253     ac_aux_dir=$ac_dir
5254     ac_install_sh="$ac_aux_dir/install.sh -c"
5255     break
5256   elif test -f "$ac_dir/shtool"; then
5257     ac_aux_dir=$ac_dir
5258     ac_install_sh="$ac_aux_dir/shtool install -c"
5259     break
5260   fi
5261 done
5262 if test -z "$ac_aux_dir"; then
5263   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5264 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5265    { (exit 1); exit 1; }; }
5266 fi
5267
5268 # These three variables are undocumented and unsupported,
5269 # and are intended to be withdrawn in a future Autoconf release.
5270 # They can cause serious problems if a builder's source tree is in a directory
5271 # whose full name contains unusual characters.
5272 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5273 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5274 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5275
5276
5277 # Make sure we can run config.sub.
5278 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5279   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5280 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5281    { (exit 1); exit 1; }; }
5282
5283 { echo "$as_me:$LINENO: checking build system type" >&5
5284 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5285 if test "${ac_cv_build+set}" = set; then
5286   echo $ECHO_N "(cached) $ECHO_C" >&6
5287 else
5288   ac_build_alias=$build_alias
5289 test "x$ac_build_alias" = x &&
5290   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5291 test "x$ac_build_alias" = x &&
5292   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5293 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5294    { (exit 1); exit 1; }; }
5295 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5296   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5298    { (exit 1); exit 1; }; }
5299
5300 fi
5301 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5302 echo "${ECHO_T}$ac_cv_build" >&6; }
5303 case $ac_cv_build in
5304 *-*-*) ;;
5305 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5306 echo "$as_me: error: invalid value of canonical build" >&2;}
5307    { (exit 1); exit 1; }; };;
5308 esac
5309 build=$ac_cv_build
5310 ac_save_IFS=$IFS; IFS='-'
5311 set x $ac_cv_build
5312 shift
5313 build_cpu=$1
5314 build_vendor=$2
5315 shift; shift
5316 # Remember, the first character of IFS is used to create $*,
5317 # except with old shells:
5318 build_os=$*
5319 IFS=$ac_save_IFS
5320 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5321
5322
5323 { echo "$as_me:$LINENO: checking host system type" >&5
5324 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5325 if test "${ac_cv_host+set}" = set; then
5326   echo $ECHO_N "(cached) $ECHO_C" >&6
5327 else
5328   if test "x$host_alias" = x; then
5329   ac_cv_host=$ac_cv_build
5330 else
5331   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5332     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5333 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5334    { (exit 1); exit 1; }; }
5335 fi
5336
5337 fi
5338 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5339 echo "${ECHO_T}$ac_cv_host" >&6; }
5340 case $ac_cv_host in
5341 *-*-*) ;;
5342 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5343 echo "$as_me: error: invalid value of canonical host" >&2;}
5344    { (exit 1); exit 1; }; };;
5345 esac
5346 host=$ac_cv_host
5347 ac_save_IFS=$IFS; IFS='-'
5348 set x $ac_cv_host
5349 shift
5350 host_cpu=$1
5351 host_vendor=$2
5352 shift; shift
5353 # Remember, the first character of IFS is used to create $*,
5354 # except with old shells:
5355 host_os=$*
5356 IFS=$ac_save_IFS
5357 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5358
5359
5360 { echo "$as_me:$LINENO: checking target system type" >&5
5361 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5362 if test "${ac_cv_target+set}" = set; then
5363   echo $ECHO_N "(cached) $ECHO_C" >&6
5364 else
5365   if test "x$target_alias" = x; then
5366   ac_cv_target=$ac_cv_host
5367 else
5368   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5369     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5370 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5371    { (exit 1); exit 1; }; }
5372 fi
5373
5374 fi
5375 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5376 echo "${ECHO_T}$ac_cv_target" >&6; }
5377 case $ac_cv_target in
5378 *-*-*) ;;
5379 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5380 echo "$as_me: error: invalid value of canonical target" >&2;}
5381    { (exit 1); exit 1; }; };;
5382 esac
5383 target=$ac_cv_target
5384 ac_save_IFS=$IFS; IFS='-'
5385 set x $ac_cv_target
5386 shift
5387 target_cpu=$1
5388 target_vendor=$2
5389 shift; shift
5390 # Remember, the first character of IFS is used to create $*,
5391 # except with old shells:
5392 target_os=$*
5393 IFS=$ac_save_IFS
5394 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5395
5396
5397 # The aliases save the names the user supplied, while $host etc.
5398 # will get canonicalized.
5399 test -n "$target_alias" &&
5400   test "$program_prefix$program_suffix$program_transform_name" = \
5401     NONENONEs,x,x, &&
5402   program_prefix=${target_alias}-
5403 # Check whether --enable-static was given.
5404 if test "${enable_static+set}" = set; then
5405   enableval=$enable_static; p=${PACKAGE-default}
5406     case $enableval in
5407     yes) enable_static=yes ;;
5408     no) enable_static=no ;;
5409     *)
5410      enable_static=no
5411       # Look at the argument we got.  We use all the common list separators.
5412       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5413       for pkg in $enableval; do
5414         IFS="$lt_save_ifs"
5415         if test "X$pkg" = "X$p"; then
5416           enable_static=yes
5417         fi
5418       done
5419       IFS="$lt_save_ifs"
5420       ;;
5421     esac
5422 else
5423   enable_static=no
5424 fi
5425
5426
5427
5428 # Check whether --enable-shared was given.
5429 if test "${enable_shared+set}" = set; then
5430   enableval=$enable_shared; p=${PACKAGE-default}
5431     case $enableval in
5432     yes) enable_shared=yes ;;
5433     no) enable_shared=no ;;
5434     *)
5435       enable_shared=no
5436       # Look at the argument we got.  We use all the common list separators.
5437       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5438       for pkg in $enableval; do
5439         IFS="$lt_save_ifs"
5440         if test "X$pkg" = "X$p"; then
5441           enable_shared=yes
5442         fi
5443       done
5444       IFS="$lt_save_ifs"
5445       ;;
5446     esac
5447 else
5448   enable_shared=yes
5449 fi
5450
5451
5452 # Check whether --enable-fast-install was given.
5453 if test "${enable_fast_install+set}" = set; then
5454   enableval=$enable_fast_install; p=${PACKAGE-default}
5455     case $enableval in
5456     yes) enable_fast_install=yes ;;
5457     no) enable_fast_install=no ;;
5458     *)
5459       enable_fast_install=no
5460       # Look at the argument we got.  We use all the common list separators.
5461       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5462       for pkg in $enableval; do
5463         IFS="$lt_save_ifs"
5464         if test "X$pkg" = "X$p"; then
5465           enable_fast_install=yes
5466         fi
5467       done
5468       IFS="$lt_save_ifs"
5469       ;;
5470     esac
5471 else
5472   enable_fast_install=yes
5473 fi
5474
5475
5476 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5477 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5478 if test "${lt_cv_path_SED+set}" = set; then
5479   echo $ECHO_N "(cached) $ECHO_C" >&6
5480 else
5481   # Loop through the user's path and test for sed and gsed.
5482 # Then use that list of sed's as ones to test for truncation.
5483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 for as_dir in $PATH
5485 do
5486   IFS=$as_save_IFS
5487   test -z "$as_dir" && as_dir=.
5488   for lt_ac_prog in sed gsed; do
5489     for ac_exec_ext in '' $ac_executable_extensions; do
5490       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5491         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5492       fi
5493     done
5494   done
5495 done
5496 IFS=$as_save_IFS
5497 lt_ac_max=0
5498 lt_ac_count=0
5499 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5500 # along with /bin/sed that truncates output.
5501 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5502   test ! -f $lt_ac_sed && continue
5503   cat /dev/null > conftest.in
5504   lt_ac_count=0
5505   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5506   # Check for GNU sed and select it if it is found.
5507   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5508     lt_cv_path_SED=$lt_ac_sed
5509     break
5510   fi
5511   while true; do
5512     cat conftest.in conftest.in >conftest.tmp
5513     mv conftest.tmp conftest.in
5514     cp conftest.in conftest.nl
5515     echo >>conftest.nl
5516     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5517     cmp -s conftest.out conftest.nl || break
5518     # 10000 chars as input seems more than enough
5519     test $lt_ac_count -gt 10 && break
5520     lt_ac_count=`expr $lt_ac_count + 1`
5521     if test $lt_ac_count -gt $lt_ac_max; then
5522       lt_ac_max=$lt_ac_count
5523       lt_cv_path_SED=$lt_ac_sed
5524     fi
5525   done
5526 done
5527
5528 fi
5529
5530 SED=$lt_cv_path_SED
5531
5532 { echo "$as_me:$LINENO: result: $SED" >&5
5533 echo "${ECHO_T}$SED" >&6; }
5534
5535 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5536 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5537 if test "${ac_cv_path_GREP+set}" = set; then
5538   echo $ECHO_N "(cached) $ECHO_C" >&6
5539 else
5540   # Extract the first word of "grep ggrep" to use in msg output
5541 if test -z "$GREP"; then
5542 set dummy grep ggrep; ac_prog_name=$2
5543 if test "${ac_cv_path_GREP+set}" = set; then
5544   echo $ECHO_N "(cached) $ECHO_C" >&6
5545 else
5546   ac_path_GREP_found=false
5547 # Loop through the user's path and test for each of PROGNAME-LIST
5548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5550 do
5551   IFS=$as_save_IFS
5552   test -z "$as_dir" && as_dir=.
5553   for ac_prog in grep ggrep; do
5554   for ac_exec_ext in '' $ac_executable_extensions; do
5555     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5556     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5557     # Check for GNU ac_path_GREP and select it if it is found.
5558   # Check for GNU $ac_path_GREP
5559 case `"$ac_path_GREP" --version 2>&1` in
5560 *GNU*)
5561   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5562 *)
5563   ac_count=0
5564   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5565   while :
5566   do
5567     cat "conftest.in" "conftest.in" >"conftest.tmp"
5568     mv "conftest.tmp" "conftest.in"
5569     cp "conftest.in" "conftest.nl"
5570     echo 'GREP' >> "conftest.nl"
5571     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5573     ac_count=`expr $ac_count + 1`
5574     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5575       # Best one so far, save it but keep looking for a better one
5576       ac_cv_path_GREP="$ac_path_GREP"
5577       ac_path_GREP_max=$ac_count
5578     fi
5579     # 10*(2^10) chars as input seems more than enough
5580     test $ac_count -gt 10 && break
5581   done
5582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5583 esac
5584
5585
5586     $ac_path_GREP_found && break 3
5587   done
5588 done
5589
5590 done
5591 IFS=$as_save_IFS
5592
5593
5594 fi
5595
5596 GREP="$ac_cv_path_GREP"
5597 if test -z "$GREP"; then
5598   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5599 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5600    { (exit 1); exit 1; }; }
5601 fi
5602
5603 else
5604   ac_cv_path_GREP=$GREP
5605 fi
5606
5607
5608 fi
5609 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5610 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5611  GREP="$ac_cv_path_GREP"
5612
5613
5614 { echo "$as_me:$LINENO: checking for egrep" >&5
5615 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5616 if test "${ac_cv_path_EGREP+set}" = set; then
5617   echo $ECHO_N "(cached) $ECHO_C" >&6
5618 else
5619   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5620    then ac_cv_path_EGREP="$GREP -E"
5621    else
5622      # Extract the first word of "egrep" to use in msg output
5623 if test -z "$EGREP"; then
5624 set dummy egrep; ac_prog_name=$2
5625 if test "${ac_cv_path_EGREP+set}" = set; then
5626   echo $ECHO_N "(cached) $ECHO_C" >&6
5627 else
5628   ac_path_EGREP_found=false
5629 # Loop through the user's path and test for each of PROGNAME-LIST
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5632 do
5633   IFS=$as_save_IFS
5634   test -z "$as_dir" && as_dir=.
5635   for ac_prog in egrep; do
5636   for ac_exec_ext in '' $ac_executable_extensions; do
5637     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5638     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5639     # Check for GNU ac_path_EGREP and select it if it is found.
5640   # Check for GNU $ac_path_EGREP
5641 case `"$ac_path_EGREP" --version 2>&1` in
5642 *GNU*)
5643   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5644 *)
5645   ac_count=0
5646   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5647   while :
5648   do
5649     cat "conftest.in" "conftest.in" >"conftest.tmp"
5650     mv "conftest.tmp" "conftest.in"
5651     cp "conftest.in" "conftest.nl"
5652     echo 'EGREP' >> "conftest.nl"
5653     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5654     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5655     ac_count=`expr $ac_count + 1`
5656     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5657       # Best one so far, save it but keep looking for a better one
5658       ac_cv_path_EGREP="$ac_path_EGREP"
5659       ac_path_EGREP_max=$ac_count
5660     fi
5661     # 10*(2^10) chars as input seems more than enough
5662     test $ac_count -gt 10 && break
5663   done
5664   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5665 esac
5666
5667
5668     $ac_path_EGREP_found && break 3
5669   done
5670 done
5671
5672 done
5673 IFS=$as_save_IFS
5674
5675
5676 fi
5677
5678 EGREP="$ac_cv_path_EGREP"
5679 if test -z "$EGREP"; then
5680   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5682    { (exit 1); exit 1; }; }
5683 fi
5684
5685 else
5686   ac_cv_path_EGREP=$EGREP
5687 fi
5688
5689
5690    fi
5691 fi
5692 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5693 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5694  EGREP="$ac_cv_path_EGREP"
5695
5696
5697
5698 # Check whether --with-gnu-ld was given.
5699 if test "${with_gnu_ld+set}" = set; then
5700   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5701 else
5702   with_gnu_ld=no
5703 fi
5704
5705 ac_prog=ld
5706 if test "$GCC" = yes; then
5707   # Check if gcc -print-prog-name=ld gives a path.
5708   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5710   case $host in
5711   *-*-mingw*)
5712     # gcc leaves a trailing carriage return which upsets mingw
5713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5714   *)
5715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5716   esac
5717   case $ac_prog in
5718     # Accept absolute paths.
5719     [\\/]* | ?:[\\/]*)
5720       re_direlt='/[^/][^/]*/\.\./'
5721       # Canonicalize the pathname of ld
5722       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5723       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5724         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5725       done
5726       test -z "$LD" && LD="$ac_prog"
5727       ;;
5728   "")
5729     # If it fails, then pretend we aren't using GCC.
5730     ac_prog=ld
5731     ;;
5732   *)
5733     # If it is relative, then search for the first ld in PATH.
5734     with_gnu_ld=unknown
5735     ;;
5736   esac
5737 elif test "$with_gnu_ld" = yes; then
5738   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5740 else
5741   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5743 fi
5744 if test "${lt_cv_path_LD+set}" = set; then
5745   echo $ECHO_N "(cached) $ECHO_C" >&6
5746 else
5747   if test -z "$LD"; then
5748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5749   for ac_dir in $PATH; do
5750     IFS="$lt_save_ifs"
5751     test -z "$ac_dir" && ac_dir=.
5752     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5753       lt_cv_path_LD="$ac_dir/$ac_prog"
5754       # Check to see if the program is GNU ld.  I'd rather use --version,
5755       # but apparently some variants of GNU ld only accept -v.
5756       # Break only if it was the GNU/non-GNU ld that we prefer.
5757       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5758       *GNU* | *'with BFD'*)
5759         test "$with_gnu_ld" != no && break
5760         ;;
5761       *)
5762         test "$with_gnu_ld" != yes && break
5763         ;;
5764       esac
5765     fi
5766   done
5767   IFS="$lt_save_ifs"
5768 else
5769   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5770 fi
5771 fi
5772
5773 LD="$lt_cv_path_LD"
5774 if test -n "$LD"; then
5775   { echo "$as_me:$LINENO: result: $LD" >&5
5776 echo "${ECHO_T}$LD" >&6; }
5777 else
5778   { echo "$as_me:$LINENO: result: no" >&5
5779 echo "${ECHO_T}no" >&6; }
5780 fi
5781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5783    { (exit 1); exit 1; }; }
5784 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5787   echo $ECHO_N "(cached) $ECHO_C" >&6
5788 else
5789   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5790 case `$LD -v 2>&1 </dev/null` in
5791 *GNU* | *'with BFD'*)
5792   lt_cv_prog_gnu_ld=yes
5793   ;;
5794 *)
5795   lt_cv_prog_gnu_ld=no
5796   ;;
5797 esac
5798 fi
5799 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5801 with_gnu_ld=$lt_cv_prog_gnu_ld
5802
5803
5804 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5805 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5806 if test "${lt_cv_ld_reload_flag+set}" = set; then
5807   echo $ECHO_N "(cached) $ECHO_C" >&6
5808 else
5809   lt_cv_ld_reload_flag='-r'
5810 fi
5811 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5812 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5813 reload_flag=$lt_cv_ld_reload_flag
5814 case $reload_flag in
5815 "" | " "*) ;;
5816 *) reload_flag=" $reload_flag" ;;
5817 esac
5818 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5819 case $host_os in
5820   darwin*)
5821     if test "$GCC" = yes; then
5822       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5823     else
5824       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5825     fi
5826     ;;
5827 esac
5828
5829 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5830 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5831 if test "${lt_cv_path_NM+set}" = set; then
5832   echo $ECHO_N "(cached) $ECHO_C" >&6
5833 else
5834   if test -n "$NM"; then
5835   # Let the user override the test.
5836   lt_cv_path_NM="$NM"
5837 else
5838   lt_nm_to_check="${ac_tool_prefix}nm"
5839   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5840     lt_nm_to_check="$lt_nm_to_check nm"
5841   fi
5842   for lt_tmp_nm in $lt_nm_to_check; do
5843     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5844     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5845       IFS="$lt_save_ifs"
5846       test -z "$ac_dir" && ac_dir=.
5847       tmp_nm="$ac_dir/$lt_tmp_nm"
5848       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5849         # Check to see if the nm accepts a BSD-compat flag.
5850         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5851         #   nm: unknown option "B" ignored
5852         # Tru64's nm complains that /dev/null is an invalid object file
5853         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5854         */dev/null* | *'Invalid file or object type'*)
5855           lt_cv_path_NM="$tmp_nm -B"
5856           break
5857           ;;
5858         *)
5859           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5860           */dev/null*)
5861             lt_cv_path_NM="$tmp_nm -p"
5862             break
5863             ;;
5864           *)
5865             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5866             continue # so that we can try to find one that supports BSD flags
5867             ;;
5868           esac
5869           ;;
5870         esac
5871       fi
5872     done
5873     IFS="$lt_save_ifs"
5874   done
5875   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5876 fi
5877 fi
5878 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5879 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5880 NM="$lt_cv_path_NM"
5881
5882 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5883 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5884 LN_S=$as_ln_s
5885 if test "$LN_S" = "ln -s"; then
5886   { echo "$as_me:$LINENO: result: yes" >&5
5887 echo "${ECHO_T}yes" >&6; }
5888 else
5889   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5890 echo "${ECHO_T}no, using $LN_S" >&6; }
5891 fi
5892
5893 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5894 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5895 if test "${lt_cv_deplibs_check_method+set}" = set; then
5896   echo $ECHO_N "(cached) $ECHO_C" >&6
5897 else
5898   lt_cv_file_magic_cmd='$MAGIC_CMD'
5899 lt_cv_file_magic_test_file=
5900 lt_cv_deplibs_check_method='unknown'
5901 # Need to set the preceding variable on all platforms that support
5902 # interlibrary dependencies.
5903 # 'none' -- dependencies not supported.
5904 # `unknown' -- same as none, but documents that we really don't know.
5905 # 'pass_all' -- all dependencies passed with no checks.
5906 # 'test_compile' -- check by making test program.
5907 # 'file_magic [[regex]]' -- check by looking for files in library path
5908 # which responds to the $file_magic_cmd with a given extended regex.
5909 # If you have `file' or equivalent on your system and you're not sure
5910 # whether `pass_all' will *always* work, you probably want this one.
5911
5912 case $host_os in
5913 aix4* | aix5*)
5914   lt_cv_deplibs_check_method=pass_all
5915   ;;
5916
5917 beos*)
5918   lt_cv_deplibs_check_method=pass_all
5919   ;;
5920
5921 bsdi[45]*)
5922   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5923   lt_cv_file_magic_cmd='/usr/bin/file -L'
5924   lt_cv_file_magic_test_file=/shlib/libc.so
5925   ;;
5926
5927 cygwin*)
5928   # func_win32_libid is a shell function defined in ltmain.sh
5929   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5930   lt_cv_file_magic_cmd='func_win32_libid'
5931   ;;
5932
5933 mingw* | pw32*)
5934   # Base MSYS/MinGW do not provide the 'file' command needed by
5935   # func_win32_libid shell function, so use a weaker test based on 'objdump',
5936   # unless we find 'file', for example because we are cross-compiling.
5937   if ( file / ) >/dev/null 2>&1; then
5938     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5939     lt_cv_file_magic_cmd='func_win32_libid'
5940   else
5941     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5942     lt_cv_file_magic_cmd='$OBJDUMP -f'
5943   fi
5944   ;;
5945
5946 darwin* | rhapsody*)
5947   lt_cv_deplibs_check_method=pass_all
5948   ;;
5949
5950 freebsd* | dragonfly*)
5951   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5952     case $host_cpu in
5953     i*86 )
5954       # Not sure whether the presence of OpenBSD here was a mistake.
5955       # Let's accept both of them until this is cleared up.
5956       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5957       lt_cv_file_magic_cmd=/usr/bin/file
5958       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5959       ;;
5960     esac
5961   else
5962     lt_cv_deplibs_check_method=pass_all
5963   fi
5964   ;;
5965
5966 gnu*)
5967   lt_cv_deplibs_check_method=pass_all
5968   ;;
5969
5970 hpux10.20* | hpux11*)
5971   lt_cv_file_magic_cmd=/usr/bin/file
5972   case $host_cpu in
5973   ia64*)
5974     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5975     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5976     ;;
5977   hppa*64*)
5978     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]'
5979     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5980     ;;
5981   *)
5982     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5983     lt_cv_file_magic_test_file=/usr/lib/libc.sl
5984     ;;
5985   esac
5986   ;;
5987
5988 interix[3-9]*)
5989   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5990   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5991   ;;
5992
5993 irix5* | irix6* | nonstopux*)
5994   case $LD in
5995   *-32|*"-32 ") libmagic=32-bit;;
5996   *-n32|*"-n32 ") libmagic=N32;;
5997   *-64|*"-64 ") libmagic=64-bit;;
5998   *) libmagic=never-match;;
5999   esac
6000   lt_cv_deplibs_check_method=pass_all
6001   ;;
6002
6003 # This must be Linux ELF.
6004 linux* | k*bsd*-gnu)
6005   lt_cv_deplibs_check_method=pass_all
6006   ;;
6007
6008 netbsd*)
6009   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6010     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6011   else
6012     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6013   fi
6014   ;;
6015
6016 newos6*)
6017   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6018   lt_cv_file_magic_cmd=/usr/bin/file
6019   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6020   ;;
6021
6022 nto-qnx*)
6023   lt_cv_deplibs_check_method=unknown
6024   ;;
6025
6026 openbsd*)
6027   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6028     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6029   else
6030     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6031   fi
6032   ;;
6033
6034 osf3* | osf4* | osf5*)
6035   lt_cv_deplibs_check_method=pass_all
6036   ;;
6037
6038 rdos*)
6039   lt_cv_deplibs_check_method=pass_all
6040   ;;
6041
6042 solaris*)
6043   lt_cv_deplibs_check_method=pass_all
6044   ;;
6045
6046 sysv4 | sysv4.3*)
6047   case $host_vendor in
6048   motorola)
6049     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]'
6050     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6051     ;;
6052   ncr)
6053     lt_cv_deplibs_check_method=pass_all
6054     ;;
6055   sequent)
6056     lt_cv_file_magic_cmd='/bin/file'
6057     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6058     ;;
6059   sni)
6060     lt_cv_file_magic_cmd='/bin/file'
6061     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6062     lt_cv_file_magic_test_file=/lib/libc.so
6063     ;;
6064   siemens)
6065     lt_cv_deplibs_check_method=pass_all
6066     ;;
6067   pc)
6068     lt_cv_deplibs_check_method=pass_all
6069     ;;
6070   esac
6071   ;;
6072
6073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6074   lt_cv_deplibs_check_method=pass_all
6075   ;;
6076 esac
6077
6078 fi
6079 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6080 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6081 file_magic_cmd=$lt_cv_file_magic_cmd
6082 deplibs_check_method=$lt_cv_deplibs_check_method
6083 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6084
6085
6086
6087
6088 # If no C compiler was specified, use CC.
6089 LTCC=${LTCC-"$CC"}
6090
6091 # If no C compiler flags were specified, use CFLAGS.
6092 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6093
6094 # Allow CC to be a program name with arguments.
6095 compiler=$CC
6096
6097 # Check whether --enable-libtool-lock was given.
6098 if test "${enable_libtool_lock+set}" = set; then
6099   enableval=$enable_libtool_lock;
6100 fi
6101
6102 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6103
6104 # Some flags need to be propagated to the compiler or linker for good
6105 # libtool support.
6106 case $host in
6107 ia64-*-hpux*)
6108   # Find out which ABI we are using.
6109   echo 'int i;' > conftest.$ac_ext
6110   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6111   (eval $ac_compile) 2>&5
6112   ac_status=$?
6113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6114   (exit $ac_status); }; then
6115     case `/usr/bin/file conftest.$ac_objext` in
6116     *ELF-32*)
6117       HPUX_IA64_MODE="32"
6118       ;;
6119     *ELF-64*)
6120       HPUX_IA64_MODE="64"
6121       ;;
6122     esac
6123   fi
6124   rm -rf conftest*
6125   ;;
6126 *-*-irix6*)
6127   # Find out which ABI we are using.
6128   echo '#line 6128 "configure"' > conftest.$ac_ext
6129   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6130   (eval $ac_compile) 2>&5
6131   ac_status=$?
6132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133   (exit $ac_status); }; then
6134    if test "$lt_cv_prog_gnu_ld" = yes; then
6135     case `/usr/bin/file conftest.$ac_objext` in
6136     *32-bit*)
6137       LD="${LD-ld} -melf32bsmip"
6138       ;;
6139     *N32*)
6140       LD="${LD-ld} -melf32bmipn32"
6141       ;;
6142     *64-bit*)
6143       LD="${LD-ld} -melf64bmip"
6144       ;;
6145     esac
6146    else
6147     case `/usr/bin/file conftest.$ac_objext` in
6148     *32-bit*)
6149       LD="${LD-ld} -32"
6150       ;;
6151     *N32*)
6152       LD="${LD-ld} -n32"
6153       ;;
6154     *64-bit*)
6155       LD="${LD-ld} -64"
6156       ;;
6157     esac
6158    fi
6159   fi
6160   rm -rf conftest*
6161   ;;
6162
6163 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6164 s390*-*linux*|sparc*-*linux*)
6165   # Find out which ABI we are using.
6166   echo 'int i;' > conftest.$ac_ext
6167   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6168   (eval $ac_compile) 2>&5
6169   ac_status=$?
6170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171   (exit $ac_status); }; then
6172     case `/usr/bin/file conftest.o` in
6173     *32-bit*)
6174       case $host in
6175         x86_64-*kfreebsd*-gnu)
6176           LD="${LD-ld} -m elf_i386_fbsd"
6177           ;;
6178         x86_64-*linux*)
6179           LD="${LD-ld} -m elf_i386"
6180           ;;
6181         ppc64-*linux*|powerpc64-*linux*)
6182           LD="${LD-ld} -m elf32ppclinux"
6183           ;;
6184         s390x-*linux*)
6185           LD="${LD-ld} -m elf_s390"
6186           ;;
6187         sparc64-*linux*)
6188           LD="${LD-ld} -m elf32_sparc"
6189           ;;
6190       esac
6191       ;;
6192     *64-bit*)
6193       case $host in
6194         x86_64-*kfreebsd*-gnu)
6195           LD="${LD-ld} -m elf_x86_64_fbsd"
6196           ;;
6197         x86_64-*linux*)
6198           LD="${LD-ld} -m elf_x86_64"
6199           ;;
6200         ppc*-*linux*|powerpc*-*linux*)
6201           LD="${LD-ld} -m elf64ppc"
6202           ;;
6203         s390*-*linux*)
6204           LD="${LD-ld} -m elf64_s390"
6205           ;;
6206         sparc*-*linux*)
6207           LD="${LD-ld} -m elf64_sparc"
6208           ;;
6209       esac
6210       ;;
6211     esac
6212   fi
6213   rm -rf conftest*
6214   ;;
6215
6216 *-*-sco3.2v5*)
6217   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6218   SAVE_CFLAGS="$CFLAGS"
6219   CFLAGS="$CFLAGS -belf"
6220   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6221 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6222 if test "${lt_cv_cc_needs_belf+set}" = set; then
6223   echo $ECHO_N "(cached) $ECHO_C" >&6
6224 else
6225   ac_ext=c
6226 ac_cpp='$CPP $CPPFLAGS'
6227 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6228 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6229 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6230
6231      cat >conftest.$ac_ext <<_ACEOF
6232 /* confdefs.h.  */
6233 _ACEOF
6234 cat confdefs.h >>conftest.$ac_ext
6235 cat >>conftest.$ac_ext <<_ACEOF
6236 /* end confdefs.h.  */
6237
6238 int
6239 main ()
6240 {
6241
6242   ;
6243   return 0;
6244 }
6245 _ACEOF
6246 rm -f conftest.$ac_objext conftest$ac_exeext
6247 if { (ac_try="$ac_link"
6248 case "(($ac_try" in
6249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6250   *) ac_try_echo=$ac_try;;
6251 esac
6252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6253   (eval "$ac_link") 2>conftest.er1
6254   ac_status=$?
6255   grep -v '^ *+' conftest.er1 >conftest.err
6256   rm -f conftest.er1
6257   cat conftest.err >&5
6258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6259   (exit $ac_status); } && {
6260          test -z "$ac_c_werror_flag" ||
6261          test ! -s conftest.err
6262        } && test -s conftest$ac_exeext &&
6263        $as_test_x conftest$ac_exeext; then
6264   lt_cv_cc_needs_belf=yes
6265 else
6266   echo "$as_me: failed program was:" >&5
6267 sed 's/^/| /' conftest.$ac_ext >&5
6268
6269         lt_cv_cc_needs_belf=no
6270 fi
6271
6272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6273       conftest$ac_exeext conftest.$ac_ext
6274      ac_ext=c
6275 ac_cpp='$CPP $CPPFLAGS'
6276 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6277 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6278 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6279
6280 fi
6281 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6282 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6283   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6284     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6285     CFLAGS="$SAVE_CFLAGS"
6286   fi
6287   ;;
6288 sparc*-*solaris*)
6289   # Find out which ABI we are using.
6290   echo 'int i;' > conftest.$ac_ext
6291   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6292   (eval $ac_compile) 2>&5
6293   ac_status=$?
6294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295   (exit $ac_status); }; then
6296     case `/usr/bin/file conftest.o` in
6297     *64-bit*)
6298       case $lt_cv_prog_gnu_ld in
6299       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6300       *)    LD="${LD-ld} -64" ;;
6301       esac
6302       ;;
6303     esac
6304   fi
6305   rm -rf conftest*
6306   ;;
6307
6308
6309 esac
6310
6311 need_locks="$enable_libtool_lock"
6312
6313
6314
6315 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6316 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6317 if test "${ac_cv_header_stdc+set}" = set; then
6318   echo $ECHO_N "(cached) $ECHO_C" >&6
6319 else
6320   cat >conftest.$ac_ext <<_ACEOF
6321 /* confdefs.h.  */
6322 _ACEOF
6323 cat confdefs.h >>conftest.$ac_ext
6324 cat >>conftest.$ac_ext <<_ACEOF
6325 /* end confdefs.h.  */
6326 #include <stdlib.h>
6327 #include <stdarg.h>
6328 #include <string.h>
6329 #include <float.h>
6330
6331 int
6332 main ()
6333 {
6334
6335   ;
6336   return 0;
6337 }
6338 _ACEOF
6339 rm -f conftest.$ac_objext
6340 if { (ac_try="$ac_compile"
6341 case "(($ac_try" in
6342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6343   *) ac_try_echo=$ac_try;;
6344 esac
6345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6346   (eval "$ac_compile") 2>conftest.er1
6347   ac_status=$?
6348   grep -v '^ *+' conftest.er1 >conftest.err
6349   rm -f conftest.er1
6350   cat conftest.err >&5
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); } && {
6353          test -z "$ac_c_werror_flag" ||
6354          test ! -s conftest.err
6355        } && test -s conftest.$ac_objext; then
6356   ac_cv_header_stdc=yes
6357 else
6358   echo "$as_me: failed program was:" >&5
6359 sed 's/^/| /' conftest.$ac_ext >&5
6360
6361         ac_cv_header_stdc=no
6362 fi
6363
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365
6366 if test $ac_cv_header_stdc = yes; then
6367   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6368   cat >conftest.$ac_ext <<_ACEOF
6369 /* confdefs.h.  */
6370 _ACEOF
6371 cat confdefs.h >>conftest.$ac_ext
6372 cat >>conftest.$ac_ext <<_ACEOF
6373 /* end confdefs.h.  */
6374 #include <string.h>
6375
6376 _ACEOF
6377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6378   $EGREP "memchr" >/dev/null 2>&1; then
6379   :
6380 else
6381   ac_cv_header_stdc=no
6382 fi
6383 rm -f conftest*
6384
6385 fi
6386
6387 if test $ac_cv_header_stdc = yes; then
6388   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6389   cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h.  */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h.  */
6395 #include <stdlib.h>
6396
6397 _ACEOF
6398 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6399   $EGREP "free" >/dev/null 2>&1; then
6400   :
6401 else
6402   ac_cv_header_stdc=no
6403 fi
6404 rm -f conftest*
6405
6406 fi
6407
6408 if test $ac_cv_header_stdc = yes; then
6409   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6410   if test "$cross_compiling" = yes; then
6411   :
6412 else
6413   cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h.  */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h.  */
6419 #include <ctype.h>
6420 #include <stdlib.h>
6421 #if ((' ' & 0x0FF) == 0x020)
6422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6424 #else
6425 # define ISLOWER(c) \
6426                    (('a' <= (c) && (c) <= 'i') \
6427                      || ('j' <= (c) && (c) <= 'r') \
6428                      || ('s' <= (c) && (c) <= 'z'))
6429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6430 #endif
6431
6432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6433 int
6434 main ()
6435 {
6436   int i;
6437   for (i = 0; i < 256; i++)
6438     if (XOR (islower (i), ISLOWER (i))
6439         || toupper (i) != TOUPPER (i))
6440       return 2;
6441   return 0;
6442 }
6443 _ACEOF
6444 rm -f conftest$ac_exeext
6445 if { (ac_try="$ac_link"
6446 case "(($ac_try" in
6447   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6448   *) ac_try_echo=$ac_try;;
6449 esac
6450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6451   (eval "$ac_link") 2>&5
6452   ac_status=$?
6453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6455   { (case "(($ac_try" in
6456   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457   *) ac_try_echo=$ac_try;;
6458 esac
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460   (eval "$ac_try") 2>&5
6461   ac_status=$?
6462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463   (exit $ac_status); }; }; then
6464   :
6465 else
6466   echo "$as_me: program exited with status $ac_status" >&5
6467 echo "$as_me: failed program was:" >&5
6468 sed 's/^/| /' conftest.$ac_ext >&5
6469
6470 ( exit $ac_status )
6471 ac_cv_header_stdc=no
6472 fi
6473 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6474 fi
6475
6476
6477 fi
6478 fi
6479 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6480 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6481 if test $ac_cv_header_stdc = yes; then
6482
6483 cat >>confdefs.h <<\_ACEOF
6484 #define STDC_HEADERS 1
6485 _ACEOF
6486
6487 fi
6488
6489 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6500                   inttypes.h stdint.h unistd.h
6501 do
6502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506   echo $ECHO_N "(cached) $ECHO_C" >&6
6507 else
6508   cat >conftest.$ac_ext <<_ACEOF
6509 /* confdefs.h.  */
6510 _ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h.  */
6514 $ac_includes_default
6515
6516 #include <$ac_header>
6517 _ACEOF
6518 rm -f conftest.$ac_objext
6519 if { (ac_try="$ac_compile"
6520 case "(($ac_try" in
6521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6522   *) ac_try_echo=$ac_try;;
6523 esac
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525   (eval "$ac_compile") 2>conftest.er1
6526   ac_status=$?
6527   grep -v '^ *+' conftest.er1 >conftest.err
6528   rm -f conftest.er1
6529   cat conftest.err >&5
6530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531   (exit $ac_status); } && {
6532          test -z "$ac_c_werror_flag" ||
6533          test ! -s conftest.err
6534        } && test -s conftest.$ac_objext; then
6535   eval "$as_ac_Header=yes"
6536 else
6537   echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6539
6540         eval "$as_ac_Header=no"
6541 fi
6542
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 fi
6545 ac_res=`eval echo '${'$as_ac_Header'}'`
6546                { echo "$as_me:$LINENO: result: $ac_res" >&5
6547 echo "${ECHO_T}$ac_res" >&6; }
6548 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6549   cat >>confdefs.h <<_ACEOF
6550 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6551 _ACEOF
6552
6553 fi
6554
6555 done
6556
6557
6558
6559 for ac_header in dlfcn.h
6560 do
6561 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6566   echo $ECHO_N "(cached) $ECHO_C" >&6
6567 fi
6568 ac_res=`eval echo '${'$as_ac_Header'}'`
6569                { echo "$as_me:$LINENO: result: $ac_res" >&5
6570 echo "${ECHO_T}$ac_res" >&6; }
6571 else
6572   # Is the header compilable?
6573 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6574 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6575 cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581 $ac_includes_default
6582 #include <$ac_header>
6583 _ACEOF
6584 rm -f conftest.$ac_objext
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588   *) ac_try_echo=$ac_try;;
6589 esac
6590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6591   (eval "$ac_compile") 2>conftest.er1
6592   ac_status=$?
6593   grep -v '^ *+' conftest.er1 >conftest.err
6594   rm -f conftest.er1
6595   cat conftest.err >&5
6596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597   (exit $ac_status); } && {
6598          test -z "$ac_c_werror_flag" ||
6599          test ! -s conftest.err
6600        } && test -s conftest.$ac_objext; then
6601   ac_header_compiler=yes
6602 else
6603   echo "$as_me: failed program was:" >&5
6604 sed 's/^/| /' conftest.$ac_ext >&5
6605
6606         ac_header_compiler=no
6607 fi
6608
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6610 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6611 echo "${ECHO_T}$ac_header_compiler" >&6; }
6612
6613 # Is the header present?
6614 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6615 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6616 cat >conftest.$ac_ext <<_ACEOF
6617 /* confdefs.h.  */
6618 _ACEOF
6619 cat confdefs.h >>conftest.$ac_ext
6620 cat >>conftest.$ac_ext <<_ACEOF
6621 /* end confdefs.h.  */
6622 #include <$ac_header>
6623 _ACEOF
6624 if { (ac_try="$ac_cpp conftest.$ac_ext"
6625 case "(($ac_try" in
6626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6627   *) ac_try_echo=$ac_try;;
6628 esac
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6631   ac_status=$?
6632   grep -v '^ *+' conftest.er1 >conftest.err
6633   rm -f conftest.er1
6634   cat conftest.err >&5
6635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636   (exit $ac_status); } >/dev/null && {
6637          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6638          test ! -s conftest.err
6639        }; then
6640   ac_header_preproc=yes
6641 else
6642   echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6644
6645   ac_header_preproc=no
6646 fi
6647
6648 rm -f conftest.err conftest.$ac_ext
6649 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6650 echo "${ECHO_T}$ac_header_preproc" >&6; }
6651
6652 # So?  What about this header?
6653 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6654   yes:no: )
6655     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6656 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6657     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6658 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6659     ac_header_preproc=yes
6660     ;;
6661   no:yes:* )
6662     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6663 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6664     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6665 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6666     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6667 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6668     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6669 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6670     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6671 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6672     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6673 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6674
6675     ;;
6676 esac
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680   echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682   eval "$as_ac_Header=\$ac_header_preproc"
6683 fi
6684 ac_res=`eval echo '${'$as_ac_Header'}'`
6685                { echo "$as_me:$LINENO: result: $ac_res" >&5
6686 echo "${ECHO_T}$ac_res" >&6; }
6687
6688 fi
6689 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6690   cat >>confdefs.h <<_ACEOF
6691 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6692 _ACEOF
6693
6694 fi
6695
6696 done
6697
6698
6699 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6700
6701 # find the maximum length of command line arguments
6702 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6703 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6704 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6705   echo $ECHO_N "(cached) $ECHO_C" >&6
6706 else
6707     i=0
6708   teststring="ABCD"
6709
6710   case $build_os in
6711   msdosdjgpp*)
6712     # On DJGPP, this test can blow up pretty badly due to problems in libc
6713     # (any single argument exceeding 2000 bytes causes a buffer overrun
6714     # during glob expansion).  Even if it were fixed, the result of this
6715     # check would be larger than it should be.
6716     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6717     ;;
6718
6719   gnu*)
6720     # Under GNU Hurd, this test is not required because there is
6721     # no limit to the length of command line arguments.
6722     # Libtool will interpret -1 as no limit whatsoever
6723     lt_cv_sys_max_cmd_len=-1;
6724     ;;
6725
6726   cygwin* | mingw*)
6727     # On Win9x/ME, this test blows up -- it succeeds, but takes
6728     # about 5 minutes as the teststring grows exponentially.
6729     # Worse, since 9x/ME are not pre-emptively multitasking,
6730     # you end up with a "frozen" computer, even though with patience
6731     # the test eventually succeeds (with a max line length of 256k).
6732     # Instead, let's just punt: use the minimum linelength reported by
6733     # all of the supported platforms: 8192 (on NT/2K/XP).
6734     lt_cv_sys_max_cmd_len=8192;
6735     ;;
6736
6737   amigaos*)
6738     # On AmigaOS with pdksh, this test takes hours, literally.
6739     # So we just punt and use a minimum line length of 8192.
6740     lt_cv_sys_max_cmd_len=8192;
6741     ;;
6742
6743   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6744     # This has been around since 386BSD, at least.  Likely further.
6745     if test -x /sbin/sysctl; then
6746       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6747     elif test -x /usr/sbin/sysctl; then
6748       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6749     else
6750       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6751     fi
6752     # And add a safety zone
6753     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6754     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6755     ;;
6756
6757   interix*)
6758     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6759     lt_cv_sys_max_cmd_len=196608
6760     ;;
6761
6762   osf*)
6763     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6764     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6765     # nice to cause kernel panics so lets avoid the loop below.
6766     # First set a reasonable default.
6767     lt_cv_sys_max_cmd_len=16384
6768     #
6769     if test -x /sbin/sysconfig; then
6770       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6771         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6772       esac
6773     fi
6774     ;;
6775   sco3.2v5*)
6776     lt_cv_sys_max_cmd_len=102400
6777     ;;
6778   sysv5* | sco5v6* | sysv4.2uw2*)
6779     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6780     if test -n "$kargmax"; then
6781       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6782     else
6783       lt_cv_sys_max_cmd_len=32768
6784     fi
6785     ;;
6786   *)
6787     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6788     if test -n "$lt_cv_sys_max_cmd_len"; then
6789       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6790       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6791     else
6792       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6793       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6794                = "XX$teststring") >/dev/null 2>&1 &&
6795               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6796               lt_cv_sys_max_cmd_len=$new_result &&
6797               test $i != 17 # 1/2 MB should be enough
6798       do
6799         i=`expr $i + 1`
6800         teststring=$teststring$teststring
6801       done
6802       teststring=
6803       # Add a significant safety factor because C++ compilers can tack on massive
6804       # amounts of additional arguments before passing them to the linker.
6805       # It appears as though 1/2 is a usable value.
6806       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6807     fi
6808     ;;
6809   esac
6810
6811 fi
6812
6813 if test -n $lt_cv_sys_max_cmd_len ; then
6814   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6815 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: none" >&5
6818 echo "${ECHO_T}none" >&6; }
6819 fi
6820
6821
6822
6823
6824
6825 # Check for command to grab the raw symbol name followed by C symbol from nm.
6826 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6827 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6828 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6829   echo $ECHO_N "(cached) $ECHO_C" >&6
6830 else
6831
6832 # These are sane defaults that work on at least a few old systems.
6833 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6834
6835 # Character class describing NM global symbol codes.
6836 symcode='[BCDEGRST]'
6837
6838 # Regexp to match symbols that can be accessed directly from C.
6839 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6840
6841 # Transform an extracted symbol line into a proper C declaration
6842 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6843
6844 # Transform an extracted symbol line into symbol name and symbol address
6845 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'"
6846
6847 # Define system-specific variables.
6848 case $host_os in
6849 aix*)
6850   symcode='[BCDT]'
6851   ;;
6852 cygwin* | mingw* | pw32*)
6853   symcode='[ABCDGISTW]'
6854   ;;
6855 hpux*) # Its linker distinguishes data from code symbols
6856   if test "$host_cpu" = ia64; then
6857     symcode='[ABCDEGRST]'
6858   fi
6859   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6860   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'"
6861   ;;
6862 linux* | k*bsd*-gnu)
6863   if test "$host_cpu" = ia64; then
6864     symcode='[ABCDGIRSTW]'
6865     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6866     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'"
6867   fi
6868   ;;
6869 irix* | nonstopux*)
6870   symcode='[BCDEGRST]'
6871   ;;
6872 osf*)
6873   symcode='[BCDEGQRST]'
6874   ;;
6875 solaris*)
6876   symcode='[BDRT]'
6877   ;;
6878 sco3.2v5*)
6879   symcode='[DT]'
6880   ;;
6881 sysv4.2uw2*)
6882   symcode='[DT]'
6883   ;;
6884 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6885   symcode='[ABDT]'
6886   ;;
6887 sysv4)
6888   symcode='[DFNSTU]'
6889   ;;
6890 esac
6891
6892 # Handle CRLF in mingw tool chain
6893 opt_cr=
6894 case $build_os in
6895 mingw*)
6896   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6897   ;;
6898 esac
6899
6900 # If we're using GNU nm, then use its standard symbol codes.
6901 case `$NM -V 2>&1` in
6902 *GNU* | *'with BFD'*)
6903   symcode='[ABCDGIRSTW]' ;;
6904 esac
6905
6906 # Try without a prefix undercore, then with it.
6907 for ac_symprfx in "" "_"; do
6908
6909   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6910   symxfrm="\\1 $ac_symprfx\\2 \\2"
6911
6912   # Write the raw and C identifiers.
6913   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6914
6915   # Check to see that the pipe works correctly.
6916   pipe_works=no
6917
6918   rm -f conftest*
6919   cat > conftest.$ac_ext <<EOF
6920 #ifdef __cplusplus
6921 extern "C" {
6922 #endif
6923 char nm_test_var;
6924 void nm_test_func(){}
6925 #ifdef __cplusplus
6926 }
6927 #endif
6928 int main(){nm_test_var='a';nm_test_func();return(0);}
6929 EOF
6930
6931   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6932   (eval $ac_compile) 2>&5
6933   ac_status=$?
6934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6935   (exit $ac_status); }; then
6936     # Now try to grab the symbols.
6937     nlist=conftest.nm
6938     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6939   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6940   ac_status=$?
6941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942   (exit $ac_status); } && test -s "$nlist"; then
6943       # Try sorting and uniquifying the output.
6944       if sort "$nlist" | uniq > "$nlist"T; then
6945         mv -f "$nlist"T "$nlist"
6946       else
6947         rm -f "$nlist"T
6948       fi
6949
6950       # Make sure that we snagged all the symbols we need.
6951       if grep ' nm_test_var$' "$nlist" >/dev/null; then
6952         if grep ' nm_test_func$' "$nlist" >/dev/null; then
6953           cat <<EOF > conftest.$ac_ext
6954 #ifdef __cplusplus
6955 extern "C" {
6956 #endif
6957
6958 EOF
6959           # Now generate the symbol file.
6960           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6961
6962           cat <<EOF >> conftest.$ac_ext
6963 #if defined (__STDC__) && __STDC__
6964 # define lt_ptr_t void *
6965 #else
6966 # define lt_ptr_t char *
6967 # define const
6968 #endif
6969
6970 /* The mapping between symbol names and symbols. */
6971 const struct {
6972   const char *name;
6973   lt_ptr_t address;
6974 }
6975 lt_preloaded_symbols[] =
6976 {
6977 EOF
6978           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6979           cat <<\EOF >> conftest.$ac_ext
6980   {0, (lt_ptr_t) 0}
6981 };
6982
6983 #ifdef __cplusplus
6984 }
6985 #endif
6986 EOF
6987           # Now try linking the two files.
6988           mv conftest.$ac_objext conftstm.$ac_objext
6989           lt_save_LIBS="$LIBS"
6990           lt_save_CFLAGS="$CFLAGS"
6991           LIBS="conftstm.$ac_objext"
6992           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6993           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6994   (eval $ac_link) 2>&5
6995   ac_status=$?
6996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6997   (exit $ac_status); } && test -s conftest${ac_exeext}; then
6998             pipe_works=yes
6999           fi
7000           LIBS="$lt_save_LIBS"
7001           CFLAGS="$lt_save_CFLAGS"
7002         else
7003           echo "cannot find nm_test_func in $nlist" >&5
7004         fi
7005       else
7006         echo "cannot find nm_test_var in $nlist" >&5
7007       fi
7008     else
7009       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7010     fi
7011   else
7012     echo "$progname: failed program was:" >&5
7013     cat conftest.$ac_ext >&5
7014   fi
7015   rm -f conftest* conftst*
7016
7017   # Do not use the global_symbol_pipe unless it works.
7018   if test "$pipe_works" = yes; then
7019     break
7020   else
7021     lt_cv_sys_global_symbol_pipe=
7022   fi
7023 done
7024
7025 fi
7026
7027 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7028   lt_cv_sys_global_symbol_to_cdecl=
7029 fi
7030 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7031   { echo "$as_me:$LINENO: result: failed" >&5
7032 echo "${ECHO_T}failed" >&6; }
7033 else
7034   { echo "$as_me:$LINENO: result: ok" >&5
7035 echo "${ECHO_T}ok" >&6; }
7036 fi
7037
7038 { echo "$as_me:$LINENO: checking for objdir" >&5
7039 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7040 if test "${lt_cv_objdir+set}" = set; then
7041   echo $ECHO_N "(cached) $ECHO_C" >&6
7042 else
7043   rm -f .libs 2>/dev/null
7044 mkdir .libs 2>/dev/null
7045 if test -d .libs; then
7046   lt_cv_objdir=.libs
7047 else
7048   # MS-DOS does not allow filenames that begin with a dot.
7049   lt_cv_objdir=_libs
7050 fi
7051 rmdir .libs 2>/dev/null
7052 fi
7053 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7054 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7055 objdir=$lt_cv_objdir
7056
7057
7058
7059
7060
7061 case $host_os in
7062 aix3*)
7063   # AIX sometimes has problems with the GCC collect2 program.  For some
7064   # reason, if we set the COLLECT_NAMES environment variable, the problems
7065   # vanish in a puff of smoke.
7066   if test "X${COLLECT_NAMES+set}" != Xset; then
7067     COLLECT_NAMES=
7068     export COLLECT_NAMES
7069   fi
7070   ;;
7071 esac
7072
7073 # Sed substitution that helps us do robust quoting.  It backslashifies
7074 # metacharacters that are still active within double-quoted strings.
7075 Xsed='sed -e 1s/^X//'
7076 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7077
7078 # Same as above, but do not quote variable references.
7079 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7080
7081 # Sed substitution to delay expansion of an escaped shell variable in a
7082 # double_quote_subst'ed string.
7083 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7084
7085 # Sed substitution to avoid accidental globbing in evaled expressions
7086 no_glob_subst='s/\*/\\\*/g'
7087
7088 # Constants:
7089 rm="rm -f"
7090
7091 # Global variables:
7092 default_ofile=libtool
7093 can_build_shared=yes
7094
7095 # All known linkers require a `.a' archive for static linking (except MSVC,
7096 # which needs '.lib').
7097 libext=a
7098 ltmain="$ac_aux_dir/ltmain.sh"
7099 ofile="$default_ofile"
7100 with_gnu_ld="$lt_cv_prog_gnu_ld"
7101
7102 if test -n "$ac_tool_prefix"; then
7103   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}ar; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_AR+set}" = set; then
7108   echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110   if test -n "$AR"; then
7111   ac_cv_prog_AR="$AR" # Let the user override the test.
7112 else
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114 for as_dir in $PATH
7115 do
7116   IFS=$as_save_IFS
7117   test -z "$as_dir" && as_dir=.
7118   for ac_exec_ext in '' $ac_executable_extensions; do
7119   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120     ac_cv_prog_AR="${ac_tool_prefix}ar"
7121     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7122     break 2
7123   fi
7124 done
7125 done
7126 IFS=$as_save_IFS
7127
7128 fi
7129 fi
7130 AR=$ac_cv_prog_AR
7131 if test -n "$AR"; then
7132   { echo "$as_me:$LINENO: result: $AR" >&5
7133 echo "${ECHO_T}$AR" >&6; }
7134 else
7135   { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7137 fi
7138
7139
7140 fi
7141 if test -z "$ac_cv_prog_AR"; then
7142   ac_ct_AR=$AR
7143   # Extract the first word of "ar", so it can be a program name with args.
7144 set dummy ar; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7148   echo $ECHO_N "(cached) $ECHO_C" >&6
7149 else
7150   if test -n "$ac_ct_AR"; then
7151   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7152 else
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7154 for as_dir in $PATH
7155 do
7156   IFS=$as_save_IFS
7157   test -z "$as_dir" && as_dir=.
7158   for ac_exec_ext in '' $ac_executable_extensions; do
7159   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7160     ac_cv_prog_ac_ct_AR="ar"
7161     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7162     break 2
7163   fi
7164 done
7165 done
7166 IFS=$as_save_IFS
7167
7168 fi
7169 fi
7170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7171 if test -n "$ac_ct_AR"; then
7172   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7173 echo "${ECHO_T}$ac_ct_AR" >&6; }
7174 else
7175   { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7177 fi
7178
7179   if test "x$ac_ct_AR" = x; then
7180     AR="false"
7181   else
7182     case $cross_compiling:$ac_tool_warned in
7183 yes:)
7184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet.  If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&5
7187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7188 whose name does not start with the host triplet.  If you think this
7189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192     AR=$ac_ct_AR
7193   fi
7194 else
7195   AR="$ac_cv_prog_AR"
7196 fi
7197
7198 if test -n "$ac_tool_prefix"; then
7199   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7200 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7203 if test "${ac_cv_prog_RANLIB+set}" = set; then
7204   echo $ECHO_N "(cached) $ECHO_C" >&6
7205 else
7206   if test -n "$RANLIB"; then
7207   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7208 else
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7210 for as_dir in $PATH
7211 do
7212   IFS=$as_save_IFS
7213   test -z "$as_dir" && as_dir=.
7214   for ac_exec_ext in '' $ac_executable_extensions; do
7215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7218     break 2
7219   fi
7220 done
7221 done
7222 IFS=$as_save_IFS
7223
7224 fi
7225 fi
7226 RANLIB=$ac_cv_prog_RANLIB
7227 if test -n "$RANLIB"; then
7228   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7229 echo "${ECHO_T}$RANLIB" >&6; }
7230 else
7231   { echo "$as_me:$LINENO: result: no" >&5
7232 echo "${ECHO_T}no" >&6; }
7233 fi
7234
7235
7236 fi
7237 if test -z "$ac_cv_prog_RANLIB"; then
7238   ac_ct_RANLIB=$RANLIB
7239   # Extract the first word of "ranlib", so it can be a program name with args.
7240 set dummy ranlib; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7244   echo $ECHO_N "(cached) $ECHO_C" >&6
7245 else
7246   if test -n "$ac_ct_RANLIB"; then
7247   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7248 else
7249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 for as_dir in $PATH
7251 do
7252   IFS=$as_save_IFS
7253   test -z "$as_dir" && as_dir=.
7254   for ac_exec_ext in '' $ac_executable_extensions; do
7255   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7256     ac_cv_prog_ac_ct_RANLIB="ranlib"
7257     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7258     break 2
7259   fi
7260 done
7261 done
7262 IFS=$as_save_IFS
7263
7264 fi
7265 fi
7266 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7267 if test -n "$ac_ct_RANLIB"; then
7268   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7269 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7270 else
7271   { echo "$as_me:$LINENO: result: no" >&5
7272 echo "${ECHO_T}no" >&6; }
7273 fi
7274
7275   if test "x$ac_ct_RANLIB" = x; then
7276     RANLIB=":"
7277   else
7278     case $cross_compiling:$ac_tool_warned in
7279 yes:)
7280 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7281 whose name does not start with the host triplet.  If you think this
7282 configuration is useful to you, please write to autoconf@gnu.org." >&5
7283 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7284 whose name does not start with the host triplet.  If you think this
7285 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7286 ac_tool_warned=yes ;;
7287 esac
7288     RANLIB=$ac_ct_RANLIB
7289   fi
7290 else
7291   RANLIB="$ac_cv_prog_RANLIB"
7292 fi
7293
7294 if test -n "$ac_tool_prefix"; then
7295   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7296 set dummy ${ac_tool_prefix}strip; ac_word=$2
7297 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7299 if test "${ac_cv_prog_STRIP+set}" = set; then
7300   echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302   if test -n "$STRIP"; then
7303   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
7308   IFS=$as_save_IFS
7309   test -z "$as_dir" && as_dir=.
7310   for ac_exec_ext in '' $ac_executable_extensions; do
7311   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7312     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7313     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7314     break 2
7315   fi
7316 done
7317 done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 STRIP=$ac_cv_prog_STRIP
7323 if test -n "$STRIP"; then
7324   { echo "$as_me:$LINENO: result: $STRIP" >&5
7325 echo "${ECHO_T}$STRIP" >&6; }
7326 else
7327   { echo "$as_me:$LINENO: result: no" >&5
7328 echo "${ECHO_T}no" >&6; }
7329 fi
7330
7331
7332 fi
7333 if test -z "$ac_cv_prog_STRIP"; then
7334   ac_ct_STRIP=$STRIP
7335   # Extract the first word of "strip", so it can be a program name with args.
7336 set dummy strip; ac_word=$2
7337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7339 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7340   echo $ECHO_N "(cached) $ECHO_C" >&6
7341 else
7342   if test -n "$ac_ct_STRIP"; then
7343   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7344 else
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7347 do
7348   IFS=$as_save_IFS
7349   test -z "$as_dir" && as_dir=.
7350   for ac_exec_ext in '' $ac_executable_extensions; do
7351   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7352     ac_cv_prog_ac_ct_STRIP="strip"
7353     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7354     break 2
7355   fi
7356 done
7357 done
7358 IFS=$as_save_IFS
7359
7360 fi
7361 fi
7362 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7363 if test -n "$ac_ct_STRIP"; then
7364   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7365 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7366 else
7367   { echo "$as_me:$LINENO: result: no" >&5
7368 echo "${ECHO_T}no" >&6; }
7369 fi
7370
7371   if test "x$ac_ct_STRIP" = x; then
7372     STRIP=":"
7373   else
7374     case $cross_compiling:$ac_tool_warned in
7375 yes:)
7376 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7377 whose name does not start with the host triplet.  If you think this
7378 configuration is useful to you, please write to autoconf@gnu.org." >&5
7379 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7380 whose name does not start with the host triplet.  If you think this
7381 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7382 ac_tool_warned=yes ;;
7383 esac
7384     STRIP=$ac_ct_STRIP
7385   fi
7386 else
7387   STRIP="$ac_cv_prog_STRIP"
7388 fi
7389
7390
7391 old_CC="$CC"
7392 old_CFLAGS="$CFLAGS"
7393
7394 # Set sane defaults for various variables
7395 test -z "$AR" && AR=ar
7396 test -z "$AR_FLAGS" && AR_FLAGS=cru
7397 test -z "$AS" && AS=as
7398 test -z "$CC" && CC=cc
7399 test -z "$LTCC" && LTCC=$CC
7400 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7401 test -z "$DLLTOOL" && DLLTOOL=dlltool
7402 test -z "$LD" && LD=ld
7403 test -z "$LN_S" && LN_S="ln -s"
7404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7405 test -z "$NM" && NM=nm
7406 test -z "$SED" && SED=sed
7407 test -z "$OBJDUMP" && OBJDUMP=objdump
7408 test -z "$RANLIB" && RANLIB=:
7409 test -z "$STRIP" && STRIP=:
7410 test -z "$ac_objext" && ac_objext=o
7411
7412 # Determine commands to create old-style static archives.
7413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7414 old_postinstall_cmds='chmod 644 $oldlib'
7415 old_postuninstall_cmds=
7416
7417 if test -n "$RANLIB"; then
7418   case $host_os in
7419   openbsd*)
7420     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7421     ;;
7422   *)
7423     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7424     ;;
7425   esac
7426   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7427 fi
7428
7429 for cc_temp in $compiler""; do
7430   case $cc_temp in
7431     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7432     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7433     \-*) ;;
7434     *) break;;
7435   esac
7436 done
7437 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7438
7439
7440 # Only perform the check for file, if the check method requires it
7441 case $deplibs_check_method in
7442 file_magic*)
7443   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7444     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7445 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7447   echo $ECHO_N "(cached) $ECHO_C" >&6
7448 else
7449   case $MAGIC_CMD in
7450 [\\/*] |  ?:[\\/]*)
7451   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7452   ;;
7453 *)
7454   lt_save_MAGIC_CMD="$MAGIC_CMD"
7455   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7456   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7457   for ac_dir in $ac_dummy; do
7458     IFS="$lt_save_ifs"
7459     test -z "$ac_dir" && ac_dir=.
7460     if test -f $ac_dir/${ac_tool_prefix}file; then
7461       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7462       if test -n "$file_magic_test_file"; then
7463         case $deplibs_check_method in
7464         "file_magic "*)
7465           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7466           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7467           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7468             $EGREP "$file_magic_regex" > /dev/null; then
7469             :
7470           else
7471             cat <<EOF 1>&2
7472
7473 *** Warning: the command libtool uses to detect shared libraries,
7474 *** $file_magic_cmd, produces output that libtool cannot recognize.
7475 *** The result is that libtool may fail to recognize shared libraries
7476 *** as such.  This will affect the creation of libtool libraries that
7477 *** depend on shared libraries, but programs linked with such libtool
7478 *** libraries will work regardless of this problem.  Nevertheless, you
7479 *** may want to report the problem to your system manager and/or to
7480 *** bug-libtool@gnu.org
7481
7482 EOF
7483           fi ;;
7484         esac
7485       fi
7486       break
7487     fi
7488   done
7489   IFS="$lt_save_ifs"
7490   MAGIC_CMD="$lt_save_MAGIC_CMD"
7491   ;;
7492 esac
7493 fi
7494
7495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7496 if test -n "$MAGIC_CMD"; then
7497   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7498 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7499 else
7500   { echo "$as_me:$LINENO: result: no" >&5
7501 echo "${ECHO_T}no" >&6; }
7502 fi
7503
7504 if test -z "$lt_cv_path_MAGIC_CMD"; then
7505   if test -n "$ac_tool_prefix"; then
7506     { echo "$as_me:$LINENO: checking for file" >&5
7507 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7508 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7509   echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511   case $MAGIC_CMD in
7512 [\\/*] |  ?:[\\/]*)
7513   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7514   ;;
7515 *)
7516   lt_save_MAGIC_CMD="$MAGIC_CMD"
7517   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7518   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7519   for ac_dir in $ac_dummy; do
7520     IFS="$lt_save_ifs"
7521     test -z "$ac_dir" && ac_dir=.
7522     if test -f $ac_dir/file; then
7523       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7524       if test -n "$file_magic_test_file"; then
7525         case $deplibs_check_method in
7526         "file_magic "*)
7527           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7528           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7529           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7530             $EGREP "$file_magic_regex" > /dev/null; then
7531             :
7532           else
7533             cat <<EOF 1>&2
7534
7535 *** Warning: the command libtool uses to detect shared libraries,
7536 *** $file_magic_cmd, produces output that libtool cannot recognize.
7537 *** The result is that libtool may fail to recognize shared libraries
7538 *** as such.  This will affect the creation of libtool libraries that
7539 *** depend on shared libraries, but programs linked with such libtool
7540 *** libraries will work regardless of this problem.  Nevertheless, you
7541 *** may want to report the problem to your system manager and/or to
7542 *** bug-libtool@gnu.org
7543
7544 EOF
7545           fi ;;
7546         esac
7547       fi
7548       break
7549     fi
7550   done
7551   IFS="$lt_save_ifs"
7552   MAGIC_CMD="$lt_save_MAGIC_CMD"
7553   ;;
7554 esac
7555 fi
7556
7557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7558 if test -n "$MAGIC_CMD"; then
7559   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7560 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7561 else
7562   { echo "$as_me:$LINENO: result: no" >&5
7563 echo "${ECHO_T}no" >&6; }
7564 fi
7565
7566   else
7567     MAGIC_CMD=:
7568   fi
7569 fi
7570
7571   fi
7572   ;;
7573 esac
7574
7575 enable_dlopen=no
7576 enable_win32_dll=no
7577
7578 # Check whether --enable-libtool-lock was given.
7579 if test "${enable_libtool_lock+set}" = set; then
7580   enableval=$enable_libtool_lock;
7581 fi
7582
7583 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7584
7585
7586 # Check whether --with-pic was given.
7587 if test "${with_pic+set}" = set; then
7588   withval=$with_pic; pic_mode="$withval"
7589 else
7590   pic_mode=default
7591 fi
7592
7593 test -z "$pic_mode" && pic_mode=default
7594
7595 # Use C for the default configuration in the libtool script
7596 tagname=
7597 lt_save_CC="$CC"
7598 ac_ext=c
7599 ac_cpp='$CPP $CPPFLAGS'
7600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7603
7604
7605 # Source file extension for C test sources.
7606 ac_ext=c
7607
7608 # Object file extension for compiled C test sources.
7609 objext=o
7610 objext=$objext
7611
7612 # Code to be used in simple compile tests
7613 lt_simple_compile_test_code="int some_variable = 0;"
7614
7615 # Code to be used in simple link tests
7616 lt_simple_link_test_code='int main(){return(0);}'
7617
7618
7619 # If no C compiler was specified, use CC.
7620 LTCC=${LTCC-"$CC"}
7621
7622 # If no C compiler flags were specified, use CFLAGS.
7623 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7624
7625 # Allow CC to be a program name with arguments.
7626 compiler=$CC
7627
7628
7629 # save warnings/boilerplate of simple test code
7630 ac_outfile=conftest.$ac_objext
7631 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7632 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7633 _lt_compiler_boilerplate=`cat conftest.err`
7634 $rm conftest*
7635
7636 ac_outfile=conftest.$ac_objext
7637 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7638 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7639 _lt_linker_boilerplate=`cat conftest.err`
7640 $rm conftest*
7641
7642
7643 ## CAVEAT EMPTOR:
7644 ## There is no encapsulation within the following macros, do not change
7645 ## the running order or otherwise move them around unless you know exactly
7646 ## what you are doing...
7647
7648 lt_prog_compiler_no_builtin_flag=
7649
7650 if test "$GCC" = yes; then
7651   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7652
7653
7654 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7655 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7656 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7657   echo $ECHO_N "(cached) $ECHO_C" >&6
7658 else
7659   lt_cv_prog_compiler_rtti_exceptions=no
7660   ac_outfile=conftest.$ac_objext
7661    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7662    lt_compiler_flag="-fno-rtti -fno-exceptions"
7663    # Insert the option either (1) after the last *FLAGS variable, or
7664    # (2) before a word containing "conftest.", or (3) at the end.
7665    # Note that $ac_compile itself does not contain backslashes and begins
7666    # with a dollar sign (not a hyphen), so the echo should work correctly.
7667    # The option is referenced via a variable to avoid confusing sed.
7668    lt_compile=`echo "$ac_compile" | $SED \
7669    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7670    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7671    -e 's:$: $lt_compiler_flag:'`
7672    (eval echo "\"\$as_me:7672: $lt_compile\"" >&5)
7673    (eval "$lt_compile" 2>conftest.err)
7674    ac_status=$?
7675    cat conftest.err >&5
7676    echo "$as_me:7676: \$? = $ac_status" >&5
7677    if (exit $ac_status) && test -s "$ac_outfile"; then
7678      # The compiler can only warn and ignore the option if not recognized
7679      # So say no if there are warnings other than the usual output.
7680      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7681      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7682      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7683        lt_cv_prog_compiler_rtti_exceptions=yes
7684      fi
7685    fi
7686    $rm conftest*
7687
7688 fi
7689 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7690 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7691
7692 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7693     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7694 else
7695     :
7696 fi
7697
7698 fi
7699
7700 lt_prog_compiler_wl=
7701 lt_prog_compiler_pic=
7702 lt_prog_compiler_static=
7703
7704 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7705 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7706
7707   if test "$GCC" = yes; then
7708     lt_prog_compiler_wl='-Wl,'
7709     lt_prog_compiler_static='-static'
7710
7711     case $host_os in
7712       aix*)
7713       # All AIX code is PIC.
7714       if test "$host_cpu" = ia64; then
7715         # AIX 5 now supports IA64 processor
7716         lt_prog_compiler_static='-Bstatic'
7717       fi
7718       ;;
7719
7720     amigaos*)
7721       # FIXME: we need at least 68020 code to build shared libraries, but
7722       # adding the `-m68020' flag to GCC prevents building anything better,
7723       # like `-m68040'.
7724       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7725       ;;
7726
7727     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7728       # PIC is the default for these OSes.
7729       ;;
7730
7731     mingw* | cygwin* | pw32* | os2*)
7732       # This hack is so that the source file can tell whether it is being
7733       # built for inclusion in a dll (and should export symbols for example).
7734       # Although the cygwin gcc ignores -fPIC, still need this for old-style
7735       # (--disable-auto-import) libraries
7736       lt_prog_compiler_pic='-DDLL_EXPORT'
7737       ;;
7738
7739     darwin* | rhapsody*)
7740       # PIC is the default on this platform
7741       # Common symbols not allowed in MH_DYLIB files
7742       lt_prog_compiler_pic='-fno-common'
7743       ;;
7744
7745     interix[3-9]*)
7746       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7747       # Instead, we relocate shared libraries at runtime.
7748       ;;
7749
7750     msdosdjgpp*)
7751       # Just because we use GCC doesn't mean we suddenly get shared libraries
7752       # on systems that don't support them.
7753       lt_prog_compiler_can_build_shared=no
7754       enable_shared=no
7755       ;;
7756
7757     sysv4*MP*)
7758       if test -d /usr/nec; then
7759         lt_prog_compiler_pic=-Kconform_pic
7760       fi
7761       ;;
7762
7763     hpux*)
7764       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7765       # not for PA HP-UX.
7766       case $host_cpu in
7767       hppa*64*|ia64*)
7768         # +Z the default
7769         ;;
7770       *)
7771         lt_prog_compiler_pic='-fPIC'
7772         ;;
7773       esac
7774       ;;
7775
7776     *)
7777       lt_prog_compiler_pic='-fPIC'
7778       ;;
7779     esac
7780   else
7781     # PORTME Check for flag to pass linker flags through the system compiler.
7782     case $host_os in
7783     aix*)
7784       lt_prog_compiler_wl='-Wl,'
7785       if test "$host_cpu" = ia64; then
7786         # AIX 5 now supports IA64 processor
7787         lt_prog_compiler_static='-Bstatic'
7788       else
7789         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7790       fi
7791       ;;
7792       darwin*)
7793         # PIC is the default on this platform
7794         # Common symbols not allowed in MH_DYLIB files
7795        case $cc_basename in
7796          xlc*)
7797          lt_prog_compiler_pic='-qnocommon'
7798          lt_prog_compiler_wl='-Wl,'
7799          ;;
7800        esac
7801        ;;
7802
7803     mingw* | cygwin* | pw32* | os2*)
7804       # This hack is so that the source file can tell whether it is being
7805       # built for inclusion in a dll (and should export symbols for example).
7806       lt_prog_compiler_pic='-DDLL_EXPORT'
7807       ;;
7808
7809     hpux9* | hpux10* | hpux11*)
7810       lt_prog_compiler_wl='-Wl,'
7811       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7812       # not for PA HP-UX.
7813       case $host_cpu in
7814       hppa*64*|ia64*)
7815         # +Z the default
7816         ;;
7817       *)
7818         lt_prog_compiler_pic='+Z'
7819         ;;
7820       esac
7821       # Is there a better lt_prog_compiler_static that works with the bundled CC?
7822       lt_prog_compiler_static='${wl}-a ${wl}archive'
7823       ;;
7824
7825     irix5* | irix6* | nonstopux*)
7826       lt_prog_compiler_wl='-Wl,'
7827       # PIC (with -KPIC) is the default.
7828       lt_prog_compiler_static='-non_shared'
7829       ;;
7830
7831     newsos6)
7832       lt_prog_compiler_pic='-KPIC'
7833       lt_prog_compiler_static='-Bstatic'
7834       ;;
7835
7836     linux* | k*bsd*-gnu)
7837       case $cc_basename in
7838       icc* | ecc*)
7839         lt_prog_compiler_wl='-Wl,'
7840         lt_prog_compiler_pic='-KPIC'
7841         lt_prog_compiler_static='-static'
7842         ;;
7843       pgcc* | pgf77* | pgf90* | pgf95*)
7844         # Portland Group compilers (*not* the Pentium gcc compiler,
7845         # which looks to be a dead project)
7846         lt_prog_compiler_wl='-Wl,'
7847         lt_prog_compiler_pic='-fpic'
7848         lt_prog_compiler_static='-Bstatic'
7849         ;;
7850       ccc*)
7851         lt_prog_compiler_wl='-Wl,'
7852         # All Alpha code is PIC.
7853         lt_prog_compiler_static='-non_shared'
7854         ;;
7855       *)
7856         case `$CC -V 2>&1 | sed 5q` in
7857         *Sun\ C*)
7858           # Sun C 5.9
7859           lt_prog_compiler_pic='-KPIC'
7860           lt_prog_compiler_static='-Bstatic'
7861           lt_prog_compiler_wl='-Wl,'
7862           ;;
7863         *Sun\ F*)
7864           # Sun Fortran 8.3 passes all unrecognized flags to the linker
7865           lt_prog_compiler_pic='-KPIC'
7866           lt_prog_compiler_static='-Bstatic'
7867           lt_prog_compiler_wl=''
7868           ;;
7869         esac
7870         ;;
7871       esac
7872       ;;
7873
7874     osf3* | osf4* | osf5*)
7875       lt_prog_compiler_wl='-Wl,'
7876       # All OSF/1 code is PIC.
7877       lt_prog_compiler_static='-non_shared'
7878       ;;
7879
7880     rdos*)
7881       lt_prog_compiler_static='-non_shared'
7882       ;;
7883
7884     solaris*)
7885       lt_prog_compiler_pic='-KPIC'
7886       lt_prog_compiler_static='-Bstatic'
7887       case $cc_basename in
7888       f77* | f90* | f95*)
7889         lt_prog_compiler_wl='-Qoption ld ';;
7890       *)
7891         lt_prog_compiler_wl='-Wl,';;
7892       esac
7893       ;;
7894
7895     sunos4*)
7896       lt_prog_compiler_wl='-Qoption ld '
7897       lt_prog_compiler_pic='-PIC'
7898       lt_prog_compiler_static='-Bstatic'
7899       ;;
7900
7901     sysv4 | sysv4.2uw2* | sysv4.3*)
7902       lt_prog_compiler_wl='-Wl,'
7903       lt_prog_compiler_pic='-KPIC'
7904       lt_prog_compiler_static='-Bstatic'
7905       ;;
7906
7907     sysv4*MP*)
7908       if test -d /usr/nec ;then
7909         lt_prog_compiler_pic='-Kconform_pic'
7910         lt_prog_compiler_static='-Bstatic'
7911       fi
7912       ;;
7913
7914     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7915       lt_prog_compiler_wl='-Wl,'
7916       lt_prog_compiler_pic='-KPIC'
7917       lt_prog_compiler_static='-Bstatic'
7918       ;;
7919
7920     unicos*)
7921       lt_prog_compiler_wl='-Wl,'
7922       lt_prog_compiler_can_build_shared=no
7923       ;;
7924
7925     uts4*)
7926       lt_prog_compiler_pic='-pic'
7927       lt_prog_compiler_static='-Bstatic'
7928       ;;
7929
7930     *)
7931       lt_prog_compiler_can_build_shared=no
7932       ;;
7933     esac
7934   fi
7935
7936 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7937 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7938
7939 #
7940 # Check to make sure the PIC flag actually works.
7941 #
7942 if test -n "$lt_prog_compiler_pic"; then
7943
7944 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7945 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7946 if test "${lt_prog_compiler_pic_works+set}" = set; then
7947   echo $ECHO_N "(cached) $ECHO_C" >&6
7948 else
7949   lt_prog_compiler_pic_works=no
7950   ac_outfile=conftest.$ac_objext
7951    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7952    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7953    # Insert the option either (1) after the last *FLAGS variable, or
7954    # (2) before a word containing "conftest.", or (3) at the end.
7955    # Note that $ac_compile itself does not contain backslashes and begins
7956    # with a dollar sign (not a hyphen), so the echo should work correctly.
7957    # The option is referenced via a variable to avoid confusing sed.
7958    lt_compile=`echo "$ac_compile" | $SED \
7959    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7960    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7961    -e 's:$: $lt_compiler_flag:'`
7962    (eval echo "\"\$as_me:7962: $lt_compile\"" >&5)
7963    (eval "$lt_compile" 2>conftest.err)
7964    ac_status=$?
7965    cat conftest.err >&5
7966    echo "$as_me:7966: \$? = $ac_status" >&5
7967    if (exit $ac_status) && test -s "$ac_outfile"; then
7968      # The compiler can only warn and ignore the option if not recognized
7969      # So say no if there are warnings other than the usual output.
7970      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7971      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7972      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7973        lt_prog_compiler_pic_works=yes
7974      fi
7975    fi
7976    $rm conftest*
7977
7978 fi
7979 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7980 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7981
7982 if test x"$lt_prog_compiler_pic_works" = xyes; then
7983     case $lt_prog_compiler_pic in
7984      "" | " "*) ;;
7985      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7986      esac
7987 else
7988     lt_prog_compiler_pic=
7989      lt_prog_compiler_can_build_shared=no
7990 fi
7991
7992 fi
7993 case $host_os in
7994   # For platforms which do not support PIC, -DPIC is meaningless:
7995   *djgpp*)
7996     lt_prog_compiler_pic=
7997     ;;
7998   *)
7999     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8000     ;;
8001 esac
8002
8003 #
8004 # Check to make sure the static flag actually works.
8005 #
8006 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8007 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8008 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8009 if test "${lt_prog_compiler_static_works+set}" = set; then
8010   echo $ECHO_N "(cached) $ECHO_C" >&6
8011 else
8012   lt_prog_compiler_static_works=no
8013    save_LDFLAGS="$LDFLAGS"
8014    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8015    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8016    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8017      # The linker can only warn and ignore the option if not recognized
8018      # So say no if there are warnings
8019      if test -s conftest.err; then
8020        # Append any errors to the config.log.
8021        cat conftest.err 1>&5
8022        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8023        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8024        if diff conftest.exp conftest.er2 >/dev/null; then
8025          lt_prog_compiler_static_works=yes
8026        fi
8027      else
8028        lt_prog_compiler_static_works=yes
8029      fi
8030    fi
8031    $rm conftest*
8032    LDFLAGS="$save_LDFLAGS"
8033
8034 fi
8035 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8036 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
8037
8038 if test x"$lt_prog_compiler_static_works" = xyes; then
8039     :
8040 else
8041     lt_prog_compiler_static=
8042 fi
8043
8044
8045 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8047 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8048   echo $ECHO_N "(cached) $ECHO_C" >&6
8049 else
8050   lt_cv_prog_compiler_c_o=no
8051    $rm -r conftest 2>/dev/null
8052    mkdir conftest
8053    cd conftest
8054    mkdir out
8055    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8056
8057    lt_compiler_flag="-o out/conftest2.$ac_objext"
8058    # Insert the option either (1) after the last *FLAGS variable, or
8059    # (2) before a word containing "conftest.", or (3) at the end.
8060    # Note that $ac_compile itself does not contain backslashes and begins
8061    # with a dollar sign (not a hyphen), so the echo should work correctly.
8062    lt_compile=`echo "$ac_compile" | $SED \
8063    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8064    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8065    -e 's:$: $lt_compiler_flag:'`
8066    (eval echo "\"\$as_me:8066: $lt_compile\"" >&5)
8067    (eval "$lt_compile" 2>out/conftest.err)
8068    ac_status=$?
8069    cat out/conftest.err >&5
8070    echo "$as_me:8070: \$? = $ac_status" >&5
8071    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8072    then
8073      # The compiler can only warn and ignore the option if not recognized
8074      # So say no if there are warnings
8075      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8076      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8077      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8078        lt_cv_prog_compiler_c_o=yes
8079      fi
8080    fi
8081    chmod u+w . 2>&5
8082    $rm conftest*
8083    # SGI C++ compiler will create directory out/ii_files/ for
8084    # template instantiation
8085    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8086    $rm out/* && rmdir out
8087    cd ..
8088    rmdir conftest
8089    $rm conftest*
8090
8091 fi
8092 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8093 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8094
8095
8096 hard_links="nottested"
8097 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8098   # do not overwrite the value of need_locks provided by the user
8099   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8100 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8101   hard_links=yes
8102   $rm conftest*
8103   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8104   touch conftest.a
8105   ln conftest.a conftest.b 2>&5 || hard_links=no
8106   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8107   { echo "$as_me:$LINENO: result: $hard_links" >&5
8108 echo "${ECHO_T}$hard_links" >&6; }
8109   if test "$hard_links" = no; then
8110     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8111 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8112     need_locks=warn
8113   fi
8114 else
8115   need_locks=no
8116 fi
8117
8118 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8119 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8120
8121   runpath_var=
8122   allow_undefined_flag=
8123   enable_shared_with_static_runtimes=no
8124   archive_cmds=
8125   archive_expsym_cmds=
8126   old_archive_From_new_cmds=
8127   old_archive_from_expsyms_cmds=
8128   export_dynamic_flag_spec=
8129   whole_archive_flag_spec=
8130   thread_safe_flag_spec=
8131   hardcode_libdir_flag_spec=
8132   hardcode_libdir_flag_spec_ld=
8133   hardcode_libdir_separator=
8134   hardcode_direct=no
8135   hardcode_minus_L=no
8136   hardcode_shlibpath_var=unsupported
8137   link_all_deplibs=unknown
8138   hardcode_automatic=no
8139   module_cmds=
8140   module_expsym_cmds=
8141   always_export_symbols=no
8142   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8143   # include_expsyms should be a list of space-separated symbols to be *always*
8144   # included in the symbol list
8145   include_expsyms=
8146   # exclude_expsyms can be an extended regexp of symbols to exclude
8147   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8148   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8149   # as well as any symbol that contains `d'.
8150   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8151   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8152   # platforms (ab)use it in PIC code, but their linkers get confused if
8153   # the symbol is explicitly referenced.  Since portable code cannot
8154   # rely on this symbol name, it's probably fine to never include it in
8155   # preloaded symbol tables.
8156   extract_expsyms_cmds=
8157   # Just being paranoid about ensuring that cc_basename is set.
8158   for cc_temp in $compiler""; do
8159   case $cc_temp in
8160     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8161     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8162     \-*) ;;
8163     *) break;;
8164   esac
8165 done
8166 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8167
8168   case $host_os in
8169   cygwin* | mingw* | pw32*)
8170     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8171     # When not using gcc, we currently assume that we are using
8172     # Microsoft Visual C++.
8173     if test "$GCC" != yes; then
8174       with_gnu_ld=no
8175     fi
8176     ;;
8177   interix*)
8178     # we just hope/assume this is gcc and not c89 (= MSVC++)
8179     with_gnu_ld=yes
8180     ;;
8181   openbsd*)
8182     with_gnu_ld=no
8183     ;;
8184   esac
8185
8186   ld_shlibs=yes
8187   if test "$with_gnu_ld" = yes; then
8188     # If archive_cmds runs LD, not CC, wlarc should be empty
8189     wlarc='${wl}'
8190
8191     # Set some defaults for GNU ld with shared library support. These
8192     # are reset later if shared libraries are not supported. Putting them
8193     # here allows them to be overridden if necessary.
8194     runpath_var=LD_RUN_PATH
8195     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8196     export_dynamic_flag_spec='${wl}--export-dynamic'
8197     # ancient GNU ld didn't support --whole-archive et. al.
8198     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8199         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8200       else
8201         whole_archive_flag_spec=
8202     fi
8203     supports_anon_versioning=no
8204     case `$LD -v 2>/dev/null` in
8205       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8206       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8207       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8208       *\ 2.11.*) ;; # other 2.11 versions
8209       *) supports_anon_versioning=yes ;;
8210     esac
8211
8212     # See if GNU ld supports shared libraries.
8213     case $host_os in
8214     aix3* | aix4* | aix5*)
8215       # On AIX/PPC, the GNU linker is very broken
8216       if test "$host_cpu" != ia64; then
8217         ld_shlibs=no
8218         cat <<EOF 1>&2
8219
8220 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8221 *** to be unable to reliably create shared libraries on AIX.
8222 *** Therefore, libtool is disabling shared libraries support.  If you
8223 *** really care for shared libraries, you may want to modify your PATH
8224 *** so that a non-GNU linker is found, and then restart.
8225
8226 EOF
8227       fi
8228       ;;
8229
8230     amigaos*)
8231       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)'
8232       hardcode_libdir_flag_spec='-L$libdir'
8233       hardcode_minus_L=yes
8234
8235       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8236       # that the semantics of dynamic libraries on AmigaOS, at least up
8237       # to version 4, is to share data among multiple programs linked
8238       # with the same dynamic library.  Since this doesn't match the
8239       # behavior of shared libraries on other platforms, we can't use
8240       # them.
8241       ld_shlibs=no
8242       ;;
8243
8244     beos*)
8245       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8246         allow_undefined_flag=unsupported
8247         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8248         # support --undefined.  This deserves some investigation.  FIXME
8249         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8250       else
8251         ld_shlibs=no
8252       fi
8253       ;;
8254
8255     cygwin* | mingw* | pw32*)
8256       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8257       # as there is no search path for DLLs.
8258       hardcode_libdir_flag_spec='-L$libdir'
8259       allow_undefined_flag=unsupported
8260       always_export_symbols=no
8261       enable_shared_with_static_runtimes=yes
8262       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8263
8264       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8265         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8266         # If the export-symbols file already is a .def file (1st line
8267         # is EXPORTS), use it as is; otherwise, prepend...
8268         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8269           cp $export_symbols $output_objdir/$soname.def;
8270         else
8271           echo EXPORTS > $output_objdir/$soname.def;
8272           cat $export_symbols >> $output_objdir/$soname.def;
8273         fi~
8274         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8275       else
8276         ld_shlibs=no
8277       fi
8278       ;;
8279
8280     interix[3-9]*)
8281       hardcode_direct=no
8282       hardcode_shlibpath_var=no
8283       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8284       export_dynamic_flag_spec='${wl}-E'
8285       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8286       # Instead, shared libraries are loaded at an image base (0x10000000 by
8287       # default) and relocated if they conflict, which is a slow very memory
8288       # consuming and fragmenting process.  To avoid this, we pick a random,
8289       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8290       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8291       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8292       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'
8293       ;;
8294
8295     gnu* | linux* | k*bsd*-gnu)
8296       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8297         tmp_addflag=
8298         case $cc_basename,$host_cpu in
8299         pgcc*)                          # Portland Group C compiler
8300           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'
8301           tmp_addflag=' $pic_flag'
8302           ;;
8303         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8304           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'
8305           tmp_addflag=' $pic_flag -Mnomain' ;;
8306         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8307           tmp_addflag=' -i_dynamic' ;;
8308         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8309           tmp_addflag=' -i_dynamic -nofor_main' ;;
8310         ifc* | ifort*)                  # Intel Fortran compiler
8311           tmp_addflag=' -nofor_main' ;;
8312         esac
8313         case `$CC -V 2>&1 | sed 5q` in
8314         *Sun\ C*)                       # Sun C 5.9
8315           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8316           tmp_sharedflag='-G' ;;
8317         *Sun\ F*)                       # Sun Fortran 8.3
8318           tmp_sharedflag='-G' ;;
8319         *)
8320           tmp_sharedflag='-shared' ;;
8321         esac
8322         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8323
8324         if test $supports_anon_versioning = yes; then
8325           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8326   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8327   $echo "local: *; };" >> $output_objdir/$libname.ver~
8328           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8329         fi
8330       else
8331         ld_shlibs=no
8332       fi
8333       ;;
8334
8335     netbsd*)
8336       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8337         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8338         wlarc=
8339       else
8340         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8341         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8342       fi
8343       ;;
8344
8345     solaris*)
8346       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8347         ld_shlibs=no
8348         cat <<EOF 1>&2
8349
8350 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8351 *** create shared libraries on Solaris systems.  Therefore, libtool
8352 *** is disabling shared libraries support.  We urge you to upgrade GNU
8353 *** binutils to release 2.9.1 or newer.  Another option is to modify
8354 *** your PATH or compiler configuration so that the native linker is
8355 *** used, and then restart.
8356
8357 EOF
8358       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8359         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8360         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8361       else
8362         ld_shlibs=no
8363       fi
8364       ;;
8365
8366     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8367       case `$LD -v 2>&1` in
8368         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8369         ld_shlibs=no
8370         cat <<_LT_EOF 1>&2
8371
8372 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8373 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8374 *** is disabling shared libraries support.  We urge you to upgrade GNU
8375 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8376 *** your PATH or compiler configuration so that the native linker is
8377 *** used, and then restart.
8378
8379 _LT_EOF
8380         ;;
8381         *)
8382           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8383             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8384             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8385             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8386           else
8387             ld_shlibs=no
8388           fi
8389         ;;
8390       esac
8391       ;;
8392
8393     sunos4*)
8394       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8395       wlarc=
8396       hardcode_direct=yes
8397       hardcode_shlibpath_var=no
8398       ;;
8399
8400     *)
8401       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8402         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8403         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8404       else
8405         ld_shlibs=no
8406       fi
8407       ;;
8408     esac
8409
8410     if test "$ld_shlibs" = no; then
8411       runpath_var=
8412       hardcode_libdir_flag_spec=
8413       export_dynamic_flag_spec=
8414       whole_archive_flag_spec=
8415     fi
8416   else
8417     # PORTME fill in a description of your system's linker (not GNU ld)
8418     case $host_os in
8419     aix3*)
8420       allow_undefined_flag=unsupported
8421       always_export_symbols=yes
8422       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'
8423       # Note: this linker hardcodes the directories in LIBPATH if there
8424       # are no directories specified by -L.
8425       hardcode_minus_L=yes
8426       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8427         # Neither direct hardcoding nor static linking is supported with a
8428         # broken collect2.
8429         hardcode_direct=unsupported
8430       fi
8431       ;;
8432
8433     aix4* | aix5*)
8434       if test "$host_cpu" = ia64; then
8435         # On IA64, the linker does run time linking by default, so we don't
8436         # have to do anything special.
8437         aix_use_runtimelinking=no
8438         exp_sym_flag='-Bexport'
8439         no_entry_flag=""
8440       else
8441         # If we're using GNU nm, then we don't want the "-C" option.
8442         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8443         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8444           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'
8445         else
8446           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'
8447         fi
8448         aix_use_runtimelinking=no
8449
8450         # Test if we are trying to use run time linking or normal
8451         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8452         # need to do runtime linking.
8453         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8454           for ld_flag in $LDFLAGS; do
8455           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8456             aix_use_runtimelinking=yes
8457             break
8458           fi
8459           done
8460           ;;
8461         esac
8462
8463         exp_sym_flag='-bexport'
8464         no_entry_flag='-bnoentry'
8465       fi
8466
8467       # When large executables or shared objects are built, AIX ld can
8468       # have problems creating the table of contents.  If linking a library
8469       # or program results in "error TOC overflow" add -mminimal-toc to
8470       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8471       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8472
8473       archive_cmds=''
8474       hardcode_direct=yes
8475       hardcode_libdir_separator=':'
8476       link_all_deplibs=yes
8477
8478       if test "$GCC" = yes; then
8479         case $host_os in aix4.[012]|aix4.[012].*)
8480         # We only want to do this on AIX 4.2 and lower, the check
8481         # below for broken collect2 doesn't work under 4.3+
8482           collect2name=`${CC} -print-prog-name=collect2`
8483           if test -f "$collect2name" && \
8484            strings "$collect2name" | grep resolve_lib_name >/dev/null
8485           then
8486           # We have reworked collect2
8487           :
8488           else
8489           # We have old collect2
8490           hardcode_direct=unsupported
8491           # It fails to find uninstalled libraries when the uninstalled
8492           # path is not listed in the libpath.  Setting hardcode_minus_L
8493           # to unsupported forces relinking
8494           hardcode_minus_L=yes
8495           hardcode_libdir_flag_spec='-L$libdir'
8496           hardcode_libdir_separator=
8497           fi
8498           ;;
8499         esac
8500         shared_flag='-shared'
8501         if test "$aix_use_runtimelinking" = yes; then
8502           shared_flag="$shared_flag "'${wl}-G'
8503         fi
8504       else
8505         # not using gcc
8506         if test "$host_cpu" = ia64; then
8507         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8508         # chokes on -Wl,-G. The following line is correct:
8509           shared_flag='-G'
8510         else
8511           if test "$aix_use_runtimelinking" = yes; then
8512             shared_flag='${wl}-G'
8513           else
8514             shared_flag='${wl}-bM:SRE'
8515           fi
8516         fi
8517       fi
8518
8519       # It seems that -bexpall does not export symbols beginning with
8520       # underscore (_), so it is better to generate a list of symbols to export.
8521       always_export_symbols=yes
8522       if test "$aix_use_runtimelinking" = yes; then
8523         # Warning - without using the other runtime loading flags (-brtl),
8524         # -berok will link without error, but may produce a broken library.
8525         allow_undefined_flag='-berok'
8526        # Determine the default libpath from the value encoded in an empty executable.
8527        cat >conftest.$ac_ext <<_ACEOF
8528 /* confdefs.h.  */
8529 _ACEOF
8530 cat confdefs.h >>conftest.$ac_ext
8531 cat >>conftest.$ac_ext <<_ACEOF
8532 /* end confdefs.h.  */
8533
8534 int
8535 main ()
8536 {
8537
8538   ;
8539   return 0;
8540 }
8541 _ACEOF
8542 rm -f conftest.$ac_objext conftest$ac_exeext
8543 if { (ac_try="$ac_link"
8544 case "(($ac_try" in
8545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8546   *) ac_try_echo=$ac_try;;
8547 esac
8548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8549   (eval "$ac_link") 2>conftest.er1
8550   ac_status=$?
8551   grep -v '^ *+' conftest.er1 >conftest.err
8552   rm -f conftest.er1
8553   cat conftest.err >&5
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); } && {
8556          test -z "$ac_c_werror_flag" ||
8557          test ! -s conftest.err
8558        } && test -s conftest$ac_exeext &&
8559        $as_test_x conftest$ac_exeext; then
8560
8561 lt_aix_libpath_sed='
8562     /Import File Strings/,/^$/ {
8563         /^0/ {
8564             s/^0  *\(.*\)$/\1/
8565             p
8566         }
8567     }'
8568 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8569 # Check for a 64-bit object if we didn't find anything.
8570 if test -z "$aix_libpath"; then
8571   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8572 fi
8573 else
8574   echo "$as_me: failed program was:" >&5
8575 sed 's/^/| /' conftest.$ac_ext >&5
8576
8577
8578 fi
8579
8580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8581       conftest$ac_exeext conftest.$ac_ext
8582 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8583
8584        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8585         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"
8586        else
8587         if test "$host_cpu" = ia64; then
8588           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8589           allow_undefined_flag="-z nodefs"
8590           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"
8591         else
8592          # Determine the default libpath from the value encoded in an empty executable.
8593          cat >conftest.$ac_ext <<_ACEOF
8594 /* confdefs.h.  */
8595 _ACEOF
8596 cat confdefs.h >>conftest.$ac_ext
8597 cat >>conftest.$ac_ext <<_ACEOF
8598 /* end confdefs.h.  */
8599
8600 int
8601 main ()
8602 {
8603
8604   ;
8605   return 0;
8606 }
8607 _ACEOF
8608 rm -f conftest.$ac_objext conftest$ac_exeext
8609 if { (ac_try="$ac_link"
8610 case "(($ac_try" in
8611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8612   *) ac_try_echo=$ac_try;;
8613 esac
8614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8615   (eval "$ac_link") 2>conftest.er1
8616   ac_status=$?
8617   grep -v '^ *+' conftest.er1 >conftest.err
8618   rm -f conftest.er1
8619   cat conftest.err >&5
8620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8621   (exit $ac_status); } && {
8622          test -z "$ac_c_werror_flag" ||
8623          test ! -s conftest.err
8624        } && test -s conftest$ac_exeext &&
8625        $as_test_x conftest$ac_exeext; then
8626
8627 lt_aix_libpath_sed='
8628     /Import File Strings/,/^$/ {
8629         /^0/ {
8630             s/^0  *\(.*\)$/\1/
8631             p
8632         }
8633     }'
8634 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8635 # Check for a 64-bit object if we didn't find anything.
8636 if test -z "$aix_libpath"; then
8637   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8638 fi
8639 else
8640   echo "$as_me: failed program was:" >&5
8641 sed 's/^/| /' conftest.$ac_ext >&5
8642
8643
8644 fi
8645
8646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8647       conftest$ac_exeext conftest.$ac_ext
8648 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8649
8650          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8651           # Warning - without using the other run time loading flags,
8652           # -berok will link without error, but may produce a broken library.
8653           no_undefined_flag=' ${wl}-bernotok'
8654           allow_undefined_flag=' ${wl}-berok'
8655           # Exported symbols can be pulled into shared objects from archives
8656           whole_archive_flag_spec='$convenience'
8657           archive_cmds_need_lc=yes
8658           # This is similar to how AIX traditionally builds its shared libraries.
8659           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'
8660         fi
8661       fi
8662       ;;
8663
8664     amigaos*)
8665       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)'
8666       hardcode_libdir_flag_spec='-L$libdir'
8667       hardcode_minus_L=yes
8668       # see comment about different semantics on the GNU ld section
8669       ld_shlibs=no
8670       ;;
8671
8672     bsdi[45]*)
8673       export_dynamic_flag_spec=-rdynamic
8674       ;;
8675
8676     cygwin* | mingw* | pw32*)
8677       # When not using gcc, we currently assume that we are using
8678       # Microsoft Visual C++.
8679       # hardcode_libdir_flag_spec is actually meaningless, as there is
8680       # no search path for DLLs.
8681       hardcode_libdir_flag_spec=' '
8682       allow_undefined_flag=unsupported
8683       # Tell ltmain to make .lib files, not .a files.
8684       libext=lib
8685       # Tell ltmain to make .dll files, not .so files.
8686       shrext_cmds=".dll"
8687       # FIXME: Setting linknames here is a bad hack.
8688       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8689       # The linker will automatically build a .lib file if we build a DLL.
8690       old_archive_From_new_cmds='true'
8691       # FIXME: Should let the user specify the lib program.
8692       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8693       fix_srcfile_path='`cygpath -w "$srcfile"`'
8694       enable_shared_with_static_runtimes=yes
8695       ;;
8696
8697     darwin* | rhapsody*)
8698       case $host_os in
8699         rhapsody* | darwin1.[012])
8700          allow_undefined_flag='${wl}-undefined ${wl}suppress'
8701          ;;
8702        *) # Darwin 1.3 on
8703          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8704            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8705          else
8706            case ${MACOSX_DEPLOYMENT_TARGET} in
8707              10.[012])
8708                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8709                ;;
8710              10.*)
8711                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8712                ;;
8713            esac
8714          fi
8715          ;;
8716       esac
8717       archive_cmds_need_lc=no
8718       hardcode_direct=no
8719       hardcode_automatic=yes
8720       hardcode_shlibpath_var=unsupported
8721       whole_archive_flag_spec=''
8722       link_all_deplibs=yes
8723     if test "$GCC" = yes ; then
8724         output_verbose_link_cmd='echo'
8725         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8726       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8727       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8728       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}'
8729       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}'
8730     else
8731       case $cc_basename in
8732         xlc*)
8733          output_verbose_link_cmd='echo'
8734          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8735          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8736           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8737          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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8738           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}'
8739           ;;
8740        *)
8741          ld_shlibs=no
8742           ;;
8743       esac
8744     fi
8745       ;;
8746
8747     dgux*)
8748       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8749       hardcode_libdir_flag_spec='-L$libdir'
8750       hardcode_shlibpath_var=no
8751       ;;
8752
8753     freebsd1*)
8754       ld_shlibs=no
8755       ;;
8756
8757     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8758     # support.  Future versions do this automatically, but an explicit c++rt0.o
8759     # does not break anything, and helps significantly (at the cost of a little
8760     # extra space).
8761     freebsd2.2*)
8762       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8763       hardcode_libdir_flag_spec='-R$libdir'
8764       hardcode_direct=yes
8765       hardcode_shlibpath_var=no
8766       ;;
8767
8768     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8769     freebsd2*)
8770       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8771       hardcode_direct=yes
8772       hardcode_minus_L=yes
8773       hardcode_shlibpath_var=no
8774       ;;
8775
8776     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8777     freebsd* | dragonfly*)
8778       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8779       hardcode_libdir_flag_spec='-R$libdir'
8780       hardcode_direct=yes
8781       hardcode_shlibpath_var=no
8782       ;;
8783
8784     hpux9*)
8785       if test "$GCC" = yes; then
8786         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'
8787       else
8788         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'
8789       fi
8790       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8791       hardcode_libdir_separator=:
8792       hardcode_direct=yes
8793
8794       # hardcode_minus_L: Not really in the search PATH,
8795       # but as the default location of the library.
8796       hardcode_minus_L=yes
8797       export_dynamic_flag_spec='${wl}-E'
8798       ;;
8799
8800     hpux10*)
8801       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8802         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8803       else
8804         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8805       fi
8806       if test "$with_gnu_ld" = no; then
8807         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8808         hardcode_libdir_separator=:
8809
8810         hardcode_direct=yes
8811         export_dynamic_flag_spec='${wl}-E'
8812
8813         # hardcode_minus_L: Not really in the search PATH,
8814         # but as the default location of the library.
8815         hardcode_minus_L=yes
8816       fi
8817       ;;
8818
8819     hpux11*)
8820       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8821         case $host_cpu in
8822         hppa*64*)
8823           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8824           ;;
8825         ia64*)
8826           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8827           ;;
8828         *)
8829           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8830           ;;
8831         esac
8832       else
8833         case $host_cpu in
8834         hppa*64*)
8835           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836           ;;
8837         ia64*)
8838           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8839           ;;
8840         *)
8841           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8842           ;;
8843         esac
8844       fi
8845       if test "$with_gnu_ld" = no; then
8846         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8847         hardcode_libdir_separator=:
8848
8849         case $host_cpu in
8850         hppa*64*|ia64*)
8851           hardcode_libdir_flag_spec_ld='+b $libdir'
8852           hardcode_direct=no
8853           hardcode_shlibpath_var=no
8854           ;;
8855         *)
8856           hardcode_direct=yes
8857           export_dynamic_flag_spec='${wl}-E'
8858
8859           # hardcode_minus_L: Not really in the search PATH,
8860           # but as the default location of the library.
8861           hardcode_minus_L=yes
8862           ;;
8863         esac
8864       fi
8865       ;;
8866
8867     irix5* | irix6* | nonstopux*)
8868       if test "$GCC" = yes; then
8869         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'
8870       else
8871         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'
8872         hardcode_libdir_flag_spec_ld='-rpath $libdir'
8873       fi
8874       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8875       hardcode_libdir_separator=:
8876       link_all_deplibs=yes
8877       ;;
8878
8879     netbsd*)
8880       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8881         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
8882       else
8883         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
8884       fi
8885       hardcode_libdir_flag_spec='-R$libdir'
8886       hardcode_direct=yes
8887       hardcode_shlibpath_var=no
8888       ;;
8889
8890     newsos6)
8891       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892       hardcode_direct=yes
8893       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8894       hardcode_libdir_separator=:
8895       hardcode_shlibpath_var=no
8896       ;;
8897
8898     openbsd*)
8899       if test -f /usr/libexec/ld.so; then
8900         hardcode_direct=yes
8901         hardcode_shlibpath_var=no
8902         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8903           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8904           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8905           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8906           export_dynamic_flag_spec='${wl}-E'
8907         else
8908           case $host_os in
8909            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8910              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8911              hardcode_libdir_flag_spec='-R$libdir'
8912              ;;
8913            *)
8914              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8915              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8916              ;;
8917           esac
8918         fi
8919       else
8920         ld_shlibs=no
8921       fi
8922       ;;
8923
8924     os2*)
8925       hardcode_libdir_flag_spec='-L$libdir'
8926       hardcode_minus_L=yes
8927       allow_undefined_flag=unsupported
8928       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'
8929       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8930       ;;
8931
8932     osf3*)
8933       if test "$GCC" = yes; then
8934         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8935         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'
8936       else
8937         allow_undefined_flag=' -expect_unresolved \*'
8938         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'
8939       fi
8940       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8941       hardcode_libdir_separator=:
8942       ;;
8943
8944     osf4* | osf5*)      # as osf3* with the addition of -msym flag
8945       if test "$GCC" = yes; then
8946         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8947         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'
8948         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8949       else
8950         allow_undefined_flag=' -expect_unresolved \*'
8951         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'
8952         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8953         $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'
8954
8955         # Both c and cxx compiler support -rpath directly
8956         hardcode_libdir_flag_spec='-rpath $libdir'
8957       fi
8958       hardcode_libdir_separator=:
8959       ;;
8960
8961     solaris*)
8962       no_undefined_flag=' -z text'
8963       if test "$GCC" = yes; then
8964         wlarc='${wl}'
8965         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8966         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8967           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8968       else
8969         wlarc=''
8970         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8971         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8972         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8973       fi
8974       hardcode_libdir_flag_spec='-R$libdir'
8975       hardcode_shlibpath_var=no
8976       case $host_os in
8977       solaris2.[0-5] | solaris2.[0-5].*) ;;
8978       *)
8979         # The compiler driver will combine and reorder linker options,
8980         # but understands `-z linker_flag'.  GCC discards it without `$wl',
8981         # but is careful enough not to reorder.
8982         # Supported since Solaris 2.6 (maybe 2.5.1?)
8983         if test "$GCC" = yes; then
8984           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8985         else
8986           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8987         fi
8988         ;;
8989       esac
8990       link_all_deplibs=yes
8991       ;;
8992
8993     sunos4*)
8994       if test "x$host_vendor" = xsequent; then
8995         # Use $CC to link under sequent, because it throws in some extra .o
8996         # files that make .init and .fini sections work.
8997         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8998       else
8999         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9000       fi
9001       hardcode_libdir_flag_spec='-L$libdir'
9002       hardcode_direct=yes
9003       hardcode_minus_L=yes
9004       hardcode_shlibpath_var=no
9005       ;;
9006
9007     sysv4)
9008       case $host_vendor in
9009         sni)
9010           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9011           hardcode_direct=yes # is this really true???
9012         ;;
9013         siemens)
9014           ## LD is ld it makes a PLAMLIB
9015           ## CC just makes a GrossModule.
9016           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9017           reload_cmds='$CC -r -o $output$reload_objs'
9018           hardcode_direct=no
9019         ;;
9020         motorola)
9021           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9022           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9023         ;;
9024       esac
9025       runpath_var='LD_RUN_PATH'
9026       hardcode_shlibpath_var=no
9027       ;;
9028
9029     sysv4.3*)
9030       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9031       hardcode_shlibpath_var=no
9032       export_dynamic_flag_spec='-Bexport'
9033       ;;
9034
9035     sysv4*MP*)
9036       if test -d /usr/nec; then
9037         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9038         hardcode_shlibpath_var=no
9039         runpath_var=LD_RUN_PATH
9040         hardcode_runpath_var=yes
9041         ld_shlibs=yes
9042       fi
9043       ;;
9044
9045     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9046       no_undefined_flag='${wl}-z,text'
9047       archive_cmds_need_lc=no
9048       hardcode_shlibpath_var=no
9049       runpath_var='LD_RUN_PATH'
9050
9051       if test "$GCC" = yes; then
9052         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9053         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9054       else
9055         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9056         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9057       fi
9058       ;;
9059
9060     sysv5* | sco3.2v5* | sco5v6*)
9061       # Note: We can NOT use -z defs as we might desire, because we do not
9062       # link with -lc, and that would cause any symbols used from libc to
9063       # always be unresolved, which means just about no library would
9064       # ever link correctly.  If we're not using GNU ld we use -z text
9065       # though, which does catch some bad symbols but isn't as heavy-handed
9066       # as -z defs.
9067       no_undefined_flag='${wl}-z,text'
9068       allow_undefined_flag='${wl}-z,nodefs'
9069       archive_cmds_need_lc=no
9070       hardcode_shlibpath_var=no
9071       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9072       hardcode_libdir_separator=':'
9073       link_all_deplibs=yes
9074       export_dynamic_flag_spec='${wl}-Bexport'
9075       runpath_var='LD_RUN_PATH'
9076
9077       if test "$GCC" = yes; then
9078         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9079         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080       else
9081         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9082         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9083       fi
9084       ;;
9085
9086     uts4*)
9087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088       hardcode_libdir_flag_spec='-L$libdir'
9089       hardcode_shlibpath_var=no
9090       ;;
9091
9092     *)
9093       ld_shlibs=no
9094       ;;
9095     esac
9096   fi
9097
9098 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9099 echo "${ECHO_T}$ld_shlibs" >&6; }
9100 test "$ld_shlibs" = no && can_build_shared=no
9101
9102 #
9103 # Do we need to explicitly link libc?
9104 #
9105 case "x$archive_cmds_need_lc" in
9106 x|xyes)
9107   # Assume -lc should be added
9108   archive_cmds_need_lc=yes
9109
9110   if test "$enable_shared" = yes && test "$GCC" = yes; then
9111     case $archive_cmds in
9112     *'~'*)
9113       # FIXME: we may have to deal with multi-command sequences.
9114       ;;
9115     '$CC '*)
9116       # Test whether the compiler implicitly links with -lc since on some
9117       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9118       # to ld, don't add -lc before -lgcc.
9119       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9120 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9121       $rm conftest*
9122       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9123
9124       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9125   (eval $ac_compile) 2>&5
9126   ac_status=$?
9127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9128   (exit $ac_status); } 2>conftest.err; then
9129         soname=conftest
9130         lib=conftest
9131         libobjs=conftest.$ac_objext
9132         deplibs=
9133         wl=$lt_prog_compiler_wl
9134         pic_flag=$lt_prog_compiler_pic
9135         compiler_flags=-v
9136         linker_flags=-v
9137         verstring=
9138         output_objdir=.
9139         libname=conftest
9140         lt_save_allow_undefined_flag=$allow_undefined_flag
9141         allow_undefined_flag=
9142         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9143   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9144   ac_status=$?
9145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9146   (exit $ac_status); }
9147         then
9148           archive_cmds_need_lc=no
9149         else
9150           archive_cmds_need_lc=yes
9151         fi
9152         allow_undefined_flag=$lt_save_allow_undefined_flag
9153       else
9154         cat conftest.err 1>&5
9155       fi
9156       $rm conftest*
9157       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9158 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9159       ;;
9160     esac
9161   fi
9162   ;;
9163 esac
9164
9165 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9166 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9167 library_names_spec=
9168 libname_spec='lib$name'
9169 soname_spec=
9170 shrext_cmds=".so"
9171 postinstall_cmds=
9172 postuninstall_cmds=
9173 finish_cmds=
9174 finish_eval=
9175 shlibpath_var=
9176 shlibpath_overrides_runpath=unknown
9177 version_type=none
9178 dynamic_linker="$host_os ld.so"
9179 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9180
9181 if test "$GCC" = yes; then
9182   case $host_os in
9183     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9184     *) lt_awk_arg="/^libraries:/" ;;
9185   esac
9186   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9187   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9188     # if the path contains ";" then we assume it to be the separator
9189     # otherwise default to the standard path separator (i.e. ":") - it is
9190     # assumed that no part of a normal pathname contains ";" but that should
9191     # okay in the real world where ";" in dirpaths is itself problematic.
9192     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9193   else
9194     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9195   fi
9196   # Ok, now we have the path, separated by spaces, we can step through it
9197   # and add multilib dir if necessary.
9198   lt_tmp_lt_search_path_spec=
9199   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9200   for lt_sys_path in $lt_search_path_spec; do
9201     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9202       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9203     else
9204       test -d "$lt_sys_path" && \
9205         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9206     fi
9207   done
9208   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9209 BEGIN {RS=" "; FS="/|\n";} {
9210   lt_foo="";
9211   lt_count=0;
9212   for (lt_i = NF; lt_i > 0; lt_i--) {
9213     if ($lt_i != "" && $lt_i != ".") {
9214       if ($lt_i == "..") {
9215         lt_count++;
9216       } else {
9217         if (lt_count == 0) {
9218           lt_foo="/" $lt_i lt_foo;
9219         } else {
9220           lt_count--;
9221         }
9222       }
9223     }
9224   }
9225   if (lt_foo != "") { lt_freq[lt_foo]++; }
9226   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9227 }'`
9228   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9229 else
9230   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9231 fi
9232 need_lib_prefix=no
9233 hardcode_into_libs=no
9234
9235 # when you set need_version to no, make sure it does not cause -set_version
9236 # flags to be left without arguments
9237 need_version=no
9238
9239 case $host_os in
9240 aix3*)
9241   version_type=linux
9242   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9243   shlibpath_var=LIBPATH
9244
9245   # AIX 3 has no versioning support, so we append a major version to the name.
9246   soname_spec='${libname}${release}${shared_ext}$major'
9247   ;;
9248
9249 aix4* | aix5*)
9250   version_type=linux
9251   need_lib_prefix=no
9252   need_version=no
9253   hardcode_into_libs=yes
9254   if test "$host_cpu" = ia64; then
9255     # AIX 5 supports IA64
9256     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9257     shlibpath_var=LD_LIBRARY_PATH
9258   else
9259     # With GCC up to 2.95.x, collect2 would create an import file
9260     # for dependence libraries.  The import file would start with
9261     # the line `#! .'.  This would cause the generated library to
9262     # depend on `.', always an invalid library.  This was fixed in
9263     # development snapshots of GCC prior to 3.0.
9264     case $host_os in
9265       aix4 | aix4.[01] | aix4.[01].*)
9266       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9267            echo ' yes '
9268            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9269         :
9270       else
9271         can_build_shared=no
9272       fi
9273       ;;
9274     esac
9275     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9276     # soname into executable. Probably we can add versioning support to
9277     # collect2, so additional links can be useful in future.
9278     if test "$aix_use_runtimelinking" = yes; then
9279       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9280       # instead of lib<name>.a to let people know that these are not
9281       # typical AIX shared libraries.
9282       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9283     else
9284       # We preserve .a as extension for shared libraries through AIX4.2
9285       # and later when we are not doing run time linking.
9286       library_names_spec='${libname}${release}.a $libname.a'
9287       soname_spec='${libname}${release}${shared_ext}$major'
9288     fi
9289     shlibpath_var=LIBPATH
9290   fi
9291   ;;
9292
9293 amigaos*)
9294   library_names_spec='$libname.ixlibrary $libname.a'
9295   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9296   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'
9297   ;;
9298
9299 beos*)
9300   library_names_spec='${libname}${shared_ext}'
9301   dynamic_linker="$host_os ld.so"
9302   shlibpath_var=LIBRARY_PATH
9303   ;;
9304
9305 bsdi[45]*)
9306   version_type=linux
9307   need_version=no
9308   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9309   soname_spec='${libname}${release}${shared_ext}$major'
9310   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9311   shlibpath_var=LD_LIBRARY_PATH
9312   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9313   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9314   # the default ld.so.conf also contains /usr/contrib/lib and
9315   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9316   # libtool to hard-code these into programs
9317   ;;
9318
9319 cygwin* | mingw* | pw32*)
9320   version_type=windows
9321   shrext_cmds=".dll"
9322   need_version=no
9323   need_lib_prefix=no
9324
9325   case $GCC,$host_os in
9326   yes,cygwin* | yes,mingw* | yes,pw32*)
9327     library_names_spec='$libname.dll.a'
9328     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9329     postinstall_cmds='base_file=`basename \${file}`~
9330       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9331       dldir=$destdir/`dirname \$dlpath`~
9332       test -d \$dldir || mkdir -p \$dldir~
9333       $install_prog $dir/$dlname \$dldir/$dlname~
9334       chmod a+x \$dldir/$dlname'
9335     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9336       dlpath=$dir/\$dldll~
9337        $rm \$dlpath'
9338     shlibpath_overrides_runpath=yes
9339
9340     case $host_os in
9341     cygwin*)
9342       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9343       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9344       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9345       ;;
9346     mingw*)
9347       # MinGW DLLs use traditional 'lib' prefix
9348       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9349       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9350       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9351         # It is most probably a Windows format PATH printed by
9352         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9353         # path with ; separators, and with drive letters. We can handle the
9354         # drive letters (cygwin fileutils understands them), so leave them,
9355         # especially as we might pass files found there to a mingw objdump,
9356         # which wouldn't understand a cygwinified path. Ahh.
9357         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9358       else
9359         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9360       fi
9361       ;;
9362     pw32*)
9363       # pw32 DLLs use 'pw' prefix rather than 'lib'
9364       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9365       ;;
9366     esac
9367     ;;
9368
9369   *)
9370     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9371     ;;
9372   esac
9373   dynamic_linker='Win32 ld.exe'
9374   # FIXME: first we should search . and the directory the executable is in
9375   shlibpath_var=PATH
9376   ;;
9377
9378 darwin* | rhapsody*)
9379   dynamic_linker="$host_os dyld"
9380   version_type=darwin
9381   need_lib_prefix=no
9382   need_version=no
9383   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9384   soname_spec='${libname}${release}${major}$shared_ext'
9385   shlibpath_overrides_runpath=yes
9386   shlibpath_var=DYLD_LIBRARY_PATH
9387   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9388
9389   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9390   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9391   ;;
9392
9393 dgux*)
9394   version_type=linux
9395   need_lib_prefix=no
9396   need_version=no
9397   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9398   soname_spec='${libname}${release}${shared_ext}$major'
9399   shlibpath_var=LD_LIBRARY_PATH
9400   ;;
9401
9402 freebsd1*)
9403   dynamic_linker=no
9404   ;;
9405
9406 freebsd* | dragonfly*)
9407   # DragonFly does not have aout.  When/if they implement a new
9408   # versioning mechanism, adjust this.
9409   if test -x /usr/bin/objformat; then
9410     objformat=`/usr/bin/objformat`
9411   else
9412     case $host_os in
9413     freebsd[123]*) objformat=aout ;;
9414     *) objformat=elf ;;
9415     esac
9416   fi
9417   version_type=freebsd-$objformat
9418   case $version_type in
9419     freebsd-elf*)
9420       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9421       need_version=no
9422       need_lib_prefix=no
9423       ;;
9424     freebsd-*)
9425       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9426       need_version=no
9427       ;;
9428   esac
9429   shlibpath_var=LD_LIBRARY_PATH
9430   case $host_os in
9431   freebsd2*)
9432     shlibpath_overrides_runpath=yes
9433     ;;
9434   freebsd3.[01]* | freebsdelf3.[01]*)
9435     shlibpath_overrides_runpath=yes
9436     hardcode_into_libs=yes
9437     ;;
9438   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9439   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9440     shlibpath_overrides_runpath=no
9441     hardcode_into_libs=yes
9442     ;;
9443   *) # from 4.6 on, and DragonFly
9444     shlibpath_overrides_runpath=yes
9445     hardcode_into_libs=yes
9446     ;;
9447   esac
9448   ;;
9449
9450 gnu*)
9451   version_type=linux
9452   need_lib_prefix=no
9453   need_version=no
9454   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9455   soname_spec='${libname}${release}${shared_ext}$major'
9456   shlibpath_var=LD_LIBRARY_PATH
9457   hardcode_into_libs=yes
9458   ;;
9459
9460 hpux9* | hpux10* | hpux11*)
9461   # Give a soname corresponding to the major version so that dld.sl refuses to
9462   # link against other versions.
9463   version_type=sunos
9464   need_lib_prefix=no
9465   need_version=no
9466   case $host_cpu in
9467   ia64*)
9468     shrext_cmds='.so'
9469     hardcode_into_libs=yes
9470     dynamic_linker="$host_os dld.so"
9471     shlibpath_var=LD_LIBRARY_PATH
9472     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9473     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9474     soname_spec='${libname}${release}${shared_ext}$major'
9475     if test "X$HPUX_IA64_MODE" = X32; then
9476       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9477     else
9478       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9479     fi
9480     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9481     ;;
9482    hppa*64*)
9483      shrext_cmds='.sl'
9484      hardcode_into_libs=yes
9485      dynamic_linker="$host_os dld.sl"
9486      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9487      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9488      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489      soname_spec='${libname}${release}${shared_ext}$major'
9490      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9491      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9492      ;;
9493    *)
9494     shrext_cmds='.sl'
9495     dynamic_linker="$host_os dld.sl"
9496     shlibpath_var=SHLIB_PATH
9497     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9498     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9499     soname_spec='${libname}${release}${shared_ext}$major'
9500     ;;
9501   esac
9502   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9503   postinstall_cmds='chmod 555 $lib'
9504   ;;
9505
9506 interix[3-9]*)
9507   version_type=linux
9508   need_lib_prefix=no
9509   need_version=no
9510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9511   soname_spec='${libname}${release}${shared_ext}$major'
9512   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9513   shlibpath_var=LD_LIBRARY_PATH
9514   shlibpath_overrides_runpath=no
9515   hardcode_into_libs=yes
9516   ;;
9517
9518 irix5* | irix6* | nonstopux*)
9519   case $host_os in
9520     nonstopux*) version_type=nonstopux ;;
9521     *)
9522         if test "$lt_cv_prog_gnu_ld" = yes; then
9523                 version_type=linux
9524         else
9525                 version_type=irix
9526         fi ;;
9527   esac
9528   need_lib_prefix=no
9529   need_version=no
9530   soname_spec='${libname}${release}${shared_ext}$major'
9531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9532   case $host_os in
9533   irix5* | nonstopux*)
9534     libsuff= shlibsuff=
9535     ;;
9536   *)
9537     case $LD in # libtool.m4 will add one of these switches to LD
9538     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9539       libsuff= shlibsuff= libmagic=32-bit;;
9540     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9541       libsuff=32 shlibsuff=N32 libmagic=N32;;
9542     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9543       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9544     *) libsuff= shlibsuff= libmagic=never-match;;
9545     esac
9546     ;;
9547   esac
9548   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9549   shlibpath_overrides_runpath=no
9550   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9551   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9552   hardcode_into_libs=yes
9553   ;;
9554
9555 # No shared lib support for Linux oldld, aout, or coff.
9556 linux*oldld* | linux*aout* | linux*coff*)
9557   dynamic_linker=no
9558   ;;
9559
9560 # This must be Linux ELF.
9561 linux* | k*bsd*-gnu)
9562   version_type=linux
9563   need_lib_prefix=no
9564   need_version=no
9565   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566   soname_spec='${libname}${release}${shared_ext}$major'
9567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9568   shlibpath_var=LD_LIBRARY_PATH
9569   shlibpath_overrides_runpath=no
9570   # This implies no fast_install, which is unacceptable.
9571   # Some rework will be needed to allow for fast_install
9572   # before this can be enabled.
9573   hardcode_into_libs=yes
9574
9575   # Append ld.so.conf contents to the search path
9576   if test -f /etc/ld.so.conf; then
9577     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[      ]*hwcap[        ]/d;s/[:,       ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9578     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9579   fi
9580
9581   # We used to test for /lib/ld.so.1 and disable shared libraries on
9582   # powerpc, because MkLinux only supported shared libraries with the
9583   # GNU dynamic linker.  Since this was broken with cross compilers,
9584   # most powerpc-linux boxes support dynamic linking these days and
9585   # people can always --disable-shared, the test was removed, and we
9586   # assume the GNU/Linux dynamic linker is in use.
9587   dynamic_linker='GNU/Linux ld.so'
9588   ;;
9589
9590 netbsd*)
9591   version_type=sunos
9592   need_lib_prefix=no
9593   need_version=no
9594   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9596     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9597     dynamic_linker='NetBSD (a.out) ld.so'
9598   else
9599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9600     soname_spec='${libname}${release}${shared_ext}$major'
9601     dynamic_linker='NetBSD ld.elf_so'
9602   fi
9603   shlibpath_var=LD_LIBRARY_PATH
9604   shlibpath_overrides_runpath=yes
9605   hardcode_into_libs=yes
9606   ;;
9607
9608 newsos6)
9609   version_type=linux
9610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9611   shlibpath_var=LD_LIBRARY_PATH
9612   shlibpath_overrides_runpath=yes
9613   ;;
9614
9615 nto-qnx*)
9616   version_type=linux
9617   need_lib_prefix=no
9618   need_version=no
9619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9620   soname_spec='${libname}${release}${shared_ext}$major'
9621   shlibpath_var=LD_LIBRARY_PATH
9622   shlibpath_overrides_runpath=yes
9623   ;;
9624
9625 openbsd*)
9626   version_type=sunos
9627   sys_lib_dlsearch_path_spec="/usr/lib"
9628   need_lib_prefix=no
9629   need_version=no
9630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9631   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9632   shlibpath_var=LD_LIBRARY_PATH
9633   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9634     case $host_os in
9635       openbsd2.[89] | openbsd2.[89].*)
9636         shlibpath_overrides_runpath=no
9637         ;;
9638       *)
9639         shlibpath_overrides_runpath=yes
9640         ;;
9641       esac
9642   else
9643     shlibpath_overrides_runpath=yes
9644   fi
9645   ;;
9646
9647 os2*)
9648   libname_spec='$name'
9649   shrext_cmds=".dll"
9650   need_lib_prefix=no
9651   library_names_spec='$libname${shared_ext} $libname.a'
9652   dynamic_linker='OS/2 ld.exe'
9653   shlibpath_var=LIBPATH
9654   ;;
9655
9656 osf3* | osf4* | osf5*)
9657   version_type=osf
9658   need_lib_prefix=no
9659   need_version=no
9660   soname_spec='${libname}${release}${shared_ext}$major'
9661   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662   shlibpath_var=LD_LIBRARY_PATH
9663   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9664   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9665   ;;
9666
9667 rdos*)
9668   dynamic_linker=no
9669   ;;
9670
9671 solaris*)
9672   version_type=linux
9673   need_lib_prefix=no
9674   need_version=no
9675   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9676   soname_spec='${libname}${release}${shared_ext}$major'
9677   shlibpath_var=LD_LIBRARY_PATH
9678   shlibpath_overrides_runpath=yes
9679   hardcode_into_libs=yes
9680   # ldd complains unless libraries are executable
9681   postinstall_cmds='chmod +x $lib'
9682   ;;
9683
9684 sunos4*)
9685   version_type=sunos
9686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9687   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9688   shlibpath_var=LD_LIBRARY_PATH
9689   shlibpath_overrides_runpath=yes
9690   if test "$with_gnu_ld" = yes; then
9691     need_lib_prefix=no
9692   fi
9693   need_version=no
9694   ;;
9695
9696 sysv4 | sysv4.3*)
9697   version_type=linux
9698   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9699   soname_spec='${libname}${release}${shared_ext}$major'
9700   shlibpath_var=LD_LIBRARY_PATH
9701   case $host_vendor in
9702     sni)
9703       shlibpath_overrides_runpath=no
9704       need_lib_prefix=no
9705       export_dynamic_flag_spec='${wl}-Blargedynsym'
9706       runpath_var=LD_RUN_PATH
9707       ;;
9708     siemens)
9709       need_lib_prefix=no
9710       ;;
9711     motorola)
9712       need_lib_prefix=no
9713       need_version=no
9714       shlibpath_overrides_runpath=no
9715       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9716       ;;
9717   esac
9718   ;;
9719
9720 sysv4*MP*)
9721   if test -d /usr/nec ;then
9722     version_type=linux
9723     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9724     soname_spec='$libname${shared_ext}.$major'
9725     shlibpath_var=LD_LIBRARY_PATH
9726   fi
9727   ;;
9728
9729 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9730   version_type=freebsd-elf
9731   need_lib_prefix=no
9732   need_version=no
9733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9734   soname_spec='${libname}${release}${shared_ext}$major'
9735   shlibpath_var=LD_LIBRARY_PATH
9736   hardcode_into_libs=yes
9737   if test "$with_gnu_ld" = yes; then
9738     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9739     shlibpath_overrides_runpath=no
9740   else
9741     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9742     shlibpath_overrides_runpath=yes
9743     case $host_os in
9744       sco3.2v5*)
9745         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9746         ;;
9747     esac
9748   fi
9749   sys_lib_dlsearch_path_spec='/usr/lib'
9750   ;;
9751
9752 uts4*)
9753   version_type=linux
9754   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9755   soname_spec='${libname}${release}${shared_ext}$major'
9756   shlibpath_var=LD_LIBRARY_PATH
9757   ;;
9758
9759 *)
9760   dynamic_linker=no
9761   ;;
9762 esac
9763 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9764 echo "${ECHO_T}$dynamic_linker" >&6; }
9765 test "$dynamic_linker" = no && can_build_shared=no
9766
9767 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9768 if test "$GCC" = yes; then
9769   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9770 fi
9771
9772 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9773 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9774 hardcode_action=
9775 if test -n "$hardcode_libdir_flag_spec" || \
9776    test -n "$runpath_var" || \
9777    test "X$hardcode_automatic" = "Xyes" ; then
9778
9779   # We can hardcode non-existent directories.
9780   if test "$hardcode_direct" != no &&
9781      # If the only mechanism to avoid hardcoding is shlibpath_var, we
9782      # have to relink, otherwise we might link with an installed library
9783      # when we should be linking with a yet-to-be-installed one
9784      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9785      test "$hardcode_minus_L" != no; then
9786     # Linking always hardcodes the temporary library directory.
9787     hardcode_action=relink
9788   else
9789     # We can link without hardcoding, and we can hardcode nonexisting dirs.
9790     hardcode_action=immediate
9791   fi
9792 else
9793   # We cannot hardcode anything, or else we can only hardcode existing
9794   # directories.
9795   hardcode_action=unsupported
9796 fi
9797 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9798 echo "${ECHO_T}$hardcode_action" >&6; }
9799
9800 if test "$hardcode_action" = relink; then
9801   # Fast installation is not supported
9802   enable_fast_install=no
9803 elif test "$shlibpath_overrides_runpath" = yes ||
9804      test "$enable_shared" = no; then
9805   # Fast installation is not necessary
9806   enable_fast_install=needless
9807 fi
9808
9809 striplib=
9810 old_striplib=
9811 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9812 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9813 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9814   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9815   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9816   { echo "$as_me:$LINENO: result: yes" >&5
9817 echo "${ECHO_T}yes" >&6; }
9818 else
9819 # FIXME - insert some real tests, host_os isn't really good enough
9820   case $host_os in
9821    darwin*)
9822        if test -n "$STRIP" ; then
9823          striplib="$STRIP -x"
9824          old_striplib="$STRIP -S"
9825          { echo "$as_me:$LINENO: result: yes" >&5
9826 echo "${ECHO_T}yes" >&6; }
9827        else
9828   { echo "$as_me:$LINENO: result: no" >&5
9829 echo "${ECHO_T}no" >&6; }
9830 fi
9831        ;;
9832    *)
9833   { echo "$as_me:$LINENO: result: no" >&5
9834 echo "${ECHO_T}no" >&6; }
9835     ;;
9836   esac
9837 fi
9838
9839 if test "x$enable_dlopen" != xyes; then
9840   enable_dlopen=unknown
9841   enable_dlopen_self=unknown
9842   enable_dlopen_self_static=unknown
9843 else
9844   lt_cv_dlopen=no
9845   lt_cv_dlopen_libs=
9846
9847   case $host_os in
9848   beos*)
9849     lt_cv_dlopen="load_add_on"
9850     lt_cv_dlopen_libs=
9851     lt_cv_dlopen_self=yes
9852     ;;
9853
9854   mingw* | pw32*)
9855     lt_cv_dlopen="LoadLibrary"
9856     lt_cv_dlopen_libs=
9857    ;;
9858
9859   cygwin*)
9860     lt_cv_dlopen="dlopen"
9861     lt_cv_dlopen_libs=
9862    ;;
9863
9864   darwin*)
9865   # if libdl is installed we need to link against it
9866     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9867 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9868 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9869   echo $ECHO_N "(cached) $ECHO_C" >&6
9870 else
9871   ac_check_lib_save_LIBS=$LIBS
9872 LIBS="-ldl  $LIBS"
9873 cat >conftest.$ac_ext <<_ACEOF
9874 /* confdefs.h.  */
9875 _ACEOF
9876 cat confdefs.h >>conftest.$ac_ext
9877 cat >>conftest.$ac_ext <<_ACEOF
9878 /* end confdefs.h.  */
9879
9880 /* Override any GCC internal prototype to avoid an error.
9881    Use char because int might match the return type of a GCC
9882    builtin and then its argument prototype would still apply.  */
9883 #ifdef __cplusplus
9884 extern "C"
9885 #endif
9886 char dlopen ();
9887 int
9888 main ()
9889 {
9890 return dlopen ();
9891   ;
9892   return 0;
9893 }
9894 _ACEOF
9895 rm -f conftest.$ac_objext conftest$ac_exeext
9896 if { (ac_try="$ac_link"
9897 case "(($ac_try" in
9898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9899   *) ac_try_echo=$ac_try;;
9900 esac
9901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9902   (eval "$ac_link") 2>conftest.er1
9903   ac_status=$?
9904   grep -v '^ *+' conftest.er1 >conftest.err
9905   rm -f conftest.er1
9906   cat conftest.err >&5
9907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9908   (exit $ac_status); } && {
9909          test -z "$ac_c_werror_flag" ||
9910          test ! -s conftest.err
9911        } && test -s conftest$ac_exeext &&
9912        $as_test_x conftest$ac_exeext; then
9913   ac_cv_lib_dl_dlopen=yes
9914 else
9915   echo "$as_me: failed program was:" >&5
9916 sed 's/^/| /' conftest.$ac_ext >&5
9917
9918         ac_cv_lib_dl_dlopen=no
9919 fi
9920
9921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9922       conftest$ac_exeext conftest.$ac_ext
9923 LIBS=$ac_check_lib_save_LIBS
9924 fi
9925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9927 if test $ac_cv_lib_dl_dlopen = yes; then
9928   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9929 else
9930
9931     lt_cv_dlopen="dyld"
9932     lt_cv_dlopen_libs=
9933     lt_cv_dlopen_self=yes
9934
9935 fi
9936
9937    ;;
9938
9939   *)
9940     { echo "$as_me:$LINENO: checking for shl_load" >&5
9941 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9942 if test "${ac_cv_func_shl_load+set}" = set; then
9943   echo $ECHO_N "(cached) $ECHO_C" >&6
9944 else
9945   cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h.  */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h.  */
9951 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9952    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9953 #define shl_load innocuous_shl_load
9954
9955 /* System header to define __stub macros and hopefully few prototypes,
9956     which can conflict with char shl_load (); below.
9957     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9958     <limits.h> exists even on freestanding compilers.  */
9959
9960 #ifdef __STDC__
9961 # include <limits.h>
9962 #else
9963 # include <assert.h>
9964 #endif
9965
9966 #undef shl_load
9967
9968 /* Override any GCC internal prototype to avoid an error.
9969    Use char because int might match the return type of a GCC
9970    builtin and then its argument prototype would still apply.  */
9971 #ifdef __cplusplus
9972 extern "C"
9973 #endif
9974 char shl_load ();
9975 /* The GNU C library defines this for functions which it implements
9976     to always fail with ENOSYS.  Some functions are actually named
9977     something starting with __ and the normal name is an alias.  */
9978 #if defined __stub_shl_load || defined __stub___shl_load
9979 choke me
9980 #endif
9981
9982 int
9983 main ()
9984 {
9985 return shl_load ();
9986   ;
9987   return 0;
9988 }
9989 _ACEOF
9990 rm -f conftest.$ac_objext conftest$ac_exeext
9991 if { (ac_try="$ac_link"
9992 case "(($ac_try" in
9993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9994   *) ac_try_echo=$ac_try;;
9995 esac
9996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9997   (eval "$ac_link") 2>conftest.er1
9998   ac_status=$?
9999   grep -v '^ *+' conftest.er1 >conftest.err
10000   rm -f conftest.er1
10001   cat conftest.err >&5
10002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10003   (exit $ac_status); } && {
10004          test -z "$ac_c_werror_flag" ||
10005          test ! -s conftest.err
10006        } && test -s conftest$ac_exeext &&
10007        $as_test_x conftest$ac_exeext; then
10008   ac_cv_func_shl_load=yes
10009 else
10010   echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10012
10013         ac_cv_func_shl_load=no
10014 fi
10015
10016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10017       conftest$ac_exeext conftest.$ac_ext
10018 fi
10019 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10020 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10021 if test $ac_cv_func_shl_load = yes; then
10022   lt_cv_dlopen="shl_load"
10023 else
10024   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10025 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10026 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10027   echo $ECHO_N "(cached) $ECHO_C" >&6
10028 else
10029   ac_check_lib_save_LIBS=$LIBS
10030 LIBS="-ldld  $LIBS"
10031 cat >conftest.$ac_ext <<_ACEOF
10032 /* confdefs.h.  */
10033 _ACEOF
10034 cat confdefs.h >>conftest.$ac_ext
10035 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h.  */
10037
10038 /* Override any GCC internal prototype to avoid an error.
10039    Use char because int might match the return type of a GCC
10040    builtin and then its argument prototype would still apply.  */
10041 #ifdef __cplusplus
10042 extern "C"
10043 #endif
10044 char shl_load ();
10045 int
10046 main ()
10047 {
10048 return shl_load ();
10049   ;
10050   return 0;
10051 }
10052 _ACEOF
10053 rm -f conftest.$ac_objext conftest$ac_exeext
10054 if { (ac_try="$ac_link"
10055 case "(($ac_try" in
10056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10057   *) ac_try_echo=$ac_try;;
10058 esac
10059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10060   (eval "$ac_link") 2>conftest.er1
10061   ac_status=$?
10062   grep -v '^ *+' conftest.er1 >conftest.err
10063   rm -f conftest.er1
10064   cat conftest.err >&5
10065   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10066   (exit $ac_status); } && {
10067          test -z "$ac_c_werror_flag" ||
10068          test ! -s conftest.err
10069        } && test -s conftest$ac_exeext &&
10070        $as_test_x conftest$ac_exeext; then
10071   ac_cv_lib_dld_shl_load=yes
10072 else
10073   echo "$as_me: failed program was:" >&5
10074 sed 's/^/| /' conftest.$ac_ext >&5
10075
10076         ac_cv_lib_dld_shl_load=no
10077 fi
10078
10079 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10080       conftest$ac_exeext conftest.$ac_ext
10081 LIBS=$ac_check_lib_save_LIBS
10082 fi
10083 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10085 if test $ac_cv_lib_dld_shl_load = yes; then
10086   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10087 else
10088   { echo "$as_me:$LINENO: checking for dlopen" >&5
10089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10090 if test "${ac_cv_func_dlopen+set}" = set; then
10091   echo $ECHO_N "(cached) $ECHO_C" >&6
10092 else
10093   cat >conftest.$ac_ext <<_ACEOF
10094 /* confdefs.h.  */
10095 _ACEOF
10096 cat confdefs.h >>conftest.$ac_ext
10097 cat >>conftest.$ac_ext <<_ACEOF
10098 /* end confdefs.h.  */
10099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10100    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10101 #define dlopen innocuous_dlopen
10102
10103 /* System header to define __stub macros and hopefully few prototypes,
10104     which can conflict with char dlopen (); below.
10105     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10106     <limits.h> exists even on freestanding compilers.  */
10107
10108 #ifdef __STDC__
10109 # include <limits.h>
10110 #else
10111 # include <assert.h>
10112 #endif
10113
10114 #undef dlopen
10115
10116 /* Override any GCC internal prototype to avoid an error.
10117    Use char because int might match the return type of a GCC
10118    builtin and then its argument prototype would still apply.  */
10119 #ifdef __cplusplus
10120 extern "C"
10121 #endif
10122 char dlopen ();
10123 /* The GNU C library defines this for functions which it implements
10124     to always fail with ENOSYS.  Some functions are actually named
10125     something starting with __ and the normal name is an alias.  */
10126 #if defined __stub_dlopen || defined __stub___dlopen
10127 choke me
10128 #endif
10129
10130 int
10131 main ()
10132 {
10133 return dlopen ();
10134   ;
10135   return 0;
10136 }
10137 _ACEOF
10138 rm -f conftest.$ac_objext conftest$ac_exeext
10139 if { (ac_try="$ac_link"
10140 case "(($ac_try" in
10141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10142   *) ac_try_echo=$ac_try;;
10143 esac
10144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10145   (eval "$ac_link") 2>conftest.er1
10146   ac_status=$?
10147   grep -v '^ *+' conftest.er1 >conftest.err
10148   rm -f conftest.er1
10149   cat conftest.err >&5
10150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10151   (exit $ac_status); } && {
10152          test -z "$ac_c_werror_flag" ||
10153          test ! -s conftest.err
10154        } && test -s conftest$ac_exeext &&
10155        $as_test_x conftest$ac_exeext; then
10156   ac_cv_func_dlopen=yes
10157 else
10158   echo "$as_me: failed program was:" >&5
10159 sed 's/^/| /' conftest.$ac_ext >&5
10160
10161         ac_cv_func_dlopen=no
10162 fi
10163
10164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10165       conftest$ac_exeext conftest.$ac_ext
10166 fi
10167 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10168 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10169 if test $ac_cv_func_dlopen = yes; then
10170   lt_cv_dlopen="dlopen"
10171 else
10172   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10175   echo $ECHO_N "(cached) $ECHO_C" >&6
10176 else
10177   ac_check_lib_save_LIBS=$LIBS
10178 LIBS="-ldl  $LIBS"
10179 cat >conftest.$ac_ext <<_ACEOF
10180 /* confdefs.h.  */
10181 _ACEOF
10182 cat confdefs.h >>conftest.$ac_ext
10183 cat >>conftest.$ac_ext <<_ACEOF
10184 /* end confdefs.h.  */
10185
10186 /* Override any GCC internal prototype to avoid an error.
10187    Use char because int might match the return type of a GCC
10188    builtin and then its argument prototype would still apply.  */
10189 #ifdef __cplusplus
10190 extern "C"
10191 #endif
10192 char dlopen ();
10193 int
10194 main ()
10195 {
10196 return dlopen ();
10197   ;
10198   return 0;
10199 }
10200 _ACEOF
10201 rm -f conftest.$ac_objext conftest$ac_exeext
10202 if { (ac_try="$ac_link"
10203 case "(($ac_try" in
10204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10205   *) ac_try_echo=$ac_try;;
10206 esac
10207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10208   (eval "$ac_link") 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } && {
10215          test -z "$ac_c_werror_flag" ||
10216          test ! -s conftest.err
10217        } && test -s conftest$ac_exeext &&
10218        $as_test_x conftest$ac_exeext; then
10219   ac_cv_lib_dl_dlopen=yes
10220 else
10221   echo "$as_me: failed program was:" >&5
10222 sed 's/^/| /' conftest.$ac_ext >&5
10223
10224         ac_cv_lib_dl_dlopen=no
10225 fi
10226
10227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10228       conftest$ac_exeext conftest.$ac_ext
10229 LIBS=$ac_check_lib_save_LIBS
10230 fi
10231 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10232 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10233 if test $ac_cv_lib_dl_dlopen = yes; then
10234   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10235 else
10236   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10237 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10239   echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241   ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lsvld  $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h.  */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h.  */
10249
10250 /* Override any GCC internal prototype to avoid an error.
10251    Use char because int might match the return type of a GCC
10252    builtin and then its argument prototype would still apply.  */
10253 #ifdef __cplusplus
10254 extern "C"
10255 #endif
10256 char dlopen ();
10257 int
10258 main ()
10259 {
10260 return dlopen ();
10261   ;
10262   return 0;
10263 }
10264 _ACEOF
10265 rm -f conftest.$ac_objext conftest$ac_exeext
10266 if { (ac_try="$ac_link"
10267 case "(($ac_try" in
10268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10269   *) ac_try_echo=$ac_try;;
10270 esac
10271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10272   (eval "$ac_link") 2>conftest.er1
10273   ac_status=$?
10274   grep -v '^ *+' conftest.er1 >conftest.err
10275   rm -f conftest.er1
10276   cat conftest.err >&5
10277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278   (exit $ac_status); } && {
10279          test -z "$ac_c_werror_flag" ||
10280          test ! -s conftest.err
10281        } && test -s conftest$ac_exeext &&
10282        $as_test_x conftest$ac_exeext; then
10283   ac_cv_lib_svld_dlopen=yes
10284 else
10285   echo "$as_me: failed program was:" >&5
10286 sed 's/^/| /' conftest.$ac_ext >&5
10287
10288         ac_cv_lib_svld_dlopen=no
10289 fi
10290
10291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10292       conftest$ac_exeext conftest.$ac_ext
10293 LIBS=$ac_check_lib_save_LIBS
10294 fi
10295 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10296 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10297 if test $ac_cv_lib_svld_dlopen = yes; then
10298   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10299 else
10300   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10301 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10302 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10303   echo $ECHO_N "(cached) $ECHO_C" >&6
10304 else
10305   ac_check_lib_save_LIBS=$LIBS
10306 LIBS="-ldld  $LIBS"
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h.  */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h.  */
10313
10314 /* Override any GCC internal prototype to avoid an error.
10315    Use char because int might match the return type of a GCC
10316    builtin and then its argument prototype would still apply.  */
10317 #ifdef __cplusplus
10318 extern "C"
10319 #endif
10320 char dld_link ();
10321 int
10322 main ()
10323 {
10324 return dld_link ();
10325   ;
10326   return 0;
10327 }
10328 _ACEOF
10329 rm -f conftest.$ac_objext conftest$ac_exeext
10330 if { (ac_try="$ac_link"
10331 case "(($ac_try" in
10332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10333   *) ac_try_echo=$ac_try;;
10334 esac
10335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10336   (eval "$ac_link") 2>conftest.er1
10337   ac_status=$?
10338   grep -v '^ *+' conftest.er1 >conftest.err
10339   rm -f conftest.er1
10340   cat conftest.err >&5
10341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10342   (exit $ac_status); } && {
10343          test -z "$ac_c_werror_flag" ||
10344          test ! -s conftest.err
10345        } && test -s conftest$ac_exeext &&
10346        $as_test_x conftest$ac_exeext; then
10347   ac_cv_lib_dld_dld_link=yes
10348 else
10349   echo "$as_me: failed program was:" >&5
10350 sed 's/^/| /' conftest.$ac_ext >&5
10351
10352         ac_cv_lib_dld_dld_link=no
10353 fi
10354
10355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10356       conftest$ac_exeext conftest.$ac_ext
10357 LIBS=$ac_check_lib_save_LIBS
10358 fi
10359 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10360 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10361 if test $ac_cv_lib_dld_dld_link = yes; then
10362   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10363 fi
10364
10365
10366 fi
10367
10368
10369 fi
10370
10371
10372 fi
10373
10374
10375 fi
10376
10377
10378 fi
10379
10380     ;;
10381   esac
10382
10383   if test "x$lt_cv_dlopen" != xno; then
10384     enable_dlopen=yes
10385   else
10386     enable_dlopen=no
10387   fi
10388
10389   case $lt_cv_dlopen in
10390   dlopen)
10391     save_CPPFLAGS="$CPPFLAGS"
10392     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10393
10394     save_LDFLAGS="$LDFLAGS"
10395     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10396
10397     save_LIBS="$LIBS"
10398     LIBS="$lt_cv_dlopen_libs $LIBS"
10399
10400     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10401 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10402 if test "${lt_cv_dlopen_self+set}" = set; then
10403   echo $ECHO_N "(cached) $ECHO_C" >&6
10404 else
10405           if test "$cross_compiling" = yes; then :
10406   lt_cv_dlopen_self=cross
10407 else
10408   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10409   lt_status=$lt_dlunknown
10410   cat > conftest.$ac_ext <<EOF
10411 #line 10411 "configure"
10412 #include "confdefs.h"
10413
10414 #if HAVE_DLFCN_H
10415 #include <dlfcn.h>
10416 #endif
10417
10418 #include <stdio.h>
10419
10420 #ifdef RTLD_GLOBAL
10421 #  define LT_DLGLOBAL           RTLD_GLOBAL
10422 #else
10423 #  ifdef DL_GLOBAL
10424 #    define LT_DLGLOBAL         DL_GLOBAL
10425 #  else
10426 #    define LT_DLGLOBAL         0
10427 #  endif
10428 #endif
10429
10430 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10431    find out it does not work in some platform. */
10432 #ifndef LT_DLLAZY_OR_NOW
10433 #  ifdef RTLD_LAZY
10434 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10435 #  else
10436 #    ifdef DL_LAZY
10437 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10438 #    else
10439 #      ifdef RTLD_NOW
10440 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10441 #      else
10442 #        ifdef DL_NOW
10443 #          define LT_DLLAZY_OR_NOW      DL_NOW
10444 #        else
10445 #          define LT_DLLAZY_OR_NOW      0
10446 #        endif
10447 #      endif
10448 #    endif
10449 #  endif
10450 #endif
10451
10452 #ifdef __cplusplus
10453 extern "C" void exit (int);
10454 #endif
10455
10456 void fnord() { int i=42;}
10457 int main ()
10458 {
10459   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10460   int status = $lt_dlunknown;
10461
10462   if (self)
10463     {
10464       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10465       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10466       /* dlclose (self); */
10467     }
10468   else
10469     puts (dlerror ());
10470
10471     exit (status);
10472 }
10473 EOF
10474   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10475   (eval $ac_link) 2>&5
10476   ac_status=$?
10477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10478   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10479     (./conftest; exit; ) >&5 2>/dev/null
10480     lt_status=$?
10481     case x$lt_status in
10482       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10483       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10484       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10485     esac
10486   else :
10487     # compilation failed
10488     lt_cv_dlopen_self=no
10489   fi
10490 fi
10491 rm -fr conftest*
10492
10493
10494 fi
10495 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10496 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10497
10498     if test "x$lt_cv_dlopen_self" = xyes; then
10499       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10500       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10501 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10502 if test "${lt_cv_dlopen_self_static+set}" = set; then
10503   echo $ECHO_N "(cached) $ECHO_C" >&6
10504 else
10505           if test "$cross_compiling" = yes; then :
10506   lt_cv_dlopen_self_static=cross
10507 else
10508   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10509   lt_status=$lt_dlunknown
10510   cat > conftest.$ac_ext <<EOF
10511 #line 10511 "configure"
10512 #include "confdefs.h"
10513
10514 #if HAVE_DLFCN_H
10515 #include <dlfcn.h>
10516 #endif
10517
10518 #include <stdio.h>
10519
10520 #ifdef RTLD_GLOBAL
10521 #  define LT_DLGLOBAL           RTLD_GLOBAL
10522 #else
10523 #  ifdef DL_GLOBAL
10524 #    define LT_DLGLOBAL         DL_GLOBAL
10525 #  else
10526 #    define LT_DLGLOBAL         0
10527 #  endif
10528 #endif
10529
10530 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10531    find out it does not work in some platform. */
10532 #ifndef LT_DLLAZY_OR_NOW
10533 #  ifdef RTLD_LAZY
10534 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10535 #  else
10536 #    ifdef DL_LAZY
10537 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10538 #    else
10539 #      ifdef RTLD_NOW
10540 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10541 #      else
10542 #        ifdef DL_NOW
10543 #          define LT_DLLAZY_OR_NOW      DL_NOW
10544 #        else
10545 #          define LT_DLLAZY_OR_NOW      0
10546 #        endif
10547 #      endif
10548 #    endif
10549 #  endif
10550 #endif
10551
10552 #ifdef __cplusplus
10553 extern "C" void exit (int);
10554 #endif
10555
10556 void fnord() { int i=42;}
10557 int main ()
10558 {
10559   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10560   int status = $lt_dlunknown;
10561
10562   if (self)
10563     {
10564       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10565       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10566       /* dlclose (self); */
10567     }
10568   else
10569     puts (dlerror ());
10570
10571     exit (status);
10572 }
10573 EOF
10574   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10575   (eval $ac_link) 2>&5
10576   ac_status=$?
10577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10579     (./conftest; exit; ) >&5 2>/dev/null
10580     lt_status=$?
10581     case x$lt_status in
10582       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10583       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10584       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10585     esac
10586   else :
10587     # compilation failed
10588     lt_cv_dlopen_self_static=no
10589   fi
10590 fi
10591 rm -fr conftest*
10592
10593
10594 fi
10595 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10596 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10597     fi
10598
10599     CPPFLAGS="$save_CPPFLAGS"
10600     LDFLAGS="$save_LDFLAGS"
10601     LIBS="$save_LIBS"
10602     ;;
10603   esac
10604
10605   case $lt_cv_dlopen_self in
10606   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10607   *) enable_dlopen_self=unknown ;;
10608   esac
10609
10610   case $lt_cv_dlopen_self_static in
10611   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10612   *) enable_dlopen_self_static=unknown ;;
10613   esac
10614 fi
10615
10616
10617 # Report which library types will actually be built
10618 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10619 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10620 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10621 echo "${ECHO_T}$can_build_shared" >&6; }
10622
10623 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10624 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10625 test "$can_build_shared" = "no" && enable_shared=no
10626
10627 # On AIX, shared libraries and static libraries use the same namespace, and
10628 # are all built from PIC.
10629 case $host_os in
10630 aix3*)
10631   test "$enable_shared" = yes && enable_static=no
10632   if test -n "$RANLIB"; then
10633     archive_cmds="$archive_cmds~\$RANLIB \$lib"
10634     postinstall_cmds='$RANLIB $lib'
10635   fi
10636   ;;
10637
10638 aix4* | aix5*)
10639   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10640     test "$enable_shared" = yes && enable_static=no
10641   fi
10642     ;;
10643 esac
10644 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10645 echo "${ECHO_T}$enable_shared" >&6; }
10646
10647 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10648 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10649 # Make sure either enable_shared or enable_static is yes.
10650 test "$enable_shared" = yes || enable_static=yes
10651 { echo "$as_me:$LINENO: result: $enable_static" >&5
10652 echo "${ECHO_T}$enable_static" >&6; }
10653
10654 # The else clause should only fire when bootstrapping the
10655 # libtool distribution, otherwise you forgot to ship ltmain.sh
10656 # with your package, and you will get complaints that there are
10657 # no rules to generate ltmain.sh.
10658 if test -f "$ltmain"; then
10659   # See if we are running on zsh, and set the options which allow our commands through
10660   # without removal of \ escapes.
10661   if test -n "${ZSH_VERSION+set}" ; then
10662     setopt NO_GLOB_SUBST
10663   fi
10664   # Now quote all the things that may contain metacharacters while being
10665   # careful not to overquote the AC_SUBSTed values.  We take copies of the
10666   # variables and quote the copies for generation of the libtool script.
10667   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10668     SED SHELL STRIP \
10669     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10670     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10671     deplibs_check_method reload_flag reload_cmds need_locks \
10672     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10673     lt_cv_sys_global_symbol_to_c_name_address \
10674     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10675     old_postinstall_cmds old_postuninstall_cmds \
10676     compiler \
10677     CC \
10678     LD \
10679     lt_prog_compiler_wl \
10680     lt_prog_compiler_pic \
10681     lt_prog_compiler_static \
10682     lt_prog_compiler_no_builtin_flag \
10683     export_dynamic_flag_spec \
10684     thread_safe_flag_spec \
10685     whole_archive_flag_spec \
10686     enable_shared_with_static_runtimes \
10687     old_archive_cmds \
10688     old_archive_from_new_cmds \
10689     predep_objects \
10690     postdep_objects \
10691     predeps \
10692     postdeps \
10693     compiler_lib_search_path \
10694     archive_cmds \
10695     archive_expsym_cmds \
10696     postinstall_cmds \
10697     postuninstall_cmds \
10698     old_archive_from_expsyms_cmds \
10699     allow_undefined_flag \
10700     no_undefined_flag \
10701     export_symbols_cmds \
10702     hardcode_libdir_flag_spec \
10703     hardcode_libdir_flag_spec_ld \
10704     hardcode_libdir_separator \
10705     hardcode_automatic \
10706     module_cmds \
10707     module_expsym_cmds \
10708     lt_cv_prog_compiler_c_o \
10709     fix_srcfile_path \
10710     exclude_expsyms \
10711     include_expsyms; do
10712
10713     case $var in
10714     old_archive_cmds | \
10715     old_archive_from_new_cmds | \
10716     archive_cmds | \
10717     archive_expsym_cmds | \
10718     module_cmds | \
10719     module_expsym_cmds | \
10720     old_archive_from_expsyms_cmds | \
10721     export_symbols_cmds | \
10722     extract_expsyms_cmds | reload_cmds | finish_cmds | \
10723     postinstall_cmds | postuninstall_cmds | \
10724     old_postinstall_cmds | old_postuninstall_cmds | \
10725     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10726       # Double-quote double-evaled strings.
10727       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10728       ;;
10729     *)
10730       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10731       ;;
10732     esac
10733   done
10734
10735   case $lt_echo in
10736   *'\$0 --fallback-echo"')
10737     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10738     ;;
10739   esac
10740
10741 cfgfile="${ofile}T"
10742   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10743   $rm -f "$cfgfile"
10744   { echo "$as_me:$LINENO: creating $ofile" >&5
10745 echo "$as_me: creating $ofile" >&6;}
10746
10747   cat <<__EOF__ >> "$cfgfile"
10748 #! $SHELL
10749
10750 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10751 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10752 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10753 #
10754 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10755 # Free Software Foundation, Inc.
10756 #
10757 # This file is part of GNU Libtool:
10758 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10759 #
10760 # This program is free software; you can redistribute it and/or modify
10761 # it under the terms of the GNU General Public License as published by
10762 # the Free Software Foundation; either version 2 of the License, or
10763 # (at your option) any later version.
10764 #
10765 # This program is distributed in the hope that it will be useful, but
10766 # WITHOUT ANY WARRANTY; without even the implied warranty of
10767 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10768 # General Public License for more details.
10769 #
10770 # You should have received a copy of the GNU General Public License
10771 # along with this program; if not, write to the Free Software
10772 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10773 #
10774 # As a special exception to the GNU General Public License, if you
10775 # distribute this file as part of a program that contains a
10776 # configuration script generated by Autoconf, you may include it under
10777 # the same distribution terms that you use for the rest of that program.
10778
10779 # A sed program that does not truncate output.
10780 SED=$lt_SED
10781
10782 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10783 Xsed="$SED -e 1s/^X//"
10784
10785 # The HP-UX ksh and POSIX shell print the target directory to stdout
10786 # if CDPATH is set.
10787 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10788
10789 # The names of the tagged configurations supported by this script.
10790 available_tags=
10791
10792 # ### BEGIN LIBTOOL CONFIG
10793
10794 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10795
10796 # Shell to use when invoking shell scripts.
10797 SHELL=$lt_SHELL
10798
10799 # Whether or not to build shared libraries.
10800 build_libtool_libs=$enable_shared
10801
10802 # Whether or not to build static libraries.
10803 build_old_libs=$enable_static
10804
10805 # Whether or not to add -lc for building shared libraries.
10806 build_libtool_need_lc=$archive_cmds_need_lc
10807
10808 # Whether or not to disallow shared libs when runtime libs are static
10809 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10810
10811 # Whether or not to optimize for fast installation.
10812 fast_install=$enable_fast_install
10813
10814 # The host system.
10815 host_alias=$host_alias
10816 host=$host
10817 host_os=$host_os
10818
10819 # The build system.
10820 build_alias=$build_alias
10821 build=$build
10822 build_os=$build_os
10823
10824 # An echo program that does not interpret backslashes.
10825 echo=$lt_echo
10826
10827 # The archiver.
10828 AR=$lt_AR
10829 AR_FLAGS=$lt_AR_FLAGS
10830
10831 # A C compiler.
10832 LTCC=$lt_LTCC
10833
10834 # LTCC compiler flags.
10835 LTCFLAGS=$lt_LTCFLAGS
10836
10837 # A language-specific compiler.
10838 CC=$lt_compiler
10839
10840 # Is the compiler the GNU C compiler?
10841 with_gcc=$GCC
10842
10843 # An ERE matcher.
10844 EGREP=$lt_EGREP
10845
10846 # The linker used to build libraries.
10847 LD=$lt_LD
10848
10849 # Whether we need hard or soft links.
10850 LN_S=$lt_LN_S
10851
10852 # A BSD-compatible nm program.
10853 NM=$lt_NM
10854
10855 # A symbol stripping program
10856 STRIP=$lt_STRIP
10857
10858 # Used to examine libraries when file_magic_cmd begins "file"
10859 MAGIC_CMD=$MAGIC_CMD
10860
10861 # Used on cygwin: DLL creation program.
10862 DLLTOOL="$DLLTOOL"
10863
10864 # Used on cygwin: object dumper.
10865 OBJDUMP="$OBJDUMP"
10866
10867 # Used on cygwin: assembler.
10868 AS="$AS"
10869
10870 # The name of the directory that contains temporary libtool files.
10871 objdir=$objdir
10872
10873 # How to create reloadable object files.
10874 reload_flag=$lt_reload_flag
10875 reload_cmds=$lt_reload_cmds
10876
10877 # How to pass a linker flag through the compiler.
10878 wl=$lt_lt_prog_compiler_wl
10879
10880 # Object file suffix (normally "o").
10881 objext="$ac_objext"
10882
10883 # Old archive suffix (normally "a").
10884 libext="$libext"
10885
10886 # Shared library suffix (normally ".so").
10887 shrext_cmds='$shrext_cmds'
10888
10889 # Executable file suffix (normally "").
10890 exeext="$exeext"
10891
10892 # Additional compiler flags for building library objects.
10893 pic_flag=$lt_lt_prog_compiler_pic
10894 pic_mode=$pic_mode
10895
10896 # What is the maximum length of a command?
10897 max_cmd_len=$lt_cv_sys_max_cmd_len
10898
10899 # Does compiler simultaneously support -c and -o options?
10900 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10901
10902 # Must we lock files when doing compilation?
10903 need_locks=$lt_need_locks
10904
10905 # Do we need the lib prefix for modules?
10906 need_lib_prefix=$need_lib_prefix
10907
10908 # Do we need a version for libraries?
10909 need_version=$need_version
10910
10911 # Whether dlopen is supported.
10912 dlopen_support=$enable_dlopen
10913
10914 # Whether dlopen of programs is supported.
10915 dlopen_self=$enable_dlopen_self
10916
10917 # Whether dlopen of statically linked programs is supported.
10918 dlopen_self_static=$enable_dlopen_self_static
10919
10920 # Compiler flag to prevent dynamic linking.
10921 link_static_flag=$lt_lt_prog_compiler_static
10922
10923 # Compiler flag to turn off builtin functions.
10924 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10925
10926 # Compiler flag to allow reflexive dlopens.
10927 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10928
10929 # Compiler flag to generate shared objects directly from archives.
10930 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10931
10932 # Compiler flag to generate thread-safe objects.
10933 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10934
10935 # Library versioning type.
10936 version_type=$version_type
10937
10938 # Format of library name prefix.
10939 libname_spec=$lt_libname_spec
10940
10941 # List of archive names.  First name is the real one, the rest are links.
10942 # The last name is the one that the linker finds with -lNAME.
10943 library_names_spec=$lt_library_names_spec
10944
10945 # The coded name of the library, if different from the real name.
10946 soname_spec=$lt_soname_spec
10947
10948 # Commands used to build and install an old-style archive.
10949 RANLIB=$lt_RANLIB
10950 old_archive_cmds=$lt_old_archive_cmds
10951 old_postinstall_cmds=$lt_old_postinstall_cmds
10952 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10953
10954 # Create an old-style archive from a shared archive.
10955 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10956
10957 # Create a temporary old-style archive to link instead of a shared archive.
10958 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10959
10960 # Commands used to build and install a shared archive.
10961 archive_cmds=$lt_archive_cmds
10962 archive_expsym_cmds=$lt_archive_expsym_cmds
10963 postinstall_cmds=$lt_postinstall_cmds
10964 postuninstall_cmds=$lt_postuninstall_cmds
10965
10966 # Commands used to build a loadable module (assumed same as above if empty)
10967 module_cmds=$lt_module_cmds
10968 module_expsym_cmds=$lt_module_expsym_cmds
10969
10970 # Commands to strip libraries.
10971 old_striplib=$lt_old_striplib
10972 striplib=$lt_striplib
10973
10974 # Dependencies to place before the objects being linked to create a
10975 # shared library.
10976 predep_objects=$lt_predep_objects
10977
10978 # Dependencies to place after the objects being linked to create a
10979 # shared library.
10980 postdep_objects=$lt_postdep_objects
10981
10982 # Dependencies to place before the objects being linked to create a
10983 # shared library.
10984 predeps=$lt_predeps
10985
10986 # Dependencies to place after the objects being linked to create a
10987 # shared library.
10988 postdeps=$lt_postdeps
10989
10990 # The library search path used internally by the compiler when linking
10991 # a shared library.
10992 compiler_lib_search_path=$lt_compiler_lib_search_path
10993
10994 # Method to check whether dependent libraries are shared objects.
10995 deplibs_check_method=$lt_deplibs_check_method
10996
10997 # Command to use when deplibs_check_method == file_magic.
10998 file_magic_cmd=$lt_file_magic_cmd
10999
11000 # Flag that allows shared libraries with undefined symbols to be built.
11001 allow_undefined_flag=$lt_allow_undefined_flag
11002
11003 # Flag that forces no undefined symbols.
11004 no_undefined_flag=$lt_no_undefined_flag
11005
11006 # Commands used to finish a libtool library installation in a directory.
11007 finish_cmds=$lt_finish_cmds
11008
11009 # Same as above, but a single script fragment to be evaled but not shown.
11010 finish_eval=$lt_finish_eval
11011
11012 # Take the output of nm and produce a listing of raw symbols and C names.
11013 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11014
11015 # Transform the output of nm in a proper C declaration
11016 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11017
11018 # Transform the output of nm in a C name address pair
11019 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11020
11021 # This is the shared library runtime path variable.
11022 runpath_var=$runpath_var
11023
11024 # This is the shared library path variable.
11025 shlibpath_var=$shlibpath_var
11026
11027 # Is shlibpath searched before the hard-coded library search path?
11028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11029
11030 # How to hardcode a shared library path into an executable.
11031 hardcode_action=$hardcode_action
11032
11033 # Whether we should hardcode library paths into libraries.
11034 hardcode_into_libs=$hardcode_into_libs
11035
11036 # Flag to hardcode \$libdir into a binary during linking.
11037 # This must work even if \$libdir does not exist.
11038 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11039
11040 # If ld is used when linking, flag to hardcode \$libdir into
11041 # a binary during linking. This must work even if \$libdir does
11042 # not exist.
11043 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11044
11045 # Whether we need a single -rpath flag with a separated argument.
11046 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11047
11048 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11049 # resulting binary.
11050 hardcode_direct=$hardcode_direct
11051
11052 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11053 # resulting binary.
11054 hardcode_minus_L=$hardcode_minus_L
11055
11056 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11057 # the resulting binary.
11058 hardcode_shlibpath_var=$hardcode_shlibpath_var
11059
11060 # Set to yes if building a shared library automatically hardcodes DIR into the library
11061 # and all subsequent libraries and executables linked against it.
11062 hardcode_automatic=$hardcode_automatic
11063
11064 # Variables whose values should be saved in libtool wrapper scripts and
11065 # restored at relink time.
11066 variables_saved_for_relink="$variables_saved_for_relink"
11067
11068 # Whether libtool must link a program against all its dependency libraries.
11069 link_all_deplibs=$link_all_deplibs
11070
11071 # Compile-time system search path for libraries
11072 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11073
11074 # Run-time system search path for libraries
11075 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11076
11077 # Fix the shell variable \$srcfile for the compiler.
11078 fix_srcfile_path=$lt_fix_srcfile_path
11079
11080 # Set to yes if exported symbols are required.
11081 always_export_symbols=$always_export_symbols
11082
11083 # The commands to list exported symbols.
11084 export_symbols_cmds=$lt_export_symbols_cmds
11085
11086 # The commands to extract the exported symbol list from a shared archive.
11087 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11088
11089 # Symbols that should not be listed in the preloaded symbols.
11090 exclude_expsyms=$lt_exclude_expsyms
11091
11092 # Symbols that must always be exported.
11093 include_expsyms=$lt_include_expsyms
11094
11095 # ### END LIBTOOL CONFIG
11096
11097 __EOF__
11098
11099
11100   case $host_os in
11101   aix3*)
11102     cat <<\EOF >> "$cfgfile"
11103
11104 # AIX sometimes has problems with the GCC collect2 program.  For some
11105 # reason, if we set the COLLECT_NAMES environment variable, the problems
11106 # vanish in a puff of smoke.
11107 if test "X${COLLECT_NAMES+set}" != Xset; then
11108   COLLECT_NAMES=
11109   export COLLECT_NAMES
11110 fi
11111 EOF
11112     ;;
11113   esac
11114
11115   # We use sed instead of cat because bash on DJGPP gets confused if
11116   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11117   # text mode, it properly converts lines to CR/LF.  This bash problem
11118   # is reportedly fixed, but why not run on old versions too?
11119   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11120
11121   mv -f "$cfgfile" "$ofile" || \
11122     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11123   chmod +x "$ofile"
11124
11125 else
11126   # If there is no Makefile yet, we rely on a make rule to execute
11127   # `config.status --recheck' to rerun these tests and create the
11128   # libtool script then.
11129   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11130   if test -f "$ltmain_in"; then
11131     test -f Makefile && make "$ltmain"
11132   fi
11133 fi
11134
11135
11136 ac_ext=c
11137 ac_cpp='$CPP $CPPFLAGS'
11138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11141
11142 CC="$lt_save_CC"
11143
11144
11145
11146 # This can be used to rebuild libtool when needed
11147 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11148
11149 # Always use our own libtool.
11150 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11151
11152 # Prevent multiple expansion
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163 if test "$enable_shared" = "no"; then
11164     with_noexec=no
11165 else
11166     eval _shrext="$shrext_cmds"
11167 fi
11168 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11169 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11170
11171 # Check whether --with-noexec was given.
11172 if test "${with_noexec+set}" = set; then
11173   withval=$with_noexec; case $with_noexec in
11174     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11175                 ;;
11176     no)         ;;
11177     *)          ;;
11178 esac
11179 else
11180   with_noexec="$libexecdir/sudo_noexec$_shrext"
11181 fi
11182
11183 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11184 echo "${ECHO_T}$with_noexec" >&6; }
11185 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11186
11187 if test "$with_devel" = "yes" -a -n "$GCC"; then
11188     CFLAGS="${CFLAGS} -Wall"
11189 fi
11190
11191 # Extract the first word of "uname", so it can be a program name with args.
11192 set dummy uname; ac_word=$2
11193 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11195 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11196   echo $ECHO_N "(cached) $ECHO_C" >&6
11197 else
11198   if test -n "$UNAMEPROG"; then
11199   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11200 else
11201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11202 for as_dir in $PATH
11203 do
11204   IFS=$as_save_IFS
11205   test -z "$as_dir" && as_dir=.
11206   for ac_exec_ext in '' $ac_executable_extensions; do
11207   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11208     ac_cv_prog_UNAMEPROG="uname"
11209     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11210     break 2
11211   fi
11212 done
11213 done
11214 IFS=$as_save_IFS
11215
11216 fi
11217 fi
11218 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11219 if test -n "$UNAMEPROG"; then
11220   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11221 echo "${ECHO_T}$UNAMEPROG" >&6; }
11222 else
11223   { echo "$as_me:$LINENO: result: no" >&5
11224 echo "${ECHO_T}no" >&6; }
11225 fi
11226
11227
11228 # Extract the first word of "tr", so it can be a program name with args.
11229 set dummy tr; ac_word=$2
11230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11232 if test "${ac_cv_prog_TRPROG+set}" = set; then
11233   echo $ECHO_N "(cached) $ECHO_C" >&6
11234 else
11235   if test -n "$TRPROG"; then
11236   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11237 else
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241   IFS=$as_save_IFS
11242   test -z "$as_dir" && as_dir=.
11243   for ac_exec_ext in '' $ac_executable_extensions; do
11244   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245     ac_cv_prog_TRPROG="tr"
11246     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247     break 2
11248   fi
11249 done
11250 done
11251 IFS=$as_save_IFS
11252
11253 fi
11254 fi
11255 TRPROG=$ac_cv_prog_TRPROG
11256 if test -n "$TRPROG"; then
11257   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11258 echo "${ECHO_T}$TRPROG" >&6; }
11259 else
11260   { echo "$as_me:$LINENO: result: no" >&5
11261 echo "${ECHO_T}no" >&6; }
11262 fi
11263
11264
11265 # Extract the first word of "nroff", so it can be a program name with args.
11266 set dummy nroff; ac_word=$2
11267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11269 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11270   echo $ECHO_N "(cached) $ECHO_C" >&6
11271 else
11272   if test -n "$NROFFPROG"; then
11273   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11274 else
11275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11276 for as_dir in $PATH
11277 do
11278   IFS=$as_save_IFS
11279   test -z "$as_dir" && as_dir=.
11280   for ac_exec_ext in '' $ac_executable_extensions; do
11281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11282     ac_cv_prog_NROFFPROG="nroff"
11283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11284     break 2
11285   fi
11286 done
11287 done
11288 IFS=$as_save_IFS
11289
11290 fi
11291 fi
11292 NROFFPROG=$ac_cv_prog_NROFFPROG
11293 if test -n "$NROFFPROG"; then
11294   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11295 echo "${ECHO_T}$NROFFPROG" >&6; }
11296 else
11297   { echo "$as_me:$LINENO: result: no" >&5
11298 echo "${ECHO_T}no" >&6; }
11299 fi
11300
11301
11302 if test -z "$NROFFPROG"; then
11303     MANTYPE="cat"
11304     mansrcdir='$(srcdir)'
11305 fi
11306
11307 if test -n "$sudo_cv_prev_host"; then
11308     if test "$sudo_cv_prev_host" != "$host"; then
11309         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11310 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11311    { (exit 1); exit 1; }; }
11312     else
11313         { echo "$as_me:$LINENO: checking previous host type" >&5
11314 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11315         if test "${sudo_cv_prev_host+set}" = set; then
11316   echo $ECHO_N "(cached) $ECHO_C" >&6
11317 else
11318   sudo_cv_prev_host="$host"
11319 fi
11320
11321         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11322 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11323     fi
11324 else
11325     # this will produce no output since there is no cached value
11326     if test "${sudo_cv_prev_host+set}" = set; then
11327   echo $ECHO_N "(cached) $ECHO_C" >&6
11328 else
11329   sudo_cv_prev_host="$host"
11330 fi
11331
11332 fi
11333
11334 if test -n "$host_os"; then
11335     OS=`echo $host_os | sed 's/[0-9].*//'`
11336     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11337     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11338 else
11339     OS="unknown"
11340     OSREV=0
11341     OSMAJOR=0
11342 fi
11343
11344 case "$host" in
11345     *-*-sunos4*)
11346                 # getcwd(3) opens a pipe to getpwd(1)!?!
11347                 BROKEN_GETCWD=1
11348
11349                 # system headers lack prototypes but gcc helps...
11350                 if test -n "$GCC"; then
11351                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11352                 fi
11353
11354                 shadow_funcs="getpwanam issecure"
11355                 ;;
11356     *-*-solaris2*)
11357                 # To get the crypt(3) prototype (so we pass -Wall)
11358                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11359                 # AFS support needs -lucb
11360                 if test "$with_AFS" = "yes"; then
11361                     AFS_LIBS="-lc -lucb"
11362                 fi
11363                 : ${mansectsu='1m'}
11364                 : ${mansectform='4'}
11365                 : ${with_rpath='yes'}
11366                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11367                 ;;
11368     *-*-aix*)
11369                 # To get all prototypes (so we pass -Wall)
11370                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11371                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11372                 if test X"$with_blibpath" != X"no"; then
11373                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11374 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11375                     O_LDFLAGS="$LDFLAGS"
11376                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11377                     cat >conftest.$ac_ext <<_ACEOF
11378 /* confdefs.h.  */
11379 _ACEOF
11380 cat confdefs.h >>conftest.$ac_ext
11381 cat >>conftest.$ac_ext <<_ACEOF
11382 /* end confdefs.h.  */
11383
11384 int
11385 main ()
11386 {
11387
11388   ;
11389   return 0;
11390 }
11391 _ACEOF
11392 rm -f conftest.$ac_objext conftest$ac_exeext
11393 if { (ac_try="$ac_link"
11394 case "(($ac_try" in
11395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11396   *) ac_try_echo=$ac_try;;
11397 esac
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399   (eval "$ac_link") 2>conftest.er1
11400   ac_status=$?
11401   grep -v '^ *+' conftest.er1 >conftest.err
11402   rm -f conftest.er1
11403   cat conftest.err >&5
11404   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405   (exit $ac_status); } && {
11406          test -z "$ac_c_werror_flag" ||
11407          test ! -s conftest.err
11408        } && test -s conftest$ac_exeext &&
11409        $as_test_x conftest$ac_exeext; then
11410
11411                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11412                             blibpath="$with_blibpath"
11413                         elif test -n "$GCC"; then
11414                             blibpath="/usr/lib:/lib:/usr/local/lib"
11415                         else
11416                             blibpath="/usr/lib:/lib"
11417                         fi
11418                         { echo "$as_me:$LINENO: result: yes" >&5
11419 echo "${ECHO_T}yes" >&6; }
11420
11421 else
11422   echo "$as_me: failed program was:" >&5
11423 sed 's/^/| /' conftest.$ac_ext >&5
11424
11425         { echo "$as_me:$LINENO: result: no" >&5
11426 echo "${ECHO_T}no" >&6; }
11427 fi
11428
11429 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11430       conftest$ac_exeext conftest.$ac_ext
11431                 fi
11432                 LDFLAGS="$O_LDFLAGS"
11433
11434                 # Use authenticate(3) as the default authentication method
11435                 if test X"$with_aixauth" = X""; then
11436
11437 for ac_func in authenticate
11438 do
11439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11443   echo $ECHO_N "(cached) $ECHO_C" >&6
11444 else
11445   cat >conftest.$ac_ext <<_ACEOF
11446 /* confdefs.h.  */
11447 _ACEOF
11448 cat confdefs.h >>conftest.$ac_ext
11449 cat >>conftest.$ac_ext <<_ACEOF
11450 /* end confdefs.h.  */
11451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11453 #define $ac_func innocuous_$ac_func
11454
11455 /* System header to define __stub macros and hopefully few prototypes,
11456     which can conflict with char $ac_func (); below.
11457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11458     <limits.h> exists even on freestanding compilers.  */
11459
11460 #ifdef __STDC__
11461 # include <limits.h>
11462 #else
11463 # include <assert.h>
11464 #endif
11465
11466 #undef $ac_func
11467
11468 /* Override any GCC internal prototype to avoid an error.
11469    Use char because int might match the return type of a GCC
11470    builtin and then its argument prototype would still apply.  */
11471 #ifdef __cplusplus
11472 extern "C"
11473 #endif
11474 char $ac_func ();
11475 /* The GNU C library defines this for functions which it implements
11476     to always fail with ENOSYS.  Some functions are actually named
11477     something starting with __ and the normal name is an alias.  */
11478 #if defined __stub_$ac_func || defined __stub___$ac_func
11479 choke me
11480 #endif
11481
11482 int
11483 main ()
11484 {
11485 return $ac_func ();
11486   ;
11487   return 0;
11488 }
11489 _ACEOF
11490 rm -f conftest.$ac_objext conftest$ac_exeext
11491 if { (ac_try="$ac_link"
11492 case "(($ac_try" in
11493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11494   *) ac_try_echo=$ac_try;;
11495 esac
11496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11497   (eval "$ac_link") 2>conftest.er1
11498   ac_status=$?
11499   grep -v '^ *+' conftest.er1 >conftest.err
11500   rm -f conftest.er1
11501   cat conftest.err >&5
11502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503   (exit $ac_status); } && {
11504          test -z "$ac_c_werror_flag" ||
11505          test ! -s conftest.err
11506        } && test -s conftest$ac_exeext &&
11507        $as_test_x conftest$ac_exeext; then
11508   eval "$as_ac_var=yes"
11509 else
11510   echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.$ac_ext >&5
11512
11513         eval "$as_ac_var=no"
11514 fi
11515
11516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11517       conftest$ac_exeext conftest.$ac_ext
11518 fi
11519 ac_res=`eval echo '${'$as_ac_var'}'`
11520                { echo "$as_me:$LINENO: result: $ac_res" >&5
11521 echo "${ECHO_T}$ac_res" >&6; }
11522 if test `eval echo '${'$as_ac_var'}'` = yes; then
11523   cat >>confdefs.h <<_ACEOF
11524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11525 _ACEOF
11526  AUTH_EXCL_DEF="AIX_AUTH"
11527 fi
11528 done
11529
11530                 fi
11531                 ;;
11532     *-*-hiuxmpp*)
11533                 : ${mansectsu='1m'}
11534                 : ${mansectform='4'}
11535                 ;;
11536     *-*-hpux*)
11537                 # AFS support needs -lBSD
11538                 if test "$with_AFS" = "yes"; then
11539                     AFS_LIBS="-lc -lBSD"
11540                 fi
11541                 : ${mansectsu='1m'}
11542                 : ${mansectform='4'}
11543
11544                 case "$host" in
11545                         *-*-hpux1-8.*)
11546                             cat >>confdefs.h <<\_ACEOF
11547 #define BROKEN_SYSLOG 1
11548 _ACEOF
11549
11550
11551                             # Not sure if setuid binaries are safe in < 9.x
11552                             if test -n "$GCC"; then
11553                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
11554                             else
11555                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
11556                             fi
11557                         ;;
11558                         *-*-hpux9.*)
11559                             cat >>confdefs.h <<\_ACEOF
11560 #define BROKEN_SYSLOG 1
11561 _ACEOF
11562
11563
11564                             shadow_funcs="getspwuid"
11565
11566                             # DCE support (requires ANSI C compiler)
11567                             if test "$with_DCE" = "yes"; then
11568                                 # order of libs in 9.X is important. -lc_r must be last
11569                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
11570                                 LIBS="${LIBS} -ldce -lM -lc_r"
11571                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
11572                             fi
11573                         ;;
11574                         *-*-hpux10.*)
11575                             shadow_funcs="getprpwnam iscomsec"
11576                             shadow_libs="-lsec"
11577                         ;;
11578                         *)
11579                             shadow_funcs="getspnam iscomsec"
11580                             shadow_libs="-lsec"
11581                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11582                         ;;
11583                 esac
11584                 ;;
11585     *-dec-osf*)
11586                 # ignore envariables wrt dynamic lib path
11587                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
11588
11589                 : ${CHECKSIA='true'}
11590                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
11591 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
11592                 # Check whether --enable-sia was given.
11593 if test "${enable_sia+set}" = set; then
11594   enableval=$enable_sia;  case "$enableval" in
11595                     yes)        { echo "$as_me:$LINENO: result: no" >&5
11596 echo "${ECHO_T}no" >&6; }
11597                                 CHECKSIA=true
11598                                 ;;
11599                     no)         { echo "$as_me:$LINENO: result: yes" >&5
11600 echo "${ECHO_T}yes" >&6; }
11601                                 CHECKSIA=false
11602                                 ;;
11603                     *)          { echo "$as_me:$LINENO: result: no" >&5
11604 echo "${ECHO_T}no" >&6; }
11605                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
11606 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
11607                                 ;;
11608                   esac
11609
11610 else
11611   { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11613 fi
11614
11615
11616                 shadow_funcs="getprpwnam dispcrypt"
11617                 # OSF/1 4.x and higher need -ldb too
11618                 if test $OSMAJOR -lt 4; then
11619                     shadow_libs="-lsecurity -laud -lm"
11620                 else
11621                     shadow_libs="-lsecurity -ldb -laud -lm"
11622                 fi
11623
11624                 # use SIA by default, if we have it
11625                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
11626
11627                 #
11628                 # Some versions of Digital Unix ship with a broken
11629                 # copy of prot.h, which we need for shadow passwords.
11630                 # XXX - make should remove this as part of distclean
11631                 #
11632                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
11633 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
11634                 cat >conftest.$ac_ext <<_ACEOF
11635 /* confdefs.h.  */
11636 _ACEOF
11637 cat confdefs.h >>conftest.$ac_ext
11638 cat >>conftest.$ac_ext <<_ACEOF
11639 /* end confdefs.h.  */
11640
11641 #include <sys/types.h>
11642 #include <sys/security.h>
11643 #include <prot.h>
11644
11645 int
11646 main ()
11647 {
11648 exit(0);
11649   ;
11650   return 0;
11651 }
11652 _ACEOF
11653 rm -f conftest.$ac_objext
11654 if { (ac_try="$ac_compile"
11655 case "(($ac_try" in
11656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657   *) ac_try_echo=$ac_try;;
11658 esac
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660   (eval "$ac_compile") 2>conftest.er1
11661   ac_status=$?
11662   grep -v '^ *+' conftest.er1 >conftest.err
11663   rm -f conftest.er1
11664   cat conftest.err >&5
11665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666   (exit $ac_status); } && {
11667          test -z "$ac_c_werror_flag" ||
11668          test ! -s conftest.err
11669        } && test -s conftest.$ac_objext; then
11670   { echo "$as_me:$LINENO: result: no" >&5
11671 echo "${ECHO_T}no" >&6; }
11672 else
11673   echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11675
11676         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
11677 echo "${ECHO_T}yes, fixing locally" >&6; }
11678                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
11679
11680 fi
11681
11682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683                 : ${mansectsu='8'}
11684                 : ${mansectform='4'}
11685                 ;;
11686     *-*-irix*)
11687                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
11688                 if test -z "$NROFFPROG"; then
11689                     MAN_POSTINSTALL='   /bin/rm -f $(mandirsu)/sudo.$(mansectsu).z $(mandirsu)/visudo.$(mansectsu).z $(mandirform)/sudoers.$(mansectform).z ; /usr/bin/pack $(mandirsu)/sudo.$(mansectsu) $(mandirsu)/visudo.$(mansectsu) $(mandirform)/sudoers.$(mansectform)'
11690                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11691                         if test -d /usr/share/catman/local; then
11692                             mandir="/usr/share/catman/local"
11693                         else
11694                             mandir="/usr/catman/local"
11695                         fi
11696                     fi
11697                 else
11698                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
11699                         if test -d "/usr/share/man/local"; then
11700                             mandir="/usr/share/man/local"
11701                         else
11702                             mandir="/usr/man/local"
11703                         fi
11704                     fi
11705                 fi
11706                 # IRIX <= 4 needs -lsun
11707                 if test "$OSMAJOR" -le 4; then
11708                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
11709 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
11710 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
11711   echo $ECHO_N "(cached) $ECHO_C" >&6
11712 else
11713   ac_check_lib_save_LIBS=$LIBS
11714 LIBS="-lsun  $LIBS"
11715 cat >conftest.$ac_ext <<_ACEOF
11716 /* confdefs.h.  */
11717 _ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h.  */
11721
11722 /* Override any GCC internal prototype to avoid an error.
11723    Use char because int might match the return type of a GCC
11724    builtin and then its argument prototype would still apply.  */
11725 #ifdef __cplusplus
11726 extern "C"
11727 #endif
11728 char getpwnam ();
11729 int
11730 main ()
11731 {
11732 return getpwnam ();
11733   ;
11734   return 0;
11735 }
11736 _ACEOF
11737 rm -f conftest.$ac_objext conftest$ac_exeext
11738 if { (ac_try="$ac_link"
11739 case "(($ac_try" in
11740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741   *) ac_try_echo=$ac_try;;
11742 esac
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744   (eval "$ac_link") 2>conftest.er1
11745   ac_status=$?
11746   grep -v '^ *+' conftest.er1 >conftest.err
11747   rm -f conftest.er1
11748   cat conftest.err >&5
11749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750   (exit $ac_status); } && {
11751          test -z "$ac_c_werror_flag" ||
11752          test ! -s conftest.err
11753        } && test -s conftest$ac_exeext &&
11754        $as_test_x conftest$ac_exeext; then
11755   ac_cv_lib_sun_getpwnam=yes
11756 else
11757   echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.$ac_ext >&5
11759
11760         ac_cv_lib_sun_getpwnam=no
11761 fi
11762
11763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11764       conftest$ac_exeext conftest.$ac_ext
11765 LIBS=$ac_check_lib_save_LIBS
11766 fi
11767 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
11768 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
11769 if test $ac_cv_lib_sun_getpwnam = yes; then
11770   LIBS="${LIBS} -lsun"
11771 fi
11772
11773                 fi
11774                 : ${mansectsu='1m'}
11775                 : ${mansectform='4'}
11776                 ;;
11777     *-*-linux*|*-*-k*bsd*-gnu)
11778                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
11779                 # Some Linux versions need to link with -lshadow
11780                 shadow_funcs="getspnam"
11781                 shadow_libs_optional="-lshadow"
11782                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11783                 ;;
11784     *-convex-bsd*)
11785                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
11786                 if test -z "$GCC"; then
11787                     CFLAGS="${CFLAGS} -D__STDC__"
11788                 fi
11789
11790                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
11791                 shadow_funcs="getprpwnam"
11792                 shadow_libs="-lprot"
11793                 ;;
11794     *-*-ultrix*)
11795                 OS="ultrix"
11796                 shadow_funcs="getauthuid"
11797                 shadow_libs="-lauth"
11798                 ;;
11799     *-*-riscos*)
11800                 LIBS="${LIBS} -lsun -lbsd"
11801                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
11802                 OSDEFS="${OSDEFS} -D_MIPS"
11803                 : ${mansectsu='1m'}
11804                 : ${mansectform='4'}
11805                 ;;
11806     *-*-isc*)
11807                 OSDEFS="${OSDEFS} -D_ISC"
11808                 LIB_CRYPT=1
11809                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
11810                 LIBS="${LIBS} -lcrypt"
11811
11812                 shadow_funcs="getspnam"
11813                 shadow_libs="-lsec"
11814
11815                 : ${mansectsu='1m'}
11816                 : ${mansectform='4'}
11817                 ;;
11818     *-*-sco*|*-sco-*)
11819                 shadow_funcs="getprpwnam"
11820                 shadow_libs="-lprot -lx"
11821                 : ${mansectsu='1m'}
11822                 : ${mansectform='4'}
11823                 ;;
11824     m88k-motorola-sysv*)
11825                 # motorolla's cc (a variant of gcc) does -O but not -O2
11826                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
11827                 : ${mansectsu='1m'}
11828                 : ${mansectform='4'}
11829                 ;;
11830     *-sequent-sysv*)
11831                 shadow_funcs="getspnam"
11832                 shadow_libs="-lsec"
11833                 : ${mansectsu='1m'}
11834                 : ${mansectform='4'}
11835                 : ${with_rpath='yes'}
11836                 ;;
11837     *-ncr-sysv4*|*-ncr-sysvr4*)
11838                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
11839 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
11840 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
11841   echo $ECHO_N "(cached) $ECHO_C" >&6
11842 else
11843   ac_check_lib_save_LIBS=$LIBS
11844 LIBS="-lc89  $LIBS"
11845 cat >conftest.$ac_ext <<_ACEOF
11846 /* confdefs.h.  */
11847 _ACEOF
11848 cat confdefs.h >>conftest.$ac_ext
11849 cat >>conftest.$ac_ext <<_ACEOF
11850 /* end confdefs.h.  */
11851
11852 /* Override any GCC internal prototype to avoid an error.
11853    Use char because int might match the return type of a GCC
11854    builtin and then its argument prototype would still apply.  */
11855 #ifdef __cplusplus
11856 extern "C"
11857 #endif
11858 char strcasecmp ();
11859 int
11860 main ()
11861 {
11862 return strcasecmp ();
11863   ;
11864   return 0;
11865 }
11866 _ACEOF
11867 rm -f conftest.$ac_objext conftest$ac_exeext
11868 if { (ac_try="$ac_link"
11869 case "(($ac_try" in
11870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11871   *) ac_try_echo=$ac_try;;
11872 esac
11873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11874   (eval "$ac_link") 2>conftest.er1
11875   ac_status=$?
11876   grep -v '^ *+' conftest.er1 >conftest.err
11877   rm -f conftest.er1
11878   cat conftest.err >&5
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); } && {
11881          test -z "$ac_c_werror_flag" ||
11882          test ! -s conftest.err
11883        } && test -s conftest$ac_exeext &&
11884        $as_test_x conftest$ac_exeext; then
11885   ac_cv_lib_c89_strcasecmp=yes
11886 else
11887   echo "$as_me: failed program was:" >&5
11888 sed 's/^/| /' conftest.$ac_ext >&5
11889
11890         ac_cv_lib_c89_strcasecmp=no
11891 fi
11892
11893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11894       conftest$ac_exeext conftest.$ac_ext
11895 LIBS=$ac_check_lib_save_LIBS
11896 fi
11897 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
11898 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
11899 if test $ac_cv_lib_c89_strcasecmp = yes; then
11900   cat >>confdefs.h <<\_ACEOF
11901 #define HAVE_STRCASECMP 1
11902 _ACEOF
11903  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
11904 fi
11905
11906                 : ${mansectsu='1m'}
11907                 : ${mansectform='4'}
11908                 : ${with_rpath='yes'}
11909                 ;;
11910     *-ccur-sysv4*|*-ccur-sysvr4*)
11911                 LIBS="${LIBS} -lgen"
11912                 SUDO_LIBS="${SUDO_LIBS} -lgen"
11913                 : ${mansectsu='1m'}
11914                 : ${mansectform='4'}
11915                 : ${with_rpath='yes'}
11916                 ;;
11917     *-*-bsdi*)
11918                 SKIP_SETREUID=yes
11919                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
11920                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
11921                     case "$OSMAJOR" in
11922                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
11923 echo "$as_me: using shlicc as CC" >&6;}
11924                                 ac_cv_prog_CC=shlicc
11925                                 CC="$ac_cv_prog_CC"
11926                                 ;;
11927                     esac
11928                 fi
11929                 # Check for newer BSD auth API (just check for >= 3.0?)
11930                 if test -z "$with_bsdauth"; then
11931
11932 for ac_func in auth_challenge
11933 do
11934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11938   echo $ECHO_N "(cached) $ECHO_C" >&6
11939 else
11940   cat >conftest.$ac_ext <<_ACEOF
11941 /* confdefs.h.  */
11942 _ACEOF
11943 cat confdefs.h >>conftest.$ac_ext
11944 cat >>conftest.$ac_ext <<_ACEOF
11945 /* end confdefs.h.  */
11946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11948 #define $ac_func innocuous_$ac_func
11949
11950 /* System header to define __stub macros and hopefully few prototypes,
11951     which can conflict with char $ac_func (); below.
11952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11953     <limits.h> exists even on freestanding compilers.  */
11954
11955 #ifdef __STDC__
11956 # include <limits.h>
11957 #else
11958 # include <assert.h>
11959 #endif
11960
11961 #undef $ac_func
11962
11963 /* Override any GCC internal prototype to avoid an error.
11964    Use char because int might match the return type of a GCC
11965    builtin and then its argument prototype would still apply.  */
11966 #ifdef __cplusplus
11967 extern "C"
11968 #endif
11969 char $ac_func ();
11970 /* The GNU C library defines this for functions which it implements
11971     to always fail with ENOSYS.  Some functions are actually named
11972     something starting with __ and the normal name is an alias.  */
11973 #if defined __stub_$ac_func || defined __stub___$ac_func
11974 choke me
11975 #endif
11976
11977 int
11978 main ()
11979 {
11980 return $ac_func ();
11981   ;
11982   return 0;
11983 }
11984 _ACEOF
11985 rm -f conftest.$ac_objext conftest$ac_exeext
11986 if { (ac_try="$ac_link"
11987 case "(($ac_try" in
11988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989   *) ac_try_echo=$ac_try;;
11990 esac
11991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992   (eval "$ac_link") 2>conftest.er1
11993   ac_status=$?
11994   grep -v '^ *+' conftest.er1 >conftest.err
11995   rm -f conftest.er1
11996   cat conftest.err >&5
11997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998   (exit $ac_status); } && {
11999          test -z "$ac_c_werror_flag" ||
12000          test ! -s conftest.err
12001        } && test -s conftest$ac_exeext &&
12002        $as_test_x conftest$ac_exeext; then
12003   eval "$as_ac_var=yes"
12004 else
12005   echo "$as_me: failed program was:" >&5
12006 sed 's/^/| /' conftest.$ac_ext >&5
12007
12008         eval "$as_ac_var=no"
12009 fi
12010
12011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12012       conftest$ac_exeext conftest.$ac_ext
12013 fi
12014 ac_res=`eval echo '${'$as_ac_var'}'`
12015                { echo "$as_me:$LINENO: result: $ac_res" >&5
12016 echo "${ECHO_T}$ac_res" >&6; }
12017 if test `eval echo '${'$as_ac_var'}'` = yes; then
12018   cat >>confdefs.h <<_ACEOF
12019 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12020 _ACEOF
12021  AUTH_EXCL_DEF="BSD_AUTH"
12022 fi
12023 done
12024
12025                 fi
12026                 ;;
12027     *-*-freebsd*)
12028                 # FreeBSD has a real setreuid(2) starting with 2.1 and
12029                 # backported to 2.0.5.  We just take 2.1 and above...
12030                 case "$OSREV" in
12031                 0.*|1.*|2.0*)
12032                     SKIP_SETREUID=yes
12033                     ;;
12034                 esac
12035                 if test "$with_skey" = "yes"; then
12036                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12037                 fi
12038                 CHECKSHADOW="false"
12039                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12040                 : ${with_logincap='maybe'}
12041                 ;;
12042     *-*-*openbsd*)
12043                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12044                 # we will use setreuid(2) instead.
12045                 SKIP_SETREUID=yes
12046                 CHECKSHADOW="false"
12047                 # OpenBSD >= 3.0 supports BSD auth
12048                 if test -z "$with_bsdauth"; then
12049                     case "$OSREV" in
12050                     0-2.*)
12051                         ;;
12052                     *)
12053                         AUTH_EXCL_DEF="BSD_AUTH"
12054                         ;;
12055                     esac
12056                 fi
12057                 : ${with_logincap='maybe'}
12058                 ;;
12059     *-*-*netbsd*)
12060                 # NetBSD has a real setreuid(2) starting with 1.3.2
12061                 case "$OSREV" in
12062                 0.9*|1.012*|1.3|1.3.1)
12063                     SKIP_SETREUID=yes
12064                     ;;
12065                 esac
12066                 CHECKSHADOW="false"
12067                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12068                 : ${with_logincap='maybe'}
12069                 ;;
12070     *-*-dragonfly*)
12071                 if test "$with_skey" = "yes"; then
12072                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12073                 fi
12074                 CHECKSHADOW="false"
12075                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12076                 : ${with_logincap='yes'}
12077                 ;;
12078     *-*-*bsd*)
12079                 CHECKSHADOW="false"
12080                 ;;
12081     *-*-darwin*)
12082                 SKIP_SETREUID=yes
12083                 CHECKSHADOW="false"
12084                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12085                 : ${with_logincap='yes'}
12086                 ;;
12087     *-*-nextstep*)
12088                 # lockf() on is broken on the NeXT -- use flock instead
12089                 ac_cv_func_lockf=no
12090                 ac_cv_func_flock=yes
12091                 ;;
12092     *-*-*sysv4*)
12093                 : ${mansectsu='1m'}
12094                 : ${mansectform='4'}
12095                 : ${with_rpath='yes'}
12096                 ;;
12097     *-*-sysv*)
12098                 : ${mansectsu='1m'}
12099                 : ${mansectform='4'}
12100                 ;;
12101     *-gnu*)
12102                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12103                 ;;
12104 esac
12105
12106 AUTH_REG=${AUTH_REG# }
12107 AUTH_EXCL=${AUTH_EXCL# }
12108 if test -n "$AUTH_EXCL"; then
12109     set -- $AUTH_EXCL
12110     if test $# != 1; then
12111         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12112 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12113    { (exit 1); exit 1; }; }
12114     fi
12115     if test -n "$AUTH_REG"; then
12116         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12117 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12118    { (exit 1); exit 1; }; }
12119     fi
12120 fi
12121 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12122     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12123 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12124    { (exit 1); exit 1; }; }
12125 fi
12126
12127 : ${mansectsu='8'}
12128 : ${mansectform='5'}
12129
12130 if test -n "$with_libpath"; then
12131     for i in ${with_libpath}; do
12132
12133     if test X"$with_rpath" = X"yes"; then
12134         LDFLAGS="${LDFLAGS} -L$i -R$i"
12135     else
12136         LDFLAGS="${LDFLAGS} -L$i"
12137     fi
12138     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12139         blibpath_add="${blibpath_add}:$i"
12140     fi
12141
12142     done
12143 fi
12144 if test -n "$with_libraries"; then
12145     for i in ${with_libraries}; do
12146         case $i in
12147             -l*)        ;;
12148             *.a)        ;;
12149             *.o)        ;;
12150             *)  i="-l${i}";;
12151         esac
12152         LIBS="${LIBS} ${i}"
12153     done
12154 fi
12155
12156 if test $ac_cv_c_compiler_gnu = yes; then
12157     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12158 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12159 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12160   echo $ECHO_N "(cached) $ECHO_C" >&6
12161 else
12162     ac_pattern="Autoconf.*'x'"
12163   cat >conftest.$ac_ext <<_ACEOF
12164 /* confdefs.h.  */
12165 _ACEOF
12166 cat confdefs.h >>conftest.$ac_ext
12167 cat >>conftest.$ac_ext <<_ACEOF
12168 /* end confdefs.h.  */
12169 #include <sgtty.h>
12170 Autoconf TIOCGETP
12171 _ACEOF
12172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12173   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12174   ac_cv_prog_gcc_traditional=yes
12175 else
12176   ac_cv_prog_gcc_traditional=no
12177 fi
12178 rm -f conftest*
12179
12180
12181   if test $ac_cv_prog_gcc_traditional = no; then
12182     cat >conftest.$ac_ext <<_ACEOF
12183 /* confdefs.h.  */
12184 _ACEOF
12185 cat confdefs.h >>conftest.$ac_ext
12186 cat >>conftest.$ac_ext <<_ACEOF
12187 /* end confdefs.h.  */
12188 #include <termio.h>
12189 Autoconf TCGETA
12190 _ACEOF
12191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12192   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12193   ac_cv_prog_gcc_traditional=yes
12194 fi
12195 rm -f conftest*
12196
12197   fi
12198 fi
12199 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12200 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12201   if test $ac_cv_prog_gcc_traditional = yes; then
12202     CC="$CC -traditional"
12203   fi
12204 fi
12205
12206 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12207 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12208 if test "${ac_cv_c_const+set}" = set; then
12209   echo $ECHO_N "(cached) $ECHO_C" >&6
12210 else
12211   cat >conftest.$ac_ext <<_ACEOF
12212 /* confdefs.h.  */
12213 _ACEOF
12214 cat confdefs.h >>conftest.$ac_ext
12215 cat >>conftest.$ac_ext <<_ACEOF
12216 /* end confdefs.h.  */
12217
12218 int
12219 main ()
12220 {
12221 /* FIXME: Include the comments suggested by Paul. */
12222 #ifndef __cplusplus
12223   /* Ultrix mips cc rejects this.  */
12224   typedef int charset[2];
12225   const charset cs;
12226   /* SunOS 4.1.1 cc rejects this.  */
12227   char const *const *pcpcc;
12228   char **ppc;
12229   /* NEC SVR4.0.2 mips cc rejects this.  */
12230   struct point {int x, y;};
12231   static struct point const zero = {0,0};
12232   /* AIX XL C 1.02.0.0 rejects this.
12233      It does not let you subtract one const X* pointer from another in
12234      an arm of an if-expression whose if-part is not a constant
12235      expression */
12236   const char *g = "string";
12237   pcpcc = &g + (g ? g-g : 0);
12238   /* HPUX 7.0 cc rejects these. */
12239   ++pcpcc;
12240   ppc = (char**) pcpcc;
12241   pcpcc = (char const *const *) ppc;
12242   { /* SCO 3.2v4 cc rejects this.  */
12243     char *t;
12244     char const *s = 0 ? (char *) 0 : (char const *) 0;
12245
12246     *t++ = 0;
12247     if (s) return 0;
12248   }
12249   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12250     int x[] = {25, 17};
12251     const int *foo = &x[0];
12252     ++foo;
12253   }
12254   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12255     typedef const int *iptr;
12256     iptr p = 0;
12257     ++p;
12258   }
12259   { /* AIX XL C 1.02.0.0 rejects this saying
12260        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12261     struct s { int j; const int *ap[3]; };
12262     struct s *b; b->j = 5;
12263   }
12264   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12265     const int foo = 10;
12266     if (!foo) return 0;
12267   }
12268   return !cs[0] && !zero.x;
12269 #endif
12270
12271   ;
12272   return 0;
12273 }
12274 _ACEOF
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12279   *) ac_try_echo=$ac_try;;
12280 esac
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282   (eval "$ac_compile") 2>conftest.er1
12283   ac_status=$?
12284   grep -v '^ *+' conftest.er1 >conftest.err
12285   rm -f conftest.er1
12286   cat conftest.err >&5
12287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288   (exit $ac_status); } && {
12289          test -z "$ac_c_werror_flag" ||
12290          test ! -s conftest.err
12291        } && test -s conftest.$ac_objext; then
12292   ac_cv_c_const=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297         ac_cv_c_const=no
12298 fi
12299
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 fi
12302 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12303 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12304 if test $ac_cv_c_const = no; then
12305
12306 cat >>confdefs.h <<\_ACEOF
12307 #define const
12308 _ACEOF
12309
12310 fi
12311
12312 { echo "$as_me:$LINENO: checking for working volatile" >&5
12313 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12314 if test "${ac_cv_c_volatile+set}" = set; then
12315   echo $ECHO_N "(cached) $ECHO_C" >&6
12316 else
12317   cat >conftest.$ac_ext <<_ACEOF
12318 /* confdefs.h.  */
12319 _ACEOF
12320 cat confdefs.h >>conftest.$ac_ext
12321 cat >>conftest.$ac_ext <<_ACEOF
12322 /* end confdefs.h.  */
12323
12324 int
12325 main ()
12326 {
12327
12328 volatile int x;
12329 int * volatile y = (int *) 0;
12330 return !x && !y;
12331   ;
12332   return 0;
12333 }
12334 _ACEOF
12335 rm -f conftest.$ac_objext
12336 if { (ac_try="$ac_compile"
12337 case "(($ac_try" in
12338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12339   *) ac_try_echo=$ac_try;;
12340 esac
12341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12342   (eval "$ac_compile") 2>conftest.er1
12343   ac_status=$?
12344   grep -v '^ *+' conftest.er1 >conftest.err
12345   rm -f conftest.er1
12346   cat conftest.err >&5
12347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348   (exit $ac_status); } && {
12349          test -z "$ac_c_werror_flag" ||
12350          test ! -s conftest.err
12351        } && test -s conftest.$ac_objext; then
12352   ac_cv_c_volatile=yes
12353 else
12354   echo "$as_me: failed program was:" >&5
12355 sed 's/^/| /' conftest.$ac_ext >&5
12356
12357         ac_cv_c_volatile=no
12358 fi
12359
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12363 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12364 if test $ac_cv_c_volatile = no; then
12365
12366 cat >>confdefs.h <<\_ACEOF
12367 #define volatile
12368 _ACEOF
12369
12370 fi
12371
12372 for ac_prog in 'bison -y' byacc
12373 do
12374   # Extract the first word of "$ac_prog", so it can be a program name with args.
12375 set dummy $ac_prog; ac_word=$2
12376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12378 if test "${ac_cv_prog_YACC+set}" = set; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   if test -n "$YACC"; then
12382   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12383 else
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12386 do
12387   IFS=$as_save_IFS
12388   test -z "$as_dir" && as_dir=.
12389   for ac_exec_ext in '' $ac_executable_extensions; do
12390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12391     ac_cv_prog_YACC="$ac_prog"
12392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12393     break 2
12394   fi
12395 done
12396 done
12397 IFS=$as_save_IFS
12398
12399 fi
12400 fi
12401 YACC=$ac_cv_prog_YACC
12402 if test -n "$YACC"; then
12403   { echo "$as_me:$LINENO: result: $YACC" >&5
12404 echo "${ECHO_T}$YACC" >&6; }
12405 else
12406   { echo "$as_me:$LINENO: result: no" >&5
12407 echo "${ECHO_T}no" >&6; }
12408 fi
12409
12410
12411   test -n "$YACC" && break
12412 done
12413 test -n "$YACC" || YACC="yacc"
12414
12415 { echo "$as_me:$LINENO: checking for mv" >&5
12416 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12417 if test -f "/usr/bin/mv"; then
12418     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12419 echo "${ECHO_T}/usr/bin/mv" >&6; }
12420     cat >>confdefs.h <<\EOF
12421 #define _PATH_MV "/usr/bin/mv"
12422 EOF
12423
12424 elif test -f "/bin/mv"; then
12425     { echo "$as_me:$LINENO: result: /bin/mv" >&5
12426 echo "${ECHO_T}/bin/mv" >&6; }
12427     cat >>confdefs.h <<\EOF
12428 #define _PATH_MV "/bin/mv"
12429 EOF
12430
12431 elif test -f "/usr/ucb/mv"; then
12432     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12433 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12434     cat >>confdefs.h <<\EOF
12435 #define _PATH_MV "/usr/ucb/mv"
12436 EOF
12437
12438 elif test -f "/usr/sbin/mv"; then
12439     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12440 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12441     cat >>confdefs.h <<\EOF
12442 #define _PATH_MV "/usr/sbin/mv"
12443 EOF
12444
12445 else
12446     { echo "$as_me:$LINENO: result: not found" >&5
12447 echo "${ECHO_T}not found" >&6; }
12448 fi
12449
12450 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12451 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12452 if test -f "/bin/sh"; then
12453     { echo "$as_me:$LINENO: result: /bin/sh" >&5
12454 echo "${ECHO_T}/bin/sh" >&6; }
12455     cat >>confdefs.h <<\EOF
12456 #define _PATH_BSHELL "/bin/sh"
12457 EOF
12458
12459 elif test -f "/usr/bin/sh"; then
12460     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12461 echo "${ECHO_T}/usr/bin/sh" >&6; }
12462     cat >>confdefs.h <<\EOF
12463 #define _PATH_BSHELL "/usr/bin/sh"
12464 EOF
12465
12466 elif test -f "/sbin/sh"; then
12467     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12468 echo "${ECHO_T}/sbin/sh" >&6; }
12469     cat >>confdefs.h <<\EOF
12470 #define _PATH_BSHELL "/sbin/sh"
12471 EOF
12472
12473 elif test -f "/usr/sbin/sh"; then
12474     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12475 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12476     cat >>confdefs.h <<\EOF
12477 #define _PATH_BSHELL "/usr/sbin/sh"
12478 EOF
12479
12480 elif test -f "/bin/ksh"; then
12481     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
12482 echo "${ECHO_T}/bin/ksh" >&6; }
12483     cat >>confdefs.h <<\EOF
12484 #define _PATH_BSHELL "/bin/ksh"
12485 EOF
12486
12487 elif test -f "/usr/bin/ksh"; then
12488     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
12489 echo "${ECHO_T}/usr/bin/ksh" >&6; }
12490     cat >>confdefs.h <<\EOF
12491 #define _PATH_BSHELL "/usr/bin/ksh"
12492 EOF
12493
12494 elif test -f "/bin/bash"; then
12495     { echo "$as_me:$LINENO: result: /bin/bash" >&5
12496 echo "${ECHO_T}/bin/bash" >&6; }
12497     cat >>confdefs.h <<\EOF
12498 #define _PATH_BSHELL "/bin/bash"
12499 EOF
12500
12501 elif test -f "/usr/bin/bash"; then
12502     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
12503 echo "${ECHO_T}/usr/bin/bash" >&6; }
12504     cat >>confdefs.h <<\EOF
12505 #define _PATH_BSHELL "/usr/bin/bash"
12506 EOF
12507
12508 else
12509     { echo "$as_me:$LINENO: result: not found" >&5
12510 echo "${ECHO_T}not found" >&6; }
12511 fi
12512
12513 if test -z "$with_sendmail"; then
12514     { echo "$as_me:$LINENO: checking for sendmail" >&5
12515 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
12516 if test -f "/usr/sbin/sendmail"; then
12517     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
12518 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
12519     cat >>confdefs.h <<\EOF
12520 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
12521 EOF
12522
12523 elif test -f "/usr/lib/sendmail"; then
12524     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
12525 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
12526     cat >>confdefs.h <<\EOF
12527 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
12528 EOF
12529
12530 elif test -f "/usr/etc/sendmail"; then
12531     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
12532 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
12533     cat >>confdefs.h <<\EOF
12534 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
12535 EOF
12536
12537 elif test -f "/usr/ucblib/sendmail"; then
12538     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
12539 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
12540     cat >>confdefs.h <<\EOF
12541 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
12542 EOF
12543
12544 elif test -f "/usr/local/lib/sendmail"; then
12545     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
12546 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
12547     cat >>confdefs.h <<\EOF
12548 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
12549 EOF
12550
12551 elif test -f "/usr/local/bin/sendmail"; then
12552     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
12553 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
12554     cat >>confdefs.h <<\EOF
12555 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
12556 EOF
12557
12558 else
12559     { echo "$as_me:$LINENO: result: not found" >&5
12560 echo "${ECHO_T}not found" >&6; }
12561 fi
12562
12563 fi
12564 if test -z "$with_editor"; then
12565     { echo "$as_me:$LINENO: checking for vi" >&5
12566 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
12567 if test -f "/usr/bin/vi"; then
12568     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
12569 echo "${ECHO_T}/usr/bin/vi" >&6; }
12570     cat >>confdefs.h <<\EOF
12571 #define _PATH_VI "/usr/bin/vi"
12572 EOF
12573
12574 elif test -f "/usr/ucb/vi"; then
12575     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
12576 echo "${ECHO_T}/usr/ucb/vi" >&6; }
12577     cat >>confdefs.h <<\EOF
12578 #define _PATH_VI "/usr/ucb/vi"
12579 EOF
12580
12581 elif test -f "/usr/bsd/vi"; then
12582     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
12583 echo "${ECHO_T}/usr/bsd/vi" >&6; }
12584     cat >>confdefs.h <<\EOF
12585 #define _PATH_VI "/usr/bsd/vi"
12586 EOF
12587
12588 elif test -f "/bin/vi"; then
12589     { echo "$as_me:$LINENO: result: /bin/vi" >&5
12590 echo "${ECHO_T}/bin/vi" >&6; }
12591     cat >>confdefs.h <<\EOF
12592 #define _PATH_VI "/bin/vi"
12593 EOF
12594
12595 elif test -f "/usr/local/bin/vi"; then
12596     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
12597 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
12598     cat >>confdefs.h <<\EOF
12599 #define _PATH_VI "/usr/local/bin/vi"
12600 EOF
12601
12602 else
12603     { echo "$as_me:$LINENO: result: not found" >&5
12604 echo "${ECHO_T}not found" >&6; }
12605 fi
12606
12607 fi
12608 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
12609 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
12610 if test "${ac_cv_header_stdc+set}" = set; then
12611   echo $ECHO_N "(cached) $ECHO_C" >&6
12612 else
12613   cat >conftest.$ac_ext <<_ACEOF
12614 /* confdefs.h.  */
12615 _ACEOF
12616 cat confdefs.h >>conftest.$ac_ext
12617 cat >>conftest.$ac_ext <<_ACEOF
12618 /* end confdefs.h.  */
12619 #include <stdlib.h>
12620 #include <stdarg.h>
12621 #include <string.h>
12622 #include <float.h>
12623
12624 int
12625 main ()
12626 {
12627
12628   ;
12629   return 0;
12630 }
12631 _ACEOF
12632 rm -f conftest.$ac_objext
12633 if { (ac_try="$ac_compile"
12634 case "(($ac_try" in
12635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12636   *) ac_try_echo=$ac_try;;
12637 esac
12638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12639   (eval "$ac_compile") 2>conftest.er1
12640   ac_status=$?
12641   grep -v '^ *+' conftest.er1 >conftest.err
12642   rm -f conftest.er1
12643   cat conftest.err >&5
12644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12645   (exit $ac_status); } && {
12646          test -z "$ac_c_werror_flag" ||
12647          test ! -s conftest.err
12648        } && test -s conftest.$ac_objext; then
12649   ac_cv_header_stdc=yes
12650 else
12651   echo "$as_me: failed program was:" >&5
12652 sed 's/^/| /' conftest.$ac_ext >&5
12653
12654         ac_cv_header_stdc=no
12655 fi
12656
12657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12658
12659 if test $ac_cv_header_stdc = yes; then
12660   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
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 #include <string.h>
12668
12669 _ACEOF
12670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12671   $EGREP "memchr" >/dev/null 2>&1; then
12672   :
12673 else
12674   ac_cv_header_stdc=no
12675 fi
12676 rm -f conftest*
12677
12678 fi
12679
12680 if test $ac_cv_header_stdc = yes; then
12681   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12682   cat >conftest.$ac_ext <<_ACEOF
12683 /* confdefs.h.  */
12684 _ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h.  */
12688 #include <stdlib.h>
12689
12690 _ACEOF
12691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12692   $EGREP "free" >/dev/null 2>&1; then
12693   :
12694 else
12695   ac_cv_header_stdc=no
12696 fi
12697 rm -f conftest*
12698
12699 fi
12700
12701 if test $ac_cv_header_stdc = yes; then
12702   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12703   if test "$cross_compiling" = yes; then
12704   :
12705 else
12706   cat >conftest.$ac_ext <<_ACEOF
12707 /* confdefs.h.  */
12708 _ACEOF
12709 cat confdefs.h >>conftest.$ac_ext
12710 cat >>conftest.$ac_ext <<_ACEOF
12711 /* end confdefs.h.  */
12712 #include <ctype.h>
12713 #include <stdlib.h>
12714 #if ((' ' & 0x0FF) == 0x020)
12715 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12716 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12717 #else
12718 # define ISLOWER(c) \
12719                    (('a' <= (c) && (c) <= 'i') \
12720                      || ('j' <= (c) && (c) <= 'r') \
12721                      || ('s' <= (c) && (c) <= 'z'))
12722 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12723 #endif
12724
12725 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12726 int
12727 main ()
12728 {
12729   int i;
12730   for (i = 0; i < 256; i++)
12731     if (XOR (islower (i), ISLOWER (i))
12732         || toupper (i) != TOUPPER (i))
12733       return 2;
12734   return 0;
12735 }
12736 _ACEOF
12737 rm -f conftest$ac_exeext
12738 if { (ac_try="$ac_link"
12739 case "(($ac_try" in
12740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12741   *) ac_try_echo=$ac_try;;
12742 esac
12743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12744   (eval "$ac_link") 2>&5
12745   ac_status=$?
12746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12747   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12748   { (case "(($ac_try" in
12749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12750   *) ac_try_echo=$ac_try;;
12751 esac
12752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12753   (eval "$ac_try") 2>&5
12754   ac_status=$?
12755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756   (exit $ac_status); }; }; then
12757   :
12758 else
12759   echo "$as_me: program exited with status $ac_status" >&5
12760 echo "$as_me: failed program was:" >&5
12761 sed 's/^/| /' conftest.$ac_ext >&5
12762
12763 ( exit $ac_status )
12764 ac_cv_header_stdc=no
12765 fi
12766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12767 fi
12768
12769
12770 fi
12771 fi
12772 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
12773 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
12774 if test $ac_cv_header_stdc = yes; then
12775
12776 cat >>confdefs.h <<\_ACEOF
12777 #define STDC_HEADERS 1
12778 _ACEOF
12779
12780 fi
12781
12782
12783
12784
12785
12786
12787 ac_header_dirent=no
12788 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12789   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12790 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
12791 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
12792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12793   echo $ECHO_N "(cached) $ECHO_C" >&6
12794 else
12795   cat >conftest.$ac_ext <<_ACEOF
12796 /* confdefs.h.  */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h.  */
12801 #include <sys/types.h>
12802 #include <$ac_hdr>
12803
12804 int
12805 main ()
12806 {
12807 if ((DIR *) 0)
12808 return 0;
12809   ;
12810   return 0;
12811 }
12812 _ACEOF
12813 rm -f conftest.$ac_objext
12814 if { (ac_try="$ac_compile"
12815 case "(($ac_try" in
12816   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12817   *) ac_try_echo=$ac_try;;
12818 esac
12819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12820   (eval "$ac_compile") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } && {
12827          test -z "$ac_c_werror_flag" ||
12828          test ! -s conftest.err
12829        } && test -s conftest.$ac_objext; then
12830   eval "$as_ac_Header=yes"
12831 else
12832   echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835         eval "$as_ac_Header=no"
12836 fi
12837
12838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12839 fi
12840 ac_res=`eval echo '${'$as_ac_Header'}'`
12841                { echo "$as_me:$LINENO: result: $ac_res" >&5
12842 echo "${ECHO_T}$ac_res" >&6; }
12843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12844   cat >>confdefs.h <<_ACEOF
12845 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12846 _ACEOF
12847
12848 ac_header_dirent=$ac_hdr; break
12849 fi
12850
12851 done
12852 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12853 if test $ac_header_dirent = dirent.h; then
12854   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12855 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12856 if test "${ac_cv_search_opendir+set}" = set; then
12857   echo $ECHO_N "(cached) $ECHO_C" >&6
12858 else
12859   ac_func_search_save_LIBS=$LIBS
12860 cat >conftest.$ac_ext <<_ACEOF
12861 /* confdefs.h.  */
12862 _ACEOF
12863 cat confdefs.h >>conftest.$ac_ext
12864 cat >>conftest.$ac_ext <<_ACEOF
12865 /* end confdefs.h.  */
12866
12867 /* Override any GCC internal prototype to avoid an error.
12868    Use char because int might match the return type of a GCC
12869    builtin and then its argument prototype would still apply.  */
12870 #ifdef __cplusplus
12871 extern "C"
12872 #endif
12873 char opendir ();
12874 int
12875 main ()
12876 {
12877 return opendir ();
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 for ac_lib in '' dir; do
12883   if test -z "$ac_lib"; then
12884     ac_res="none required"
12885   else
12886     ac_res=-l$ac_lib
12887     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12888   fi
12889   rm -f conftest.$ac_objext conftest$ac_exeext
12890 if { (ac_try="$ac_link"
12891 case "(($ac_try" in
12892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893   *) ac_try_echo=$ac_try;;
12894 esac
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896   (eval "$ac_link") 2>conftest.er1
12897   ac_status=$?
12898   grep -v '^ *+' conftest.er1 >conftest.err
12899   rm -f conftest.er1
12900   cat conftest.err >&5
12901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12902   (exit $ac_status); } && {
12903          test -z "$ac_c_werror_flag" ||
12904          test ! -s conftest.err
12905        } && test -s conftest$ac_exeext &&
12906        $as_test_x conftest$ac_exeext; then
12907   ac_cv_search_opendir=$ac_res
12908 else
12909   echo "$as_me: failed program was:" >&5
12910 sed 's/^/| /' conftest.$ac_ext >&5
12911
12912
12913 fi
12914
12915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12916       conftest$ac_exeext
12917   if test "${ac_cv_search_opendir+set}" = set; then
12918   break
12919 fi
12920 done
12921 if test "${ac_cv_search_opendir+set}" = set; then
12922   :
12923 else
12924   ac_cv_search_opendir=no
12925 fi
12926 rm conftest.$ac_ext
12927 LIBS=$ac_func_search_save_LIBS
12928 fi
12929 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
12930 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
12931 ac_res=$ac_cv_search_opendir
12932 if test "$ac_res" != no; then
12933   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12934
12935 fi
12936
12937 else
12938   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
12939 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
12940 if test "${ac_cv_search_opendir+set}" = set; then
12941   echo $ECHO_N "(cached) $ECHO_C" >&6
12942 else
12943   ac_func_search_save_LIBS=$LIBS
12944 cat >conftest.$ac_ext <<_ACEOF
12945 /* confdefs.h.  */
12946 _ACEOF
12947 cat confdefs.h >>conftest.$ac_ext
12948 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h.  */
12950
12951 /* Override any GCC internal prototype to avoid an error.
12952    Use char because int might match the return type of a GCC
12953    builtin and then its argument prototype would still apply.  */
12954 #ifdef __cplusplus
12955 extern "C"
12956 #endif
12957 char opendir ();
12958 int
12959 main ()
12960 {
12961 return opendir ();
12962   ;
12963   return 0;
12964 }
12965 _ACEOF
12966 for ac_lib in '' x; do
12967   if test -z "$ac_lib"; then
12968     ac_res="none required"
12969   else
12970     ac_res=-l$ac_lib
12971     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
12972   fi
12973   rm -f conftest.$ac_objext conftest$ac_exeext
12974 if { (ac_try="$ac_link"
12975 case "(($ac_try" in
12976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977   *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980   (eval "$ac_link") 2>conftest.er1
12981   ac_status=$?
12982   grep -v '^ *+' conftest.er1 >conftest.err
12983   rm -f conftest.er1
12984   cat conftest.err >&5
12985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12986   (exit $ac_status); } && {
12987          test -z "$ac_c_werror_flag" ||
12988          test ! -s conftest.err
12989        } && test -s conftest$ac_exeext &&
12990        $as_test_x conftest$ac_exeext; then
12991   ac_cv_search_opendir=$ac_res
12992 else
12993   echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996
12997 fi
12998
12999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13000       conftest$ac_exeext
13001   if test "${ac_cv_search_opendir+set}" = set; then
13002   break
13003 fi
13004 done
13005 if test "${ac_cv_search_opendir+set}" = set; then
13006   :
13007 else
13008   ac_cv_search_opendir=no
13009 fi
13010 rm conftest.$ac_ext
13011 LIBS=$ac_func_search_save_LIBS
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13014 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13015 ac_res=$ac_cv_search_opendir
13016 if test "$ac_res" != no; then
13017   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13018
13019 fi
13020
13021 fi
13022
13023 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13024 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13025 if test "${ac_cv_header_time+set}" = set; then
13026   echo $ECHO_N "(cached) $ECHO_C" >&6
13027 else
13028   cat >conftest.$ac_ext <<_ACEOF
13029 /* confdefs.h.  */
13030 _ACEOF
13031 cat confdefs.h >>conftest.$ac_ext
13032 cat >>conftest.$ac_ext <<_ACEOF
13033 /* end confdefs.h.  */
13034 #include <sys/types.h>
13035 #include <sys/time.h>
13036 #include <time.h>
13037
13038 int
13039 main ()
13040 {
13041 if ((struct tm *) 0)
13042 return 0;
13043   ;
13044   return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext
13048 if { (ac_try="$ac_compile"
13049 case "(($ac_try" in
13050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051   *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054   (eval "$ac_compile") 2>conftest.er1
13055   ac_status=$?
13056   grep -v '^ *+' conftest.er1 >conftest.err
13057   rm -f conftest.er1
13058   cat conftest.err >&5
13059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060   (exit $ac_status); } && {
13061          test -z "$ac_c_werror_flag" ||
13062          test ! -s conftest.err
13063        } && test -s conftest.$ac_objext; then
13064   ac_cv_header_time=yes
13065 else
13066   echo "$as_me: failed program was:" >&5
13067 sed 's/^/| /' conftest.$ac_ext >&5
13068
13069         ac_cv_header_time=no
13070 fi
13071
13072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13073 fi
13074 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13075 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13076 if test $ac_cv_header_time = yes; then
13077
13078 cat >>confdefs.h <<\_ACEOF
13079 #define TIME_WITH_SYS_TIME 1
13080 _ACEOF
13081
13082 fi
13083
13084
13085
13086
13087
13088
13089
13090
13091 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13092 do
13093 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13095   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13096 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13097 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13098   echo $ECHO_N "(cached) $ECHO_C" >&6
13099 fi
13100 ac_res=`eval echo '${'$as_ac_Header'}'`
13101                { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13103 else
13104   # Is the header compilable?
13105 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13106 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13107 cat >conftest.$ac_ext <<_ACEOF
13108 /* confdefs.h.  */
13109 _ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h.  */
13113 $ac_includes_default
13114 #include <$ac_header>
13115 _ACEOF
13116 rm -f conftest.$ac_objext
13117 if { (ac_try="$ac_compile"
13118 case "(($ac_try" in
13119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13120   *) ac_try_echo=$ac_try;;
13121 esac
13122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13123   (eval "$ac_compile") 2>conftest.er1
13124   ac_status=$?
13125   grep -v '^ *+' conftest.er1 >conftest.err
13126   rm -f conftest.er1
13127   cat conftest.err >&5
13128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13129   (exit $ac_status); } && {
13130          test -z "$ac_c_werror_flag" ||
13131          test ! -s conftest.err
13132        } && test -s conftest.$ac_objext; then
13133   ac_header_compiler=yes
13134 else
13135   echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13137
13138         ac_header_compiler=no
13139 fi
13140
13141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13142 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13143 echo "${ECHO_T}$ac_header_compiler" >&6; }
13144
13145 # Is the header present?
13146 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13147 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13148 cat >conftest.$ac_ext <<_ACEOF
13149 /* confdefs.h.  */
13150 _ACEOF
13151 cat confdefs.h >>conftest.$ac_ext
13152 cat >>conftest.$ac_ext <<_ACEOF
13153 /* end confdefs.h.  */
13154 #include <$ac_header>
13155 _ACEOF
13156 if { (ac_try="$ac_cpp conftest.$ac_ext"
13157 case "(($ac_try" in
13158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13159   *) ac_try_echo=$ac_try;;
13160 esac
13161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13163   ac_status=$?
13164   grep -v '^ *+' conftest.er1 >conftest.err
13165   rm -f conftest.er1
13166   cat conftest.err >&5
13167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13168   (exit $ac_status); } >/dev/null && {
13169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13170          test ! -s conftest.err
13171        }; then
13172   ac_header_preproc=yes
13173 else
13174   echo "$as_me: failed program was:" >&5
13175 sed 's/^/| /' conftest.$ac_ext >&5
13176
13177   ac_header_preproc=no
13178 fi
13179
13180 rm -f conftest.err conftest.$ac_ext
13181 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13182 echo "${ECHO_T}$ac_header_preproc" >&6; }
13183
13184 # So?  What about this header?
13185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13186   yes:no: )
13187     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13188 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13189     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13190 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13191     ac_header_preproc=yes
13192     ;;
13193   no:yes:* )
13194     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13195 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13196     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13197 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13198     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13199 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13200     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13201 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13202     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13203 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13204     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13205 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13206
13207     ;;
13208 esac
13209 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13210 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13212   echo $ECHO_N "(cached) $ECHO_C" >&6
13213 else
13214   eval "$as_ac_Header=\$ac_header_preproc"
13215 fi
13216 ac_res=`eval echo '${'$as_ac_Header'}'`
13217                { echo "$as_me:$LINENO: result: $ac_res" >&5
13218 echo "${ECHO_T}$ac_res" >&6; }
13219
13220 fi
13221 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13222   cat >>confdefs.h <<_ACEOF
13223 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13224 _ACEOF
13225
13226 fi
13227
13228 done
13229
13230
13231 for ac_header in err.h
13232 do
13233 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13235   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13238   echo $ECHO_N "(cached) $ECHO_C" >&6
13239 fi
13240 ac_res=`eval echo '${'$as_ac_Header'}'`
13241                { echo "$as_me:$LINENO: result: $ac_res" >&5
13242 echo "${ECHO_T}$ac_res" >&6; }
13243 else
13244   # Is the header compilable?
13245 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13246 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13247 cat >conftest.$ac_ext <<_ACEOF
13248 /* confdefs.h.  */
13249 _ACEOF
13250 cat confdefs.h >>conftest.$ac_ext
13251 cat >>conftest.$ac_ext <<_ACEOF
13252 /* end confdefs.h.  */
13253 $ac_includes_default
13254 #include <$ac_header>
13255 _ACEOF
13256 rm -f conftest.$ac_objext
13257 if { (ac_try="$ac_compile"
13258 case "(($ac_try" in
13259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13260   *) ac_try_echo=$ac_try;;
13261 esac
13262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13263   (eval "$ac_compile") 2>conftest.er1
13264   ac_status=$?
13265   grep -v '^ *+' conftest.er1 >conftest.err
13266   rm -f conftest.er1
13267   cat conftest.err >&5
13268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13269   (exit $ac_status); } && {
13270          test -z "$ac_c_werror_flag" ||
13271          test ! -s conftest.err
13272        } && test -s conftest.$ac_objext; then
13273   ac_header_compiler=yes
13274 else
13275   echo "$as_me: failed program was:" >&5
13276 sed 's/^/| /' conftest.$ac_ext >&5
13277
13278         ac_header_compiler=no
13279 fi
13280
13281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13282 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13283 echo "${ECHO_T}$ac_header_compiler" >&6; }
13284
13285 # Is the header present?
13286 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13287 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13288 cat >conftest.$ac_ext <<_ACEOF
13289 /* confdefs.h.  */
13290 _ACEOF
13291 cat confdefs.h >>conftest.$ac_ext
13292 cat >>conftest.$ac_ext <<_ACEOF
13293 /* end confdefs.h.  */
13294 #include <$ac_header>
13295 _ACEOF
13296 if { (ac_try="$ac_cpp conftest.$ac_ext"
13297 case "(($ac_try" in
13298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13299   *) ac_try_echo=$ac_try;;
13300 esac
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13303   ac_status=$?
13304   grep -v '^ *+' conftest.er1 >conftest.err
13305   rm -f conftest.er1
13306   cat conftest.err >&5
13307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308   (exit $ac_status); } >/dev/null && {
13309          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13310          test ! -s conftest.err
13311        }; then
13312   ac_header_preproc=yes
13313 else
13314   echo "$as_me: failed program was:" >&5
13315 sed 's/^/| /' conftest.$ac_ext >&5
13316
13317   ac_header_preproc=no
13318 fi
13319
13320 rm -f conftest.err conftest.$ac_ext
13321 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13322 echo "${ECHO_T}$ac_header_preproc" >&6; }
13323
13324 # So?  What about this header?
13325 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13326   yes:no: )
13327     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13328 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13329     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13330 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13331     ac_header_preproc=yes
13332     ;;
13333   no:yes:* )
13334     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13335 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13336     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13337 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13338     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13339 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13340     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13341 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13342     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13344     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13345 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13346
13347     ;;
13348 esac
13349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13352   echo $ECHO_N "(cached) $ECHO_C" >&6
13353 else
13354   eval "$as_ac_Header=\$ac_header_preproc"
13355 fi
13356 ac_res=`eval echo '${'$as_ac_Header'}'`
13357                { echo "$as_me:$LINENO: result: $ac_res" >&5
13358 echo "${ECHO_T}$ac_res" >&6; }
13359
13360 fi
13361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13362   cat >>confdefs.h <<_ACEOF
13363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13364 _ACEOF
13365
13366 else
13367   case " $LIBOBJS " in
13368   *" err.$ac_objext "* ) ;;
13369   *) LIBOBJS="$LIBOBJS err.$ac_objext"
13370  ;;
13371 esac
13372
13373 fi
13374
13375 done
13376
13377 if test "$OS" != "ultrix"; then
13378     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13379 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13380 if test "${ac_cv_sys_posix_termios+set}" = set; then
13381   echo $ECHO_N "(cached) $ECHO_C" >&6
13382 else
13383   cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h.  */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h.  */
13389 #include <sys/types.h>
13390 #include <unistd.h>
13391 #include <termios.h>
13392
13393 int
13394 main ()
13395 {
13396 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13397    tcgetattr(0, 0);
13398   ;
13399   return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406   *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409   (eval "$ac_link") 2>conftest.er1
13410   ac_status=$?
13411   grep -v '^ *+' conftest.er1 >conftest.err
13412   rm -f conftest.er1
13413   cat conftest.err >&5
13414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415   (exit $ac_status); } && {
13416          test -z "$ac_c_werror_flag" ||
13417          test ! -s conftest.err
13418        } && test -s conftest$ac_exeext &&
13419        $as_test_x conftest$ac_exeext; then
13420   ac_cv_sys_posix_termios=yes
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425         ac_cv_sys_posix_termios=no
13426 fi
13427
13428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13429       conftest$ac_exeext conftest.$ac_ext
13430 fi
13431 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13432 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13433
13434     if test "$ac_cv_sys_posix_termios" = "yes"; then
13435         cat >>confdefs.h <<\_ACEOF
13436 #define HAVE_TERMIOS_H 1
13437 _ACEOF
13438
13439     else
13440
13441 for ac_header in termio.h
13442 do
13443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13445   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 fi
13450 ac_res=`eval echo '${'$as_ac_Header'}'`
13451                { echo "$as_me:$LINENO: result: $ac_res" >&5
13452 echo "${ECHO_T}$ac_res" >&6; }
13453 else
13454   # Is the header compilable?
13455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13457 cat >conftest.$ac_ext <<_ACEOF
13458 /* confdefs.h.  */
13459 _ACEOF
13460 cat confdefs.h >>conftest.$ac_ext
13461 cat >>conftest.$ac_ext <<_ACEOF
13462 /* end confdefs.h.  */
13463 $ac_includes_default
13464 #include <$ac_header>
13465 _ACEOF
13466 rm -f conftest.$ac_objext
13467 if { (ac_try="$ac_compile"
13468 case "(($ac_try" in
13469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13470   *) ac_try_echo=$ac_try;;
13471 esac
13472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13473   (eval "$ac_compile") 2>conftest.er1
13474   ac_status=$?
13475   grep -v '^ *+' conftest.er1 >conftest.err
13476   rm -f conftest.er1
13477   cat conftest.err >&5
13478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13479   (exit $ac_status); } && {
13480          test -z "$ac_c_werror_flag" ||
13481          test ! -s conftest.err
13482        } && test -s conftest.$ac_objext; then
13483   ac_header_compiler=yes
13484 else
13485   echo "$as_me: failed program was:" >&5
13486 sed 's/^/| /' conftest.$ac_ext >&5
13487
13488         ac_header_compiler=no
13489 fi
13490
13491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13492 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13493 echo "${ECHO_T}$ac_header_compiler" >&6; }
13494
13495 # Is the header present?
13496 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13497 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13499 /* confdefs.h.  */
13500 _ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h.  */
13504 #include <$ac_header>
13505 _ACEOF
13506 if { (ac_try="$ac_cpp conftest.$ac_ext"
13507 case "(($ac_try" in
13508   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509   *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13513   ac_status=$?
13514   grep -v '^ *+' conftest.er1 >conftest.err
13515   rm -f conftest.er1
13516   cat conftest.err >&5
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); } >/dev/null && {
13519          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13520          test ! -s conftest.err
13521        }; then
13522   ac_header_preproc=yes
13523 else
13524   echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13526
13527   ac_header_preproc=no
13528 fi
13529
13530 rm -f conftest.err conftest.$ac_ext
13531 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13532 echo "${ECHO_T}$ac_header_preproc" >&6; }
13533
13534 # So?  What about this header?
13535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13536   yes:no: )
13537     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13538 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13539     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13540 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13541     ac_header_preproc=yes
13542     ;;
13543   no:yes:* )
13544     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13546     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13547 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13548     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13549 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13550     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13551 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13552     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13553 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13554     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13555 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13556
13557     ;;
13558 esac
13559 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13560 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13562   echo $ECHO_N "(cached) $ECHO_C" >&6
13563 else
13564   eval "$as_ac_Header=\$ac_header_preproc"
13565 fi
13566 ac_res=`eval echo '${'$as_ac_Header'}'`
13567                { echo "$as_me:$LINENO: result: $ac_res" >&5
13568 echo "${ECHO_T}$ac_res" >&6; }
13569
13570 fi
13571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13572   cat >>confdefs.h <<_ACEOF
13573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13574 _ACEOF
13575
13576 fi
13577
13578 done
13579
13580     fi
13581 fi
13582 if test ${with_logincap-'no'} != "no"; then
13583
13584 for ac_header in login_cap.h
13585 do
13586 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13588   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13591   echo $ECHO_N "(cached) $ECHO_C" >&6
13592 fi
13593 ac_res=`eval echo '${'$as_ac_Header'}'`
13594                { echo "$as_me:$LINENO: result: $ac_res" >&5
13595 echo "${ECHO_T}$ac_res" >&6; }
13596 else
13597   # Is the header compilable?
13598 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13599 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h.  */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h.  */
13606 $ac_includes_default
13607 #include <$ac_header>
13608 _ACEOF
13609 rm -f conftest.$ac_objext
13610 if { (ac_try="$ac_compile"
13611 case "(($ac_try" in
13612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13613   *) ac_try_echo=$ac_try;;
13614 esac
13615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13616   (eval "$ac_compile") 2>conftest.er1
13617   ac_status=$?
13618   grep -v '^ *+' conftest.er1 >conftest.err
13619   rm -f conftest.er1
13620   cat conftest.err >&5
13621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13622   (exit $ac_status); } && {
13623          test -z "$ac_c_werror_flag" ||
13624          test ! -s conftest.err
13625        } && test -s conftest.$ac_objext; then
13626   ac_header_compiler=yes
13627 else
13628   echo "$as_me: failed program was:" >&5
13629 sed 's/^/| /' conftest.$ac_ext >&5
13630
13631         ac_header_compiler=no
13632 fi
13633
13634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13635 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13636 echo "${ECHO_T}$ac_header_compiler" >&6; }
13637
13638 # Is the header present?
13639 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13640 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13641 cat >conftest.$ac_ext <<_ACEOF
13642 /* confdefs.h.  */
13643 _ACEOF
13644 cat confdefs.h >>conftest.$ac_ext
13645 cat >>conftest.$ac_ext <<_ACEOF
13646 /* end confdefs.h.  */
13647 #include <$ac_header>
13648 _ACEOF
13649 if { (ac_try="$ac_cpp conftest.$ac_ext"
13650 case "(($ac_try" in
13651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652   *) ac_try_echo=$ac_try;;
13653 esac
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13656   ac_status=$?
13657   grep -v '^ *+' conftest.er1 >conftest.err
13658   rm -f conftest.er1
13659   cat conftest.err >&5
13660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661   (exit $ac_status); } >/dev/null && {
13662          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13663          test ! -s conftest.err
13664        }; then
13665   ac_header_preproc=yes
13666 else
13667   echo "$as_me: failed program was:" >&5
13668 sed 's/^/| /' conftest.$ac_ext >&5
13669
13670   ac_header_preproc=no
13671 fi
13672
13673 rm -f conftest.err conftest.$ac_ext
13674 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13675 echo "${ECHO_T}$ac_header_preproc" >&6; }
13676
13677 # So?  What about this header?
13678 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13679   yes:no: )
13680     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13681 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13682     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13683 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13684     ac_header_preproc=yes
13685     ;;
13686   no:yes:* )
13687     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13688 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13689     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13690 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13691     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13692 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13693     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13694 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13695     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13696 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13697     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13698 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13699
13700     ;;
13701 esac
13702 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13703 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13704 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13705   echo $ECHO_N "(cached) $ECHO_C" >&6
13706 else
13707   eval "$as_ac_Header=\$ac_header_preproc"
13708 fi
13709 ac_res=`eval echo '${'$as_ac_Header'}'`
13710                { echo "$as_me:$LINENO: result: $ac_res" >&5
13711 echo "${ECHO_T}$ac_res" >&6; }
13712
13713 fi
13714 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13715   cat >>confdefs.h <<_ACEOF
13716 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13717 _ACEOF
13718  LCMAN=""
13719         case "$OS" in
13720             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
13721             ;;
13722         esac
13723
13724 fi
13725
13726 done
13727
13728 fi
13729 if test ${with_project-'no'} != "no"; then
13730     if test "${ac_cv_header_project_h+set}" = set; then
13731   { echo "$as_me:$LINENO: checking for project.h" >&5
13732 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13733 if test "${ac_cv_header_project_h+set}" = set; then
13734   echo $ECHO_N "(cached) $ECHO_C" >&6
13735 fi
13736 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13737 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13738 else
13739   # Is the header compilable?
13740 { echo "$as_me:$LINENO: checking project.h usability" >&5
13741 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
13742 cat >conftest.$ac_ext <<_ACEOF
13743 /* confdefs.h.  */
13744 _ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h.  */
13748 $ac_includes_default
13749 #include <project.h>
13750 _ACEOF
13751 rm -f conftest.$ac_objext
13752 if { (ac_try="$ac_compile"
13753 case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_compile") 2>conftest.er1
13759   ac_status=$?
13760   grep -v '^ *+' conftest.er1 >conftest.err
13761   rm -f conftest.er1
13762   cat conftest.err >&5
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } && {
13765          test -z "$ac_c_werror_flag" ||
13766          test ! -s conftest.err
13767        } && test -s conftest.$ac_objext; then
13768   ac_header_compiler=yes
13769 else
13770   echo "$as_me: failed program was:" >&5
13771 sed 's/^/| /' conftest.$ac_ext >&5
13772
13773         ac_header_compiler=no
13774 fi
13775
13776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13777 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13778 echo "${ECHO_T}$ac_header_compiler" >&6; }
13779
13780 # Is the header present?
13781 { echo "$as_me:$LINENO: checking project.h presence" >&5
13782 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
13783 cat >conftest.$ac_ext <<_ACEOF
13784 /* confdefs.h.  */
13785 _ACEOF
13786 cat confdefs.h >>conftest.$ac_ext
13787 cat >>conftest.$ac_ext <<_ACEOF
13788 /* end confdefs.h.  */
13789 #include <project.h>
13790 _ACEOF
13791 if { (ac_try="$ac_cpp conftest.$ac_ext"
13792 case "(($ac_try" in
13793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13794   *) ac_try_echo=$ac_try;;
13795 esac
13796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13797   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13798   ac_status=$?
13799   grep -v '^ *+' conftest.er1 >conftest.err
13800   rm -f conftest.er1
13801   cat conftest.err >&5
13802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803   (exit $ac_status); } >/dev/null && {
13804          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13805          test ! -s conftest.err
13806        }; then
13807   ac_header_preproc=yes
13808 else
13809   echo "$as_me: failed program was:" >&5
13810 sed 's/^/| /' conftest.$ac_ext >&5
13811
13812   ac_header_preproc=no
13813 fi
13814
13815 rm -f conftest.err conftest.$ac_ext
13816 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13817 echo "${ECHO_T}$ac_header_preproc" >&6; }
13818
13819 # So?  What about this header?
13820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13821   yes:no: )
13822     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
13823 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13824     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
13825 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
13826     ac_header_preproc=yes
13827     ;;
13828   no:yes:* )
13829     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
13830 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
13831     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
13832 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
13833     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
13834 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
13835     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
13836 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
13837     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
13838 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
13839     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
13840 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
13841
13842     ;;
13843 esac
13844 { echo "$as_me:$LINENO: checking for project.h" >&5
13845 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
13846 if test "${ac_cv_header_project_h+set}" = set; then
13847   echo $ECHO_N "(cached) $ECHO_C" >&6
13848 else
13849   ac_cv_header_project_h=$ac_header_preproc
13850 fi
13851 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
13852 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
13853
13854 fi
13855 if test $ac_cv_header_project_h = yes; then
13856   cat >>confdefs.h <<\_ACEOF
13857 #define HAVE_PROJECT_H 1
13858 _ACEOF
13859
13860         SUDO_LIBS="${SUDO_LIBS} -lproject"
13861 else
13862   -
13863 fi
13864
13865
13866 fi
13867 { echo "$as_me:$LINENO: checking for mode_t" >&5
13868 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
13869 if test "${ac_cv_type_mode_t+set}" = set; then
13870   echo $ECHO_N "(cached) $ECHO_C" >&6
13871 else
13872   cat >conftest.$ac_ext <<_ACEOF
13873 /* confdefs.h.  */
13874 _ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h.  */
13878 $ac_includes_default
13879 typedef mode_t ac__type_new_;
13880 int
13881 main ()
13882 {
13883 if ((ac__type_new_ *) 0)
13884   return 0;
13885 if (sizeof (ac__type_new_))
13886   return 0;
13887   ;
13888   return 0;
13889 }
13890 _ACEOF
13891 rm -f conftest.$ac_objext
13892 if { (ac_try="$ac_compile"
13893 case "(($ac_try" in
13894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895   *) ac_try_echo=$ac_try;;
13896 esac
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898   (eval "$ac_compile") 2>conftest.er1
13899   ac_status=$?
13900   grep -v '^ *+' conftest.er1 >conftest.err
13901   rm -f conftest.er1
13902   cat conftest.err >&5
13903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904   (exit $ac_status); } && {
13905          test -z "$ac_c_werror_flag" ||
13906          test ! -s conftest.err
13907        } && test -s conftest.$ac_objext; then
13908   ac_cv_type_mode_t=yes
13909 else
13910   echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913         ac_cv_type_mode_t=no
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 fi
13918 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
13919 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
13920 if test $ac_cv_type_mode_t = yes; then
13921   :
13922 else
13923
13924 cat >>confdefs.h <<_ACEOF
13925 #define mode_t int
13926 _ACEOF
13927
13928 fi
13929
13930 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
13931 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
13932 if test "${ac_cv_type_uid_t+set}" = set; then
13933   echo $ECHO_N "(cached) $ECHO_C" >&6
13934 else
13935   cat >conftest.$ac_ext <<_ACEOF
13936 /* confdefs.h.  */
13937 _ACEOF
13938 cat confdefs.h >>conftest.$ac_ext
13939 cat >>conftest.$ac_ext <<_ACEOF
13940 /* end confdefs.h.  */
13941 #include <sys/types.h>
13942
13943 _ACEOF
13944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13945   $EGREP "uid_t" >/dev/null 2>&1; then
13946   ac_cv_type_uid_t=yes
13947 else
13948   ac_cv_type_uid_t=no
13949 fi
13950 rm -f conftest*
13951
13952 fi
13953 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
13954 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
13955 if test $ac_cv_type_uid_t = no; then
13956
13957 cat >>confdefs.h <<\_ACEOF
13958 #define uid_t int
13959 _ACEOF
13960
13961
13962 cat >>confdefs.h <<\_ACEOF
13963 #define gid_t int
13964 _ACEOF
13965
13966 fi
13967
13968 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
13969 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
13970 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
13971   echo $ECHO_N "(cached) $ECHO_C" >&6
13972 else
13973   cat >conftest.$ac_ext <<_ACEOF
13974 /* confdefs.h.  */
13975 _ACEOF
13976 cat confdefs.h >>conftest.$ac_ext
13977 cat >>conftest.$ac_ext <<_ACEOF
13978 /* end confdefs.h.  */
13979 #include <sys/types.h>
13980 #include <signal.h>
13981
13982 typedef sig_atomic_t ac__type_new_;
13983 int
13984 main ()
13985 {
13986 if ((ac__type_new_ *) 0)
13987   return 0;
13988 if (sizeof (ac__type_new_))
13989   return 0;
13990   ;
13991   return 0;
13992 }
13993 _ACEOF
13994 rm -f conftest.$ac_objext
13995 if { (ac_try="$ac_compile"
13996 case "(($ac_try" in
13997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998   *) ac_try_echo=$ac_try;;
13999 esac
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001   (eval "$ac_compile") 2>conftest.er1
14002   ac_status=$?
14003   grep -v '^ *+' conftest.er1 >conftest.err
14004   rm -f conftest.er1
14005   cat conftest.err >&5
14006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14007   (exit $ac_status); } && {
14008          test -z "$ac_c_werror_flag" ||
14009          test ! -s conftest.err
14010        } && test -s conftest.$ac_objext; then
14011   ac_cv_type_sig_atomic_t=yes
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016         ac_cv_type_sig_atomic_t=no
14017 fi
14018
14019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14020 fi
14021 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14022 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14023 if test $ac_cv_type_sig_atomic_t = yes; then
14024
14025 cat >>confdefs.h <<_ACEOF
14026 #define HAVE_SIG_ATOMIC_T 1
14027 _ACEOF
14028
14029
14030 else
14031   cat >>confdefs.h <<\_ACEOF
14032 #define sig_atomic_t int
14033 _ACEOF
14034
14035 fi
14036
14037 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14038 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14039 if test "${ac_cv_type_sigaction_t+set}" = set; then
14040   echo $ECHO_N "(cached) $ECHO_C" >&6
14041 else
14042   cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h.  */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h.  */
14048 #include <sys/types.h>
14049 #include <signal.h>
14050
14051 typedef sigaction_t ac__type_new_;
14052 int
14053 main ()
14054 {
14055 if ((ac__type_new_ *) 0)
14056   return 0;
14057 if (sizeof (ac__type_new_))
14058   return 0;
14059   ;
14060   return 0;
14061 }
14062 _ACEOF
14063 rm -f conftest.$ac_objext
14064 if { (ac_try="$ac_compile"
14065 case "(($ac_try" in
14066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14067   *) ac_try_echo=$ac_try;;
14068 esac
14069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14070   (eval "$ac_compile") 2>conftest.er1
14071   ac_status=$?
14072   grep -v '^ *+' conftest.er1 >conftest.err
14073   rm -f conftest.er1
14074   cat conftest.err >&5
14075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14076   (exit $ac_status); } && {
14077          test -z "$ac_c_werror_flag" ||
14078          test ! -s conftest.err
14079        } && test -s conftest.$ac_objext; then
14080   ac_cv_type_sigaction_t=yes
14081 else
14082   echo "$as_me: failed program was:" >&5
14083 sed 's/^/| /' conftest.$ac_ext >&5
14084
14085         ac_cv_type_sigaction_t=no
14086 fi
14087
14088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14089 fi
14090 { echo "$as_me:$LINENO: result: $ac_cv_type_sigaction_t" >&5
14091 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14092 if test $ac_cv_type_sigaction_t = yes; then
14093
14094 cat >>confdefs.h <<_ACEOF
14095 #define HAVE_SIGACTION_T 1
14096 _ACEOF
14097
14098 cat >>confdefs.h <<\_ACEOF
14099 #define HAVE_SIGACTION_T 1
14100 _ACEOF
14101
14102 fi
14103
14104 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14105 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14106 if test "${ac_cv_type_struct_timespec+set}" = set; then
14107   echo $ECHO_N "(cached) $ECHO_C" >&6
14108 else
14109   cat >conftest.$ac_ext <<_ACEOF
14110 /* confdefs.h.  */
14111 _ACEOF
14112 cat confdefs.h >>conftest.$ac_ext
14113 cat >>conftest.$ac_ext <<_ACEOF
14114 /* end confdefs.h.  */
14115 #include <sys/types.h>
14116 #if TIME_WITH_SYS_TIME
14117 # include <sys/time.h>
14118 #endif
14119 #include <time.h>
14120
14121 typedef struct timespec ac__type_new_;
14122 int
14123 main ()
14124 {
14125 if ((ac__type_new_ *) 0)
14126   return 0;
14127 if (sizeof (ac__type_new_))
14128   return 0;
14129   ;
14130   return 0;
14131 }
14132 _ACEOF
14133 rm -f conftest.$ac_objext
14134 if { (ac_try="$ac_compile"
14135 case "(($ac_try" in
14136   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14137   *) ac_try_echo=$ac_try;;
14138 esac
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140   (eval "$ac_compile") 2>conftest.er1
14141   ac_status=$?
14142   grep -v '^ *+' conftest.er1 >conftest.err
14143   rm -f conftest.er1
14144   cat conftest.err >&5
14145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146   (exit $ac_status); } && {
14147          test -z "$ac_c_werror_flag" ||
14148          test ! -s conftest.err
14149        } && test -s conftest.$ac_objext; then
14150   ac_cv_type_struct_timespec=yes
14151 else
14152   echo "$as_me: failed program was:" >&5
14153 sed 's/^/| /' conftest.$ac_ext >&5
14154
14155         ac_cv_type_struct_timespec=no
14156 fi
14157
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14159 fi
14160 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14161 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14162 if test $ac_cv_type_struct_timespec = yes; then
14163   cat >>confdefs.h <<\_ACEOF
14164 #define HAVE_TIMESPEC 1
14165 _ACEOF
14166
14167 fi
14168
14169 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14170 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14171 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14172   echo $ECHO_N "(cached) $ECHO_C" >&6
14173 else
14174   cat >conftest.$ac_ext <<_ACEOF
14175 /* confdefs.h.  */
14176 _ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h.  */
14180 #include <sys/types.h>
14181 #include <netinet/in.h>
14182
14183 typedef struct in6_addr ac__type_new_;
14184 int
14185 main ()
14186 {
14187 if ((ac__type_new_ *) 0)
14188   return 0;
14189 if (sizeof (ac__type_new_))
14190   return 0;
14191   ;
14192   return 0;
14193 }
14194 _ACEOF
14195 rm -f conftest.$ac_objext
14196 if { (ac_try="$ac_compile"
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_compile") 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); } && {
14209          test -z "$ac_c_werror_flag" ||
14210          test ! -s conftest.err
14211        } && test -s conftest.$ac_objext; then
14212   ac_cv_type_struct_in6_addr=yes
14213 else
14214   echo "$as_me: failed program was:" >&5
14215 sed 's/^/| /' conftest.$ac_ext >&5
14216
14217         ac_cv_type_struct_in6_addr=no
14218 fi
14219
14220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14221 fi
14222 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14223 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14224 if test $ac_cv_type_struct_in6_addr = yes; then
14225
14226 cat >>confdefs.h <<_ACEOF
14227 #define HAVE_STRUCT_IN6_ADDR 1
14228 _ACEOF
14229
14230 cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_IN6_ADDR 1
14232 _ACEOF
14233
14234 fi
14235
14236 { echo "$as_me:$LINENO: checking for size_t" >&5
14237 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14238 if test "${sudo_cv_type_size_t+set}" = set; then
14239   echo $ECHO_N "(cached) $ECHO_C" >&6
14240 else
14241   cat >conftest.$ac_ext <<_ACEOF
14242 /* confdefs.h.  */
14243 _ACEOF
14244 cat confdefs.h >>conftest.$ac_ext
14245 cat >>conftest.$ac_ext <<_ACEOF
14246 /* end confdefs.h.  */
14247 #include <sys/types.h>
14248 #include <stdio.h>
14249 #if STDC_HEADERS
14250 #include <stdlib.h>
14251 #endif
14252 #if HAVE_UNISTD_H
14253 #include <unistd.h>
14254 #endif
14255 _ACEOF
14256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14257   $EGREP "size_t" >/dev/null 2>&1; then
14258   sudo_cv_type_size_t=yes
14259 else
14260   sudo_cv_type_size_t=no
14261 fi
14262 rm -f conftest*
14263
14264 fi
14265 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14266 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14267 if test $sudo_cv_type_size_t = no; then
14268
14269 cat >>confdefs.h <<\_ACEOF
14270 #define size_t int
14271 _ACEOF
14272
14273 fi
14274
14275 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14276 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14277 if test "${sudo_cv_type_ssize_t+set}" = set; then
14278   echo $ECHO_N "(cached) $ECHO_C" >&6
14279 else
14280   cat >conftest.$ac_ext <<_ACEOF
14281 /* confdefs.h.  */
14282 _ACEOF
14283 cat confdefs.h >>conftest.$ac_ext
14284 cat >>conftest.$ac_ext <<_ACEOF
14285 /* end confdefs.h.  */
14286 #include <sys/types.h>
14287 #include <stdio.h>
14288 #if STDC_HEADERS
14289 #include <stdlib.h>
14290 #endif
14291 #if HAVE_UNISTD_H
14292 #include <unistd.h>
14293 #endif
14294 _ACEOF
14295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14296   $EGREP "ssize_t" >/dev/null 2>&1; then
14297   sudo_cv_type_ssize_t=yes
14298 else
14299   sudo_cv_type_ssize_t=no
14300 fi
14301 rm -f conftest*
14302
14303 fi
14304 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14305 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14306 if test $sudo_cv_type_ssize_t = no; then
14307
14308 cat >>confdefs.h <<\_ACEOF
14309 #define ssize_t int
14310 _ACEOF
14311
14312 fi
14313
14314 { echo "$as_me:$LINENO: checking for dev_t" >&5
14315 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14316 if test "${sudo_cv_type_dev_t+set}" = set; then
14317   echo $ECHO_N "(cached) $ECHO_C" >&6
14318 else
14319   cat >conftest.$ac_ext <<_ACEOF
14320 /* confdefs.h.  */
14321 _ACEOF
14322 cat confdefs.h >>conftest.$ac_ext
14323 cat >>conftest.$ac_ext <<_ACEOF
14324 /* end confdefs.h.  */
14325 #include <sys/types.h>
14326 #include <stdio.h>
14327 #if STDC_HEADERS
14328 #include <stdlib.h>
14329 #endif
14330 #if HAVE_UNISTD_H
14331 #include <unistd.h>
14332 #endif
14333 _ACEOF
14334 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14335   $EGREP "dev_t" >/dev/null 2>&1; then
14336   sudo_cv_type_dev_t=yes
14337 else
14338   sudo_cv_type_dev_t=no
14339 fi
14340 rm -f conftest*
14341
14342 fi
14343 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14344 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14345 if test $sudo_cv_type_dev_t = no; then
14346
14347 cat >>confdefs.h <<\_ACEOF
14348 #define dev_t int
14349 _ACEOF
14350
14351 fi
14352
14353 { echo "$as_me:$LINENO: checking for ino_t" >&5
14354 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14355 if test "${sudo_cv_type_ino_t+set}" = set; then
14356   echo $ECHO_N "(cached) $ECHO_C" >&6
14357 else
14358   cat >conftest.$ac_ext <<_ACEOF
14359 /* confdefs.h.  */
14360 _ACEOF
14361 cat confdefs.h >>conftest.$ac_ext
14362 cat >>conftest.$ac_ext <<_ACEOF
14363 /* end confdefs.h.  */
14364 #include <sys/types.h>
14365 #include <stdio.h>
14366 #if STDC_HEADERS
14367 #include <stdlib.h>
14368 #endif
14369 #if HAVE_UNISTD_H
14370 #include <unistd.h>
14371 #endif
14372 _ACEOF
14373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14374   $EGREP "ino_t" >/dev/null 2>&1; then
14375   sudo_cv_type_ino_t=yes
14376 else
14377   sudo_cv_type_ino_t=no
14378 fi
14379 rm -f conftest*
14380
14381 fi
14382 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14383 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14384 if test $sudo_cv_type_ino_t = no; then
14385
14386 cat >>confdefs.h <<\_ACEOF
14387 #define ino_t unsigned int
14388 _ACEOF
14389
14390 fi
14391
14392 { echo "$as_me:$LINENO: checking for full void implementation" >&5
14393 echo $ECHO_N "checking for full void implementation... $ECHO_C" >&6; }
14394 cat >conftest.$ac_ext <<_ACEOF
14395 /* confdefs.h.  */
14396 _ACEOF
14397 cat confdefs.h >>conftest.$ac_ext
14398 cat >>conftest.$ac_ext <<_ACEOF
14399 /* end confdefs.h.  */
14400
14401 int
14402 main ()
14403 {
14404 void *foo;
14405 foo = (void *)0; (void *)"test";
14406   ;
14407   return 0;
14408 }
14409 _ACEOF
14410 rm -f conftest.$ac_objext
14411 if { (ac_try="$ac_compile"
14412 case "(($ac_try" in
14413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14414   *) ac_try_echo=$ac_try;;
14415 esac
14416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14417   (eval "$ac_compile") 2>conftest.er1
14418   ac_status=$?
14419   grep -v '^ *+' conftest.er1 >conftest.err
14420   rm -f conftest.er1
14421   cat conftest.err >&5
14422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14423   (exit $ac_status); } && {
14424          test -z "$ac_c_werror_flag" ||
14425          test ! -s conftest.err
14426        } && test -s conftest.$ac_objext; then
14427
14428 cat >>confdefs.h <<\_ACEOF
14429 #define VOID void
14430 _ACEOF
14431
14432 { echo "$as_me:$LINENO: result: yes" >&5
14433 echo "${ECHO_T}yes" >&6; }
14434 else
14435   echo "$as_me: failed program was:" >&5
14436 sed 's/^/| /' conftest.$ac_ext >&5
14437
14438         cat >>confdefs.h <<\_ACEOF
14439 #define VOID char
14440 _ACEOF
14441
14442 { echo "$as_me:$LINENO: result: no" >&5
14443 echo "${ECHO_T}no" >&6; }
14444 fi
14445
14446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14447
14448 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14449 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14450 if test "${sudo_cv_uid_t_len+set}" = set; then
14451   echo $ECHO_N "(cached) $ECHO_C" >&6
14452 else
14453   rm -f conftestdata
14454 if test "$cross_compiling" = yes; then
14455   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14456 See \`config.log' for more details." >&5
14457 echo "$as_me: error: cannot run test program while cross compiling
14458 See \`config.log' for more details." >&2;}
14459    { (exit 1); exit 1; }; }
14460 else
14461   cat >conftest.$ac_ext <<_ACEOF
14462 /* confdefs.h.  */
14463 _ACEOF
14464 cat confdefs.h >>conftest.$ac_ext
14465 cat >>conftest.$ac_ext <<_ACEOF
14466 /* end confdefs.h.  */
14467 #include <stdio.h>
14468 #include <pwd.h>
14469 #include <limits.h>
14470 #include <sys/types.h>
14471 #include <sys/param.h>
14472 main() {
14473   FILE *f;
14474   char b[1024];
14475   uid_t u = (uid_t) -1;
14476
14477   if ((f = fopen("conftestdata", "w")) == NULL)
14478     exit(1);
14479
14480   (void) sprintf(b, "%lu", (unsigned long) u);
14481   (void) fprintf(f, "%d\n", strlen(b));
14482   (void) fclose(f);
14483   exit(0);
14484 }
14485 _ACEOF
14486 rm -f conftest$ac_exeext
14487 if { (ac_try="$ac_link"
14488 case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14493   (eval "$ac_link") 2>&5
14494   ac_status=$?
14495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14497   { (case "(($ac_try" in
14498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14499   *) ac_try_echo=$ac_try;;
14500 esac
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502   (eval "$ac_try") 2>&5
14503   ac_status=$?
14504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505   (exit $ac_status); }; }; then
14506   sudo_cv_uid_t_len=`cat conftestdata`
14507 else
14508   echo "$as_me: program exited with status $ac_status" >&5
14509 echo "$as_me: failed program was:" >&5
14510 sed 's/^/| /' conftest.$ac_ext >&5
14511
14512 ( exit $ac_status )
14513 sudo_cv_uid_t_len=10
14514 fi
14515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14516 fi
14517
14518
14519
14520 fi
14521
14522 rm -f conftestdata
14523 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14524 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14525
14526 cat >>confdefs.h <<_ACEOF
14527 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14528 _ACEOF
14529
14530
14531 { echo "$as_me:$LINENO: checking for long long" >&5
14532 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14533 if test "${ac_cv_type_long_long+set}" = set; then
14534   echo $ECHO_N "(cached) $ECHO_C" >&6
14535 else
14536   cat >conftest.$ac_ext <<_ACEOF
14537 /* confdefs.h.  */
14538 _ACEOF
14539 cat confdefs.h >>conftest.$ac_ext
14540 cat >>conftest.$ac_ext <<_ACEOF
14541 /* end confdefs.h.  */
14542 $ac_includes_default
14543 typedef long long ac__type_new_;
14544 int
14545 main ()
14546 {
14547 if ((ac__type_new_ *) 0)
14548   return 0;
14549 if (sizeof (ac__type_new_))
14550   return 0;
14551   ;
14552   return 0;
14553 }
14554 _ACEOF
14555 rm -f conftest.$ac_objext
14556 if { (ac_try="$ac_compile"
14557 case "(($ac_try" in
14558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14559   *) ac_try_echo=$ac_try;;
14560 esac
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562   (eval "$ac_compile") 2>conftest.er1
14563   ac_status=$?
14564   grep -v '^ *+' conftest.er1 >conftest.err
14565   rm -f conftest.er1
14566   cat conftest.err >&5
14567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568   (exit $ac_status); } && {
14569          test -z "$ac_c_werror_flag" ||
14570          test ! -s conftest.err
14571        } && test -s conftest.$ac_objext; then
14572   ac_cv_type_long_long=yes
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577         ac_cv_type_long_long=no
14578 fi
14579
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 fi
14582 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
14583 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
14584 if test $ac_cv_type_long_long = yes; then
14585
14586 cat >>confdefs.h <<_ACEOF
14587 #define HAVE_LONG_LONG 1
14588 _ACEOF
14589
14590
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_LONG_LONG 1
14593 _ACEOF
14594
14595 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
14596 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
14597 if test "${sudo_cv_type_long_is_quad+set}" = set; then
14598   echo $ECHO_N "(cached) $ECHO_C" >&6
14599 else
14600   if test "$cross_compiling" = yes; then
14601   sudo_cv_type_long_is_quad=no
14602 else
14603   cat >conftest.$ac_ext <<_ACEOF
14604 /* confdefs.h.  */
14605 _ACEOF
14606 cat confdefs.h >>conftest.$ac_ext
14607 cat >>conftest.$ac_ext <<_ACEOF
14608 /* end confdefs.h.  */
14609
14610 main() {
14611 if (sizeof(long long) == sizeof(long)) exit(0);
14612 else exit(1);
14613 }
14614 _ACEOF
14615 rm -f conftest$ac_exeext
14616 if { (ac_try="$ac_link"
14617 case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_link") 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14626   { (case "(($ac_try" in
14627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628   *) ac_try_echo=$ac_try;;
14629 esac
14630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14631   (eval "$ac_try") 2>&5
14632   ac_status=$?
14633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634   (exit $ac_status); }; }; then
14635   sudo_cv_type_long_is_quad=yes
14636 else
14637   echo "$as_me: program exited with status $ac_status" >&5
14638 echo "$as_me: failed program was:" >&5
14639 sed 's/^/| /' conftest.$ac_ext >&5
14640
14641 ( exit $ac_status )
14642 sudo_cv_type_long_is_quad=no
14643 fi
14644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14645 fi
14646
14647
14648 rm -f core core.* *.core
14649 fi
14650 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
14651 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
14652 if test $sudo_cv_type_long_is_quad = yes; then
14653
14654 cat >>confdefs.h <<\_ACEOF
14655 #define LONG_IS_QUAD 1
14656 _ACEOF
14657
14658 fi
14659
14660 fi
14661
14662 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
14663 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
14664 if test "${sudo_cv_sock_sa_len+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 else
14667   if test "$cross_compiling" = yes; then
14668   sudo_cv_sock_sa_len=no
14669 else
14670   cat >conftest.$ac_ext <<_ACEOF
14671 /* confdefs.h.  */
14672 _ACEOF
14673 cat confdefs.h >>conftest.$ac_ext
14674 cat >>conftest.$ac_ext <<_ACEOF
14675 /* end confdefs.h.  */
14676 #include <sys/types.h>
14677 #include <sys/socket.h>
14678 main() {
14679 struct sockaddr s;
14680 s.sa_len = 0;
14681 exit(0);
14682 }
14683 _ACEOF
14684 rm -f conftest$ac_exeext
14685 if { (ac_try="$ac_link"
14686 case "(($ac_try" in
14687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14688   *) ac_try_echo=$ac_try;;
14689 esac
14690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14691   (eval "$ac_link") 2>&5
14692   ac_status=$?
14693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14695   { (case "(($ac_try" in
14696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697   *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700   (eval "$ac_try") 2>&5
14701   ac_status=$?
14702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703   (exit $ac_status); }; }; then
14704   sudo_cv_sock_sa_len=yes
14705 else
14706   echo "$as_me: program exited with status $ac_status" >&5
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14709
14710 ( exit $ac_status )
14711 sudo_cv_sock_sa_len=no
14712 fi
14713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14714 fi
14715
14716
14717 rm -f core core.* *.core
14718 fi
14719 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
14720 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
14721 if test $sudo_cv_sock_sa_len = yes; then
14722
14723 cat >>confdefs.h <<\_ACEOF
14724 #define HAVE_SA_LEN 1
14725 _ACEOF
14726
14727 fi
14728
14729 case "$DEFS" in
14730     *"RETSIGTYPE"*)     ;;
14731     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
14732 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
14733 if test "${ac_cv_type_signal+set}" = set; then
14734   echo $ECHO_N "(cached) $ECHO_C" >&6
14735 else
14736   cat >conftest.$ac_ext <<_ACEOF
14737 /* confdefs.h.  */
14738 _ACEOF
14739 cat confdefs.h >>conftest.$ac_ext
14740 cat >>conftest.$ac_ext <<_ACEOF
14741 /* end confdefs.h.  */
14742 #include <sys/types.h>
14743 #include <signal.h>
14744
14745 int
14746 main ()
14747 {
14748 return *(signal (0, 0)) (0) == 1;
14749   ;
14750   return 0;
14751 }
14752 _ACEOF
14753 rm -f conftest.$ac_objext
14754 if { (ac_try="$ac_compile"
14755 case "(($ac_try" in
14756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14757   *) ac_try_echo=$ac_try;;
14758 esac
14759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14760   (eval "$ac_compile") 2>conftest.er1
14761   ac_status=$?
14762   grep -v '^ *+' conftest.er1 >conftest.err
14763   rm -f conftest.er1
14764   cat conftest.err >&5
14765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14766   (exit $ac_status); } && {
14767          test -z "$ac_c_werror_flag" ||
14768          test ! -s conftest.err
14769        } && test -s conftest.$ac_objext; then
14770   ac_cv_type_signal=int
14771 else
14772   echo "$as_me: failed program was:" >&5
14773 sed 's/^/| /' conftest.$ac_ext >&5
14774
14775         ac_cv_type_signal=void
14776 fi
14777
14778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14779 fi
14780 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
14781 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
14782
14783 cat >>confdefs.h <<_ACEOF
14784 #define RETSIGTYPE $ac_cv_type_signal
14785 _ACEOF
14786
14787 ;;
14788 esac
14789 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
14790 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
14791 if test "${ac_cv_type_getgroups+set}" = set; then
14792   echo $ECHO_N "(cached) $ECHO_C" >&6
14793 else
14794   if test "$cross_compiling" = yes; then
14795   ac_cv_type_getgroups=cross
14796 else
14797   cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h.  */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h.  */
14803 /* Thanks to Mike Rendell for this test.  */
14804 $ac_includes_default
14805 #define NGID 256
14806 #undef MAX
14807 #define MAX(x, y) ((x) > (y) ? (x) : (y))
14808
14809 int
14810 main ()
14811 {
14812   gid_t gidset[NGID];
14813   int i, n;
14814   union { gid_t gval; long int lval; }  val;
14815
14816   val.lval = -1;
14817   for (i = 0; i < NGID; i++)
14818     gidset[i] = val.gval;
14819   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
14820                  gidset);
14821   /* Exit non-zero if getgroups seems to require an array of ints.  This
14822      happens when gid_t is short int but getgroups modifies an array
14823      of ints.  */
14824   return n > 0 && gidset[n] != val.gval;
14825 }
14826 _ACEOF
14827 rm -f conftest$ac_exeext
14828 if { (ac_try="$ac_link"
14829 case "(($ac_try" in
14830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831   *) ac_try_echo=$ac_try;;
14832 esac
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834   (eval "$ac_link") 2>&5
14835   ac_status=$?
14836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14838   { (case "(($ac_try" in
14839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14840   *) ac_try_echo=$ac_try;;
14841 esac
14842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14843   (eval "$ac_try") 2>&5
14844   ac_status=$?
14845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14846   (exit $ac_status); }; }; then
14847   ac_cv_type_getgroups=gid_t
14848 else
14849   echo "$as_me: program exited with status $ac_status" >&5
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14852
14853 ( exit $ac_status )
14854 ac_cv_type_getgroups=int
14855 fi
14856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14857 fi
14858
14859
14860 if test $ac_cv_type_getgroups = cross; then
14861         cat >conftest.$ac_ext <<_ACEOF
14862 /* confdefs.h.  */
14863 _ACEOF
14864 cat confdefs.h >>conftest.$ac_ext
14865 cat >>conftest.$ac_ext <<_ACEOF
14866 /* end confdefs.h.  */
14867 #include <unistd.h>
14868
14869 _ACEOF
14870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14871   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
14872   ac_cv_type_getgroups=gid_t
14873 else
14874   ac_cv_type_getgroups=int
14875 fi
14876 rm -f conftest*
14877
14878 fi
14879 fi
14880 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
14881 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
14882
14883 cat >>confdefs.h <<_ACEOF
14884 #define GETGROUPS_T $ac_cv_type_getgroups
14885 _ACEOF
14886
14887
14888 { echo "$as_me:$LINENO: checking for size_t" >&5
14889 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14890 if test "${ac_cv_type_size_t+set}" = set; then
14891   echo $ECHO_N "(cached) $ECHO_C" >&6
14892 else
14893   cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h.  */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
14898 /* end confdefs.h.  */
14899 $ac_includes_default
14900 typedef size_t ac__type_new_;
14901 int
14902 main ()
14903 {
14904 if ((ac__type_new_ *) 0)
14905   return 0;
14906 if (sizeof (ac__type_new_))
14907   return 0;
14908   ;
14909   return 0;
14910 }
14911 _ACEOF
14912 rm -f conftest.$ac_objext
14913 if { (ac_try="$ac_compile"
14914 case "(($ac_try" in
14915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916   *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919   (eval "$ac_compile") 2>conftest.er1
14920   ac_status=$?
14921   grep -v '^ *+' conftest.er1 >conftest.err
14922   rm -f conftest.er1
14923   cat conftest.err >&5
14924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14925   (exit $ac_status); } && {
14926          test -z "$ac_c_werror_flag" ||
14927          test ! -s conftest.err
14928        } && test -s conftest.$ac_objext; then
14929   ac_cv_type_size_t=yes
14930 else
14931   echo "$as_me: failed program was:" >&5
14932 sed 's/^/| /' conftest.$ac_ext >&5
14933
14934         ac_cv_type_size_t=no
14935 fi
14936
14937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14938 fi
14939 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
14940 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
14941 if test $ac_cv_type_size_t = yes; then
14942   :
14943 else
14944
14945 cat >>confdefs.h <<_ACEOF
14946 #define size_t unsigned int
14947 _ACEOF
14948
14949 fi
14950
14951 { echo "$as_me:$LINENO: checking for getgroups" >&5
14952 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
14953 if test "${ac_cv_func_getgroups+set}" = set; then
14954   echo $ECHO_N "(cached) $ECHO_C" >&6
14955 else
14956   cat >conftest.$ac_ext <<_ACEOF
14957 /* confdefs.h.  */
14958 _ACEOF
14959 cat confdefs.h >>conftest.$ac_ext
14960 cat >>conftest.$ac_ext <<_ACEOF
14961 /* end confdefs.h.  */
14962 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
14963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
14964 #define getgroups innocuous_getgroups
14965
14966 /* System header to define __stub macros and hopefully few prototypes,
14967     which can conflict with char getgroups (); below.
14968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14969     <limits.h> exists even on freestanding compilers.  */
14970
14971 #ifdef __STDC__
14972 # include <limits.h>
14973 #else
14974 # include <assert.h>
14975 #endif
14976
14977 #undef getgroups
14978
14979 /* Override any GCC internal prototype to avoid an error.
14980    Use char because int might match the return type of a GCC
14981    builtin and then its argument prototype would still apply.  */
14982 #ifdef __cplusplus
14983 extern "C"
14984 #endif
14985 char getgroups ();
14986 /* The GNU C library defines this for functions which it implements
14987     to always fail with ENOSYS.  Some functions are actually named
14988     something starting with __ and the normal name is an alias.  */
14989 #if defined __stub_getgroups || defined __stub___getgroups
14990 choke me
14991 #endif
14992
14993 int
14994 main ()
14995 {
14996 return getgroups ();
14997   ;
14998   return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005   *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008   (eval "$ac_link") 2>conftest.er1
15009   ac_status=$?
15010   grep -v '^ *+' conftest.er1 >conftest.err
15011   rm -f conftest.er1
15012   cat conftest.err >&5
15013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014   (exit $ac_status); } && {
15015          test -z "$ac_c_werror_flag" ||
15016          test ! -s conftest.err
15017        } && test -s conftest$ac_exeext &&
15018        $as_test_x conftest$ac_exeext; then
15019   ac_cv_func_getgroups=yes
15020 else
15021   echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024         ac_cv_func_getgroups=no
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028       conftest$ac_exeext conftest.$ac_ext
15029 fi
15030 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15031 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15032
15033
15034 # If we don't yet have getgroups, see if it's in -lbsd.
15035 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15036 ac_save_LIBS=$LIBS
15037 if test $ac_cv_func_getgroups = no; then
15038   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15039 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15040 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15041   echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043   ac_check_lib_save_LIBS=$LIBS
15044 LIBS="-lbsd  $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h.  */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h.  */
15051
15052 /* Override any GCC internal prototype to avoid an error.
15053    Use char because int might match the return type of a GCC
15054    builtin and then its argument prototype would still apply.  */
15055 #ifdef __cplusplus
15056 extern "C"
15057 #endif
15058 char getgroups ();
15059 int
15060 main ()
15061 {
15062 return getgroups ();
15063   ;
15064   return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071   *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074   (eval "$ac_link") 2>conftest.er1
15075   ac_status=$?
15076   grep -v '^ *+' conftest.er1 >conftest.err
15077   rm -f conftest.er1
15078   cat conftest.err >&5
15079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080   (exit $ac_status); } && {
15081          test -z "$ac_c_werror_flag" ||
15082          test ! -s conftest.err
15083        } && test -s conftest$ac_exeext &&
15084        $as_test_x conftest$ac_exeext; then
15085   ac_cv_lib_bsd_getgroups=yes
15086 else
15087   echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090         ac_cv_lib_bsd_getgroups=no
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094       conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15096 fi
15097 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15098 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15099 if test $ac_cv_lib_bsd_getgroups = yes; then
15100   GETGROUPS_LIB=-lbsd
15101 fi
15102
15103 fi
15104
15105 # Run the program to test the functionality of the system-supplied
15106 # getgroups function only if there is such a function.
15107 if test $ac_cv_func_getgroups = yes; then
15108   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15109 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15110 if test "${ac_cv_func_getgroups_works+set}" = set; then
15111   echo $ECHO_N "(cached) $ECHO_C" >&6
15112 else
15113   if test "$cross_compiling" = yes; then
15114   ac_cv_func_getgroups_works=no
15115 else
15116   cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h.  */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h.  */
15122 $ac_includes_default
15123 int
15124 main ()
15125 {
15126 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15127        return getgroups (0, 0) == -1;
15128   ;
15129   return 0;
15130 }
15131 _ACEOF
15132 rm -f conftest$ac_exeext
15133 if { (ac_try="$ac_link"
15134 case "(($ac_try" in
15135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15136   *) ac_try_echo=$ac_try;;
15137 esac
15138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15139   (eval "$ac_link") 2>&5
15140   ac_status=$?
15141   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15143   { (case "(($ac_try" in
15144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145   *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148   (eval "$ac_try") 2>&5
15149   ac_status=$?
15150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151   (exit $ac_status); }; }; then
15152   ac_cv_func_getgroups_works=yes
15153 else
15154   echo "$as_me: program exited with status $ac_status" >&5
15155 echo "$as_me: failed program was:" >&5
15156 sed 's/^/| /' conftest.$ac_ext >&5
15157
15158 ( exit $ac_status )
15159 ac_cv_func_getgroups_works=no
15160 fi
15161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15162 fi
15163
15164
15165
15166 fi
15167 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15168 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15169   if test $ac_cv_func_getgroups_works = yes; then
15170
15171 cat >>confdefs.h <<\_ACEOF
15172 #define HAVE_GETGROUPS 1
15173 _ACEOF
15174
15175   fi
15176 fi
15177 LIBS=$ac_save_LIBS
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15195                strftime setrlimit initgroups getgroups fstat gettimeofday \
15196                setlocale getaddrinfo
15197 do
15198 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15199 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15200 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15201 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15202   echo $ECHO_N "(cached) $ECHO_C" >&6
15203 else
15204   cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h.  */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h.  */
15210 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15211    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15212 #define $ac_func innocuous_$ac_func
15213
15214 /* System header to define __stub macros and hopefully few prototypes,
15215     which can conflict with char $ac_func (); below.
15216     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15217     <limits.h> exists even on freestanding compilers.  */
15218
15219 #ifdef __STDC__
15220 # include <limits.h>
15221 #else
15222 # include <assert.h>
15223 #endif
15224
15225 #undef $ac_func
15226
15227 /* Override any GCC internal prototype to avoid an error.
15228    Use char because int might match the return type of a GCC
15229    builtin and then its argument prototype would still apply.  */
15230 #ifdef __cplusplus
15231 extern "C"
15232 #endif
15233 char $ac_func ();
15234 /* The GNU C library defines this for functions which it implements
15235     to always fail with ENOSYS.  Some functions are actually named
15236     something starting with __ and the normal name is an alias.  */
15237 #if defined __stub_$ac_func || defined __stub___$ac_func
15238 choke me
15239 #endif
15240
15241 int
15242 main ()
15243 {
15244 return $ac_func ();
15245   ;
15246   return 0;
15247 }
15248 _ACEOF
15249 rm -f conftest.$ac_objext conftest$ac_exeext
15250 if { (ac_try="$ac_link"
15251 case "(($ac_try" in
15252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253   *) ac_try_echo=$ac_try;;
15254 esac
15255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15256   (eval "$ac_link") 2>conftest.er1
15257   ac_status=$?
15258   grep -v '^ *+' conftest.er1 >conftest.err
15259   rm -f conftest.er1
15260   cat conftest.err >&5
15261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15262   (exit $ac_status); } && {
15263          test -z "$ac_c_werror_flag" ||
15264          test ! -s conftest.err
15265        } && test -s conftest$ac_exeext &&
15266        $as_test_x conftest$ac_exeext; then
15267   eval "$as_ac_var=yes"
15268 else
15269   echo "$as_me: failed program was:" >&5
15270 sed 's/^/| /' conftest.$ac_ext >&5
15271
15272         eval "$as_ac_var=no"
15273 fi
15274
15275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15276       conftest$ac_exeext conftest.$ac_ext
15277 fi
15278 ac_res=`eval echo '${'$as_ac_var'}'`
15279                { echo "$as_me:$LINENO: result: $ac_res" >&5
15280 echo "${ECHO_T}$ac_res" >&6; }
15281 if test `eval echo '${'$as_ac_var'}'` = yes; then
15282   cat >>confdefs.h <<_ACEOF
15283 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15284 _ACEOF
15285
15286 fi
15287 done
15288
15289 if test -z "$SKIP_SETRESUID"; then
15290
15291 for ac_func in setresuid
15292 do
15293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15297   echo $ECHO_N "(cached) $ECHO_C" >&6
15298 else
15299   cat >conftest.$ac_ext <<_ACEOF
15300 /* confdefs.h.  */
15301 _ACEOF
15302 cat confdefs.h >>conftest.$ac_ext
15303 cat >>conftest.$ac_ext <<_ACEOF
15304 /* end confdefs.h.  */
15305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15307 #define $ac_func innocuous_$ac_func
15308
15309 /* System header to define __stub macros and hopefully few prototypes,
15310     which can conflict with char $ac_func (); below.
15311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15312     <limits.h> exists even on freestanding compilers.  */
15313
15314 #ifdef __STDC__
15315 # include <limits.h>
15316 #else
15317 # include <assert.h>
15318 #endif
15319
15320 #undef $ac_func
15321
15322 /* Override any GCC internal prototype to avoid an error.
15323    Use char because int might match the return type of a GCC
15324    builtin and then its argument prototype would still apply.  */
15325 #ifdef __cplusplus
15326 extern "C"
15327 #endif
15328 char $ac_func ();
15329 /* The GNU C library defines this for functions which it implements
15330     to always fail with ENOSYS.  Some functions are actually named
15331     something starting with __ and the normal name is an alias.  */
15332 #if defined __stub_$ac_func || defined __stub___$ac_func
15333 choke me
15334 #endif
15335
15336 int
15337 main ()
15338 {
15339 return $ac_func ();
15340   ;
15341   return 0;
15342 }
15343 _ACEOF
15344 rm -f conftest.$ac_objext conftest$ac_exeext
15345 if { (ac_try="$ac_link"
15346 case "(($ac_try" in
15347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15348   *) ac_try_echo=$ac_try;;
15349 esac
15350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15351   (eval "$ac_link") 2>conftest.er1
15352   ac_status=$?
15353   grep -v '^ *+' conftest.er1 >conftest.err
15354   rm -f conftest.er1
15355   cat conftest.err >&5
15356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15357   (exit $ac_status); } && {
15358          test -z "$ac_c_werror_flag" ||
15359          test ! -s conftest.err
15360        } && test -s conftest$ac_exeext &&
15361        $as_test_x conftest$ac_exeext; then
15362   eval "$as_ac_var=yes"
15363 else
15364   echo "$as_me: failed program was:" >&5
15365 sed 's/^/| /' conftest.$ac_ext >&5
15366
15367         eval "$as_ac_var=no"
15368 fi
15369
15370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15371       conftest$ac_exeext conftest.$ac_ext
15372 fi
15373 ac_res=`eval echo '${'$as_ac_var'}'`
15374                { echo "$as_me:$LINENO: result: $ac_res" >&5
15375 echo "${ECHO_T}$ac_res" >&6; }
15376 if test `eval echo '${'$as_ac_var'}'` = yes; then
15377   cat >>confdefs.h <<_ACEOF
15378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15379 _ACEOF
15380  SKIP_SETREUID=yes
15381 fi
15382 done
15383
15384 fi
15385 if test -z "$SKIP_SETREUID"; then
15386
15387 for ac_func in setreuid
15388 do
15389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15393   echo $ECHO_N "(cached) $ECHO_C" >&6
15394 else
15395   cat >conftest.$ac_ext <<_ACEOF
15396 /* confdefs.h.  */
15397 _ACEOF
15398 cat confdefs.h >>conftest.$ac_ext
15399 cat >>conftest.$ac_ext <<_ACEOF
15400 /* end confdefs.h.  */
15401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15403 #define $ac_func innocuous_$ac_func
15404
15405 /* System header to define __stub macros and hopefully few prototypes,
15406     which can conflict with char $ac_func (); below.
15407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15408     <limits.h> exists even on freestanding compilers.  */
15409
15410 #ifdef __STDC__
15411 # include <limits.h>
15412 #else
15413 # include <assert.h>
15414 #endif
15415
15416 #undef $ac_func
15417
15418 /* Override any GCC internal prototype to avoid an error.
15419    Use char because int might match the return type of a GCC
15420    builtin and then its argument prototype would still apply.  */
15421 #ifdef __cplusplus
15422 extern "C"
15423 #endif
15424 char $ac_func ();
15425 /* The GNU C library defines this for functions which it implements
15426     to always fail with ENOSYS.  Some functions are actually named
15427     something starting with __ and the normal name is an alias.  */
15428 #if defined __stub_$ac_func || defined __stub___$ac_func
15429 choke me
15430 #endif
15431
15432 int
15433 main ()
15434 {
15435 return $ac_func ();
15436   ;
15437   return 0;
15438 }
15439 _ACEOF
15440 rm -f conftest.$ac_objext conftest$ac_exeext
15441 if { (ac_try="$ac_link"
15442 case "(($ac_try" in
15443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444   *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447   (eval "$ac_link") 2>conftest.er1
15448   ac_status=$?
15449   grep -v '^ *+' conftest.er1 >conftest.err
15450   rm -f conftest.er1
15451   cat conftest.err >&5
15452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); } && {
15454          test -z "$ac_c_werror_flag" ||
15455          test ! -s conftest.err
15456        } && test -s conftest$ac_exeext &&
15457        $as_test_x conftest$ac_exeext; then
15458   eval "$as_ac_var=yes"
15459 else
15460   echo "$as_me: failed program was:" >&5
15461 sed 's/^/| /' conftest.$ac_ext >&5
15462
15463         eval "$as_ac_var=no"
15464 fi
15465
15466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15467       conftest$ac_exeext conftest.$ac_ext
15468 fi
15469 ac_res=`eval echo '${'$as_ac_var'}'`
15470                { echo "$as_me:$LINENO: result: $ac_res" >&5
15471 echo "${ECHO_T}$ac_res" >&6; }
15472 if test `eval echo '${'$as_ac_var'}'` = yes; then
15473   cat >>confdefs.h <<_ACEOF
15474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15475 _ACEOF
15476  SKIP_SETEUID=yes
15477 fi
15478 done
15479
15480 fi
15481 if test -z "$SKIP_SETEUID"; then
15482
15483 for ac_func in seteuid
15484 do
15485 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15486 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15487 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15489   echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491   cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h.  */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h.  */
15497 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15498    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15499 #define $ac_func innocuous_$ac_func
15500
15501 /* System header to define __stub macros and hopefully few prototypes,
15502     which can conflict with char $ac_func (); below.
15503     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15504     <limits.h> exists even on freestanding compilers.  */
15505
15506 #ifdef __STDC__
15507 # include <limits.h>
15508 #else
15509 # include <assert.h>
15510 #endif
15511
15512 #undef $ac_func
15513
15514 /* Override any GCC internal prototype to avoid an error.
15515    Use char because int might match the return type of a GCC
15516    builtin and then its argument prototype would still apply.  */
15517 #ifdef __cplusplus
15518 extern "C"
15519 #endif
15520 char $ac_func ();
15521 /* The GNU C library defines this for functions which it implements
15522     to always fail with ENOSYS.  Some functions are actually named
15523     something starting with __ and the normal name is an alias.  */
15524 #if defined __stub_$ac_func || defined __stub___$ac_func
15525 choke me
15526 #endif
15527
15528 int
15529 main ()
15530 {
15531 return $ac_func ();
15532   ;
15533   return 0;
15534 }
15535 _ACEOF
15536 rm -f conftest.$ac_objext conftest$ac_exeext
15537 if { (ac_try="$ac_link"
15538 case "(($ac_try" in
15539   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15540   *) ac_try_echo=$ac_try;;
15541 esac
15542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15543   (eval "$ac_link") 2>conftest.er1
15544   ac_status=$?
15545   grep -v '^ *+' conftest.er1 >conftest.err
15546   rm -f conftest.er1
15547   cat conftest.err >&5
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); } && {
15550          test -z "$ac_c_werror_flag" ||
15551          test ! -s conftest.err
15552        } && test -s conftest$ac_exeext &&
15553        $as_test_x conftest$ac_exeext; then
15554   eval "$as_ac_var=yes"
15555 else
15556   echo "$as_me: failed program was:" >&5
15557 sed 's/^/| /' conftest.$ac_ext >&5
15558
15559         eval "$as_ac_var=no"
15560 fi
15561
15562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15563       conftest$ac_exeext conftest.$ac_ext
15564 fi
15565 ac_res=`eval echo '${'$as_ac_var'}'`
15566                { echo "$as_me:$LINENO: result: $ac_res" >&5
15567 echo "${ECHO_T}$ac_res" >&6; }
15568 if test `eval echo '${'$as_ac_var'}'` = yes; then
15569   cat >>confdefs.h <<_ACEOF
15570 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15571 _ACEOF
15572
15573 fi
15574 done
15575
15576 fi
15577 if test X"$with_interfaces" != X"no"; then
15578
15579 for ac_func in getifaddrs
15580 do
15581 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15582 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15583 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15584 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15585   echo $ECHO_N "(cached) $ECHO_C" >&6
15586 else
15587   cat >conftest.$ac_ext <<_ACEOF
15588 /* confdefs.h.  */
15589 _ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h.  */
15593 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15594    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15595 #define $ac_func innocuous_$ac_func
15596
15597 /* System header to define __stub macros and hopefully few prototypes,
15598     which can conflict with char $ac_func (); below.
15599     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15600     <limits.h> exists even on freestanding compilers.  */
15601
15602 #ifdef __STDC__
15603 # include <limits.h>
15604 #else
15605 # include <assert.h>
15606 #endif
15607
15608 #undef $ac_func
15609
15610 /* Override any GCC internal prototype to avoid an error.
15611    Use char because int might match the return type of a GCC
15612    builtin and then its argument prototype would still apply.  */
15613 #ifdef __cplusplus
15614 extern "C"
15615 #endif
15616 char $ac_func ();
15617 /* The GNU C library defines this for functions which it implements
15618     to always fail with ENOSYS.  Some functions are actually named
15619     something starting with __ and the normal name is an alias.  */
15620 #if defined __stub_$ac_func || defined __stub___$ac_func
15621 choke me
15622 #endif
15623
15624 int
15625 main ()
15626 {
15627 return $ac_func ();
15628   ;
15629   return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636   *) ac_try_echo=$ac_try;;
15637 esac
15638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15639   (eval "$ac_link") 2>conftest.er1
15640   ac_status=$?
15641   grep -v '^ *+' conftest.er1 >conftest.err
15642   rm -f conftest.er1
15643   cat conftest.err >&5
15644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15645   (exit $ac_status); } && {
15646          test -z "$ac_c_werror_flag" ||
15647          test ! -s conftest.err
15648        } && test -s conftest$ac_exeext &&
15649        $as_test_x conftest$ac_exeext; then
15650   eval "$as_ac_var=yes"
15651 else
15652   echo "$as_me: failed program was:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15654
15655         eval "$as_ac_var=no"
15656 fi
15657
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659       conftest$ac_exeext conftest.$ac_ext
15660 fi
15661 ac_res=`eval echo '${'$as_ac_var'}'`
15662                { echo "$as_me:$LINENO: result: $ac_res" >&5
15663 echo "${ECHO_T}$ac_res" >&6; }
15664 if test `eval echo '${'$as_ac_var'}'` = yes; then
15665   cat >>confdefs.h <<_ACEOF
15666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15667 _ACEOF
15668
15669 for ac_func in freeifaddrs
15670 do
15671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15675   echo $ECHO_N "(cached) $ECHO_C" >&6
15676 else
15677   cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h.  */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h.  */
15683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15684    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15685 #define $ac_func innocuous_$ac_func
15686
15687 /* System header to define __stub macros and hopefully few prototypes,
15688     which can conflict with char $ac_func (); below.
15689     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15690     <limits.h> exists even on freestanding compilers.  */
15691
15692 #ifdef __STDC__
15693 # include <limits.h>
15694 #else
15695 # include <assert.h>
15696 #endif
15697
15698 #undef $ac_func
15699
15700 /* Override any GCC internal prototype to avoid an error.
15701    Use char because int might match the return type of a GCC
15702    builtin and then its argument prototype would still apply.  */
15703 #ifdef __cplusplus
15704 extern "C"
15705 #endif
15706 char $ac_func ();
15707 /* The GNU C library defines this for functions which it implements
15708     to always fail with ENOSYS.  Some functions are actually named
15709     something starting with __ and the normal name is an alias.  */
15710 #if defined __stub_$ac_func || defined __stub___$ac_func
15711 choke me
15712 #endif
15713
15714 int
15715 main ()
15716 {
15717 return $ac_func ();
15718   ;
15719   return 0;
15720 }
15721 _ACEOF
15722 rm -f conftest.$ac_objext conftest$ac_exeext
15723 if { (ac_try="$ac_link"
15724 case "(($ac_try" in
15725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726   *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729   (eval "$ac_link") 2>conftest.er1
15730   ac_status=$?
15731   grep -v '^ *+' conftest.er1 >conftest.err
15732   rm -f conftest.er1
15733   cat conftest.err >&5
15734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15735   (exit $ac_status); } && {
15736          test -z "$ac_c_werror_flag" ||
15737          test ! -s conftest.err
15738        } && test -s conftest$ac_exeext &&
15739        $as_test_x conftest$ac_exeext; then
15740   eval "$as_ac_var=yes"
15741 else
15742   echo "$as_me: failed program was:" >&5
15743 sed 's/^/| /' conftest.$ac_ext >&5
15744
15745         eval "$as_ac_var=no"
15746 fi
15747
15748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15749       conftest$ac_exeext conftest.$ac_ext
15750 fi
15751 ac_res=`eval echo '${'$as_ac_var'}'`
15752                { echo "$as_me:$LINENO: result: $ac_res" >&5
15753 echo "${ECHO_T}$ac_res" >&6; }
15754 if test `eval echo '${'$as_ac_var'}'` = yes; then
15755   cat >>confdefs.h <<_ACEOF
15756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15757 _ACEOF
15758
15759 fi
15760 done
15761
15762 fi
15763 done
15764
15765 fi
15766 if test -z "$BROKEN_GETCWD"; then
15767
15768 for ac_func in getcwd
15769 do
15770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15774   echo $ECHO_N "(cached) $ECHO_C" >&6
15775 else
15776   cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h.  */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h.  */
15782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15784 #define $ac_func innocuous_$ac_func
15785
15786 /* System header to define __stub macros and hopefully few prototypes,
15787     which can conflict with char $ac_func (); below.
15788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15789     <limits.h> exists even on freestanding compilers.  */
15790
15791 #ifdef __STDC__
15792 # include <limits.h>
15793 #else
15794 # include <assert.h>
15795 #endif
15796
15797 #undef $ac_func
15798
15799 /* Override any GCC internal prototype to avoid an error.
15800    Use char because int might match the return type of a GCC
15801    builtin and then its argument prototype would still apply.  */
15802 #ifdef __cplusplus
15803 extern "C"
15804 #endif
15805 char $ac_func ();
15806 /* The GNU C library defines this for functions which it implements
15807     to always fail with ENOSYS.  Some functions are actually named
15808     something starting with __ and the normal name is an alias.  */
15809 #if defined __stub_$ac_func || defined __stub___$ac_func
15810 choke me
15811 #endif
15812
15813 int
15814 main ()
15815 {
15816 return $ac_func ();
15817   ;
15818   return 0;
15819 }
15820 _ACEOF
15821 rm -f conftest.$ac_objext conftest$ac_exeext
15822 if { (ac_try="$ac_link"
15823 case "(($ac_try" in
15824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825   *) ac_try_echo=$ac_try;;
15826 esac
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828   (eval "$ac_link") 2>conftest.er1
15829   ac_status=$?
15830   grep -v '^ *+' conftest.er1 >conftest.err
15831   rm -f conftest.er1
15832   cat conftest.err >&5
15833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834   (exit $ac_status); } && {
15835          test -z "$ac_c_werror_flag" ||
15836          test ! -s conftest.err
15837        } && test -s conftest$ac_exeext &&
15838        $as_test_x conftest$ac_exeext; then
15839   eval "$as_ac_var=yes"
15840 else
15841   echo "$as_me: failed program was:" >&5
15842 sed 's/^/| /' conftest.$ac_ext >&5
15843
15844         eval "$as_ac_var=no"
15845 fi
15846
15847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15848       conftest$ac_exeext conftest.$ac_ext
15849 fi
15850 ac_res=`eval echo '${'$as_ac_var'}'`
15851                { echo "$as_me:$LINENO: result: $ac_res" >&5
15852 echo "${ECHO_T}$ac_res" >&6; }
15853 if test `eval echo '${'$as_ac_var'}'` = yes; then
15854   cat >>confdefs.h <<_ACEOF
15855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15856 _ACEOF
15857
15858 else
15859   case " $LIBOBJS " in
15860   *" $ac_func.$ac_objext "* ) ;;
15861   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
15862  ;;
15863 esac
15864
15865 fi
15866 done
15867
15868
15869 fi
15870
15871 for ac_func in glob
15872 do
15873 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15874 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15875 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15876 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15877   echo $ECHO_N "(cached) $ECHO_C" >&6
15878 else
15879   cat >conftest.$ac_ext <<_ACEOF
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15886    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15887 #define $ac_func innocuous_$ac_func
15888
15889 /* System header to define __stub macros and hopefully few prototypes,
15890     which can conflict with char $ac_func (); below.
15891     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15892     <limits.h> exists even on freestanding compilers.  */
15893
15894 #ifdef __STDC__
15895 # include <limits.h>
15896 #else
15897 # include <assert.h>
15898 #endif
15899
15900 #undef $ac_func
15901
15902 /* Override any GCC internal prototype to avoid an error.
15903    Use char because int might match the return type of a GCC
15904    builtin and then its argument prototype would still apply.  */
15905 #ifdef __cplusplus
15906 extern "C"
15907 #endif
15908 char $ac_func ();
15909 /* The GNU C library defines this for functions which it implements
15910     to always fail with ENOSYS.  Some functions are actually named
15911     something starting with __ and the normal name is an alias.  */
15912 #if defined __stub_$ac_func || defined __stub___$ac_func
15913 choke me
15914 #endif
15915
15916 int
15917 main ()
15918 {
15919 return $ac_func ();
15920   ;
15921   return 0;
15922 }
15923 _ACEOF
15924 rm -f conftest.$ac_objext conftest$ac_exeext
15925 if { (ac_try="$ac_link"
15926 case "(($ac_try" in
15927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928   *) ac_try_echo=$ac_try;;
15929 esac
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931   (eval "$ac_link") 2>conftest.er1
15932   ac_status=$?
15933   grep -v '^ *+' conftest.er1 >conftest.err
15934   rm -f conftest.er1
15935   cat conftest.err >&5
15936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15937   (exit $ac_status); } && {
15938          test -z "$ac_c_werror_flag" ||
15939          test ! -s conftest.err
15940        } && test -s conftest$ac_exeext &&
15941        $as_test_x conftest$ac_exeext; then
15942   eval "$as_ac_var=yes"
15943 else
15944   echo "$as_me: failed program was:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15946
15947         eval "$as_ac_var=no"
15948 fi
15949
15950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15951       conftest$ac_exeext conftest.$ac_ext
15952 fi
15953 ac_res=`eval echo '${'$as_ac_var'}'`
15954                { echo "$as_me:$LINENO: result: $ac_res" >&5
15955 echo "${ECHO_T}$ac_res" >&6; }
15956 if test `eval echo '${'$as_ac_var'}'` = yes; then
15957   cat >>confdefs.h <<_ACEOF
15958 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15959 _ACEOF
15960  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
15961 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h.  */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h.  */
15968 #include <glob.h>
15969 int
15970 main ()
15971 {
15972 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
15973   ;
15974   return 0;
15975 }
15976 _ACEOF
15977 rm -f conftest.$ac_objext
15978 if { (ac_try="$ac_compile"
15979 case "(($ac_try" in
15980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981   *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984   (eval "$ac_compile") 2>conftest.er1
15985   ac_status=$?
15986   grep -v '^ *+' conftest.er1 >conftest.err
15987   rm -f conftest.er1
15988   cat conftest.err >&5
15989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990   (exit $ac_status); } && {
15991          test -z "$ac_c_werror_flag" ||
15992          test ! -s conftest.err
15993        } && test -s conftest.$ac_objext; then
15994   cat >>confdefs.h <<\_ACEOF
15995 #define HAVE_EXTENDED_GLOB 1
15996 _ACEOF
15997
15998     { echo "$as_me:$LINENO: result: yes" >&5
15999 echo "${ECHO_T}yes" >&6; }
16000 else
16001   echo "$as_me: failed program was:" >&5
16002 sed 's/^/| /' conftest.$ac_ext >&5
16003
16004         case " $LIBOBJS " in
16005   *" glob.$ac_objext "* ) ;;
16006   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16007  ;;
16008 esac
16009
16010     { echo "$as_me:$LINENO: result: no" >&5
16011 echo "${ECHO_T}no" >&6; }
16012 fi
16013
16014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015 else
16016   case " $LIBOBJS " in
16017   *" glob.$ac_objext "* ) ;;
16018   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16019  ;;
16020 esac
16021
16022 fi
16023 done
16024
16025
16026
16027 for ac_func in lockf flock
16028 do
16029 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16030 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16031 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16032 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16033   echo $ECHO_N "(cached) $ECHO_C" >&6
16034 else
16035   cat >conftest.$ac_ext <<_ACEOF
16036 /* confdefs.h.  */
16037 _ACEOF
16038 cat confdefs.h >>conftest.$ac_ext
16039 cat >>conftest.$ac_ext <<_ACEOF
16040 /* end confdefs.h.  */
16041 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16042    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16043 #define $ac_func innocuous_$ac_func
16044
16045 /* System header to define __stub macros and hopefully few prototypes,
16046     which can conflict with char $ac_func (); below.
16047     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16048     <limits.h> exists even on freestanding compilers.  */
16049
16050 #ifdef __STDC__
16051 # include <limits.h>
16052 #else
16053 # include <assert.h>
16054 #endif
16055
16056 #undef $ac_func
16057
16058 /* Override any GCC internal prototype to avoid an error.
16059    Use char because int might match the return type of a GCC
16060    builtin and then its argument prototype would still apply.  */
16061 #ifdef __cplusplus
16062 extern "C"
16063 #endif
16064 char $ac_func ();
16065 /* The GNU C library defines this for functions which it implements
16066     to always fail with ENOSYS.  Some functions are actually named
16067     something starting with __ and the normal name is an alias.  */
16068 #if defined __stub_$ac_func || defined __stub___$ac_func
16069 choke me
16070 #endif
16071
16072 int
16073 main ()
16074 {
16075 return $ac_func ();
16076   ;
16077   return 0;
16078 }
16079 _ACEOF
16080 rm -f conftest.$ac_objext conftest$ac_exeext
16081 if { (ac_try="$ac_link"
16082 case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_link") 2>conftest.er1
16088   ac_status=$?
16089   grep -v '^ *+' conftest.er1 >conftest.err
16090   rm -f conftest.er1
16091   cat conftest.err >&5
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } && {
16094          test -z "$ac_c_werror_flag" ||
16095          test ! -s conftest.err
16096        } && test -s conftest$ac_exeext &&
16097        $as_test_x conftest$ac_exeext; then
16098   eval "$as_ac_var=yes"
16099 else
16100   echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16102
16103         eval "$as_ac_var=no"
16104 fi
16105
16106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16107       conftest$ac_exeext conftest.$ac_ext
16108 fi
16109 ac_res=`eval echo '${'$as_ac_var'}'`
16110                { echo "$as_me:$LINENO: result: $ac_res" >&5
16111 echo "${ECHO_T}$ac_res" >&6; }
16112 if test `eval echo '${'$as_ac_var'}'` = yes; then
16113   cat >>confdefs.h <<_ACEOF
16114 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16115 _ACEOF
16116  break
16117 fi
16118 done
16119
16120
16121
16122 for ac_func in waitpid wait3
16123 do
16124 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16128   echo $ECHO_N "(cached) $ECHO_C" >&6
16129 else
16130   cat >conftest.$ac_ext <<_ACEOF
16131 /* confdefs.h.  */
16132 _ACEOF
16133 cat confdefs.h >>conftest.$ac_ext
16134 cat >>conftest.$ac_ext <<_ACEOF
16135 /* end confdefs.h.  */
16136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16137    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16138 #define $ac_func innocuous_$ac_func
16139
16140 /* System header to define __stub macros and hopefully few prototypes,
16141     which can conflict with char $ac_func (); below.
16142     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16143     <limits.h> exists even on freestanding compilers.  */
16144
16145 #ifdef __STDC__
16146 # include <limits.h>
16147 #else
16148 # include <assert.h>
16149 #endif
16150
16151 #undef $ac_func
16152
16153 /* Override any GCC internal prototype to avoid an error.
16154    Use char because int might match the return type of a GCC
16155    builtin and then its argument prototype would still apply.  */
16156 #ifdef __cplusplus
16157 extern "C"
16158 #endif
16159 char $ac_func ();
16160 /* The GNU C library defines this for functions which it implements
16161     to always fail with ENOSYS.  Some functions are actually named
16162     something starting with __ and the normal name is an alias.  */
16163 #if defined __stub_$ac_func || defined __stub___$ac_func
16164 choke me
16165 #endif
16166
16167 int
16168 main ()
16169 {
16170 return $ac_func ();
16171   ;
16172   return 0;
16173 }
16174 _ACEOF
16175 rm -f conftest.$ac_objext conftest$ac_exeext
16176 if { (ac_try="$ac_link"
16177 case "(($ac_try" in
16178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16179   *) ac_try_echo=$ac_try;;
16180 esac
16181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16182   (eval "$ac_link") 2>conftest.er1
16183   ac_status=$?
16184   grep -v '^ *+' conftest.er1 >conftest.err
16185   rm -f conftest.er1
16186   cat conftest.err >&5
16187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188   (exit $ac_status); } && {
16189          test -z "$ac_c_werror_flag" ||
16190          test ! -s conftest.err
16191        } && test -s conftest$ac_exeext &&
16192        $as_test_x conftest$ac_exeext; then
16193   eval "$as_ac_var=yes"
16194 else
16195   echo "$as_me: failed program was:" >&5
16196 sed 's/^/| /' conftest.$ac_ext >&5
16197
16198         eval "$as_ac_var=no"
16199 fi
16200
16201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16202       conftest$ac_exeext conftest.$ac_ext
16203 fi
16204 ac_res=`eval echo '${'$as_ac_var'}'`
16205                { echo "$as_me:$LINENO: result: $ac_res" >&5
16206 echo "${ECHO_T}$ac_res" >&6; }
16207 if test `eval echo '${'$as_ac_var'}'` = yes; then
16208   cat >>confdefs.h <<_ACEOF
16209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16210 _ACEOF
16211  break
16212 fi
16213 done
16214
16215
16216
16217 for ac_func in innetgr _innetgr
16218 do
16219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16223   echo $ECHO_N "(cached) $ECHO_C" >&6
16224 else
16225   cat >conftest.$ac_ext <<_ACEOF
16226 /* confdefs.h.  */
16227 _ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h.  */
16231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16233 #define $ac_func innocuous_$ac_func
16234
16235 /* System header to define __stub macros and hopefully few prototypes,
16236     which can conflict with char $ac_func (); below.
16237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16238     <limits.h> exists even on freestanding compilers.  */
16239
16240 #ifdef __STDC__
16241 # include <limits.h>
16242 #else
16243 # include <assert.h>
16244 #endif
16245
16246 #undef $ac_func
16247
16248 /* Override any GCC internal prototype to avoid an error.
16249    Use char because int might match the return type of a GCC
16250    builtin and then its argument prototype would still apply.  */
16251 #ifdef __cplusplus
16252 extern "C"
16253 #endif
16254 char $ac_func ();
16255 /* The GNU C library defines this for functions which it implements
16256     to always fail with ENOSYS.  Some functions are actually named
16257     something starting with __ and the normal name is an alias.  */
16258 #if defined __stub_$ac_func || defined __stub___$ac_func
16259 choke me
16260 #endif
16261
16262 int
16263 main ()
16264 {
16265 return $ac_func ();
16266   ;
16267   return 0;
16268 }
16269 _ACEOF
16270 rm -f conftest.$ac_objext conftest$ac_exeext
16271 if { (ac_try="$ac_link"
16272 case "(($ac_try" in
16273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16274   *) ac_try_echo=$ac_try;;
16275 esac
16276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16277   (eval "$ac_link") 2>conftest.er1
16278   ac_status=$?
16279   grep -v '^ *+' conftest.er1 >conftest.err
16280   rm -f conftest.er1
16281   cat conftest.err >&5
16282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16283   (exit $ac_status); } && {
16284          test -z "$ac_c_werror_flag" ||
16285          test ! -s conftest.err
16286        } && test -s conftest$ac_exeext &&
16287        $as_test_x conftest$ac_exeext; then
16288   eval "$as_ac_var=yes"
16289 else
16290   echo "$as_me: failed program was:" >&5
16291 sed 's/^/| /' conftest.$ac_ext >&5
16292
16293         eval "$as_ac_var=no"
16294 fi
16295
16296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16297       conftest$ac_exeext conftest.$ac_ext
16298 fi
16299 ac_res=`eval echo '${'$as_ac_var'}'`
16300                { echo "$as_me:$LINENO: result: $ac_res" >&5
16301 echo "${ECHO_T}$ac_res" >&6; }
16302 if test `eval echo '${'$as_ac_var'}'` = yes; then
16303   cat >>confdefs.h <<_ACEOF
16304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16305 _ACEOF
16306
16307 for ac_func in getdomainname
16308 do
16309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16313   echo $ECHO_N "(cached) $ECHO_C" >&6
16314 else
16315   cat >conftest.$ac_ext <<_ACEOF
16316 /* confdefs.h.  */
16317 _ACEOF
16318 cat confdefs.h >>conftest.$ac_ext
16319 cat >>conftest.$ac_ext <<_ACEOF
16320 /* end confdefs.h.  */
16321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16322    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16323 #define $ac_func innocuous_$ac_func
16324
16325 /* System header to define __stub macros and hopefully few prototypes,
16326     which can conflict with char $ac_func (); below.
16327     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16328     <limits.h> exists even on freestanding compilers.  */
16329
16330 #ifdef __STDC__
16331 # include <limits.h>
16332 #else
16333 # include <assert.h>
16334 #endif
16335
16336 #undef $ac_func
16337
16338 /* Override any GCC internal prototype to avoid an error.
16339    Use char because int might match the return type of a GCC
16340    builtin and then its argument prototype would still apply.  */
16341 #ifdef __cplusplus
16342 extern "C"
16343 #endif
16344 char $ac_func ();
16345 /* The GNU C library defines this for functions which it implements
16346     to always fail with ENOSYS.  Some functions are actually named
16347     something starting with __ and the normal name is an alias.  */
16348 #if defined __stub_$ac_func || defined __stub___$ac_func
16349 choke me
16350 #endif
16351
16352 int
16353 main ()
16354 {
16355 return $ac_func ();
16356   ;
16357   return 0;
16358 }
16359 _ACEOF
16360 rm -f conftest.$ac_objext conftest$ac_exeext
16361 if { (ac_try="$ac_link"
16362 case "(($ac_try" in
16363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16364   *) ac_try_echo=$ac_try;;
16365 esac
16366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16367   (eval "$ac_link") 2>conftest.er1
16368   ac_status=$?
16369   grep -v '^ *+' conftest.er1 >conftest.err
16370   rm -f conftest.er1
16371   cat conftest.err >&5
16372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16373   (exit $ac_status); } && {
16374          test -z "$ac_c_werror_flag" ||
16375          test ! -s conftest.err
16376        } && test -s conftest$ac_exeext &&
16377        $as_test_x conftest$ac_exeext; then
16378   eval "$as_ac_var=yes"
16379 else
16380   echo "$as_me: failed program was:" >&5
16381 sed 's/^/| /' conftest.$ac_ext >&5
16382
16383         eval "$as_ac_var=no"
16384 fi
16385
16386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16387       conftest$ac_exeext conftest.$ac_ext
16388 fi
16389 ac_res=`eval echo '${'$as_ac_var'}'`
16390                { echo "$as_me:$LINENO: result: $ac_res" >&5
16391 echo "${ECHO_T}$ac_res" >&6; }
16392 if test `eval echo '${'$as_ac_var'}'` = yes; then
16393   cat >>confdefs.h <<_ACEOF
16394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16395 _ACEOF
16396
16397 fi
16398 done
16399  break
16400 fi
16401 done
16402
16403
16404 for ac_func in lsearch
16405 do
16406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16410   echo $ECHO_N "(cached) $ECHO_C" >&6
16411 else
16412   cat >conftest.$ac_ext <<_ACEOF
16413 /* confdefs.h.  */
16414 _ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h.  */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16420 #define $ac_func innocuous_$ac_func
16421
16422 /* System header to define __stub macros and hopefully few prototypes,
16423     which can conflict with char $ac_func (); below.
16424     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425     <limits.h> exists even on freestanding compilers.  */
16426
16427 #ifdef __STDC__
16428 # include <limits.h>
16429 #else
16430 # include <assert.h>
16431 #endif
16432
16433 #undef $ac_func
16434
16435 /* Override any GCC internal prototype to avoid an error.
16436    Use char because int might match the return type of a GCC
16437    builtin and then its argument prototype would still apply.  */
16438 #ifdef __cplusplus
16439 extern "C"
16440 #endif
16441 char $ac_func ();
16442 /* The GNU C library defines this for functions which it implements
16443     to always fail with ENOSYS.  Some functions are actually named
16444     something starting with __ and the normal name is an alias.  */
16445 #if defined __stub_$ac_func || defined __stub___$ac_func
16446 choke me
16447 #endif
16448
16449 int
16450 main ()
16451 {
16452 return $ac_func ();
16453   ;
16454   return 0;
16455 }
16456 _ACEOF
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461   *) ac_try_echo=$ac_try;;
16462 esac
16463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16464   (eval "$ac_link") 2>conftest.er1
16465   ac_status=$?
16466   grep -v '^ *+' conftest.er1 >conftest.err
16467   rm -f conftest.er1
16468   cat conftest.err >&5
16469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16470   (exit $ac_status); } && {
16471          test -z "$ac_c_werror_flag" ||
16472          test ! -s conftest.err
16473        } && test -s conftest$ac_exeext &&
16474        $as_test_x conftest$ac_exeext; then
16475   eval "$as_ac_var=yes"
16476 else
16477   echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16479
16480         eval "$as_ac_var=no"
16481 fi
16482
16483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16484       conftest$ac_exeext conftest.$ac_ext
16485 fi
16486 ac_res=`eval echo '${'$as_ac_var'}'`
16487                { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490   cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16492 _ACEOF
16493
16494 else
16495   { echo "$as_me:$LINENO: checking for lsearch in -lcompat" >&5
16496 echo $ECHO_N "checking for lsearch in -lcompat... $ECHO_C" >&6; }
16497 if test "${ac_cv_lib_compat_lsearch+set}" = set; then
16498   echo $ECHO_N "(cached) $ECHO_C" >&6
16499 else
16500   ac_check_lib_save_LIBS=$LIBS
16501 LIBS="-lcompat  $LIBS"
16502 cat >conftest.$ac_ext <<_ACEOF
16503 /* confdefs.h.  */
16504 _ACEOF
16505 cat confdefs.h >>conftest.$ac_ext
16506 cat >>conftest.$ac_ext <<_ACEOF
16507 /* end confdefs.h.  */
16508
16509 /* Override any GCC internal prototype to avoid an error.
16510    Use char because int might match the return type of a GCC
16511    builtin and then its argument prototype would still apply.  */
16512 #ifdef __cplusplus
16513 extern "C"
16514 #endif
16515 char lsearch ();
16516 int
16517 main ()
16518 {
16519 return lsearch ();
16520   ;
16521   return 0;
16522 }
16523 _ACEOF
16524 rm -f conftest.$ac_objext conftest$ac_exeext
16525 if { (ac_try="$ac_link"
16526 case "(($ac_try" in
16527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16528   *) ac_try_echo=$ac_try;;
16529 esac
16530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16531   (eval "$ac_link") 2>conftest.er1
16532   ac_status=$?
16533   grep -v '^ *+' conftest.er1 >conftest.err
16534   rm -f conftest.er1
16535   cat conftest.err >&5
16536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16537   (exit $ac_status); } && {
16538          test -z "$ac_c_werror_flag" ||
16539          test ! -s conftest.err
16540        } && test -s conftest$ac_exeext &&
16541        $as_test_x conftest$ac_exeext; then
16542   ac_cv_lib_compat_lsearch=yes
16543 else
16544   echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.$ac_ext >&5
16546
16547         ac_cv_lib_compat_lsearch=no
16548 fi
16549
16550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16551       conftest$ac_exeext conftest.$ac_ext
16552 LIBS=$ac_check_lib_save_LIBS
16553 fi
16554 { echo "$as_me:$LINENO: result: $ac_cv_lib_compat_lsearch" >&5
16555 echo "${ECHO_T}$ac_cv_lib_compat_lsearch" >&6; }
16556 if test $ac_cv_lib_compat_lsearch = yes; then
16557   { echo "$as_me:$LINENO: checking for search.h" >&5
16558 echo $ECHO_N "checking for search.h... $ECHO_C" >&6; }
16559 if test "${ac_cv_header_search_h+set}" = set; then
16560   echo $ECHO_N "(cached) $ECHO_C" >&6
16561 else
16562   cat >conftest.$ac_ext <<_ACEOF
16563 /* confdefs.h.  */
16564 _ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h.  */
16568 #include <search.h>
16569 _ACEOF
16570 if { (ac_try="$ac_cpp conftest.$ac_ext"
16571 case "(($ac_try" in
16572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16573   *) ac_try_echo=$ac_try;;
16574 esac
16575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16576   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16577   ac_status=$?
16578   grep -v '^ *+' conftest.er1 >conftest.err
16579   rm -f conftest.er1
16580   cat conftest.err >&5
16581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16582   (exit $ac_status); } >/dev/null && {
16583          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16584          test ! -s conftest.err
16585        }; then
16586   ac_cv_header_search_h=yes
16587 else
16588   echo "$as_me: failed program was:" >&5
16589 sed 's/^/| /' conftest.$ac_ext >&5
16590
16591   ac_cv_header_search_h=no
16592 fi
16593
16594 rm -f conftest.err conftest.$ac_ext
16595 fi
16596 { echo "$as_me:$LINENO: result: $ac_cv_header_search_h" >&5
16597 echo "${ECHO_T}$ac_cv_header_search_h" >&6; }
16598 if test $ac_cv_header_search_h = yes; then
16599   cat >>confdefs.h <<\_ACEOF
16600 #define HAVE_LSEARCH 1
16601 _ACEOF
16602  LIBS="${LIBS} -lcompat"
16603 else
16604   case " $LIBOBJS " in
16605   *" lsearch.$ac_objext "* ) ;;
16606   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16607  ;;
16608 esac
16609
16610 fi
16611
16612
16613 else
16614   case " $LIBOBJS " in
16615   *" lsearch.$ac_objext "* ) ;;
16616   *) LIBOBJS="$LIBOBJS lsearch.$ac_objext"
16617  ;;
16618 esac
16619
16620 fi
16621
16622 fi
16623 done
16624
16625
16626 for ac_func in utimes
16627 do
16628 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16629 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16630 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16631 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16632   echo $ECHO_N "(cached) $ECHO_C" >&6
16633 else
16634   cat >conftest.$ac_ext <<_ACEOF
16635 /* confdefs.h.  */
16636 _ACEOF
16637 cat confdefs.h >>conftest.$ac_ext
16638 cat >>conftest.$ac_ext <<_ACEOF
16639 /* end confdefs.h.  */
16640 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16641    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16642 #define $ac_func innocuous_$ac_func
16643
16644 /* System header to define __stub macros and hopefully few prototypes,
16645     which can conflict with char $ac_func (); below.
16646     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16647     <limits.h> exists even on freestanding compilers.  */
16648
16649 #ifdef __STDC__
16650 # include <limits.h>
16651 #else
16652 # include <assert.h>
16653 #endif
16654
16655 #undef $ac_func
16656
16657 /* Override any GCC internal prototype to avoid an error.
16658    Use char because int might match the return type of a GCC
16659    builtin and then its argument prototype would still apply.  */
16660 #ifdef __cplusplus
16661 extern "C"
16662 #endif
16663 char $ac_func ();
16664 /* The GNU C library defines this for functions which it implements
16665     to always fail with ENOSYS.  Some functions are actually named
16666     something starting with __ and the normal name is an alias.  */
16667 #if defined __stub_$ac_func || defined __stub___$ac_func
16668 choke me
16669 #endif
16670
16671 int
16672 main ()
16673 {
16674 return $ac_func ();
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 rm -f conftest.$ac_objext conftest$ac_exeext
16680 if { (ac_try="$ac_link"
16681 case "(($ac_try" in
16682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683   *) ac_try_echo=$ac_try;;
16684 esac
16685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16686   (eval "$ac_link") 2>conftest.er1
16687   ac_status=$?
16688   grep -v '^ *+' conftest.er1 >conftest.err
16689   rm -f conftest.er1
16690   cat conftest.err >&5
16691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16692   (exit $ac_status); } && {
16693          test -z "$ac_c_werror_flag" ||
16694          test ! -s conftest.err
16695        } && test -s conftest$ac_exeext &&
16696        $as_test_x conftest$ac_exeext; then
16697   eval "$as_ac_var=yes"
16698 else
16699   echo "$as_me: failed program was:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16701
16702         eval "$as_ac_var=no"
16703 fi
16704
16705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16706       conftest$ac_exeext conftest.$ac_ext
16707 fi
16708 ac_res=`eval echo '${'$as_ac_var'}'`
16709                { echo "$as_me:$LINENO: result: $ac_res" >&5
16710 echo "${ECHO_T}$ac_res" >&6; }
16711 if test `eval echo '${'$as_ac_var'}'` = yes; then
16712   cat >>confdefs.h <<_ACEOF
16713 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16714 _ACEOF
16715
16716
16717 for ac_func in futimes futimesat
16718 do
16719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16723   echo $ECHO_N "(cached) $ECHO_C" >&6
16724 else
16725   cat >conftest.$ac_ext <<_ACEOF
16726 /* confdefs.h.  */
16727 _ACEOF
16728 cat confdefs.h >>conftest.$ac_ext
16729 cat >>conftest.$ac_ext <<_ACEOF
16730 /* end confdefs.h.  */
16731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16733 #define $ac_func innocuous_$ac_func
16734
16735 /* System header to define __stub macros and hopefully few prototypes,
16736     which can conflict with char $ac_func (); below.
16737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16738     <limits.h> exists even on freestanding compilers.  */
16739
16740 #ifdef __STDC__
16741 # include <limits.h>
16742 #else
16743 # include <assert.h>
16744 #endif
16745
16746 #undef $ac_func
16747
16748 /* Override any GCC internal prototype to avoid an error.
16749    Use char because int might match the return type of a GCC
16750    builtin and then its argument prototype would still apply.  */
16751 #ifdef __cplusplus
16752 extern "C"
16753 #endif
16754 char $ac_func ();
16755 /* The GNU C library defines this for functions which it implements
16756     to always fail with ENOSYS.  Some functions are actually named
16757     something starting with __ and the normal name is an alias.  */
16758 #if defined __stub_$ac_func || defined __stub___$ac_func
16759 choke me
16760 #endif
16761
16762 int
16763 main ()
16764 {
16765 return $ac_func ();
16766   ;
16767   return 0;
16768 }
16769 _ACEOF
16770 rm -f conftest.$ac_objext conftest$ac_exeext
16771 if { (ac_try="$ac_link"
16772 case "(($ac_try" in
16773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16774   *) ac_try_echo=$ac_try;;
16775 esac
16776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16777   (eval "$ac_link") 2>conftest.er1
16778   ac_status=$?
16779   grep -v '^ *+' conftest.er1 >conftest.err
16780   rm -f conftest.er1
16781   cat conftest.err >&5
16782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16783   (exit $ac_status); } && {
16784          test -z "$ac_c_werror_flag" ||
16785          test ! -s conftest.err
16786        } && test -s conftest$ac_exeext &&
16787        $as_test_x conftest$ac_exeext; then
16788   eval "$as_ac_var=yes"
16789 else
16790   echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793         eval "$as_ac_var=no"
16794 fi
16795
16796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16797       conftest$ac_exeext conftest.$ac_ext
16798 fi
16799 ac_res=`eval echo '${'$as_ac_var'}'`
16800                { echo "$as_me:$LINENO: result: $ac_res" >&5
16801 echo "${ECHO_T}$ac_res" >&6; }
16802 if test `eval echo '${'$as_ac_var'}'` = yes; then
16803   cat >>confdefs.h <<_ACEOF
16804 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16805 _ACEOF
16806  break
16807 fi
16808 done
16809
16810 else
16811
16812 for ac_func in futime
16813 do
16814 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16815 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16816 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16817 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16818   echo $ECHO_N "(cached) $ECHO_C" >&6
16819 else
16820   cat >conftest.$ac_ext <<_ACEOF
16821 /* confdefs.h.  */
16822 _ACEOF
16823 cat confdefs.h >>conftest.$ac_ext
16824 cat >>conftest.$ac_ext <<_ACEOF
16825 /* end confdefs.h.  */
16826 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16827    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16828 #define $ac_func innocuous_$ac_func
16829
16830 /* System header to define __stub macros and hopefully few prototypes,
16831     which can conflict with char $ac_func (); below.
16832     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16833     <limits.h> exists even on freestanding compilers.  */
16834
16835 #ifdef __STDC__
16836 # include <limits.h>
16837 #else
16838 # include <assert.h>
16839 #endif
16840
16841 #undef $ac_func
16842
16843 /* Override any GCC internal prototype to avoid an error.
16844    Use char because int might match the return type of a GCC
16845    builtin and then its argument prototype would still apply.  */
16846 #ifdef __cplusplus
16847 extern "C"
16848 #endif
16849 char $ac_func ();
16850 /* The GNU C library defines this for functions which it implements
16851     to always fail with ENOSYS.  Some functions are actually named
16852     something starting with __ and the normal name is an alias.  */
16853 #if defined __stub_$ac_func || defined __stub___$ac_func
16854 choke me
16855 #endif
16856
16857 int
16858 main ()
16859 {
16860 return $ac_func ();
16861   ;
16862   return 0;
16863 }
16864 _ACEOF
16865 rm -f conftest.$ac_objext conftest$ac_exeext
16866 if { (ac_try="$ac_link"
16867 case "(($ac_try" in
16868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16869   *) ac_try_echo=$ac_try;;
16870 esac
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872   (eval "$ac_link") 2>conftest.er1
16873   ac_status=$?
16874   grep -v '^ *+' conftest.er1 >conftest.err
16875   rm -f conftest.er1
16876   cat conftest.err >&5
16877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878   (exit $ac_status); } && {
16879          test -z "$ac_c_werror_flag" ||
16880          test ! -s conftest.err
16881        } && test -s conftest$ac_exeext &&
16882        $as_test_x conftest$ac_exeext; then
16883   eval "$as_ac_var=yes"
16884 else
16885   echo "$as_me: failed program was:" >&5
16886 sed 's/^/| /' conftest.$ac_ext >&5
16887
16888         eval "$as_ac_var=no"
16889 fi
16890
16891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16892       conftest$ac_exeext conftest.$ac_ext
16893 fi
16894 ac_res=`eval echo '${'$as_ac_var'}'`
16895                { echo "$as_me:$LINENO: result: $ac_res" >&5
16896 echo "${ECHO_T}$ac_res" >&6; }
16897 if test `eval echo '${'$as_ac_var'}'` = yes; then
16898   cat >>confdefs.h <<_ACEOF
16899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16900 _ACEOF
16901
16902 fi
16903 done
16904  case " $LIBOBJS " in
16905   *" utimes.$ac_objext "* ) ;;
16906   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
16907  ;;
16908 esac
16909
16910 fi
16911 done
16912
16913 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
16914 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
16915 if test "${sudo_cv_func_fnmatch+set}" = set; then
16916   echo $ECHO_N "(cached) $ECHO_C" >&6
16917 else
16918   rm -f conftestdata; > conftestdata
16919 if test "$cross_compiling" = yes; then
16920   sudo_cv_func_fnmatch=no
16921 else
16922   cat >conftest.$ac_ext <<_ACEOF
16923 /* confdefs.h.  */
16924 _ACEOF
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h.  */
16928 #include <fnmatch.h>
16929 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
16930 _ACEOF
16931 rm -f conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935   *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938   (eval "$ac_link") 2>&5
16939   ac_status=$?
16940   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16942   { (case "(($ac_try" in
16943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944   *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947   (eval "$ac_try") 2>&5
16948   ac_status=$?
16949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16950   (exit $ac_status); }; }; then
16951   sudo_cv_func_fnmatch=yes
16952 else
16953   echo "$as_me: program exited with status $ac_status" >&5
16954 echo "$as_me: failed program was:" >&5
16955 sed 's/^/| /' conftest.$ac_ext >&5
16956
16957 ( exit $ac_status )
16958 sudo_cv_func_fnmatch=no
16959 fi
16960 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16961 fi
16962
16963
16964 rm -f core core.* *.core
16965 fi
16966
16967 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
16968 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
16969 if test $sudo_cv_func_fnmatch = yes; then
16970   cat >>confdefs.h <<\_ACEOF
16971 #define HAVE_FNMATCH 1
16972 _ACEOF
16973
16974 else
16975   case " $LIBOBJS " in
16976   *" fnmatch.$ac_objext "* ) ;;
16977   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
16978  ;;
16979 esac
16980
16981 fi
16982
16983 { echo "$as_me:$LINENO: checking for isblank" >&5
16984 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
16985 if test "${sudo_cv_func_isblank+set}" = set; then
16986   echo $ECHO_N "(cached) $ECHO_C" >&6
16987 else
16988   cat >conftest.$ac_ext <<_ACEOF
16989 /* confdefs.h.  */
16990 _ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h.  */
16994 #include <ctype.h>
16995 int
16996 main ()
16997 {
16998 return (isblank('a'));
16999   ;
17000   return 0;
17001 }
17002 _ACEOF
17003 rm -f conftest.$ac_objext conftest$ac_exeext
17004 if { (ac_try="$ac_link"
17005 case "(($ac_try" in
17006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007   *) ac_try_echo=$ac_try;;
17008 esac
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010   (eval "$ac_link") 2>conftest.er1
17011   ac_status=$?
17012   grep -v '^ *+' conftest.er1 >conftest.err
17013   rm -f conftest.er1
17014   cat conftest.err >&5
17015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17016   (exit $ac_status); } && {
17017          test -z "$ac_c_werror_flag" ||
17018          test ! -s conftest.err
17019        } && test -s conftest$ac_exeext &&
17020        $as_test_x conftest$ac_exeext; then
17021   sudo_cv_func_isblank=yes
17022 else
17023   echo "$as_me: failed program was:" >&5
17024 sed 's/^/| /' conftest.$ac_ext >&5
17025
17026         sudo_cv_func_isblank=no
17027 fi
17028
17029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17030       conftest$ac_exeext conftest.$ac_ext
17031 fi
17032 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17033 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17034
17035   if test "$sudo_cv_func_isblank" = "yes"; then
17036
17037 cat >>confdefs.h <<\_ACEOF
17038 #define HAVE_ISBLANK 1
17039 _ACEOF
17040
17041   fi
17042
17043
17044
17045
17046
17047
17048
17049 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17050 do
17051 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17052 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17053 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17054 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17055   echo $ECHO_N "(cached) $ECHO_C" >&6
17056 else
17057   cat >conftest.$ac_ext <<_ACEOF
17058 /* confdefs.h.  */
17059 _ACEOF
17060 cat confdefs.h >>conftest.$ac_ext
17061 cat >>conftest.$ac_ext <<_ACEOF
17062 /* end confdefs.h.  */
17063 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17064    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17065 #define $ac_func innocuous_$ac_func
17066
17067 /* System header to define __stub macros and hopefully few prototypes,
17068     which can conflict with char $ac_func (); below.
17069     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17070     <limits.h> exists even on freestanding compilers.  */
17071
17072 #ifdef __STDC__
17073 # include <limits.h>
17074 #else
17075 # include <assert.h>
17076 #endif
17077
17078 #undef $ac_func
17079
17080 /* Override any GCC internal prototype to avoid an error.
17081    Use char because int might match the return type of a GCC
17082    builtin and then its argument prototype would still apply.  */
17083 #ifdef __cplusplus
17084 extern "C"
17085 #endif
17086 char $ac_func ();
17087 /* The GNU C library defines this for functions which it implements
17088     to always fail with ENOSYS.  Some functions are actually named
17089     something starting with __ and the normal name is an alias.  */
17090 #if defined __stub_$ac_func || defined __stub___$ac_func
17091 choke me
17092 #endif
17093
17094 int
17095 main ()
17096 {
17097 return $ac_func ();
17098   ;
17099   return 0;
17100 }
17101 _ACEOF
17102 rm -f conftest.$ac_objext conftest$ac_exeext
17103 if { (ac_try="$ac_link"
17104 case "(($ac_try" in
17105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17106   *) ac_try_echo=$ac_try;;
17107 esac
17108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17109   (eval "$ac_link") 2>conftest.er1
17110   ac_status=$?
17111   grep -v '^ *+' conftest.er1 >conftest.err
17112   rm -f conftest.er1
17113   cat conftest.err >&5
17114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115   (exit $ac_status); } && {
17116          test -z "$ac_c_werror_flag" ||
17117          test ! -s conftest.err
17118        } && test -s conftest$ac_exeext &&
17119        $as_test_x conftest$ac_exeext; then
17120   eval "$as_ac_var=yes"
17121 else
17122   echo "$as_me: failed program was:" >&5
17123 sed 's/^/| /' conftest.$ac_ext >&5
17124
17125         eval "$as_ac_var=no"
17126 fi
17127
17128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17129       conftest$ac_exeext conftest.$ac_ext
17130 fi
17131 ac_res=`eval echo '${'$as_ac_var'}'`
17132                { echo "$as_me:$LINENO: result: $ac_res" >&5
17133 echo "${ECHO_T}$ac_res" >&6; }
17134 if test `eval echo '${'$as_ac_var'}'` = yes; then
17135   cat >>confdefs.h <<_ACEOF
17136 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17137 _ACEOF
17138
17139 else
17140   case " $LIBOBJS " in
17141   *" $ac_func.$ac_objext "* ) ;;
17142   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17143  ;;
17144 esac
17145
17146 fi
17147 done
17148
17149
17150
17151 for ac_func in closefrom
17152 do
17153 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17154 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17155 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17156 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17157   echo $ECHO_N "(cached) $ECHO_C" >&6
17158 else
17159   cat >conftest.$ac_ext <<_ACEOF
17160 /* confdefs.h.  */
17161 _ACEOF
17162 cat confdefs.h >>conftest.$ac_ext
17163 cat >>conftest.$ac_ext <<_ACEOF
17164 /* end confdefs.h.  */
17165 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17166    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17167 #define $ac_func innocuous_$ac_func
17168
17169 /* System header to define __stub macros and hopefully few prototypes,
17170     which can conflict with char $ac_func (); below.
17171     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17172     <limits.h> exists even on freestanding compilers.  */
17173
17174 #ifdef __STDC__
17175 # include <limits.h>
17176 #else
17177 # include <assert.h>
17178 #endif
17179
17180 #undef $ac_func
17181
17182 /* Override any GCC internal prototype to avoid an error.
17183    Use char because int might match the return type of a GCC
17184    builtin and then its argument prototype would still apply.  */
17185 #ifdef __cplusplus
17186 extern "C"
17187 #endif
17188 char $ac_func ();
17189 /* The GNU C library defines this for functions which it implements
17190     to always fail with ENOSYS.  Some functions are actually named
17191     something starting with __ and the normal name is an alias.  */
17192 #if defined __stub_$ac_func || defined __stub___$ac_func
17193 choke me
17194 #endif
17195
17196 int
17197 main ()
17198 {
17199 return $ac_func ();
17200   ;
17201   return 0;
17202 }
17203 _ACEOF
17204 rm -f conftest.$ac_objext conftest$ac_exeext
17205 if { (ac_try="$ac_link"
17206 case "(($ac_try" in
17207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17208   *) ac_try_echo=$ac_try;;
17209 esac
17210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17211   (eval "$ac_link") 2>conftest.er1
17212   ac_status=$?
17213   grep -v '^ *+' conftest.er1 >conftest.err
17214   rm -f conftest.er1
17215   cat conftest.err >&5
17216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17217   (exit $ac_status); } && {
17218          test -z "$ac_c_werror_flag" ||
17219          test ! -s conftest.err
17220        } && test -s conftest$ac_exeext &&
17221        $as_test_x conftest$ac_exeext; then
17222   eval "$as_ac_var=yes"
17223 else
17224   echo "$as_me: failed program was:" >&5
17225 sed 's/^/| /' conftest.$ac_ext >&5
17226
17227         eval "$as_ac_var=no"
17228 fi
17229
17230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17231       conftest$ac_exeext conftest.$ac_ext
17232 fi
17233 ac_res=`eval echo '${'$as_ac_var'}'`
17234                { echo "$as_me:$LINENO: result: $ac_res" >&5
17235 echo "${ECHO_T}$ac_res" >&6; }
17236 if test `eval echo '${'$as_ac_var'}'` = yes; then
17237   cat >>confdefs.h <<_ACEOF
17238 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17239 _ACEOF
17240
17241 else
17242   case " $LIBOBJS " in
17243   *" closefrom.$ac_objext "* ) ;;
17244   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17245  ;;
17246 esac
17247
17248     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17249 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17250 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17251   echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253   cat >conftest.$ac_ext <<_ACEOF
17254 /* confdefs.h.  */
17255 _ACEOF
17256 cat confdefs.h >>conftest.$ac_ext
17257 cat >>conftest.$ac_ext <<_ACEOF
17258 /* end confdefs.h.  */
17259  #include <limits.h>
17260           #include <fcntl.h>
17261
17262 int
17263 main ()
17264 {
17265 #ifndef F_CLOSEM
17266   (void) F_CLOSEM;
17267 #endif
17268
17269   ;
17270   return 0;
17271 }
17272 _ACEOF
17273 rm -f conftest.$ac_objext
17274 if { (ac_try="$ac_compile"
17275 case "(($ac_try" in
17276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17277   *) ac_try_echo=$ac_try;;
17278 esac
17279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17280   (eval "$ac_compile") 2>conftest.er1
17281   ac_status=$?
17282   grep -v '^ *+' conftest.er1 >conftest.err
17283   rm -f conftest.er1
17284   cat conftest.err >&5
17285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17286   (exit $ac_status); } && {
17287          test -z "$ac_c_werror_flag" ||
17288          test ! -s conftest.err
17289        } && test -s conftest.$ac_objext; then
17290   ac_cv_have_decl_F_CLOSEM=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295         ac_cv_have_decl_F_CLOSEM=no
17296 fi
17297
17298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17299 fi
17300 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17301 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17302 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17303   cat >>confdefs.h <<\_ACEOF
17304 #define HAVE_FCNTL_CLOSEM 1
17305 _ACEOF
17306
17307 fi
17308
17309
17310 fi
17311 done
17312
17313
17314 for ac_func in mkstemp
17315 do
17316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17320   echo $ECHO_N "(cached) $ECHO_C" >&6
17321 else
17322   cat >conftest.$ac_ext <<_ACEOF
17323 /* confdefs.h.  */
17324 _ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h.  */
17328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17329    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17330 #define $ac_func innocuous_$ac_func
17331
17332 /* System header to define __stub macros and hopefully few prototypes,
17333     which can conflict with char $ac_func (); below.
17334     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17335     <limits.h> exists even on freestanding compilers.  */
17336
17337 #ifdef __STDC__
17338 # include <limits.h>
17339 #else
17340 # include <assert.h>
17341 #endif
17342
17343 #undef $ac_func
17344
17345 /* Override any GCC internal prototype to avoid an error.
17346    Use char because int might match the return type of a GCC
17347    builtin and then its argument prototype would still apply.  */
17348 #ifdef __cplusplus
17349 extern "C"
17350 #endif
17351 char $ac_func ();
17352 /* The GNU C library defines this for functions which it implements
17353     to always fail with ENOSYS.  Some functions are actually named
17354     something starting with __ and the normal name is an alias.  */
17355 #if defined __stub_$ac_func || defined __stub___$ac_func
17356 choke me
17357 #endif
17358
17359 int
17360 main ()
17361 {
17362 return $ac_func ();
17363   ;
17364   return 0;
17365 }
17366 _ACEOF
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (ac_try="$ac_link"
17369 case "(($ac_try" in
17370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17371   *) ac_try_echo=$ac_try;;
17372 esac
17373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17374   (eval "$ac_link") 2>conftest.er1
17375   ac_status=$?
17376   grep -v '^ *+' conftest.er1 >conftest.err
17377   rm -f conftest.er1
17378   cat conftest.err >&5
17379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380   (exit $ac_status); } && {
17381          test -z "$ac_c_werror_flag" ||
17382          test ! -s conftest.err
17383        } && test -s conftest$ac_exeext &&
17384        $as_test_x conftest$ac_exeext; then
17385   eval "$as_ac_var=yes"
17386 else
17387   echo "$as_me: failed program was:" >&5
17388 sed 's/^/| /' conftest.$ac_ext >&5
17389
17390         eval "$as_ac_var=no"
17391 fi
17392
17393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17394       conftest$ac_exeext conftest.$ac_ext
17395 fi
17396 ac_res=`eval echo '${'$as_ac_var'}'`
17397                { echo "$as_me:$LINENO: result: $ac_res" >&5
17398 echo "${ECHO_T}$ac_res" >&6; }
17399 if test `eval echo '${'$as_ac_var'}'` = yes; then
17400   cat >>confdefs.h <<_ACEOF
17401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17402 _ACEOF
17403
17404 else
17405   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17406
17407
17408 for ac_func in random lrand48
17409 do
17410 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17411 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17412 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17413 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17414   echo $ECHO_N "(cached) $ECHO_C" >&6
17415 else
17416   cat >conftest.$ac_ext <<_ACEOF
17417 /* confdefs.h.  */
17418 _ACEOF
17419 cat confdefs.h >>conftest.$ac_ext
17420 cat >>conftest.$ac_ext <<_ACEOF
17421 /* end confdefs.h.  */
17422 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17423    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17424 #define $ac_func innocuous_$ac_func
17425
17426 /* System header to define __stub macros and hopefully few prototypes,
17427     which can conflict with char $ac_func (); below.
17428     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17429     <limits.h> exists even on freestanding compilers.  */
17430
17431 #ifdef __STDC__
17432 # include <limits.h>
17433 #else
17434 # include <assert.h>
17435 #endif
17436
17437 #undef $ac_func
17438
17439 /* Override any GCC internal prototype to avoid an error.
17440    Use char because int might match the return type of a GCC
17441    builtin and then its argument prototype would still apply.  */
17442 #ifdef __cplusplus
17443 extern "C"
17444 #endif
17445 char $ac_func ();
17446 /* The GNU C library defines this for functions which it implements
17447     to always fail with ENOSYS.  Some functions are actually named
17448     something starting with __ and the normal name is an alias.  */
17449 #if defined __stub_$ac_func || defined __stub___$ac_func
17450 choke me
17451 #endif
17452
17453 int
17454 main ()
17455 {
17456 return $ac_func ();
17457   ;
17458   return 0;
17459 }
17460 _ACEOF
17461 rm -f conftest.$ac_objext conftest$ac_exeext
17462 if { (ac_try="$ac_link"
17463 case "(($ac_try" in
17464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465   *) ac_try_echo=$ac_try;;
17466 esac
17467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17468   (eval "$ac_link") 2>conftest.er1
17469   ac_status=$?
17470   grep -v '^ *+' conftest.er1 >conftest.err
17471   rm -f conftest.er1
17472   cat conftest.err >&5
17473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17474   (exit $ac_status); } && {
17475          test -z "$ac_c_werror_flag" ||
17476          test ! -s conftest.err
17477        } && test -s conftest$ac_exeext &&
17478        $as_test_x conftest$ac_exeext; then
17479   eval "$as_ac_var=yes"
17480 else
17481   echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17483
17484         eval "$as_ac_var=no"
17485 fi
17486
17487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17488       conftest$ac_exeext conftest.$ac_ext
17489 fi
17490 ac_res=`eval echo '${'$as_ac_var'}'`
17491                { echo "$as_me:$LINENO: result: $ac_res" >&5
17492 echo "${ECHO_T}$ac_res" >&6; }
17493 if test `eval echo '${'$as_ac_var'}'` = yes; then
17494   cat >>confdefs.h <<_ACEOF
17495 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17496 _ACEOF
17497  break
17498 fi
17499 done
17500
17501
17502 fi
17503 done
17504
17505
17506
17507
17508
17509 for ac_func in snprintf vsnprintf asprintf vasprintf
17510 do
17511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17515   echo $ECHO_N "(cached) $ECHO_C" >&6
17516 else
17517   cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h.  */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h.  */
17523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17524    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17525 #define $ac_func innocuous_$ac_func
17526
17527 /* System header to define __stub macros and hopefully few prototypes,
17528     which can conflict with char $ac_func (); below.
17529     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17530     <limits.h> exists even on freestanding compilers.  */
17531
17532 #ifdef __STDC__
17533 # include <limits.h>
17534 #else
17535 # include <assert.h>
17536 #endif
17537
17538 #undef $ac_func
17539
17540 /* Override any GCC internal prototype to avoid an error.
17541    Use char because int might match the return type of a GCC
17542    builtin and then its argument prototype would still apply.  */
17543 #ifdef __cplusplus
17544 extern "C"
17545 #endif
17546 char $ac_func ();
17547 /* The GNU C library defines this for functions which it implements
17548     to always fail with ENOSYS.  Some functions are actually named
17549     something starting with __ and the normal name is an alias.  */
17550 #if defined __stub_$ac_func || defined __stub___$ac_func
17551 choke me
17552 #endif
17553
17554 int
17555 main ()
17556 {
17557 return $ac_func ();
17558   ;
17559   return 0;
17560 }
17561 _ACEOF
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566   *) ac_try_echo=$ac_try;;
17567 esac
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569   (eval "$ac_link") 2>conftest.er1
17570   ac_status=$?
17571   grep -v '^ *+' conftest.er1 >conftest.err
17572   rm -f conftest.er1
17573   cat conftest.err >&5
17574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17575   (exit $ac_status); } && {
17576          test -z "$ac_c_werror_flag" ||
17577          test ! -s conftest.err
17578        } && test -s conftest$ac_exeext &&
17579        $as_test_x conftest$ac_exeext; then
17580   eval "$as_ac_var=yes"
17581 else
17582   echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17584
17585         eval "$as_ac_var=no"
17586 fi
17587
17588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17589       conftest$ac_exeext conftest.$ac_ext
17590 fi
17591 ac_res=`eval echo '${'$as_ac_var'}'`
17592                { echo "$as_me:$LINENO: result: $ac_res" >&5
17593 echo "${ECHO_T}$ac_res" >&6; }
17594 if test `eval echo '${'$as_ac_var'}'` = yes; then
17595   cat >>confdefs.h <<_ACEOF
17596 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17597 _ACEOF
17598
17599 else
17600   NEED_SNPRINTF=1
17601 fi
17602 done
17603
17604 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17605     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17606 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17607 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17608   echo $ECHO_N "(cached) $ECHO_C" >&6
17609 else
17610   cat >conftest.$ac_ext <<_ACEOF
17611 /* confdefs.h.  */
17612 _ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h.  */
17616 $ac_includes_default
17617 int
17618 main ()
17619 {
17620 static struct stat ac_aggr;
17621 if (ac_aggr.st_mtim)
17622 return 0;
17623   ;
17624   return 0;
17625 }
17626 _ACEOF
17627 rm -f conftest.$ac_objext
17628 if { (ac_try="$ac_compile"
17629 case "(($ac_try" in
17630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17631   *) ac_try_echo=$ac_try;;
17632 esac
17633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17634   (eval "$ac_compile") 2>conftest.er1
17635   ac_status=$?
17636   grep -v '^ *+' conftest.er1 >conftest.err
17637   rm -f conftest.er1
17638   cat conftest.err >&5
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } && {
17641          test -z "$ac_c_werror_flag" ||
17642          test ! -s conftest.err
17643        } && test -s conftest.$ac_objext; then
17644   ac_cv_member_struct_stat_st_mtim=yes
17645 else
17646   echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17648
17649         cat >conftest.$ac_ext <<_ACEOF
17650 /* confdefs.h.  */
17651 _ACEOF
17652 cat confdefs.h >>conftest.$ac_ext
17653 cat >>conftest.$ac_ext <<_ACEOF
17654 /* end confdefs.h.  */
17655 $ac_includes_default
17656 int
17657 main ()
17658 {
17659 static struct stat ac_aggr;
17660 if (sizeof ac_aggr.st_mtim)
17661 return 0;
17662   ;
17663   return 0;
17664 }
17665 _ACEOF
17666 rm -f conftest.$ac_objext
17667 if { (ac_try="$ac_compile"
17668 case "(($ac_try" in
17669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17670   *) ac_try_echo=$ac_try;;
17671 esac
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673   (eval "$ac_compile") 2>conftest.er1
17674   ac_status=$?
17675   grep -v '^ *+' conftest.er1 >conftest.err
17676   rm -f conftest.er1
17677   cat conftest.err >&5
17678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17679   (exit $ac_status); } && {
17680          test -z "$ac_c_werror_flag" ||
17681          test ! -s conftest.err
17682        } && test -s conftest.$ac_objext; then
17683   ac_cv_member_struct_stat_st_mtim=yes
17684 else
17685   echo "$as_me: failed program was:" >&5
17686 sed 's/^/| /' conftest.$ac_ext >&5
17687
17688         ac_cv_member_struct_stat_st_mtim=no
17689 fi
17690
17691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17692 fi
17693
17694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17695 fi
17696 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17697 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17698 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17699   cat >>confdefs.h <<\_ACEOF
17700 #define HAVE_ST_MTIM 1
17701 _ACEOF
17702
17703         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
17704 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
17705 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
17706   echo $ECHO_N "(cached) $ECHO_C" >&6
17707 else
17708   cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h.  */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h.  */
17714 $ac_includes_default
17715 int
17716 main ()
17717 {
17718 static struct stat ac_aggr;
17719 if (ac_aggr.st_mtim.st__tim)
17720 return 0;
17721   ;
17722   return 0;
17723 }
17724 _ACEOF
17725 rm -f conftest.$ac_objext
17726 if { (ac_try="$ac_compile"
17727 case "(($ac_try" in
17728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17729   *) ac_try_echo=$ac_try;;
17730 esac
17731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17732   (eval "$ac_compile") 2>conftest.er1
17733   ac_status=$?
17734   grep -v '^ *+' conftest.er1 >conftest.err
17735   rm -f conftest.er1
17736   cat conftest.err >&5
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } && {
17739          test -z "$ac_c_werror_flag" ||
17740          test ! -s conftest.err
17741        } && test -s conftest.$ac_objext; then
17742   ac_cv_member_struct_stat_st_mtim_st__tim=yes
17743 else
17744   echo "$as_me: failed program was:" >&5
17745 sed 's/^/| /' conftest.$ac_ext >&5
17746
17747         cat >conftest.$ac_ext <<_ACEOF
17748 /* confdefs.h.  */
17749 _ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h.  */
17753 $ac_includes_default
17754 int
17755 main ()
17756 {
17757 static struct stat ac_aggr;
17758 if (sizeof ac_aggr.st_mtim.st__tim)
17759 return 0;
17760   ;
17761   return 0;
17762 }
17763 _ACEOF
17764 rm -f conftest.$ac_objext
17765 if { (ac_try="$ac_compile"
17766 case "(($ac_try" in
17767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17768   *) ac_try_echo=$ac_try;;
17769 esac
17770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17771   (eval "$ac_compile") 2>conftest.er1
17772   ac_status=$?
17773   grep -v '^ *+' conftest.er1 >conftest.err
17774   rm -f conftest.er1
17775   cat conftest.err >&5
17776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777   (exit $ac_status); } && {
17778          test -z "$ac_c_werror_flag" ||
17779          test ! -s conftest.err
17780        } && test -s conftest.$ac_objext; then
17781   ac_cv_member_struct_stat_st_mtim_st__tim=yes
17782 else
17783   echo "$as_me: failed program was:" >&5
17784 sed 's/^/| /' conftest.$ac_ext >&5
17785
17786         ac_cv_member_struct_stat_st_mtim_st__tim=no
17787 fi
17788
17789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17790 fi
17791
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 fi
17794 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
17795 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
17796 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
17797   cat >>confdefs.h <<\_ACEOF
17798 #define HAVE_ST__TIM 1
17799 _ACEOF
17800
17801 fi
17802
17803 else
17804   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
17805 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
17806 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
17807   echo $ECHO_N "(cached) $ECHO_C" >&6
17808 else
17809   cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h.  */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h.  */
17815 $ac_includes_default
17816 int
17817 main ()
17818 {
17819 static struct stat ac_aggr;
17820 if (ac_aggr.st_mtimespec)
17821 return 0;
17822   ;
17823   return 0;
17824 }
17825 _ACEOF
17826 rm -f conftest.$ac_objext
17827 if { (ac_try="$ac_compile"
17828 case "(($ac_try" in
17829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17830   *) ac_try_echo=$ac_try;;
17831 esac
17832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17833   (eval "$ac_compile") 2>conftest.er1
17834   ac_status=$?
17835   grep -v '^ *+' conftest.er1 >conftest.err
17836   rm -f conftest.er1
17837   cat conftest.err >&5
17838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839   (exit $ac_status); } && {
17840          test -z "$ac_c_werror_flag" ||
17841          test ! -s conftest.err
17842        } && test -s conftest.$ac_objext; then
17843   ac_cv_member_struct_stat_st_mtimespec=yes
17844 else
17845   echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17847
17848         cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h.  */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h.  */
17854 $ac_includes_default
17855 int
17856 main ()
17857 {
17858 static struct stat ac_aggr;
17859 if (sizeof ac_aggr.st_mtimespec)
17860 return 0;
17861   ;
17862   return 0;
17863 }
17864 _ACEOF
17865 rm -f conftest.$ac_objext
17866 if { (ac_try="$ac_compile"
17867 case "(($ac_try" in
17868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17869   *) ac_try_echo=$ac_try;;
17870 esac
17871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17872   (eval "$ac_compile") 2>conftest.er1
17873   ac_status=$?
17874   grep -v '^ *+' conftest.er1 >conftest.err
17875   rm -f conftest.er1
17876   cat conftest.err >&5
17877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17878   (exit $ac_status); } && {
17879          test -z "$ac_c_werror_flag" ||
17880          test ! -s conftest.err
17881        } && test -s conftest.$ac_objext; then
17882   ac_cv_member_struct_stat_st_mtimespec=yes
17883 else
17884   echo "$as_me: failed program was:" >&5
17885 sed 's/^/| /' conftest.$ac_ext >&5
17886
17887         ac_cv_member_struct_stat_st_mtimespec=no
17888 fi
17889
17890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17891 fi
17892
17893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17894 fi
17895 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
17896 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
17897 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
17898   cat >>confdefs.h <<\_ACEOF
17899 #define HAVE_ST_MTIMESPEC 1
17900 _ACEOF
17901
17902 fi
17903
17904 fi
17905
17906     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
17907 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
17908     cat >conftest.$ac_ext <<_ACEOF
17909 /* confdefs.h.  */
17910 _ACEOF
17911 cat confdefs.h >>conftest.$ac_ext
17912 cat >>conftest.$ac_ext <<_ACEOF
17913 /* end confdefs.h.  */
17914 #include <sys/types.h>
17915 #include <sys/time.h>
17916 int
17917 main ()
17918 {
17919 struct timespec ts1, ts2;
17920 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
17921 #ifndef timespecsub
17922 #error missing timespecsub
17923 #endif
17924 timespecsub(&ts1, &ts2);
17925   ;
17926   return 0;
17927 }
17928 _ACEOF
17929 rm -f conftest.$ac_objext
17930 if { (ac_try="$ac_compile"
17931 case "(($ac_try" in
17932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933   *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936   (eval "$ac_compile") 2>conftest.er1
17937   ac_status=$?
17938   grep -v '^ *+' conftest.er1 >conftest.err
17939   rm -f conftest.er1
17940   cat conftest.err >&5
17941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942   (exit $ac_status); } && {
17943          test -z "$ac_c_werror_flag" ||
17944          test ! -s conftest.err
17945        } && test -s conftest.$ac_objext; then
17946   cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_TIMESPECSUB2 1
17948 _ACEOF
17949
17950     { echo "$as_me:$LINENO: result: yes" >&5
17951 echo "${ECHO_T}yes" >&6; }
17952 else
17953   echo "$as_me: failed program was:" >&5
17954 sed 's/^/| /' conftest.$ac_ext >&5
17955
17956         { echo "$as_me:$LINENO: result: no" >&5
17957 echo "${ECHO_T}no" >&6; }
17958 fi
17959
17960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17961 fi
17962 cat >conftest.$ac_ext <<_ACEOF
17963 /* confdefs.h.  */
17964 _ACEOF
17965 cat confdefs.h >>conftest.$ac_ext
17966 cat >>conftest.$ac_ext <<_ACEOF
17967 /* end confdefs.h.  */
17968 #include <sys/types.h>
17969 #include <$ac_header_dirent>
17970 int
17971 main ()
17972 {
17973 DIR d; (void)dirfd(&d);
17974   ;
17975   return 0;
17976 }
17977 _ACEOF
17978 rm -f conftest.$ac_objext conftest$ac_exeext
17979 if { (ac_try="$ac_link"
17980 case "(($ac_try" in
17981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17982   *) ac_try_echo=$ac_try;;
17983 esac
17984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17985   (eval "$ac_link") 2>conftest.er1
17986   ac_status=$?
17987   grep -v '^ *+' conftest.er1 >conftest.err
17988   rm -f conftest.er1
17989   cat conftest.err >&5
17990   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17991   (exit $ac_status); } && {
17992          test -z "$ac_c_werror_flag" ||
17993          test ! -s conftest.err
17994        } && test -s conftest$ac_exeext &&
17995        $as_test_x conftest$ac_exeext; then
17996   cat >>confdefs.h <<\_ACEOF
17997 #define HAVE_DIRFD 1
17998 _ACEOF
17999
18000 else
18001   echo "$as_me: failed program was:" >&5
18002 sed 's/^/| /' conftest.$ac_ext >&5
18003
18004         cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h.  */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h.  */
18010 #include <sys/types.h>
18011 #include <$ac_header_dirent>
18012 int
18013 main ()
18014 {
18015 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18016   ;
18017   return 0;
18018 }
18019 _ACEOF
18020 rm -f conftest.$ac_objext conftest$ac_exeext
18021 if { (ac_try="$ac_link"
18022 case "(($ac_try" in
18023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18024   *) ac_try_echo=$ac_try;;
18025 esac
18026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18027   (eval "$ac_link") 2>conftest.er1
18028   ac_status=$?
18029   grep -v '^ *+' conftest.er1 >conftest.err
18030   rm -f conftest.er1
18031   cat conftest.err >&5
18032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18033   (exit $ac_status); } && {
18034          test -z "$ac_c_werror_flag" ||
18035          test ! -s conftest.err
18036        } && test -s conftest$ac_exeext &&
18037        $as_test_x conftest$ac_exeext; then
18038   cat >>confdefs.h <<\_ACEOF
18039 #define HAVE_DD_FD 1
18040 _ACEOF
18041
18042 else
18043   echo "$as_me: failed program was:" >&5
18044 sed 's/^/| /' conftest.$ac_ext >&5
18045
18046
18047 fi
18048
18049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18050       conftest$ac_exeext conftest.$ac_ext
18051 fi
18052
18053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18054       conftest$ac_exeext conftest.$ac_ext
18055 if test -n "$NEED_SNPRINTF"; then
18056     case " $LIBOBJS " in
18057   *" snprintf.$ac_objext "* ) ;;
18058   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18059  ;;
18060 esac
18061
18062 fi
18063 { echo "$as_me:$LINENO: checking for socket" >&5
18064 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18065 if test "${ac_cv_func_socket+set}" = set; then
18066   echo $ECHO_N "(cached) $ECHO_C" >&6
18067 else
18068   cat >conftest.$ac_ext <<_ACEOF
18069 /* confdefs.h.  */
18070 _ACEOF
18071 cat confdefs.h >>conftest.$ac_ext
18072 cat >>conftest.$ac_ext <<_ACEOF
18073 /* end confdefs.h.  */
18074 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18075    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18076 #define socket innocuous_socket
18077
18078 /* System header to define __stub macros and hopefully few prototypes,
18079     which can conflict with char socket (); below.
18080     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18081     <limits.h> exists even on freestanding compilers.  */
18082
18083 #ifdef __STDC__
18084 # include <limits.h>
18085 #else
18086 # include <assert.h>
18087 #endif
18088
18089 #undef socket
18090
18091 /* Override any GCC internal prototype to avoid an error.
18092    Use char because int might match the return type of a GCC
18093    builtin and then its argument prototype would still apply.  */
18094 #ifdef __cplusplus
18095 extern "C"
18096 #endif
18097 char socket ();
18098 /* The GNU C library defines this for functions which it implements
18099     to always fail with ENOSYS.  Some functions are actually named
18100     something starting with __ and the normal name is an alias.  */
18101 #if defined __stub_socket || defined __stub___socket
18102 choke me
18103 #endif
18104
18105 int
18106 main ()
18107 {
18108 return socket ();
18109   ;
18110   return 0;
18111 }
18112 _ACEOF
18113 rm -f conftest.$ac_objext conftest$ac_exeext
18114 if { (ac_try="$ac_link"
18115 case "(($ac_try" in
18116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117   *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120   (eval "$ac_link") 2>conftest.er1
18121   ac_status=$?
18122   grep -v '^ *+' conftest.er1 >conftest.err
18123   rm -f conftest.er1
18124   cat conftest.err >&5
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); } && {
18127          test -z "$ac_c_werror_flag" ||
18128          test ! -s conftest.err
18129        } && test -s conftest$ac_exeext &&
18130        $as_test_x conftest$ac_exeext; then
18131   ac_cv_func_socket=yes
18132 else
18133   echo "$as_me: failed program was:" >&5
18134 sed 's/^/| /' conftest.$ac_ext >&5
18135
18136         ac_cv_func_socket=no
18137 fi
18138
18139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18140       conftest$ac_exeext conftest.$ac_ext
18141 fi
18142 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18143 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18144 if test $ac_cv_func_socket = yes; then
18145   :
18146 else
18147   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18148 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18149 if test "${ac_cv_lib_socket_socket+set}" = set; then
18150   echo $ECHO_N "(cached) $ECHO_C" >&6
18151 else
18152   ac_check_lib_save_LIBS=$LIBS
18153 LIBS="-lsocket  $LIBS"
18154 cat >conftest.$ac_ext <<_ACEOF
18155 /* confdefs.h.  */
18156 _ACEOF
18157 cat confdefs.h >>conftest.$ac_ext
18158 cat >>conftest.$ac_ext <<_ACEOF
18159 /* end confdefs.h.  */
18160
18161 /* Override any GCC internal prototype to avoid an error.
18162    Use char because int might match the return type of a GCC
18163    builtin and then its argument prototype would still apply.  */
18164 #ifdef __cplusplus
18165 extern "C"
18166 #endif
18167 char socket ();
18168 int
18169 main ()
18170 {
18171 return socket ();
18172   ;
18173   return 0;
18174 }
18175 _ACEOF
18176 rm -f conftest.$ac_objext conftest$ac_exeext
18177 if { (ac_try="$ac_link"
18178 case "(($ac_try" in
18179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180   *) ac_try_echo=$ac_try;;
18181 esac
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183   (eval "$ac_link") 2>conftest.er1
18184   ac_status=$?
18185   grep -v '^ *+' conftest.er1 >conftest.err
18186   rm -f conftest.er1
18187   cat conftest.err >&5
18188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189   (exit $ac_status); } && {
18190          test -z "$ac_c_werror_flag" ||
18191          test ! -s conftest.err
18192        } && test -s conftest$ac_exeext &&
18193        $as_test_x conftest$ac_exeext; then
18194   ac_cv_lib_socket_socket=yes
18195 else
18196   echo "$as_me: failed program was:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18198
18199         ac_cv_lib_socket_socket=no
18200 fi
18201
18202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18203       conftest$ac_exeext conftest.$ac_ext
18204 LIBS=$ac_check_lib_save_LIBS
18205 fi
18206 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18207 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18208 if test $ac_cv_lib_socket_socket = yes; then
18209   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18210 else
18211   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18212 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18213 if test "${ac_cv_lib_inet_socket+set}" = set; then
18214   echo $ECHO_N "(cached) $ECHO_C" >&6
18215 else
18216   ac_check_lib_save_LIBS=$LIBS
18217 LIBS="-linet  $LIBS"
18218 cat >conftest.$ac_ext <<_ACEOF
18219 /* confdefs.h.  */
18220 _ACEOF
18221 cat confdefs.h >>conftest.$ac_ext
18222 cat >>conftest.$ac_ext <<_ACEOF
18223 /* end confdefs.h.  */
18224
18225 /* Override any GCC internal prototype to avoid an error.
18226    Use char because int might match the return type of a GCC
18227    builtin and then its argument prototype would still apply.  */
18228 #ifdef __cplusplus
18229 extern "C"
18230 #endif
18231 char socket ();
18232 int
18233 main ()
18234 {
18235 return socket ();
18236   ;
18237   return 0;
18238 }
18239 _ACEOF
18240 rm -f conftest.$ac_objext conftest$ac_exeext
18241 if { (ac_try="$ac_link"
18242 case "(($ac_try" in
18243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244   *) ac_try_echo=$ac_try;;
18245 esac
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247   (eval "$ac_link") 2>conftest.er1
18248   ac_status=$?
18249   grep -v '^ *+' conftest.er1 >conftest.err
18250   rm -f conftest.er1
18251   cat conftest.err >&5
18252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18253   (exit $ac_status); } && {
18254          test -z "$ac_c_werror_flag" ||
18255          test ! -s conftest.err
18256        } && test -s conftest$ac_exeext &&
18257        $as_test_x conftest$ac_exeext; then
18258   ac_cv_lib_inet_socket=yes
18259 else
18260   echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263         ac_cv_lib_inet_socket=no
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18267       conftest$ac_exeext conftest.$ac_ext
18268 LIBS=$ac_check_lib_save_LIBS
18269 fi
18270 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18271 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18272 if test $ac_cv_lib_inet_socket = yes; then
18273   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18274 else
18275   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18276 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18277 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18278 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18279 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   ac_check_lib_save_LIBS=$LIBS
18283 LIBS="-lsocket -lnsl $LIBS"
18284 cat >conftest.$ac_ext <<_ACEOF
18285 /* confdefs.h.  */
18286 _ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h.  */
18290
18291 /* Override any GCC internal prototype to avoid an error.
18292    Use char because int might match the return type of a GCC
18293    builtin and then its argument prototype would still apply.  */
18294 #ifdef __cplusplus
18295 extern "C"
18296 #endif
18297 char socket ();
18298 int
18299 main ()
18300 {
18301 return socket ();
18302   ;
18303   return 0;
18304 }
18305 _ACEOF
18306 rm -f conftest.$ac_objext conftest$ac_exeext
18307 if { (ac_try="$ac_link"
18308 case "(($ac_try" in
18309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18310   *) ac_try_echo=$ac_try;;
18311 esac
18312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18313   (eval "$ac_link") 2>conftest.er1
18314   ac_status=$?
18315   grep -v '^ *+' conftest.er1 >conftest.err
18316   rm -f conftest.er1
18317   cat conftest.err >&5
18318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319   (exit $ac_status); } && {
18320          test -z "$ac_c_werror_flag" ||
18321          test ! -s conftest.err
18322        } && test -s conftest$ac_exeext &&
18323        $as_test_x conftest$ac_exeext; then
18324   ac_cv_lib_socket_socket_lnsl=yes
18325 else
18326   echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329         ac_cv_lib_socket_socket_lnsl=no
18330 fi
18331
18332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18333       conftest$ac_exeext conftest.$ac_ext
18334 LIBS=$ac_check_lib_save_LIBS
18335 fi
18336 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18337 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18338 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18339   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18340 fi
18341
18342 fi
18343
18344 fi
18345
18346 fi
18347
18348 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18349 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18350 if test "${ac_cv_func_inet_addr+set}" = set; then
18351   echo $ECHO_N "(cached) $ECHO_C" >&6
18352 else
18353   cat >conftest.$ac_ext <<_ACEOF
18354 /* confdefs.h.  */
18355 _ACEOF
18356 cat confdefs.h >>conftest.$ac_ext
18357 cat >>conftest.$ac_ext <<_ACEOF
18358 /* end confdefs.h.  */
18359 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18360    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18361 #define inet_addr innocuous_inet_addr
18362
18363 /* System header to define __stub macros and hopefully few prototypes,
18364     which can conflict with char inet_addr (); below.
18365     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18366     <limits.h> exists even on freestanding compilers.  */
18367
18368 #ifdef __STDC__
18369 # include <limits.h>
18370 #else
18371 # include <assert.h>
18372 #endif
18373
18374 #undef inet_addr
18375
18376 /* Override any GCC internal prototype to avoid an error.
18377    Use char because int might match the return type of a GCC
18378    builtin and then its argument prototype would still apply.  */
18379 #ifdef __cplusplus
18380 extern "C"
18381 #endif
18382 char inet_addr ();
18383 /* The GNU C library defines this for functions which it implements
18384     to always fail with ENOSYS.  Some functions are actually named
18385     something starting with __ and the normal name is an alias.  */
18386 #if defined __stub_inet_addr || defined __stub___inet_addr
18387 choke me
18388 #endif
18389
18390 int
18391 main ()
18392 {
18393 return inet_addr ();
18394   ;
18395   return 0;
18396 }
18397 _ACEOF
18398 rm -f conftest.$ac_objext conftest$ac_exeext
18399 if { (ac_try="$ac_link"
18400 case "(($ac_try" in
18401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402   *) ac_try_echo=$ac_try;;
18403 esac
18404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18405   (eval "$ac_link") 2>conftest.er1
18406   ac_status=$?
18407   grep -v '^ *+' conftest.er1 >conftest.err
18408   rm -f conftest.er1
18409   cat conftest.err >&5
18410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18411   (exit $ac_status); } && {
18412          test -z "$ac_c_werror_flag" ||
18413          test ! -s conftest.err
18414        } && test -s conftest$ac_exeext &&
18415        $as_test_x conftest$ac_exeext; then
18416   ac_cv_func_inet_addr=yes
18417 else
18418   echo "$as_me: failed program was:" >&5
18419 sed 's/^/| /' conftest.$ac_ext >&5
18420
18421         ac_cv_func_inet_addr=no
18422 fi
18423
18424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18425       conftest$ac_exeext conftest.$ac_ext
18426 fi
18427 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18428 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18429 if test $ac_cv_func_inet_addr = yes; then
18430   :
18431 else
18432   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18433 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18434 if test "${ac_cv_func___inet_addr+set}" = set; then
18435   echo $ECHO_N "(cached) $ECHO_C" >&6
18436 else
18437   cat >conftest.$ac_ext <<_ACEOF
18438 /* confdefs.h.  */
18439 _ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h.  */
18443 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18444    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18445 #define __inet_addr innocuous___inet_addr
18446
18447 /* System header to define __stub macros and hopefully few prototypes,
18448     which can conflict with char __inet_addr (); below.
18449     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450     <limits.h> exists even on freestanding compilers.  */
18451
18452 #ifdef __STDC__
18453 # include <limits.h>
18454 #else
18455 # include <assert.h>
18456 #endif
18457
18458 #undef __inet_addr
18459
18460 /* Override any GCC internal prototype to avoid an error.
18461    Use char because int might match the return type of a GCC
18462    builtin and then its argument prototype would still apply.  */
18463 #ifdef __cplusplus
18464 extern "C"
18465 #endif
18466 char __inet_addr ();
18467 /* The GNU C library defines this for functions which it implements
18468     to always fail with ENOSYS.  Some functions are actually named
18469     something starting with __ and the normal name is an alias.  */
18470 #if defined __stub___inet_addr || defined __stub_____inet_addr
18471 choke me
18472 #endif
18473
18474 int
18475 main ()
18476 {
18477 return __inet_addr ();
18478   ;
18479   return 0;
18480 }
18481 _ACEOF
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486   *) ac_try_echo=$ac_try;;
18487 esac
18488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18489   (eval "$ac_link") 2>conftest.er1
18490   ac_status=$?
18491   grep -v '^ *+' conftest.er1 >conftest.err
18492   rm -f conftest.er1
18493   cat conftest.err >&5
18494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18495   (exit $ac_status); } && {
18496          test -z "$ac_c_werror_flag" ||
18497          test ! -s conftest.err
18498        } && test -s conftest$ac_exeext &&
18499        $as_test_x conftest$ac_exeext; then
18500   ac_cv_func___inet_addr=yes
18501 else
18502   echo "$as_me: failed program was:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18504
18505         ac_cv_func___inet_addr=no
18506 fi
18507
18508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18509       conftest$ac_exeext conftest.$ac_ext
18510 fi
18511 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18512 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18513 if test $ac_cv_func___inet_addr = yes; then
18514   :
18515 else
18516   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18517 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18518 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18519   echo $ECHO_N "(cached) $ECHO_C" >&6
18520 else
18521   ac_check_lib_save_LIBS=$LIBS
18522 LIBS="-lnsl  $LIBS"
18523 cat >conftest.$ac_ext <<_ACEOF
18524 /* confdefs.h.  */
18525 _ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h.  */
18529
18530 /* Override any GCC internal prototype to avoid an error.
18531    Use char because int might match the return type of a GCC
18532    builtin and then its argument prototype would still apply.  */
18533 #ifdef __cplusplus
18534 extern "C"
18535 #endif
18536 char inet_addr ();
18537 int
18538 main ()
18539 {
18540 return inet_addr ();
18541   ;
18542   return 0;
18543 }
18544 _ACEOF
18545 rm -f conftest.$ac_objext conftest$ac_exeext
18546 if { (ac_try="$ac_link"
18547 case "(($ac_try" in
18548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18549   *) ac_try_echo=$ac_try;;
18550 esac
18551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18552   (eval "$ac_link") 2>conftest.er1
18553   ac_status=$?
18554   grep -v '^ *+' conftest.er1 >conftest.err
18555   rm -f conftest.er1
18556   cat conftest.err >&5
18557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18558   (exit $ac_status); } && {
18559          test -z "$ac_c_werror_flag" ||
18560          test ! -s conftest.err
18561        } && test -s conftest$ac_exeext &&
18562        $as_test_x conftest$ac_exeext; then
18563   ac_cv_lib_nsl_inet_addr=yes
18564 else
18565   echo "$as_me: failed program was:" >&5
18566 sed 's/^/| /' conftest.$ac_ext >&5
18567
18568         ac_cv_lib_nsl_inet_addr=no
18569 fi
18570
18571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18572       conftest$ac_exeext conftest.$ac_ext
18573 LIBS=$ac_check_lib_save_LIBS
18574 fi
18575 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18576 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18577 if test $ac_cv_lib_nsl_inet_addr = yes; then
18578   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18579 else
18580   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18581 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18582 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18583   echo $ECHO_N "(cached) $ECHO_C" >&6
18584 else
18585   ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-linet  $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF
18588 /* confdefs.h.  */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h.  */
18593
18594 /* Override any GCC internal prototype to avoid an error.
18595    Use char because int might match the return type of a GCC
18596    builtin and then its argument prototype would still apply.  */
18597 #ifdef __cplusplus
18598 extern "C"
18599 #endif
18600 char inet_addr ();
18601 int
18602 main ()
18603 {
18604 return inet_addr ();
18605   ;
18606   return 0;
18607 }
18608 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613   *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616   (eval "$ac_link") 2>conftest.er1
18617   ac_status=$?
18618   grep -v '^ *+' conftest.er1 >conftest.err
18619   rm -f conftest.er1
18620   cat conftest.err >&5
18621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18622   (exit $ac_status); } && {
18623          test -z "$ac_c_werror_flag" ||
18624          test ! -s conftest.err
18625        } && test -s conftest$ac_exeext &&
18626        $as_test_x conftest$ac_exeext; then
18627   ac_cv_lib_inet_inet_addr=yes
18628 else
18629   echo "$as_me: failed program was:" >&5
18630 sed 's/^/| /' conftest.$ac_ext >&5
18631
18632         ac_cv_lib_inet_inet_addr=no
18633 fi
18634
18635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18636       conftest$ac_exeext conftest.$ac_ext
18637 LIBS=$ac_check_lib_save_LIBS
18638 fi
18639 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_inet_addr" >&5
18640 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18641 if test $ac_cv_lib_inet_inet_addr = yes; then
18642   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18643 else
18644   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18645 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18646 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18647 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18648 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18649   echo $ECHO_N "(cached) $ECHO_C" >&6
18650 else
18651   ac_check_lib_save_LIBS=$LIBS
18652 LIBS="-lsocket -lnsl $LIBS"
18653 cat >conftest.$ac_ext <<_ACEOF
18654 /* confdefs.h.  */
18655 _ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h.  */
18659
18660 /* Override any GCC internal prototype to avoid an error.
18661    Use char because int might match the return type of a GCC
18662    builtin and then its argument prototype would still apply.  */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 char inet_addr ();
18667 int
18668 main ()
18669 {
18670 return inet_addr ();
18671   ;
18672   return 0;
18673 }
18674 _ACEOF
18675 rm -f conftest.$ac_objext conftest$ac_exeext
18676 if { (ac_try="$ac_link"
18677 case "(($ac_try" in
18678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18679   *) ac_try_echo=$ac_try;;
18680 esac
18681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18682   (eval "$ac_link") 2>conftest.er1
18683   ac_status=$?
18684   grep -v '^ *+' conftest.er1 >conftest.err
18685   rm -f conftest.er1
18686   cat conftest.err >&5
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); } && {
18689          test -z "$ac_c_werror_flag" ||
18690          test ! -s conftest.err
18691        } && test -s conftest$ac_exeext &&
18692        $as_test_x conftest$ac_exeext; then
18693   ac_cv_lib_socket_inet_addr_lnsl=yes
18694 else
18695   echo "$as_me: failed program was:" >&5
18696 sed 's/^/| /' conftest.$ac_ext >&5
18697
18698         ac_cv_lib_socket_inet_addr_lnsl=no
18699 fi
18700
18701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18702       conftest$ac_exeext conftest.$ac_ext
18703 LIBS=$ac_check_lib_save_LIBS
18704 fi
18705 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18706 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18707 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18708   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18709 fi
18710
18711 fi
18712
18713 fi
18714
18715 fi
18716
18717 fi
18718
18719 { echo "$as_me:$LINENO: checking for syslog" >&5
18720 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18721 if test "${ac_cv_func_syslog+set}" = set; then
18722   echo $ECHO_N "(cached) $ECHO_C" >&6
18723 else
18724   cat >conftest.$ac_ext <<_ACEOF
18725 /* confdefs.h.  */
18726 _ACEOF
18727 cat confdefs.h >>conftest.$ac_ext
18728 cat >>conftest.$ac_ext <<_ACEOF
18729 /* end confdefs.h.  */
18730 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18731    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18732 #define syslog innocuous_syslog
18733
18734 /* System header to define __stub macros and hopefully few prototypes,
18735     which can conflict with char syslog (); below.
18736     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18737     <limits.h> exists even on freestanding compilers.  */
18738
18739 #ifdef __STDC__
18740 # include <limits.h>
18741 #else
18742 # include <assert.h>
18743 #endif
18744
18745 #undef syslog
18746
18747 /* Override any GCC internal prototype to avoid an error.
18748    Use char because int might match the return type of a GCC
18749    builtin and then its argument prototype would still apply.  */
18750 #ifdef __cplusplus
18751 extern "C"
18752 #endif
18753 char syslog ();
18754 /* The GNU C library defines this for functions which it implements
18755     to always fail with ENOSYS.  Some functions are actually named
18756     something starting with __ and the normal name is an alias.  */
18757 #if defined __stub_syslog || defined __stub___syslog
18758 choke me
18759 #endif
18760
18761 int
18762 main ()
18763 {
18764 return syslog ();
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext conftest$ac_exeext
18770 if { (ac_try="$ac_link"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18776   (eval "$ac_link") 2>conftest.er1
18777   ac_status=$?
18778   grep -v '^ *+' conftest.er1 >conftest.err
18779   rm -f conftest.er1
18780   cat conftest.err >&5
18781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782   (exit $ac_status); } && {
18783          test -z "$ac_c_werror_flag" ||
18784          test ! -s conftest.err
18785        } && test -s conftest$ac_exeext &&
18786        $as_test_x conftest$ac_exeext; then
18787   ac_cv_func_syslog=yes
18788 else
18789   echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         ac_cv_func_syslog=no
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18796       conftest$ac_exeext conftest.$ac_ext
18797 fi
18798 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
18799 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
18800 if test $ac_cv_func_syslog = yes; then
18801   :
18802 else
18803   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
18804 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
18805 if test "${ac_cv_lib_socket_syslog+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   ac_check_lib_save_LIBS=$LIBS
18809 LIBS="-lsocket  $LIBS"
18810 cat >conftest.$ac_ext <<_ACEOF
18811 /* confdefs.h.  */
18812 _ACEOF
18813 cat confdefs.h >>conftest.$ac_ext
18814 cat >>conftest.$ac_ext <<_ACEOF
18815 /* end confdefs.h.  */
18816
18817 /* Override any GCC internal prototype to avoid an error.
18818    Use char because int might match the return type of a GCC
18819    builtin and then its argument prototype would still apply.  */
18820 #ifdef __cplusplus
18821 extern "C"
18822 #endif
18823 char syslog ();
18824 int
18825 main ()
18826 {
18827 return syslog ();
18828   ;
18829   return 0;
18830 }
18831 _ACEOF
18832 rm -f conftest.$ac_objext conftest$ac_exeext
18833 if { (ac_try="$ac_link"
18834 case "(($ac_try" in
18835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836   *) ac_try_echo=$ac_try;;
18837 esac
18838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18839   (eval "$ac_link") 2>conftest.er1
18840   ac_status=$?
18841   grep -v '^ *+' conftest.er1 >conftest.err
18842   rm -f conftest.er1
18843   cat conftest.err >&5
18844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18845   (exit $ac_status); } && {
18846          test -z "$ac_c_werror_flag" ||
18847          test ! -s conftest.err
18848        } && test -s conftest$ac_exeext &&
18849        $as_test_x conftest$ac_exeext; then
18850   ac_cv_lib_socket_syslog=yes
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855         ac_cv_lib_socket_syslog=no
18856 fi
18857
18858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18859       conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18861 fi
18862 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
18863 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
18864 if test $ac_cv_lib_socket_syslog = yes; then
18865   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18866 else
18867   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
18868 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
18869 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
18870   echo $ECHO_N "(cached) $ECHO_C" >&6
18871 else
18872   ac_check_lib_save_LIBS=$LIBS
18873 LIBS="-lnsl  $LIBS"
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h.  */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h.  */
18880
18881 /* Override any GCC internal prototype to avoid an error.
18882    Use char because int might match the return type of a GCC
18883    builtin and then its argument prototype would still apply.  */
18884 #ifdef __cplusplus
18885 extern "C"
18886 #endif
18887 char syslog ();
18888 int
18889 main ()
18890 {
18891 return syslog ();
18892   ;
18893   return 0;
18894 }
18895 _ACEOF
18896 rm -f conftest.$ac_objext conftest$ac_exeext
18897 if { (ac_try="$ac_link"
18898 case "(($ac_try" in
18899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18900   *) ac_try_echo=$ac_try;;
18901 esac
18902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18903   (eval "$ac_link") 2>conftest.er1
18904   ac_status=$?
18905   grep -v '^ *+' conftest.er1 >conftest.err
18906   rm -f conftest.er1
18907   cat conftest.err >&5
18908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18909   (exit $ac_status); } && {
18910          test -z "$ac_c_werror_flag" ||
18911          test ! -s conftest.err
18912        } && test -s conftest$ac_exeext &&
18913        $as_test_x conftest$ac_exeext; then
18914   ac_cv_lib_nsl_syslog=yes
18915 else
18916   echo "$as_me: failed program was:" >&5
18917 sed 's/^/| /' conftest.$ac_ext >&5
18918
18919         ac_cv_lib_nsl_syslog=no
18920 fi
18921
18922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18923       conftest$ac_exeext conftest.$ac_ext
18924 LIBS=$ac_check_lib_save_LIBS
18925 fi
18926 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
18927 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
18928 if test $ac_cv_lib_nsl_syslog = yes; then
18929   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18930 else
18931   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
18932 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
18933 if test "${ac_cv_lib_inet_syslog+set}" = set; then
18934   echo $ECHO_N "(cached) $ECHO_C" >&6
18935 else
18936   ac_check_lib_save_LIBS=$LIBS
18937 LIBS="-linet  $LIBS"
18938 cat >conftest.$ac_ext <<_ACEOF
18939 /* confdefs.h.  */
18940 _ACEOF
18941 cat confdefs.h >>conftest.$ac_ext
18942 cat >>conftest.$ac_ext <<_ACEOF
18943 /* end confdefs.h.  */
18944
18945 /* Override any GCC internal prototype to avoid an error.
18946    Use char because int might match the return type of a GCC
18947    builtin and then its argument prototype would still apply.  */
18948 #ifdef __cplusplus
18949 extern "C"
18950 #endif
18951 char syslog ();
18952 int
18953 main ()
18954 {
18955 return syslog ();
18956   ;
18957   return 0;
18958 }
18959 _ACEOF
18960 rm -f conftest.$ac_objext conftest$ac_exeext
18961 if { (ac_try="$ac_link"
18962 case "(($ac_try" in
18963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18964   *) ac_try_echo=$ac_try;;
18965 esac
18966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18967   (eval "$ac_link") 2>conftest.er1
18968   ac_status=$?
18969   grep -v '^ *+' conftest.er1 >conftest.err
18970   rm -f conftest.er1
18971   cat conftest.err >&5
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); } && {
18974          test -z "$ac_c_werror_flag" ||
18975          test ! -s conftest.err
18976        } && test -s conftest$ac_exeext &&
18977        $as_test_x conftest$ac_exeext; then
18978   ac_cv_lib_inet_syslog=yes
18979 else
18980   echo "$as_me: failed program was:" >&5
18981 sed 's/^/| /' conftest.$ac_ext >&5
18982
18983         ac_cv_lib_inet_syslog=no
18984 fi
18985
18986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18987       conftest$ac_exeext conftest.$ac_ext
18988 LIBS=$ac_check_lib_save_LIBS
18989 fi
18990 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
18991 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
18992 if test $ac_cv_lib_inet_syslog = yes; then
18993   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18994 fi
18995
18996 fi
18997
18998 fi
18999
19000 fi
19001
19002 if test "$with_DCE" = "yes" -o "$ac_cv_prog_YACC" = "bison -y"; then
19003     # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
19004 # for constant arguments.  Useless!
19005 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
19006 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
19007 if test "${ac_cv_working_alloca_h+set}" = set; then
19008   echo $ECHO_N "(cached) $ECHO_C" >&6
19009 else
19010   cat >conftest.$ac_ext <<_ACEOF
19011 /* confdefs.h.  */
19012 _ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h.  */
19016 #include <alloca.h>
19017 int
19018 main ()
19019 {
19020 char *p = (char *) alloca (2 * sizeof (int));
19021                           if (p) return 0;
19022   ;
19023   return 0;
19024 }
19025 _ACEOF
19026 rm -f conftest.$ac_objext conftest$ac_exeext
19027 if { (ac_try="$ac_link"
19028 case "(($ac_try" in
19029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19030   *) ac_try_echo=$ac_try;;
19031 esac
19032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19033   (eval "$ac_link") 2>conftest.er1
19034   ac_status=$?
19035   grep -v '^ *+' conftest.er1 >conftest.err
19036   rm -f conftest.er1
19037   cat conftest.err >&5
19038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039   (exit $ac_status); } && {
19040          test -z "$ac_c_werror_flag" ||
19041          test ! -s conftest.err
19042        } && test -s conftest$ac_exeext &&
19043        $as_test_x conftest$ac_exeext; then
19044   ac_cv_working_alloca_h=yes
19045 else
19046   echo "$as_me: failed program was:" >&5
19047 sed 's/^/| /' conftest.$ac_ext >&5
19048
19049         ac_cv_working_alloca_h=no
19050 fi
19051
19052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19053       conftest$ac_exeext conftest.$ac_ext
19054 fi
19055 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
19056 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
19057 if test $ac_cv_working_alloca_h = yes; then
19058
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE_ALLOCA_H 1
19061 _ACEOF
19062
19063 fi
19064
19065 { echo "$as_me:$LINENO: checking for alloca" >&5
19066 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
19067 if test "${ac_cv_func_alloca_works+set}" = set; then
19068   echo $ECHO_N "(cached) $ECHO_C" >&6
19069 else
19070   cat >conftest.$ac_ext <<_ACEOF
19071 /* confdefs.h.  */
19072 _ACEOF
19073 cat confdefs.h >>conftest.$ac_ext
19074 cat >>conftest.$ac_ext <<_ACEOF
19075 /* end confdefs.h.  */
19076 #ifdef __GNUC__
19077 # define alloca __builtin_alloca
19078 #else
19079 # ifdef _MSC_VER
19080 #  include <malloc.h>
19081 #  define alloca _alloca
19082 # else
19083 #  ifdef HAVE_ALLOCA_H
19084 #   include <alloca.h>
19085 #  else
19086 #   ifdef _AIX
19087  #pragma alloca
19088 #   else
19089 #    ifndef alloca /* predefined by HP cc +Olibcalls */
19090 char *alloca ();
19091 #    endif
19092 #   endif
19093 #  endif
19094 # endif
19095 #endif
19096
19097 int
19098 main ()
19099 {
19100 char *p = (char *) alloca (1);
19101                                     if (p) return 0;
19102   ;
19103   return 0;
19104 }
19105 _ACEOF
19106 rm -f conftest.$ac_objext conftest$ac_exeext
19107 if { (ac_try="$ac_link"
19108 case "(($ac_try" in
19109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19110   *) ac_try_echo=$ac_try;;
19111 esac
19112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19113   (eval "$ac_link") 2>conftest.er1
19114   ac_status=$?
19115   grep -v '^ *+' conftest.er1 >conftest.err
19116   rm -f conftest.er1
19117   cat conftest.err >&5
19118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19119   (exit $ac_status); } && {
19120          test -z "$ac_c_werror_flag" ||
19121          test ! -s conftest.err
19122        } && test -s conftest$ac_exeext &&
19123        $as_test_x conftest$ac_exeext; then
19124   ac_cv_func_alloca_works=yes
19125 else
19126   echo "$as_me: failed program was:" >&5
19127 sed 's/^/| /' conftest.$ac_ext >&5
19128
19129         ac_cv_func_alloca_works=no
19130 fi
19131
19132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19133       conftest$ac_exeext conftest.$ac_ext
19134 fi
19135 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
19136 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
19137
19138 if test $ac_cv_func_alloca_works = yes; then
19139
19140 cat >>confdefs.h <<\_ACEOF
19141 #define HAVE_ALLOCA 1
19142 _ACEOF
19143
19144 else
19145   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
19146 # that cause trouble.  Some versions do not even contain alloca or
19147 # contain a buggy version.  If you still want to use their alloca,
19148 # use ar to extract alloca.o from them instead of compiling alloca.c.
19149
19150 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
19151
19152 cat >>confdefs.h <<\_ACEOF
19153 #define C_ALLOCA 1
19154 _ACEOF
19155
19156
19157 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
19158 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
19159 if test "${ac_cv_os_cray+set}" = set; then
19160   echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162   cat >conftest.$ac_ext <<_ACEOF
19163 /* confdefs.h.  */
19164 _ACEOF
19165 cat confdefs.h >>conftest.$ac_ext
19166 cat >>conftest.$ac_ext <<_ACEOF
19167 /* end confdefs.h.  */
19168 #if defined CRAY && ! defined CRAY2
19169 webecray
19170 #else
19171 wenotbecray
19172 #endif
19173
19174 _ACEOF
19175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19176   $EGREP "webecray" >/dev/null 2>&1; then
19177   ac_cv_os_cray=yes
19178 else
19179   ac_cv_os_cray=no
19180 fi
19181 rm -f conftest*
19182
19183 fi
19184 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
19185 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
19186 if test $ac_cv_os_cray = yes; then
19187   for ac_func in _getb67 GETB67 getb67; do
19188     as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19189 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19190 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19192   echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194   cat >conftest.$ac_ext <<_ACEOF
19195 /* confdefs.h.  */
19196 _ACEOF
19197 cat confdefs.h >>conftest.$ac_ext
19198 cat >>conftest.$ac_ext <<_ACEOF
19199 /* end confdefs.h.  */
19200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19201    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19202 #define $ac_func innocuous_$ac_func
19203
19204 /* System header to define __stub macros and hopefully few prototypes,
19205     which can conflict with char $ac_func (); below.
19206     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19207     <limits.h> exists even on freestanding compilers.  */
19208
19209 #ifdef __STDC__
19210 # include <limits.h>
19211 #else
19212 # include <assert.h>
19213 #endif
19214
19215 #undef $ac_func
19216
19217 /* Override any GCC internal prototype to avoid an error.
19218    Use char because int might match the return type of a GCC
19219    builtin and then its argument prototype would still apply.  */
19220 #ifdef __cplusplus
19221 extern "C"
19222 #endif
19223 char $ac_func ();
19224 /* The GNU C library defines this for functions which it implements
19225     to always fail with ENOSYS.  Some functions are actually named
19226     something starting with __ and the normal name is an alias.  */
19227 #if defined __stub_$ac_func || defined __stub___$ac_func
19228 choke me
19229 #endif
19230
19231 int
19232 main ()
19233 {
19234 return $ac_func ();
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext conftest$ac_exeext
19240 if { (ac_try="$ac_link"
19241 case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_link") 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } && {
19253          test -z "$ac_c_werror_flag" ||
19254          test ! -s conftest.err
19255        } && test -s conftest$ac_exeext &&
19256        $as_test_x conftest$ac_exeext; then
19257   eval "$as_ac_var=yes"
19258 else
19259   echo "$as_me: failed program was:" >&5
19260 sed 's/^/| /' conftest.$ac_ext >&5
19261
19262         eval "$as_ac_var=no"
19263 fi
19264
19265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19266       conftest$ac_exeext conftest.$ac_ext
19267 fi
19268 ac_res=`eval echo '${'$as_ac_var'}'`
19269                { echo "$as_me:$LINENO: result: $ac_res" >&5
19270 echo "${ECHO_T}$ac_res" >&6; }
19271 if test `eval echo '${'$as_ac_var'}'` = yes; then
19272
19273 cat >>confdefs.h <<_ACEOF
19274 #define CRAY_STACKSEG_END $ac_func
19275 _ACEOF
19276
19277     break
19278 fi
19279
19280   done
19281 fi
19282
19283 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
19284 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
19285 if test "${ac_cv_c_stack_direction+set}" = set; then
19286   echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288   if test "$cross_compiling" = yes; then
19289   ac_cv_c_stack_direction=0
19290 else
19291   cat >conftest.$ac_ext <<_ACEOF
19292 /* confdefs.h.  */
19293 _ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h.  */
19297 $ac_includes_default
19298 int
19299 find_stack_direction ()
19300 {
19301   static char *addr = 0;
19302   auto char dummy;
19303   if (addr == 0)
19304     {
19305       addr = &dummy;
19306       return find_stack_direction ();
19307     }
19308   else
19309     return (&dummy > addr) ? 1 : -1;
19310 }
19311
19312 int
19313 main ()
19314 {
19315   return find_stack_direction () < 0;
19316 }
19317 _ACEOF
19318 rm -f conftest$ac_exeext
19319 if { (ac_try="$ac_link"
19320 case "(($ac_try" in
19321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19322   *) ac_try_echo=$ac_try;;
19323 esac
19324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19325   (eval "$ac_link") 2>&5
19326   ac_status=$?
19327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19329   { (case "(($ac_try" in
19330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331   *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334   (eval "$ac_try") 2>&5
19335   ac_status=$?
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); }; }; then
19338   ac_cv_c_stack_direction=1
19339 else
19340   echo "$as_me: program exited with status $ac_status" >&5
19341 echo "$as_me: failed program was:" >&5
19342 sed 's/^/| /' conftest.$ac_ext >&5
19343
19344 ( exit $ac_status )
19345 ac_cv_c_stack_direction=-1
19346 fi
19347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19348 fi
19349
19350
19351 fi
19352 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
19353 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
19354
19355 cat >>confdefs.h <<_ACEOF
19356 #define STACK_DIRECTION $ac_cv_c_stack_direction
19357 _ACEOF
19358
19359
19360 fi
19361
19362 fi
19363
19364 for ac_func in getprogname
19365 do
19366 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19367 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19368 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19369 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19370   echo $ECHO_N "(cached) $ECHO_C" >&6
19371 else
19372   cat >conftest.$ac_ext <<_ACEOF
19373 /* confdefs.h.  */
19374 _ACEOF
19375 cat confdefs.h >>conftest.$ac_ext
19376 cat >>conftest.$ac_ext <<_ACEOF
19377 /* end confdefs.h.  */
19378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19379    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19380 #define $ac_func innocuous_$ac_func
19381
19382 /* System header to define __stub macros and hopefully few prototypes,
19383     which can conflict with char $ac_func (); below.
19384     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19385     <limits.h> exists even on freestanding compilers.  */
19386
19387 #ifdef __STDC__
19388 # include <limits.h>
19389 #else
19390 # include <assert.h>
19391 #endif
19392
19393 #undef $ac_func
19394
19395 /* Override any GCC internal prototype to avoid an error.
19396    Use char because int might match the return type of a GCC
19397    builtin and then its argument prototype would still apply.  */
19398 #ifdef __cplusplus
19399 extern "C"
19400 #endif
19401 char $ac_func ();
19402 /* The GNU C library defines this for functions which it implements
19403     to always fail with ENOSYS.  Some functions are actually named
19404     something starting with __ and the normal name is an alias.  */
19405 #if defined __stub_$ac_func || defined __stub___$ac_func
19406 choke me
19407 #endif
19408
19409 int
19410 main ()
19411 {
19412 return $ac_func ();
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 rm -f conftest.$ac_objext conftest$ac_exeext
19418 if { (ac_try="$ac_link"
19419 case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_link") 2>conftest.er1
19425   ac_status=$?
19426   grep -v '^ *+' conftest.er1 >conftest.err
19427   rm -f conftest.er1
19428   cat conftest.err >&5
19429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430   (exit $ac_status); } && {
19431          test -z "$ac_c_werror_flag" ||
19432          test ! -s conftest.err
19433        } && test -s conftest$ac_exeext &&
19434        $as_test_x conftest$ac_exeext; then
19435   eval "$as_ac_var=yes"
19436 else
19437   echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19439
19440         eval "$as_ac_var=no"
19441 fi
19442
19443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19444       conftest$ac_exeext conftest.$ac_ext
19445 fi
19446 ac_res=`eval echo '${'$as_ac_var'}'`
19447                { echo "$as_me:$LINENO: result: $ac_res" >&5
19448 echo "${ECHO_T}$ac_res" >&6; }
19449 if test `eval echo '${'$as_ac_var'}'` = yes; then
19450   cat >>confdefs.h <<_ACEOF
19451 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19452 _ACEOF
19453
19454 else
19455
19456     { echo "$as_me:$LINENO: checking for __progname" >&5
19457 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19458     if test "${sudo_cv___progname+set}" = set; then
19459   echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461
19462     cat >conftest.$ac_ext <<_ACEOF
19463 /* confdefs.h.  */
19464 _ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h.  */
19468
19469 int
19470 main ()
19471 {
19472 extern char *__progname; (void)puts(__progname);
19473   ;
19474   return 0;
19475 }
19476 _ACEOF
19477 rm -f conftest.$ac_objext conftest$ac_exeext
19478 if { (ac_try="$ac_link"
19479 case "(($ac_try" in
19480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481   *) ac_try_echo=$ac_try;;
19482 esac
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484   (eval "$ac_link") 2>conftest.er1
19485   ac_status=$?
19486   grep -v '^ *+' conftest.er1 >conftest.err
19487   rm -f conftest.er1
19488   cat conftest.err >&5
19489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490   (exit $ac_status); } && {
19491          test -z "$ac_c_werror_flag" ||
19492          test ! -s conftest.err
19493        } && test -s conftest$ac_exeext &&
19494        $as_test_x conftest$ac_exeext; then
19495   sudo_cv___progname=yes
19496 else
19497   echo "$as_me: failed program was:" >&5
19498 sed 's/^/| /' conftest.$ac_ext >&5
19499
19500         sudo_cv___progname=no
19501 fi
19502
19503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19504       conftest$ac_exeext conftest.$ac_ext
19505 fi
19506
19507     if test "$sudo_cv___progname" = "yes"; then
19508         cat >>confdefs.h <<\_ACEOF
19509 #define HAVE___PROGNAME 1
19510 _ACEOF
19511
19512     else
19513         case " $LIBOBJS " in
19514   *" getprogname.$ac_objext "* ) ;;
19515   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19516  ;;
19517 esac
19518
19519     fi
19520     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19521 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19522
19523 fi
19524 done
19525
19526
19527
19528 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19529     for auth in $AUTH_EXCL_DEF; do
19530         case $auth in
19531             AIX_AUTH)   with_aixauth=maybe;;
19532             BSD_AUTH)   with_bsdauth=maybe;;
19533             PAM)        with_pam=maybe;;
19534             SIA)        CHECKSIA=true;;
19535         esac
19536     done
19537 fi
19538
19539 if test ${with_pam-"no"} != "no"; then
19540                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19541 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19542 if test "${ac_cv_lib_dl_main+set}" = set; then
19543   echo $ECHO_N "(cached) $ECHO_C" >&6
19544 else
19545   ac_check_lib_save_LIBS=$LIBS
19546 LIBS="-ldl  $LIBS"
19547 cat >conftest.$ac_ext <<_ACEOF
19548 /* confdefs.h.  */
19549 _ACEOF
19550 cat confdefs.h >>conftest.$ac_ext
19551 cat >>conftest.$ac_ext <<_ACEOF
19552 /* end confdefs.h.  */
19553
19554
19555 int
19556 main ()
19557 {
19558 return main ();
19559   ;
19560   return 0;
19561 }
19562 _ACEOF
19563 rm -f conftest.$ac_objext conftest$ac_exeext
19564 if { (ac_try="$ac_link"
19565 case "(($ac_try" in
19566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19567   *) ac_try_echo=$ac_try;;
19568 esac
19569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19570   (eval "$ac_link") 2>conftest.er1
19571   ac_status=$?
19572   grep -v '^ *+' conftest.er1 >conftest.err
19573   rm -f conftest.er1
19574   cat conftest.err >&5
19575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19576   (exit $ac_status); } && {
19577          test -z "$ac_c_werror_flag" ||
19578          test ! -s conftest.err
19579        } && test -s conftest$ac_exeext &&
19580        $as_test_x conftest$ac_exeext; then
19581   ac_cv_lib_dl_main=yes
19582 else
19583   echo "$as_me: failed program was:" >&5
19584 sed 's/^/| /' conftest.$ac_ext >&5
19585
19586         ac_cv_lib_dl_main=no
19587 fi
19588
19589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19590       conftest$ac_exeext conftest.$ac_ext
19591 LIBS=$ac_check_lib_save_LIBS
19592 fi
19593 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19594 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19595 if test $ac_cv_lib_dl_main = yes; then
19596   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19597 else
19598   SUDO_LIBS="${SUDO_LIBS} -lpam"
19599 fi
19600
19601     ac_cv_lib_dl=ac_cv_lib_dl_main
19602
19603
19604
19605 for ac_header in security/pam_appl.h pam/pam_appl.h
19606 do
19607 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19609   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19611 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19612   echo $ECHO_N "(cached) $ECHO_C" >&6
19613 fi
19614 ac_res=`eval echo '${'$as_ac_Header'}'`
19615                { echo "$as_me:$LINENO: result: $ac_res" >&5
19616 echo "${ECHO_T}$ac_res" >&6; }
19617 else
19618   # Is the header compilable?
19619 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19620 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19621 cat >conftest.$ac_ext <<_ACEOF
19622 /* confdefs.h.  */
19623 _ACEOF
19624 cat confdefs.h >>conftest.$ac_ext
19625 cat >>conftest.$ac_ext <<_ACEOF
19626 /* end confdefs.h.  */
19627 $ac_includes_default
19628 #include <$ac_header>
19629 _ACEOF
19630 rm -f conftest.$ac_objext
19631 if { (ac_try="$ac_compile"
19632 case "(($ac_try" in
19633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19634   *) ac_try_echo=$ac_try;;
19635 esac
19636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19637   (eval "$ac_compile") 2>conftest.er1
19638   ac_status=$?
19639   grep -v '^ *+' conftest.er1 >conftest.err
19640   rm -f conftest.er1
19641   cat conftest.err >&5
19642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643   (exit $ac_status); } && {
19644          test -z "$ac_c_werror_flag" ||
19645          test ! -s conftest.err
19646        } && test -s conftest.$ac_objext; then
19647   ac_header_compiler=yes
19648 else
19649   echo "$as_me: failed program was:" >&5
19650 sed 's/^/| /' conftest.$ac_ext >&5
19651
19652         ac_header_compiler=no
19653 fi
19654
19655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19657 echo "${ECHO_T}$ac_header_compiler" >&6; }
19658
19659 # Is the header present?
19660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19662 cat >conftest.$ac_ext <<_ACEOF
19663 /* confdefs.h.  */
19664 _ACEOF
19665 cat confdefs.h >>conftest.$ac_ext
19666 cat >>conftest.$ac_ext <<_ACEOF
19667 /* end confdefs.h.  */
19668 #include <$ac_header>
19669 _ACEOF
19670 if { (ac_try="$ac_cpp conftest.$ac_ext"
19671 case "(($ac_try" in
19672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673   *) ac_try_echo=$ac_try;;
19674 esac
19675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19676   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19677   ac_status=$?
19678   grep -v '^ *+' conftest.er1 >conftest.err
19679   rm -f conftest.er1
19680   cat conftest.err >&5
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); } >/dev/null && {
19683          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19684          test ! -s conftest.err
19685        }; then
19686   ac_header_preproc=yes
19687 else
19688   echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691   ac_header_preproc=no
19692 fi
19693
19694 rm -f conftest.err conftest.$ac_ext
19695 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19696 echo "${ECHO_T}$ac_header_preproc" >&6; }
19697
19698 # So?  What about this header?
19699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19700   yes:no: )
19701     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19702 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19703     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19704 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19705     ac_header_preproc=yes
19706     ;;
19707   no:yes:* )
19708     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19709 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19710     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19711 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19712     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19713 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19714     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19715 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19716     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19717 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19718     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19719 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19720
19721     ;;
19722 esac
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 else
19728   eval "$as_ac_Header=\$ac_header_preproc"
19729 fi
19730 ac_res=`eval echo '${'$as_ac_Header'}'`
19731                { echo "$as_me:$LINENO: result: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19733
19734 fi
19735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19736   cat >>confdefs.h <<_ACEOF
19737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19738 _ACEOF
19739  with_pam=yes; break
19740 fi
19741
19742 done
19743
19744     if test "$with_pam" = "yes"; then
19745         cat >>confdefs.h <<\_ACEOF
19746 #define HAVE_PAM 1
19747 _ACEOF
19748
19749         AUTH_OBJS="$AUTH_OBJS pam.o";
19750         AUTH_EXCL=PAM
19751         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19752 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19753         # Check whether --enable-pam_session was given.
19754 if test "${enable_pam_session+set}" = set; then
19755   enableval=$enable_pam_session;  case "$enableval" in
19756                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
19757 echo "${ECHO_T}yes" >&6; }
19758                         ;;
19759                 no)             { echo "$as_me:$LINENO: result: no" >&5
19760 echo "${ECHO_T}no" >&6; }
19761                             cat >>confdefs.h <<\_ACEOF
19762 #define NO_PAM_SESSION 1
19763 _ACEOF
19764
19765                             ;;
19766                 *)              { echo "$as_me:$LINENO: result: no" >&5
19767 echo "${ECHO_T}no" >&6; }
19768                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19769 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19770                             ;;
19771             esac
19772 else
19773   { echo "$as_me:$LINENO: result: yes" >&5
19774 echo "${ECHO_T}yes" >&6; }
19775 fi
19776
19777         case $host in
19778             *-*-linux*|*-*-solaris*)
19779
19780 for ac_func in dgettext
19781 do
19782 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19785 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19786   echo $ECHO_N "(cached) $ECHO_C" >&6
19787 else
19788   cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h.  */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h.  */
19794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19795    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19796 #define $ac_func innocuous_$ac_func
19797
19798 /* System header to define __stub macros and hopefully few prototypes,
19799     which can conflict with char $ac_func (); below.
19800     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19801     <limits.h> exists even on freestanding compilers.  */
19802
19803 #ifdef __STDC__
19804 # include <limits.h>
19805 #else
19806 # include <assert.h>
19807 #endif
19808
19809 #undef $ac_func
19810
19811 /* Override any GCC internal prototype to avoid an error.
19812    Use char because int might match the return type of a GCC
19813    builtin and then its argument prototype would still apply.  */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char $ac_func ();
19818 /* The GNU C library defines this for functions which it implements
19819     to always fail with ENOSYS.  Some functions are actually named
19820     something starting with __ and the normal name is an alias.  */
19821 #if defined __stub_$ac_func || defined __stub___$ac_func
19822 choke me
19823 #endif
19824
19825 int
19826 main ()
19827 {
19828 return $ac_func ();
19829   ;
19830   return 0;
19831 }
19832 _ACEOF
19833 rm -f conftest.$ac_objext conftest$ac_exeext
19834 if { (ac_try="$ac_link"
19835 case "(($ac_try" in
19836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837   *) ac_try_echo=$ac_try;;
19838 esac
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840   (eval "$ac_link") 2>conftest.er1
19841   ac_status=$?
19842   grep -v '^ *+' conftest.er1 >conftest.err
19843   rm -f conftest.er1
19844   cat conftest.err >&5
19845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19846   (exit $ac_status); } && {
19847          test -z "$ac_c_werror_flag" ||
19848          test ! -s conftest.err
19849        } && test -s conftest$ac_exeext &&
19850        $as_test_x conftest$ac_exeext; then
19851   eval "$as_ac_var=yes"
19852 else
19853   echo "$as_me: failed program was:" >&5
19854 sed 's/^/| /' conftest.$ac_ext >&5
19855
19856         eval "$as_ac_var=no"
19857 fi
19858
19859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19860       conftest$ac_exeext conftest.$ac_ext
19861 fi
19862 ac_res=`eval echo '${'$as_ac_var'}'`
19863                { echo "$as_me:$LINENO: result: $ac_res" >&5
19864 echo "${ECHO_T}$ac_res" >&6; }
19865 if test `eval echo '${'$as_ac_var'}'` = yes; then
19866   cat >>confdefs.h <<_ACEOF
19867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19868 _ACEOF
19869
19870 else
19871   { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19872 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19873 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19874   echo $ECHO_N "(cached) $ECHO_C" >&6
19875 else
19876   ac_check_lib_save_LIBS=$LIBS
19877 LIBS="-lintl  $LIBS"
19878 cat >conftest.$ac_ext <<_ACEOF
19879 /* confdefs.h.  */
19880 _ACEOF
19881 cat confdefs.h >>conftest.$ac_ext
19882 cat >>conftest.$ac_ext <<_ACEOF
19883 /* end confdefs.h.  */
19884
19885 /* Override any GCC internal prototype to avoid an error.
19886    Use char because int might match the return type of a GCC
19887    builtin and then its argument prototype would still apply.  */
19888 #ifdef __cplusplus
19889 extern "C"
19890 #endif
19891 char dgettext ();
19892 int
19893 main ()
19894 {
19895 return dgettext ();
19896   ;
19897   return 0;
19898 }
19899 _ACEOF
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (ac_try="$ac_link"
19902 case "(($ac_try" in
19903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904   *) ac_try_echo=$ac_try;;
19905 esac
19906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19907   (eval "$ac_link") 2>conftest.er1
19908   ac_status=$?
19909   grep -v '^ *+' conftest.er1 >conftest.err
19910   rm -f conftest.er1
19911   cat conftest.err >&5
19912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19913   (exit $ac_status); } && {
19914          test -z "$ac_c_werror_flag" ||
19915          test ! -s conftest.err
19916        } && test -s conftest$ac_exeext &&
19917        $as_test_x conftest$ac_exeext; then
19918   ac_cv_lib_intl_dgettext=yes
19919 else
19920   echo "$as_me: failed program was:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19922
19923         ac_cv_lib_intl_dgettext=no
19924 fi
19925
19926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19927       conftest$ac_exeext conftest.$ac_ext
19928 LIBS=$ac_check_lib_save_LIBS
19929 fi
19930 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19931 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19932 if test $ac_cv_lib_intl_dgettext = yes; then
19933   LIBS="${LIBS} -lintl"
19934                         cat >>confdefs.h <<\_ACEOF
19935 #define HAVE_DGETTEXT 1
19936 _ACEOF
19937
19938 fi
19939
19940 fi
19941 done
19942
19943                     ;;
19944         esac
19945     fi
19946 fi
19947
19948 if test ${with_aixauth-'no'} != "no"; then
19949     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19950         { echo "$as_me:$LINENO: using AIX general authentication" >&5
19951 echo "$as_me: using AIX general authentication" >&6;}
19952         cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_AIXAUTH 1
19954 _ACEOF
19955
19956         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19957         SUDO_LIBS="${SUDO_LIBS} -ls"
19958         AUTH_EXCL=AIX_AUTH
19959     fi
19960 fi
19961
19962 if test ${with_bsdauth-'no'} != "no"; then
19963     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19964   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19965 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19966 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19967   echo $ECHO_N "(cached) $ECHO_C" >&6
19968 fi
19969 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19970 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19971 else
19972   # Is the header compilable?
19973 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19974 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19975 cat >conftest.$ac_ext <<_ACEOF
19976 /* confdefs.h.  */
19977 _ACEOF
19978 cat confdefs.h >>conftest.$ac_ext
19979 cat >>conftest.$ac_ext <<_ACEOF
19980 /* end confdefs.h.  */
19981 $ac_includes_default
19982 #include <bsd_auth.h>
19983 _ACEOF
19984 rm -f conftest.$ac_objext
19985 if { (ac_try="$ac_compile"
19986 case "(($ac_try" in
19987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19988   *) ac_try_echo=$ac_try;;
19989 esac
19990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19991   (eval "$ac_compile") 2>conftest.er1
19992   ac_status=$?
19993   grep -v '^ *+' conftest.er1 >conftest.err
19994   rm -f conftest.er1
19995   cat conftest.err >&5
19996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19997   (exit $ac_status); } && {
19998          test -z "$ac_c_werror_flag" ||
19999          test ! -s conftest.err
20000        } && test -s conftest.$ac_objext; then
20001   ac_header_compiler=yes
20002 else
20003   echo "$as_me: failed program was:" >&5
20004 sed 's/^/| /' conftest.$ac_ext >&5
20005
20006         ac_header_compiler=no
20007 fi
20008
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20011 echo "${ECHO_T}$ac_header_compiler" >&6; }
20012
20013 # Is the header present?
20014 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
20015 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h.  */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h.  */
20022 #include <bsd_auth.h>
20023 _ACEOF
20024 if { (ac_try="$ac_cpp conftest.$ac_ext"
20025 case "(($ac_try" in
20026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027   *) ac_try_echo=$ac_try;;
20028 esac
20029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20030   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20031   ac_status=$?
20032   grep -v '^ *+' conftest.er1 >conftest.err
20033   rm -f conftest.er1
20034   cat conftest.err >&5
20035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036   (exit $ac_status); } >/dev/null && {
20037          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20038          test ! -s conftest.err
20039        }; then
20040   ac_header_preproc=yes
20041 else
20042   echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20044
20045   ac_header_preproc=no
20046 fi
20047
20048 rm -f conftest.err conftest.$ac_ext
20049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20050 echo "${ECHO_T}$ac_header_preproc" >&6; }
20051
20052 # So?  What about this header?
20053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20054   yes:no: )
20055     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
20056 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20057     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
20058 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
20059     ac_header_preproc=yes
20060     ;;
20061   no:yes:* )
20062     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
20063 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
20064     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
20065 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
20066     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
20067 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
20068     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
20069 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20070     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
20071 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
20072     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
20073 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
20074
20075     ;;
20076 esac
20077 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
20078 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
20079 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
20080   echo $ECHO_N "(cached) $ECHO_C" >&6
20081 else
20082   ac_cv_header_bsd_auth_h=$ac_header_preproc
20083 fi
20084 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
20085 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
20086
20087 fi
20088 if test $ac_cv_header_bsd_auth_h = yes; then
20089   cat >>confdefs.h <<\_ACEOF
20090 #define HAVE_BSD_AUTH_H 1
20091 _ACEOF
20092
20093         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
20094         AUTH_EXCL=BSD_AUTH; BAMAN=""
20095 else
20096   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
20097 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
20098    { (exit 1); exit 1; }; }
20099 fi
20100
20101
20102 fi
20103
20104 if test ${CHECKSIA-'false'} = "true"; then
20105
20106 for ac_func in sia_ses_init
20107 do
20108 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20109 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20110 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20111 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20112   echo $ECHO_N "(cached) $ECHO_C" >&6
20113 else
20114   cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h.  */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h.  */
20120 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20121    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20122 #define $ac_func innocuous_$ac_func
20123
20124 /* System header to define __stub macros and hopefully few prototypes,
20125     which can conflict with char $ac_func (); below.
20126     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20127     <limits.h> exists even on freestanding compilers.  */
20128
20129 #ifdef __STDC__
20130 # include <limits.h>
20131 #else
20132 # include <assert.h>
20133 #endif
20134
20135 #undef $ac_func
20136
20137 /* Override any GCC internal prototype to avoid an error.
20138    Use char because int might match the return type of a GCC
20139    builtin and then its argument prototype would still apply.  */
20140 #ifdef __cplusplus
20141 extern "C"
20142 #endif
20143 char $ac_func ();
20144 /* The GNU C library defines this for functions which it implements
20145     to always fail with ENOSYS.  Some functions are actually named
20146     something starting with __ and the normal name is an alias.  */
20147 #if defined __stub_$ac_func || defined __stub___$ac_func
20148 choke me
20149 #endif
20150
20151 int
20152 main ()
20153 {
20154 return $ac_func ();
20155   ;
20156   return 0;
20157 }
20158 _ACEOF
20159 rm -f conftest.$ac_objext conftest$ac_exeext
20160 if { (ac_try="$ac_link"
20161 case "(($ac_try" in
20162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20163   *) ac_try_echo=$ac_try;;
20164 esac
20165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20166   (eval "$ac_link") 2>conftest.er1
20167   ac_status=$?
20168   grep -v '^ *+' conftest.er1 >conftest.err
20169   rm -f conftest.er1
20170   cat conftest.err >&5
20171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20172   (exit $ac_status); } && {
20173          test -z "$ac_c_werror_flag" ||
20174          test ! -s conftest.err
20175        } && test -s conftest$ac_exeext &&
20176        $as_test_x conftest$ac_exeext; then
20177   eval "$as_ac_var=yes"
20178 else
20179   echo "$as_me: failed program was:" >&5
20180 sed 's/^/| /' conftest.$ac_ext >&5
20181
20182         eval "$as_ac_var=no"
20183 fi
20184
20185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20186       conftest$ac_exeext conftest.$ac_ext
20187 fi
20188 ac_res=`eval echo '${'$as_ac_var'}'`
20189                { echo "$as_me:$LINENO: result: $ac_res" >&5
20190 echo "${ECHO_T}$ac_res" >&6; }
20191 if test `eval echo '${'$as_ac_var'}'` = yes; then
20192   cat >>confdefs.h <<_ACEOF
20193 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20194 _ACEOF
20195  found=true
20196 else
20197   found=false
20198 fi
20199 done
20200
20201     if test "$found" = "true"; then
20202         AUTH_EXCL=SIA
20203         AUTH_OBJS="$AUTH_OBJS sia.o"
20204     fi
20205 fi
20206
20207 if test ${with_fwtk-'no'} != "no"; then
20208     if test "$with_fwtk" != "yes"; then
20209
20210     if test X"$with_rpath" = X"yes"; then
20211         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20212     else
20213         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20214     fi
20215     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20216         blibpath_add="${blibpath_add}:${with_fwtk}"
20217     fi
20218
20219         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20220         with_fwtk=yes
20221     fi
20222     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20223     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20224 fi
20225
20226 if test ${with_SecurID-'no'} != "no"; then
20227     if test "$with_SecurID" != "yes"; then
20228         :
20229     elif test -d /usr/ace/examples; then
20230         with_SecurID=/usr/ace/examples
20231     else
20232         with_SecurID=/usr/ace
20233     fi
20234     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20235     _LDFLAGS="${LDFLAGS}"
20236
20237     if test X"$with_rpath" = X"yes"; then
20238         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20239     else
20240         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20241     fi
20242     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20243         blibpath_add="${blibpath_add}:${with_SecurID}"
20244     fi
20245
20246     #
20247     # Determine whether to use the new or old SecurID API
20248     #
20249     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20250 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20251 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20252   echo $ECHO_N "(cached) $ECHO_C" >&6
20253 else
20254   ac_check_lib_save_LIBS=$LIBS
20255 LIBS="-laceclnt
20256             -lpthread
20257
20258      $LIBS"
20259 cat >conftest.$ac_ext <<_ACEOF
20260 /* confdefs.h.  */
20261 _ACEOF
20262 cat confdefs.h >>conftest.$ac_ext
20263 cat >>conftest.$ac_ext <<_ACEOF
20264 /* end confdefs.h.  */
20265
20266 /* Override any GCC internal prototype to avoid an error.
20267    Use char because int might match the return type of a GCC
20268    builtin and then its argument prototype would still apply.  */
20269 #ifdef __cplusplus
20270 extern "C"
20271 #endif
20272 char SD_Init ();
20273 int
20274 main ()
20275 {
20276 return SD_Init ();
20277   ;
20278   return 0;
20279 }
20280 _ACEOF
20281 rm -f conftest.$ac_objext conftest$ac_exeext
20282 if { (ac_try="$ac_link"
20283 case "(($ac_try" in
20284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285   *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288   (eval "$ac_link") 2>conftest.er1
20289   ac_status=$?
20290   grep -v '^ *+' conftest.er1 >conftest.err
20291   rm -f conftest.er1
20292   cat conftest.err >&5
20293   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294   (exit $ac_status); } && {
20295          test -z "$ac_c_werror_flag" ||
20296          test ! -s conftest.err
20297        } && test -s conftest$ac_exeext &&
20298        $as_test_x conftest$ac_exeext; then
20299   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20300 else
20301   echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20303
20304         ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20305 fi
20306
20307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20308       conftest$ac_exeext conftest.$ac_ext
20309 LIBS=$ac_check_lib_save_LIBS
20310 fi
20311 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20312 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20313 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20314
20315             AUTH_OBJS="$AUTH_OBJS securid5.o";
20316             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20317
20318
20319
20320     if test X"$with_rpath" = X"yes"; then
20321         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20322     else
20323         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20324     fi
20325     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20326         blibpath_add="${blibpath_add}:${with_SecurID}"
20327     fi
20328
20329
20330 else
20331
20332             AUTH_OBJS="$AUTH_OBJS securid.o";
20333             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20334
20335 fi
20336
20337     LDFLAGS="${_LDFLAGS}"
20338 fi
20339
20340
20341 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20342     for auth in $AUTH_DEF; do
20343         case $auth in
20344             passwd)     : ${with_passwd='maybe'};;
20345         esac
20346     done
20347 fi
20348
20349 if test ${with_kerb4-'no'} != "no"; then
20350     cat >>confdefs.h <<\_ACEOF
20351 #define HAVE_KERB4 1
20352 _ACEOF
20353
20354                 O_LDFLAGS="$LDFLAGS"
20355     if test "$with_kerb4" = "yes"; then
20356         found=no
20357         O_CPPFLAGS="$CPPFLAGS"
20358         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20359             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20360             cat >conftest.$ac_ext <<_ACEOF
20361 #include <krb.h>
20362 _ACEOF
20363 if { (ac_try="$ac_cpp conftest.$ac_ext"
20364 case "(($ac_try" in
20365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20366   *) ac_try_echo=$ac_try;;
20367 esac
20368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20369   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20370   ac_status=$?
20371   grep -v '^ *+' conftest.er1 >conftest.err
20372   rm -f conftest.er1
20373   cat conftest.err >&5
20374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375   (exit $ac_status); } >/dev/null && {
20376          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20377          test ! -s conftest.err
20378        }; then
20379   found=yes; break
20380 else
20381   echo "$as_me: failed program was:" >&5
20382 sed 's/^/| /' conftest.$ac_ext >&5
20383
20384
20385 fi
20386
20387 rm -f conftest.err conftest.$ac_ext
20388         done
20389         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20390     else
20391
20392     if test X"$with_rpath" = X"yes"; then
20393         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20394     else
20395         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20396     fi
20397     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20398         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20399     fi
20400
20401
20402     if test X"$with_rpath" = X"yes"; then
20403         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20404     else
20405         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20406     fi
20407     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20408         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20409     fi
20410
20411         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20412         if test "${ac_cv_header_krb_h+set}" = set; then
20413   { echo "$as_me:$LINENO: checking for krb.h" >&5
20414 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20415 if test "${ac_cv_header_krb_h+set}" = set; then
20416   echo $ECHO_N "(cached) $ECHO_C" >&6
20417 fi
20418 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20419 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20420 else
20421   # Is the header compilable?
20422 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20423 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20424 cat >conftest.$ac_ext <<_ACEOF
20425 /* confdefs.h.  */
20426 _ACEOF
20427 cat confdefs.h >>conftest.$ac_ext
20428 cat >>conftest.$ac_ext <<_ACEOF
20429 /* end confdefs.h.  */
20430 $ac_includes_default
20431 #include <krb.h>
20432 _ACEOF
20433 rm -f conftest.$ac_objext
20434 if { (ac_try="$ac_compile"
20435 case "(($ac_try" in
20436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20437   *) ac_try_echo=$ac_try;;
20438 esac
20439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20440   (eval "$ac_compile") 2>conftest.er1
20441   ac_status=$?
20442   grep -v '^ *+' conftest.er1 >conftest.err
20443   rm -f conftest.er1
20444   cat conftest.err >&5
20445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20446   (exit $ac_status); } && {
20447          test -z "$ac_c_werror_flag" ||
20448          test ! -s conftest.err
20449        } && test -s conftest.$ac_objext; then
20450   ac_header_compiler=yes
20451 else
20452   echo "$as_me: failed program was:" >&5
20453 sed 's/^/| /' conftest.$ac_ext >&5
20454
20455         ac_header_compiler=no
20456 fi
20457
20458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20459 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20460 echo "${ECHO_T}$ac_header_compiler" >&6; }
20461
20462 # Is the header present?
20463 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20464 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20465 cat >conftest.$ac_ext <<_ACEOF
20466 /* confdefs.h.  */
20467 _ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h.  */
20471 #include <krb.h>
20472 _ACEOF
20473 if { (ac_try="$ac_cpp conftest.$ac_ext"
20474 case "(($ac_try" in
20475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20476   *) ac_try_echo=$ac_try;;
20477 esac
20478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20479   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20480   ac_status=$?
20481   grep -v '^ *+' conftest.er1 >conftest.err
20482   rm -f conftest.er1
20483   cat conftest.err >&5
20484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20485   (exit $ac_status); } >/dev/null && {
20486          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20487          test ! -s conftest.err
20488        }; then
20489   ac_header_preproc=yes
20490 else
20491   echo "$as_me: failed program was:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20493
20494   ac_header_preproc=no
20495 fi
20496
20497 rm -f conftest.err conftest.$ac_ext
20498 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20499 echo "${ECHO_T}$ac_header_preproc" >&6; }
20500
20501 # So?  What about this header?
20502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20503   yes:no: )
20504     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20505 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20507 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20508     ac_header_preproc=yes
20509     ;;
20510   no:yes:* )
20511     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20512 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20513     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20514 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20515     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20516 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20517     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20518 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20519     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20520 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20521     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20522 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20523
20524     ;;
20525 esac
20526 { echo "$as_me:$LINENO: checking for krb.h" >&5
20527 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20528 if test "${ac_cv_header_krb_h+set}" = set; then
20529   echo $ECHO_N "(cached) $ECHO_C" >&6
20530 else
20531   ac_cv_header_krb_h=$ac_header_preproc
20532 fi
20533 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20534 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20535
20536 fi
20537 if test $ac_cv_header_krb_h = yes; then
20538   found=yes
20539 else
20540   found=no
20541 fi
20542
20543
20544     fi
20545     if test X"$found" = X"no"; then
20546         { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
20547 echo "$as_me: WARNING: Unable to locate Kerberos IV include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
20548     fi
20549
20550                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20551 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20552 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20553   echo $ECHO_N "(cached) $ECHO_C" >&6
20554 else
20555   ac_check_lib_save_LIBS=$LIBS
20556 LIBS="-ldes  $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
20565    Use char because int might match the return type of a GCC
20566    builtin and then its argument prototype would still apply.  */
20567 #ifdef __cplusplus
20568 extern "C"
20569 #endif
20570 char des_cbc_encrypt ();
20571 int
20572 main ()
20573 {
20574 return des_cbc_encrypt ();
20575   ;
20576   return 0;
20577 }
20578 _ACEOF
20579 rm -f conftest.$ac_objext conftest$ac_exeext
20580 if { (ac_try="$ac_link"
20581 case "(($ac_try" in
20582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583   *) ac_try_echo=$ac_try;;
20584 esac
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586   (eval "$ac_link") 2>conftest.er1
20587   ac_status=$?
20588   grep -v '^ *+' conftest.er1 >conftest.err
20589   rm -f conftest.er1
20590   cat conftest.err >&5
20591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592   (exit $ac_status); } && {
20593          test -z "$ac_c_werror_flag" ||
20594          test ! -s conftest.err
20595        } && test -s conftest$ac_exeext &&
20596        $as_test_x conftest$ac_exeext; then
20597   ac_cv_lib_des_des_cbc_encrypt=yes
20598 else
20599   echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20601
20602         ac_cv_lib_des_des_cbc_encrypt=no
20603 fi
20604
20605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20606       conftest$ac_exeext conftest.$ac_ext
20607 LIBS=$ac_check_lib_save_LIBS
20608 fi
20609 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20610 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20611 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20612   K4LIBS="-ldes"
20613 else
20614
20615         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20616 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20617 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20618   echo $ECHO_N "(cached) $ECHO_C" >&6
20619 else
20620   ac_check_lib_save_LIBS=$LIBS
20621 LIBS="-ldes425  $LIBS"
20622 cat >conftest.$ac_ext <<_ACEOF
20623 /* confdefs.h.  */
20624 _ACEOF
20625 cat confdefs.h >>conftest.$ac_ext
20626 cat >>conftest.$ac_ext <<_ACEOF
20627 /* end confdefs.h.  */
20628
20629 /* Override any GCC internal prototype to avoid an error.
20630    Use char because int might match the return type of a GCC
20631    builtin and then its argument prototype would still apply.  */
20632 #ifdef __cplusplus
20633 extern "C"
20634 #endif
20635 char des_cbc_encrypt ();
20636 int
20637 main ()
20638 {
20639 return des_cbc_encrypt ();
20640   ;
20641   return 0;
20642 }
20643 _ACEOF
20644 rm -f conftest.$ac_objext conftest$ac_exeext
20645 if { (ac_try="$ac_link"
20646 case "(($ac_try" in
20647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20648   *) ac_try_echo=$ac_try;;
20649 esac
20650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20651   (eval "$ac_link") 2>conftest.er1
20652   ac_status=$?
20653   grep -v '^ *+' conftest.er1 >conftest.err
20654   rm -f conftest.er1
20655   cat conftest.err >&5
20656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); } && {
20658          test -z "$ac_c_werror_flag" ||
20659          test ! -s conftest.err
20660        } && test -s conftest$ac_exeext &&
20661        $as_test_x conftest$ac_exeext; then
20662   ac_cv_lib_des425_des_cbc_encrypt=yes
20663 else
20664   echo "$as_me: failed program was:" >&5
20665 sed 's/^/| /' conftest.$ac_ext >&5
20666
20667         ac_cv_lib_des425_des_cbc_encrypt=no
20668 fi
20669
20670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20671       conftest$ac_exeext conftest.$ac_ext
20672 LIBS=$ac_check_lib_save_LIBS
20673 fi
20674 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20675 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20676 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20677   K4LIBS="-ldes425"
20678 else
20679   K4LIBS=""
20680 fi
20681
20682
20683 fi
20684
20685                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20686 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20687     cat >conftest.$ac_ext <<_ACEOF
20688 /* confdefs.h.  */
20689 _ACEOF
20690 cat confdefs.h >>conftest.$ac_ext
20691 cat >>conftest.$ac_ext <<_ACEOF
20692 /* end confdefs.h.  */
20693 #include <krb.h>
20694 int
20695 main ()
20696 {
20697 const char *tmp = krb4_version;
20698   ;
20699   return 0;
20700 }
20701 _ACEOF
20702 rm -f conftest.$ac_objext
20703 if { (ac_try="$ac_compile"
20704 case "(($ac_try" in
20705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706   *) ac_try_echo=$ac_try;;
20707 esac
20708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20709   (eval "$ac_compile") 2>conftest.er1
20710   ac_status=$?
20711   grep -v '^ *+' conftest.er1 >conftest.err
20712   rm -f conftest.er1
20713   cat conftest.err >&5
20714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20715   (exit $ac_status); } && {
20716          test -z "$ac_c_werror_flag" ||
20717          test ! -s conftest.err
20718        } && test -s conftest.$ac_objext; then
20719
20720             { echo "$as_me:$LINENO: result: yes" >&5
20721 echo "${ECHO_T}yes" >&6; }
20722             K4LIBS="${K4LIBS} -lcom_err"
20723             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20724 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20725 if test "${ac_cv_lib_roken_main+set}" = set; then
20726   echo $ECHO_N "(cached) $ECHO_C" >&6
20727 else
20728   ac_check_lib_save_LIBS=$LIBS
20729 LIBS="-lroken  $LIBS"
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h.  */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h.  */
20736
20737
20738 int
20739 main ()
20740 {
20741 return main ();
20742   ;
20743   return 0;
20744 }
20745 _ACEOF
20746 rm -f conftest.$ac_objext conftest$ac_exeext
20747 if { (ac_try="$ac_link"
20748 case "(($ac_try" in
20749   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20750   *) ac_try_echo=$ac_try;;
20751 esac
20752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20753   (eval "$ac_link") 2>conftest.er1
20754   ac_status=$?
20755   grep -v '^ *+' conftest.er1 >conftest.err
20756   rm -f conftest.er1
20757   cat conftest.err >&5
20758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759   (exit $ac_status); } && {
20760          test -z "$ac_c_werror_flag" ||
20761          test ! -s conftest.err
20762        } && test -s conftest$ac_exeext &&
20763        $as_test_x conftest$ac_exeext; then
20764   ac_cv_lib_roken_main=yes
20765 else
20766   echo "$as_me: failed program was:" >&5
20767 sed 's/^/| /' conftest.$ac_ext >&5
20768
20769         ac_cv_lib_roken_main=no
20770 fi
20771
20772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20773       conftest$ac_exeext conftest.$ac_ext
20774 LIBS=$ac_check_lib_save_LIBS
20775 fi
20776 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20777 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20778 if test $ac_cv_lib_roken_main = yes; then
20779   K4LIBS="${K4LIBS} -lroken"
20780 fi
20781
20782
20783 else
20784   echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787
20788             { echo "$as_me:$LINENO: result: no" >&5
20789 echo "${ECHO_T}no" >&6; }
20790
20791
20792 fi
20793
20794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20795                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20796 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20797 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20798 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20799   echo $ECHO_N "(cached) $ECHO_C" >&6
20800 else
20801   ac_check_lib_save_LIBS=$LIBS
20802 LIBS="-lkrb $K4LIBS $LIBS"
20803 cat >conftest.$ac_ext <<_ACEOF
20804 /* confdefs.h.  */
20805 _ACEOF
20806 cat confdefs.h >>conftest.$ac_ext
20807 cat >>conftest.$ac_ext <<_ACEOF
20808 /* end confdefs.h.  */
20809
20810
20811 int
20812 main ()
20813 {
20814 return main ();
20815   ;
20816   return 0;
20817 }
20818 _ACEOF
20819 rm -f conftest.$ac_objext conftest$ac_exeext
20820 if { (ac_try="$ac_link"
20821 case "(($ac_try" in
20822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20823   *) ac_try_echo=$ac_try;;
20824 esac
20825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20826   (eval "$ac_link") 2>conftest.er1
20827   ac_status=$?
20828   grep -v '^ *+' conftest.er1 >conftest.err
20829   rm -f conftest.er1
20830   cat conftest.err >&5
20831   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832   (exit $ac_status); } && {
20833          test -z "$ac_c_werror_flag" ||
20834          test ! -s conftest.err
20835        } && test -s conftest$ac_exeext &&
20836        $as_test_x conftest$ac_exeext; then
20837   eval "$as_ac_Lib=yes"
20838 else
20839   echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20841
20842         eval "$as_ac_Lib=no"
20843 fi
20844
20845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20846       conftest$ac_exeext conftest.$ac_ext
20847 LIBS=$ac_check_lib_save_LIBS
20848 fi
20849 ac_res=`eval echo '${'$as_ac_Lib'}'`
20850                { echo "$as_me:$LINENO: result: $ac_res" >&5
20851 echo "${ECHO_T}$ac_res" >&6; }
20852 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20853   K4LIBS="-lkrb $K4LIBS"
20854 else
20855
20856         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20857 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20858 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20859 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20860   echo $ECHO_N "(cached) $ECHO_C" >&6
20861 else
20862   ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lkrb4 $K4LIBS $LIBS"
20864 cat >conftest.$ac_ext <<_ACEOF
20865 /* confdefs.h.  */
20866 _ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h.  */
20870
20871
20872 int
20873 main ()
20874 {
20875 return main ();
20876   ;
20877   return 0;
20878 }
20879 _ACEOF
20880 rm -f conftest.$ac_objext conftest$ac_exeext
20881 if { (ac_try="$ac_link"
20882 case "(($ac_try" in
20883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20884   *) ac_try_echo=$ac_try;;
20885 esac
20886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20887   (eval "$ac_link") 2>conftest.er1
20888   ac_status=$?
20889   grep -v '^ *+' conftest.er1 >conftest.err
20890   rm -f conftest.er1
20891   cat conftest.err >&5
20892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893   (exit $ac_status); } && {
20894          test -z "$ac_c_werror_flag" ||
20895          test ! -s conftest.err
20896        } && test -s conftest$ac_exeext &&
20897        $as_test_x conftest$ac_exeext; then
20898   eval "$as_ac_Lib=yes"
20899 else
20900   echo "$as_me: failed program was:" >&5
20901 sed 's/^/| /' conftest.$ac_ext >&5
20902
20903         eval "$as_ac_Lib=no"
20904 fi
20905
20906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20907       conftest$ac_exeext conftest.$ac_ext
20908 LIBS=$ac_check_lib_save_LIBS
20909 fi
20910 ac_res=`eval echo '${'$as_ac_Lib'}'`
20911                { echo "$as_me:$LINENO: result: $ac_res" >&5
20912 echo "${ECHO_T}$ac_res" >&6; }
20913 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20914   K4LIBS="-lkrb4 $K4LIBS"
20915 else
20916   K4LIBS="-lkrb $K4LIBS"
20917             { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&5
20918 echo "$as_me: WARNING: Unable to locate Kerberos IV libraries, you will have to edit the Makefile and add -L/path/to/krb/libs to SUDO_LDFLAGS and possibly add Kerberos libs to SUDO_LIBS" >&2;}
20919
20920 fi
20921
20922
20923 fi
20924
20925     LDFLAGS="$O_LDFLAGS"
20926     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20927     AUTH_OBJS="$AUTH_OBJS kerb4.o"
20928 fi
20929
20930 if test ${with_kerb5-'no'} != "no"; then
20931     # Extract the first word of "krb5-config", so it can be a program name with args.
20932 set dummy krb5-config; ac_word=$2
20933 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20934 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20935 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20936   echo $ECHO_N "(cached) $ECHO_C" >&6
20937 else
20938   if test -n "$KRB5CONFIG"; then
20939   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20940 else
20941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20942 for as_dir in $PATH
20943 do
20944   IFS=$as_save_IFS
20945   test -z "$as_dir" && as_dir=.
20946   for ac_exec_ext in '' $ac_executable_extensions; do
20947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20948     ac_cv_prog_KRB5CONFIG="yes"
20949     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20950     break 2
20951   fi
20952 done
20953 done
20954 IFS=$as_save_IFS
20955
20956   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20957 fi
20958 fi
20959 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20960 if test -n "$KRB5CONFIG"; then
20961   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20962 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20963 else
20964   { echo "$as_me:$LINENO: result: no" >&5
20965 echo "${ECHO_T}no" >&6; }
20966 fi
20967
20968
20969     if test -n "$KRB5CONFIG"; then
20970         cat >>confdefs.h <<\_ACEOF
20971 #define HAVE_KERB5 1
20972 _ACEOF
20973
20974         AUTH_OBJS="$AUTH_OBJS kerb5.o"
20975         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20976         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20977                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20978 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20979         cat >conftest.$ac_ext <<_ACEOF
20980 /* confdefs.h.  */
20981 _ACEOF
20982 cat confdefs.h >>conftest.$ac_ext
20983 cat >>conftest.$ac_ext <<_ACEOF
20984 /* end confdefs.h.  */
20985 #include <krb5.h>
20986 int
20987 main ()
20988 {
20989 const char *tmp = heimdal_version;
20990   ;
20991   return 0;
20992 }
20993 _ACEOF
20994 rm -f conftest.$ac_objext
20995 if { (ac_try="$ac_compile"
20996 case "(($ac_try" in
20997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20998   *) ac_try_echo=$ac_try;;
20999 esac
21000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21001   (eval "$ac_compile") 2>conftest.er1
21002   ac_status=$?
21003   grep -v '^ *+' conftest.er1 >conftest.err
21004   rm -f conftest.er1
21005   cat conftest.err >&5
21006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007   (exit $ac_status); } && {
21008          test -z "$ac_c_werror_flag" ||
21009          test ! -s conftest.err
21010        } && test -s conftest.$ac_objext; then
21011
21012                 { echo "$as_me:$LINENO: result: yes" >&5
21013 echo "${ECHO_T}yes" >&6; }
21014                 cat >>confdefs.h <<\_ACEOF
21015 #define HAVE_HEIMDAL 1
21016 _ACEOF
21017
21018
21019 else
21020   echo "$as_me: failed program was:" >&5
21021 sed 's/^/| /' conftest.$ac_ext >&5
21022
21023
21024                 { echo "$as_me:$LINENO: result: no" >&5
21025 echo "${ECHO_T}no" >&6; }
21026
21027
21028 fi
21029
21030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21031     fi
21032 fi
21033 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
21034     cat >>confdefs.h <<\_ACEOF
21035 #define HAVE_KERB5 1
21036 _ACEOF
21037
21038                 if test "$with_kerb5" = "yes"; then
21039         found=no
21040         O_CPPFLAGS="$CPPFLAGS"
21041         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
21042             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
21043             cat >conftest.$ac_ext <<_ACEOF
21044 #include <krb5.h>
21045 _ACEOF
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049   *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21053   ac_status=$?
21054   grep -v '^ *+' conftest.er1 >conftest.err
21055   rm -f conftest.er1
21056   cat conftest.err >&5
21057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058   (exit $ac_status); } >/dev/null && {
21059          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21060          test ! -s conftest.err
21061        }; then
21062   found=yes; break
21063 else
21064   echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067
21068 fi
21069
21070 rm -f conftest.err conftest.$ac_ext
21071         done
21072         if test X"$found" = X"no"; then
21073             CPPFLAGS="$O_CPPFLAGS"
21074             { echo "$as_me:$LINENO: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&5
21075 echo "$as_me: WARNING: Unable to locate Kerberos V include files, you will have to edit the Makefile and add -I/path/to/krb/includes to CPPFLAGS" >&2;}
21076         fi
21077     else
21078
21079     if test X"$with_rpath" = X"yes"; then
21080         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
21081     else
21082         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
21083     fi
21084     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21085         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
21086     fi
21087
21088         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
21089     fi
21090
21091                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
21092 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
21093     cat >conftest.$ac_ext <<_ACEOF
21094 /* confdefs.h.  */
21095 _ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h.  */
21099 #include <krb5.h>
21100 int
21101 main ()
21102 {
21103 const char *tmp = heimdal_version;
21104   ;
21105   return 0;
21106 }
21107 _ACEOF
21108 rm -f conftest.$ac_objext
21109 if { (ac_try="$ac_compile"
21110 case "(($ac_try" in
21111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21112   *) ac_try_echo=$ac_try;;
21113 esac
21114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21115   (eval "$ac_compile") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } && {
21122          test -z "$ac_c_werror_flag" ||
21123          test ! -s conftest.err
21124        } && test -s conftest.$ac_objext; then
21125
21126             { echo "$as_me:$LINENO: result: yes" >&5
21127 echo "${ECHO_T}yes" >&6; }
21128             cat >>confdefs.h <<\_ACEOF
21129 #define HAVE_HEIMDAL 1
21130 _ACEOF
21131
21132             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
21133             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
21134 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
21135 if test "${ac_cv_lib_roken_main+set}" = set; then
21136   echo $ECHO_N "(cached) $ECHO_C" >&6
21137 else
21138   ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-lroken  $LIBS"
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146
21147
21148 int
21149 main ()
21150 {
21151 return main ();
21152   ;
21153   return 0;
21154 }
21155 _ACEOF
21156 rm -f conftest.$ac_objext conftest$ac_exeext
21157 if { (ac_try="$ac_link"
21158 case "(($ac_try" in
21159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21160   *) ac_try_echo=$ac_try;;
21161 esac
21162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21163   (eval "$ac_link") 2>conftest.er1
21164   ac_status=$?
21165   grep -v '^ *+' conftest.er1 >conftest.err
21166   rm -f conftest.er1
21167   cat conftest.err >&5
21168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169   (exit $ac_status); } && {
21170          test -z "$ac_c_werror_flag" ||
21171          test ! -s conftest.err
21172        } && test -s conftest$ac_exeext &&
21173        $as_test_x conftest$ac_exeext; then
21174   ac_cv_lib_roken_main=yes
21175 else
21176   echo "$as_me: failed program was:" >&5
21177 sed 's/^/| /' conftest.$ac_ext >&5
21178
21179         ac_cv_lib_roken_main=no
21180 fi
21181
21182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21183       conftest$ac_exeext conftest.$ac_ext
21184 LIBS=$ac_check_lib_save_LIBS
21185 fi
21186 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21187 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21188 if test $ac_cv_lib_roken_main = yes; then
21189   SUDO_LIBS="${SUDO_LIBS} -lroken"
21190 fi
21191
21192
21193 else
21194   echo "$as_me: failed program was:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21196
21197
21198             { echo "$as_me:$LINENO: result: no" >&5
21199 echo "${ECHO_T}no" >&6; }
21200             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21201             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21202 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21203 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21204   echo $ECHO_N "(cached) $ECHO_C" >&6
21205 else
21206   ac_check_lib_save_LIBS=$LIBS
21207 LIBS="-lkrb5support  $LIBS"
21208 cat >conftest.$ac_ext <<_ACEOF
21209 /* confdefs.h.  */
21210 _ACEOF
21211 cat confdefs.h >>conftest.$ac_ext
21212 cat >>conftest.$ac_ext <<_ACEOF
21213 /* end confdefs.h.  */
21214
21215
21216 int
21217 main ()
21218 {
21219 return main ();
21220   ;
21221   return 0;
21222 }
21223 _ACEOF
21224 rm -f conftest.$ac_objext conftest$ac_exeext
21225 if { (ac_try="$ac_link"
21226 case "(($ac_try" in
21227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228   *) ac_try_echo=$ac_try;;
21229 esac
21230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21231   (eval "$ac_link") 2>conftest.er1
21232   ac_status=$?
21233   grep -v '^ *+' conftest.er1 >conftest.err
21234   rm -f conftest.er1
21235   cat conftest.err >&5
21236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21237   (exit $ac_status); } && {
21238          test -z "$ac_c_werror_flag" ||
21239          test ! -s conftest.err
21240        } && test -s conftest$ac_exeext &&
21241        $as_test_x conftest$ac_exeext; then
21242   ac_cv_lib_krb5support_main=yes
21243 else
21244   echo "$as_me: failed program was:" >&5
21245 sed 's/^/| /' conftest.$ac_ext >&5
21246
21247         ac_cv_lib_krb5support_main=no
21248 fi
21249
21250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21251       conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_check_lib_save_LIBS
21253 fi
21254 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21255 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21256 if test $ac_cv_lib_krb5support_main = yes; then
21257   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21258 fi
21259
21260
21261 fi
21262
21263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21264     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21265     _LIBS="$LIBS"
21266     LIBS="${LIBS} ${SUDO_LIBS}"
21267
21268
21269 for ac_func in krb5_verify_user krb5_init_secure_context
21270 do
21271 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21275   echo $ECHO_N "(cached) $ECHO_C" >&6
21276 else
21277   cat >conftest.$ac_ext <<_ACEOF
21278 /* confdefs.h.  */
21279 _ACEOF
21280 cat confdefs.h >>conftest.$ac_ext
21281 cat >>conftest.$ac_ext <<_ACEOF
21282 /* end confdefs.h.  */
21283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21284    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21285 #define $ac_func innocuous_$ac_func
21286
21287 /* System header to define __stub macros and hopefully few prototypes,
21288     which can conflict with char $ac_func (); below.
21289     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21290     <limits.h> exists even on freestanding compilers.  */
21291
21292 #ifdef __STDC__
21293 # include <limits.h>
21294 #else
21295 # include <assert.h>
21296 #endif
21297
21298 #undef $ac_func
21299
21300 /* Override any GCC internal prototype to avoid an error.
21301    Use char because int might match the return type of a GCC
21302    builtin and then its argument prototype would still apply.  */
21303 #ifdef __cplusplus
21304 extern "C"
21305 #endif
21306 char $ac_func ();
21307 /* The GNU C library defines this for functions which it implements
21308     to always fail with ENOSYS.  Some functions are actually named
21309     something starting with __ and the normal name is an alias.  */
21310 #if defined __stub_$ac_func || defined __stub___$ac_func
21311 choke me
21312 #endif
21313
21314 int
21315 main ()
21316 {
21317 return $ac_func ();
21318   ;
21319   return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest.$ac_objext conftest$ac_exeext
21323 if { (ac_try="$ac_link"
21324 case "(($ac_try" in
21325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326   *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329   (eval "$ac_link") 2>conftest.er1
21330   ac_status=$?
21331   grep -v '^ *+' conftest.er1 >conftest.err
21332   rm -f conftest.er1
21333   cat conftest.err >&5
21334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335   (exit $ac_status); } && {
21336          test -z "$ac_c_werror_flag" ||
21337          test ! -s conftest.err
21338        } && test -s conftest$ac_exeext &&
21339        $as_test_x conftest$ac_exeext; then
21340   eval "$as_ac_var=yes"
21341 else
21342   echo "$as_me: failed program was:" >&5
21343 sed 's/^/| /' conftest.$ac_ext >&5
21344
21345         eval "$as_ac_var=no"
21346 fi
21347
21348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21349       conftest$ac_exeext conftest.$ac_ext
21350 fi
21351 ac_res=`eval echo '${'$as_ac_var'}'`
21352                { echo "$as_me:$LINENO: result: $ac_res" >&5
21353 echo "${ECHO_T}$ac_res" >&6; }
21354 if test `eval echo '${'$as_ac_var'}'` = yes; then
21355   cat >>confdefs.h <<_ACEOF
21356 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21357 _ACEOF
21358
21359 fi
21360 done
21361
21362     LIBS="$_LIBS"
21363 fi
21364
21365 if test ${with_AFS-'no'} = "yes"; then
21366
21367     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21368     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21369     for i in $AFSLIBDIRS; do
21370         if test -d ${i}; then
21371
21372     if test X"$with_rpath" = X"yes"; then
21373         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21374     else
21375         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21376     fi
21377     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21378         blibpath_add="${blibpath_add}:$i"
21379     fi
21380
21381             FOUND_AFSLIBDIR=true
21382         fi
21383     done
21384     if test -z "$FOUND_AFSLIBDIR"; then
21385         { echo "$as_me:$LINENO: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&5
21386 echo "$as_me: WARNING: Unable to locate AFS libraries, you will have to edit the Makefile and add -L/path/to/afs/libs to SUDO_LDFLAGS or rerun configure with the --with-libpath options." >&2;}
21387     fi
21388
21389     # Order is important here.  Note that we build AFS_LIBS from right to left
21390     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21391     AFS_LIBS="-laudit ${AFS_LIBS}"
21392     for i in $AFSLIBDIRS; do
21393         if test -f ${i}/util.a; then
21394             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21395             FOUND_UTIL_A=true
21396             break;
21397         fi
21398     done
21399     if test -z "$FOUND_UTIL_A"; then
21400         AFS_LIBS="-lutil ${AFS_LIBS}"
21401     fi
21402     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21403
21404     # AFS includes may live in /usr/include on some machines...
21405     for i in /usr/afsws/include; do
21406         if test -d ${i}; then
21407             CPPFLAGS="${CPPFLAGS} -I${i}"
21408             FOUND_AFSINCDIR=true
21409         fi
21410     done
21411
21412     if test -z "$FOUND_AFSLIBDIR"; then
21413         { echo "$as_me:$LINENO: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&5
21414 echo "$as_me: WARNING: Unable to locate AFS include dir, you may have to edit the Makefile and add -I/path/to/afs/includes to CPPFLAGS or rerun configure with the --with-incpath options." >&2;}
21415     fi
21416
21417     AUTH_OBJS="$AUTH_OBJS afs.o"
21418 fi
21419
21420 if test ${with_DCE-'no'} = "yes"; then
21421     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21422     SUDO_LIBS="${SUDO_LIBS} -ldce"
21423     AUTH_OBJS="$AUTH_OBJS dce.o"
21424 fi
21425
21426 if test ${with_skey-'no'} = "yes"; then
21427     O_LDFLAGS="$LDFLAGS"
21428     if test "$with_skey" != "yes"; then
21429         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21430
21431     if test X"$with_rpath" = X"yes"; then
21432         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21433     else
21434         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21435     fi
21436     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21437         blibpath_add="${blibpath_add}:${with_skey}/lib"
21438     fi
21439
21440
21441     if test X"$with_rpath" = X"yes"; then
21442         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21443     else
21444         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21445     fi
21446     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21447         blibpath_add="${blibpath_add}:${with_skey}/lib"
21448     fi
21449
21450         cat >conftest.$ac_ext <<_ACEOF
21451 #include <skey.h>
21452 _ACEOF
21453 if { (ac_try="$ac_cpp conftest.$ac_ext"
21454 case "(($ac_try" in
21455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21456   *) ac_try_echo=$ac_try;;
21457 esac
21458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21460   ac_status=$?
21461   grep -v '^ *+' conftest.er1 >conftest.err
21462   rm -f conftest.er1
21463   cat conftest.err >&5
21464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465   (exit $ac_status); } >/dev/null && {
21466          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21467          test ! -s conftest.err
21468        }; then
21469   found=yes
21470 else
21471   echo "$as_me: failed program was:" >&5
21472 sed 's/^/| /' conftest.$ac_ext >&5
21473
21474   found=no
21475 fi
21476
21477 rm -f conftest.err conftest.$ac_ext
21478     else
21479         found=no
21480         O_CPPFLAGS="$CPPFLAGS"
21481         for dir in "" "/usr/local" "/usr/contrib"; do
21482             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21483             cat >conftest.$ac_ext <<_ACEOF
21484 #include <skey.h>
21485 _ACEOF
21486 if { (ac_try="$ac_cpp conftest.$ac_ext"
21487 case "(($ac_try" in
21488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489   *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21493   ac_status=$?
21494   grep -v '^ *+' conftest.er1 >conftest.err
21495   rm -f conftest.er1
21496   cat conftest.err >&5
21497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498   (exit $ac_status); } >/dev/null && {
21499          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21500          test ! -s conftest.err
21501        }; then
21502   found=yes; break
21503 else
21504   echo "$as_me: failed program was:" >&5
21505 sed 's/^/| /' conftest.$ac_ext >&5
21506
21507
21508 fi
21509
21510 rm -f conftest.err conftest.$ac_ext
21511         done
21512         if test "$found" = "no" -o -z "$dir"; then
21513             CPPFLAGS="$O_CPPFLAGS"
21514         else
21515
21516     if test X"$with_rpath" = X"yes"; then
21517         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21518     else
21519         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21520     fi
21521     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21522         blibpath_add="${blibpath_add}:${dir}/lib"
21523     fi
21524
21525
21526     if test X"$with_rpath" = X"yes"; then
21527         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21528     else
21529         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21530     fi
21531     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21532         blibpath_add="${blibpath_add}:${dir}/lib"
21533     fi
21534
21535         fi
21536     fi
21537     if test "$found" = "no"; then
21538         { echo "$as_me:$LINENO: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&5
21539 echo "$as_me: WARNING: Unable to locate skey.h, you will have to edit the Makefile and add -I/path/to/skey/includes to CPPFLAGS" >&2;}
21540     fi
21541     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21542 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21543 if test "${ac_cv_lib_skey_main+set}" = set; then
21544   echo $ECHO_N "(cached) $ECHO_C" >&6
21545 else
21546   ac_check_lib_save_LIBS=$LIBS
21547 LIBS="-lskey  $LIBS"
21548 cat >conftest.$ac_ext <<_ACEOF
21549 /* confdefs.h.  */
21550 _ACEOF
21551 cat confdefs.h >>conftest.$ac_ext
21552 cat >>conftest.$ac_ext <<_ACEOF
21553 /* end confdefs.h.  */
21554
21555
21556 int
21557 main ()
21558 {
21559 return main ();
21560   ;
21561   return 0;
21562 }
21563 _ACEOF
21564 rm -f conftest.$ac_objext conftest$ac_exeext
21565 if { (ac_try="$ac_link"
21566 case "(($ac_try" in
21567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21568   *) ac_try_echo=$ac_try;;
21569 esac
21570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21571   (eval "$ac_link") 2>conftest.er1
21572   ac_status=$?
21573   grep -v '^ *+' conftest.er1 >conftest.err
21574   rm -f conftest.er1
21575   cat conftest.err >&5
21576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577   (exit $ac_status); } && {
21578          test -z "$ac_c_werror_flag" ||
21579          test ! -s conftest.err
21580        } && test -s conftest$ac_exeext &&
21581        $as_test_x conftest$ac_exeext; then
21582   ac_cv_lib_skey_main=yes
21583 else
21584   echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21586
21587         ac_cv_lib_skey_main=no
21588 fi
21589
21590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21591       conftest$ac_exeext conftest.$ac_ext
21592 LIBS=$ac_check_lib_save_LIBS
21593 fi
21594 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21595 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21596 if test $ac_cv_lib_skey_main = yes; then
21597   found=yes
21598 else
21599   { echo "$as_me:$LINENO: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&5
21600 echo "$as_me: WARNING: Unable to locate libskey.a, you will have to edit the Makefile and add -L/path/to/skey/lib to SUDO_LDFLAGS" >&2;}
21601 fi
21602
21603     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21604 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21605 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21606   echo $ECHO_N "(cached) $ECHO_C" >&6
21607 else
21608   ac_check_lib_save_LIBS=$LIBS
21609 LIBS="-lskey  $LIBS"
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h.  */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h.  */
21616
21617 /* Override any GCC internal prototype to avoid an error.
21618    Use char because int might match the return type of a GCC
21619    builtin and then its argument prototype would still apply.  */
21620 #ifdef __cplusplus
21621 extern "C"
21622 #endif
21623 char skeyaccess ();
21624 int
21625 main ()
21626 {
21627 return skeyaccess ();
21628   ;
21629   return 0;
21630 }
21631 _ACEOF
21632 rm -f conftest.$ac_objext conftest$ac_exeext
21633 if { (ac_try="$ac_link"
21634 case "(($ac_try" in
21635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21636   *) ac_try_echo=$ac_try;;
21637 esac
21638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21639   (eval "$ac_link") 2>conftest.er1
21640   ac_status=$?
21641   grep -v '^ *+' conftest.er1 >conftest.err
21642   rm -f conftest.er1
21643   cat conftest.err >&5
21644   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645   (exit $ac_status); } && {
21646          test -z "$ac_c_werror_flag" ||
21647          test ! -s conftest.err
21648        } && test -s conftest$ac_exeext &&
21649        $as_test_x conftest$ac_exeext; then
21650   ac_cv_lib_skey_skeyaccess=yes
21651 else
21652   echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655         ac_cv_lib_skey_skeyaccess=no
21656 fi
21657
21658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21659       conftest$ac_exeext conftest.$ac_ext
21660 LIBS=$ac_check_lib_save_LIBS
21661 fi
21662 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21663 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21664 if test $ac_cv_lib_skey_skeyaccess = yes; then
21665   cat >>confdefs.h <<\_ACEOF
21666 #define HAVE_SKEYACCESS 1
21667 _ACEOF
21668
21669 fi
21670
21671     LDFLAGS="$O_LDFLAGS"
21672     SUDO_LIBS="${SUDO_LIBS} -lskey"
21673     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21674 fi
21675
21676 if test ${with_opie-'no'} = "yes"; then
21677     O_LDFLAGS="$LDFLAGS"
21678     if test "$with_opie" != "yes"; then
21679         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21680
21681     if test X"$with_rpath" = X"yes"; then
21682         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21683     else
21684         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21685     fi
21686     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21687         blibpath_add="${blibpath_add}:${with_opie}/lib"
21688     fi
21689
21690
21691     if test X"$with_rpath" = X"yes"; then
21692         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21693     else
21694         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21695     fi
21696     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21697         blibpath_add="${blibpath_add}:${with_opie}/lib"
21698     fi
21699
21700         cat >conftest.$ac_ext <<_ACEOF
21701 #include <opie.h>
21702 _ACEOF
21703 if { (ac_try="$ac_cpp conftest.$ac_ext"
21704 case "(($ac_try" in
21705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21706   *) ac_try_echo=$ac_try;;
21707 esac
21708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21709   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21710   ac_status=$?
21711   grep -v '^ *+' conftest.er1 >conftest.err
21712   rm -f conftest.er1
21713   cat conftest.err >&5
21714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21715   (exit $ac_status); } >/dev/null && {
21716          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21717          test ! -s conftest.err
21718        }; then
21719   found=yes
21720 else
21721   echo "$as_me: failed program was:" >&5
21722 sed 's/^/| /' conftest.$ac_ext >&5
21723
21724   found=no
21725 fi
21726
21727 rm -f conftest.err conftest.$ac_ext
21728     else
21729         found=no
21730         O_CPPFLAGS="$CPPFLAGS"
21731         for dir in "" "/usr/local" "/usr/contrib"; do
21732             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21733             cat >conftest.$ac_ext <<_ACEOF
21734 #include <opie.h>
21735 _ACEOF
21736 if { (ac_try="$ac_cpp conftest.$ac_ext"
21737 case "(($ac_try" in
21738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21739   *) ac_try_echo=$ac_try;;
21740 esac
21741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21742   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21743   ac_status=$?
21744   grep -v '^ *+' conftest.er1 >conftest.err
21745   rm -f conftest.er1
21746   cat conftest.err >&5
21747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748   (exit $ac_status); } >/dev/null && {
21749          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21750          test ! -s conftest.err
21751        }; then
21752   found=yes; break
21753 else
21754   echo "$as_me: failed program was:" >&5
21755 sed 's/^/| /' conftest.$ac_ext >&5
21756
21757
21758 fi
21759
21760 rm -f conftest.err conftest.$ac_ext
21761         done
21762         if test "$found" = "no" -o -z "$dir"; then
21763             CPPFLAGS="$O_CPPFLAGS"
21764         else
21765
21766     if test X"$with_rpath" = X"yes"; then
21767         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21768     else
21769         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21770     fi
21771     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21772         blibpath_add="${blibpath_add}:${dir}/lib"
21773     fi
21774
21775
21776     if test X"$with_rpath" = X"yes"; then
21777         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21778     else
21779         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21780     fi
21781     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21782         blibpath_add="${blibpath_add}:${dir}/lib"
21783     fi
21784
21785         fi
21786     fi
21787     if test "$found" = "no"; then
21788         { echo "$as_me:$LINENO: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&5
21789 echo "$as_me: WARNING: Unable to locate opie.h, you will have to edit the Makefile and add -I/path/to/opie/includes to CPPFLAGS" >&2;}
21790     fi
21791     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21792 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21793 if test "${ac_cv_lib_opie_main+set}" = set; then
21794   echo $ECHO_N "(cached) $ECHO_C" >&6
21795 else
21796   ac_check_lib_save_LIBS=$LIBS
21797 LIBS="-lopie  $LIBS"
21798 cat >conftest.$ac_ext <<_ACEOF
21799 /* confdefs.h.  */
21800 _ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h.  */
21804
21805
21806 int
21807 main ()
21808 {
21809 return main ();
21810   ;
21811   return 0;
21812 }
21813 _ACEOF
21814 rm -f conftest.$ac_objext conftest$ac_exeext
21815 if { (ac_try="$ac_link"
21816 case "(($ac_try" in
21817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818   *) ac_try_echo=$ac_try;;
21819 esac
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821   (eval "$ac_link") 2>conftest.er1
21822   ac_status=$?
21823   grep -v '^ *+' conftest.er1 >conftest.err
21824   rm -f conftest.er1
21825   cat conftest.err >&5
21826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827   (exit $ac_status); } && {
21828          test -z "$ac_c_werror_flag" ||
21829          test ! -s conftest.err
21830        } && test -s conftest$ac_exeext &&
21831        $as_test_x conftest$ac_exeext; then
21832   ac_cv_lib_opie_main=yes
21833 else
21834   echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837         ac_cv_lib_opie_main=no
21838 fi
21839
21840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21841       conftest$ac_exeext conftest.$ac_ext
21842 LIBS=$ac_check_lib_save_LIBS
21843 fi
21844 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21845 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21846 if test $ac_cv_lib_opie_main = yes; then
21847   found=yes
21848 else
21849   { echo "$as_me:$LINENO: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&5
21850 echo "$as_me: WARNING: Unable to locate libopie.a, you will have to edit the Makefile and add -L/path/to/opie/lib to SUDO_LDFLAGS" >&2;}
21851 fi
21852
21853     LDFLAGS="$O_LDFLAGS"
21854     SUDO_LIBS="${SUDO_LIBS} -lopie"
21855     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21856 fi
21857
21858 if test ${with_passwd-'no'} != "no"; then
21859                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21860         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21861 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21862 if test "${ac_cv_search_crypt+set}" = set; then
21863   echo $ECHO_N "(cached) $ECHO_C" >&6
21864 else
21865   ac_func_search_save_LIBS=$LIBS
21866 cat >conftest.$ac_ext <<_ACEOF
21867 /* confdefs.h.  */
21868 _ACEOF
21869 cat confdefs.h >>conftest.$ac_ext
21870 cat >>conftest.$ac_ext <<_ACEOF
21871 /* end confdefs.h.  */
21872
21873 /* Override any GCC internal prototype to avoid an error.
21874    Use char because int might match the return type of a GCC
21875    builtin and then its argument prototype would still apply.  */
21876 #ifdef __cplusplus
21877 extern "C"
21878 #endif
21879 char crypt ();
21880 int
21881 main ()
21882 {
21883 return crypt ();
21884   ;
21885   return 0;
21886 }
21887 _ACEOF
21888 for ac_lib in '' crypt crypt_d ufc; do
21889   if test -z "$ac_lib"; then
21890     ac_res="none required"
21891   else
21892     ac_res=-l$ac_lib
21893     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21894   fi
21895   rm -f conftest.$ac_objext conftest$ac_exeext
21896 if { (ac_try="$ac_link"
21897 case "(($ac_try" in
21898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21899   *) ac_try_echo=$ac_try;;
21900 esac
21901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21902   (eval "$ac_link") 2>conftest.er1
21903   ac_status=$?
21904   grep -v '^ *+' conftest.er1 >conftest.err
21905   rm -f conftest.er1
21906   cat conftest.err >&5
21907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21908   (exit $ac_status); } && {
21909          test -z "$ac_c_werror_flag" ||
21910          test ! -s conftest.err
21911        } && test -s conftest$ac_exeext &&
21912        $as_test_x conftest$ac_exeext; then
21913   ac_cv_search_crypt=$ac_res
21914 else
21915   echo "$as_me: failed program was:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21917
21918
21919 fi
21920
21921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21922       conftest$ac_exeext
21923   if test "${ac_cv_search_crypt+set}" = set; then
21924   break
21925 fi
21926 done
21927 if test "${ac_cv_search_crypt+set}" = set; then
21928   :
21929 else
21930   ac_cv_search_crypt=no
21931 fi
21932 rm conftest.$ac_ext
21933 LIBS=$ac_func_search_save_LIBS
21934 fi
21935 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21936 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21937 ac_res=$ac_cv_search_crypt
21938 if test "$ac_res" != no; then
21939   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21940   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21941 fi
21942
21943     fi
21944
21945     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21946         _LIBS="$LIBS"
21947         LIBS="$LIBS $shadow_libs"
21948         found=no
21949
21950 for ac_func in $shadow_funcs
21951 do
21952 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21953 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21954 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21955 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21956   echo $ECHO_N "(cached) $ECHO_C" >&6
21957 else
21958   cat >conftest.$ac_ext <<_ACEOF
21959 /* confdefs.h.  */
21960 _ACEOF
21961 cat confdefs.h >>conftest.$ac_ext
21962 cat >>conftest.$ac_ext <<_ACEOF
21963 /* end confdefs.h.  */
21964 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21965    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21966 #define $ac_func innocuous_$ac_func
21967
21968 /* System header to define __stub macros and hopefully few prototypes,
21969     which can conflict with char $ac_func (); below.
21970     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21971     <limits.h> exists even on freestanding compilers.  */
21972
21973 #ifdef __STDC__
21974 # include <limits.h>
21975 #else
21976 # include <assert.h>
21977 #endif
21978
21979 #undef $ac_func
21980
21981 /* Override any GCC internal prototype to avoid an error.
21982    Use char because int might match the return type of a GCC
21983    builtin and then its argument prototype would still apply.  */
21984 #ifdef __cplusplus
21985 extern "C"
21986 #endif
21987 char $ac_func ();
21988 /* The GNU C library defines this for functions which it implements
21989     to always fail with ENOSYS.  Some functions are actually named
21990     something starting with __ and the normal name is an alias.  */
21991 #if defined __stub_$ac_func || defined __stub___$ac_func
21992 choke me
21993 #endif
21994
21995 int
21996 main ()
21997 {
21998 return $ac_func ();
21999   ;
22000   return 0;
22001 }
22002 _ACEOF
22003 rm -f conftest.$ac_objext conftest$ac_exeext
22004 if { (ac_try="$ac_link"
22005 case "(($ac_try" in
22006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22007   *) ac_try_echo=$ac_try;;
22008 esac
22009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22010   (eval "$ac_link") 2>conftest.er1
22011   ac_status=$?
22012   grep -v '^ *+' conftest.er1 >conftest.err
22013   rm -f conftest.er1
22014   cat conftest.err >&5
22015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22016   (exit $ac_status); } && {
22017          test -z "$ac_c_werror_flag" ||
22018          test ! -s conftest.err
22019        } && test -s conftest$ac_exeext &&
22020        $as_test_x conftest$ac_exeext; then
22021   eval "$as_ac_var=yes"
22022 else
22023   echo "$as_me: failed program was:" >&5
22024 sed 's/^/| /' conftest.$ac_ext >&5
22025
22026         eval "$as_ac_var=no"
22027 fi
22028
22029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22030       conftest$ac_exeext conftest.$ac_ext
22031 fi
22032 ac_res=`eval echo '${'$as_ac_var'}'`
22033                { echo "$as_me:$LINENO: result: $ac_res" >&5
22034 echo "${ECHO_T}$ac_res" >&6; }
22035 if test `eval echo '${'$as_ac_var'}'` = yes; then
22036   cat >>confdefs.h <<_ACEOF
22037 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22038 _ACEOF
22039  found=yes
22040 fi
22041 done
22042
22043         if test "$found" = "yes"; then
22044             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
22045         elif test -n "$shadow_libs_optional"; then
22046             LIBS="$LIBS $shadow_libs_optional"
22047
22048 for ac_func in $shadow_funcs
22049 do
22050 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22051 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22052 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22053 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22054   echo $ECHO_N "(cached) $ECHO_C" >&6
22055 else
22056   cat >conftest.$ac_ext <<_ACEOF
22057 /* confdefs.h.  */
22058 _ACEOF
22059 cat confdefs.h >>conftest.$ac_ext
22060 cat >>conftest.$ac_ext <<_ACEOF
22061 /* end confdefs.h.  */
22062 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22063    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22064 #define $ac_func innocuous_$ac_func
22065
22066 /* System header to define __stub macros and hopefully few prototypes,
22067     which can conflict with char $ac_func (); below.
22068     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22069     <limits.h> exists even on freestanding compilers.  */
22070
22071 #ifdef __STDC__
22072 # include <limits.h>
22073 #else
22074 # include <assert.h>
22075 #endif
22076
22077 #undef $ac_func
22078
22079 /* Override any GCC internal prototype to avoid an error.
22080    Use char because int might match the return type of a GCC
22081    builtin and then its argument prototype would still apply.  */
22082 #ifdef __cplusplus
22083 extern "C"
22084 #endif
22085 char $ac_func ();
22086 /* The GNU C library defines this for functions which it implements
22087     to always fail with ENOSYS.  Some functions are actually named
22088     something starting with __ and the normal name is an alias.  */
22089 #if defined __stub_$ac_func || defined __stub___$ac_func
22090 choke me
22091 #endif
22092
22093 int
22094 main ()
22095 {
22096 return $ac_func ();
22097   ;
22098   return 0;
22099 }
22100 _ACEOF
22101 rm -f conftest.$ac_objext conftest$ac_exeext
22102 if { (ac_try="$ac_link"
22103 case "(($ac_try" in
22104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22105   *) ac_try_echo=$ac_try;;
22106 esac
22107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22108   (eval "$ac_link") 2>conftest.er1
22109   ac_status=$?
22110   grep -v '^ *+' conftest.er1 >conftest.err
22111   rm -f conftest.er1
22112   cat conftest.err >&5
22113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } && {
22115          test -z "$ac_c_werror_flag" ||
22116          test ! -s conftest.err
22117        } && test -s conftest$ac_exeext &&
22118        $as_test_x conftest$ac_exeext; then
22119   eval "$as_ac_var=yes"
22120 else
22121   echo "$as_me: failed program was:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22123
22124         eval "$as_ac_var=no"
22125 fi
22126
22127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22128       conftest$ac_exeext conftest.$ac_ext
22129 fi
22130 ac_res=`eval echo '${'$as_ac_var'}'`
22131                { echo "$as_me:$LINENO: result: $ac_res" >&5
22132 echo "${ECHO_T}$ac_res" >&6; }
22133 if test `eval echo '${'$as_ac_var'}'` = yes; then
22134   cat >>confdefs.h <<_ACEOF
22135 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22136 _ACEOF
22137  found=yes
22138 fi
22139 done
22140
22141             if test "$found" = "yes"; then
22142                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22143             fi
22144         fi
22145         if test "$found" = "yes"; then
22146             case "$shadow_funcs" in
22147                 *getprpwnam*) SECUREWARE=1;;
22148             esac
22149             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22150         else
22151             LIBS="$_LIBS"
22152         fi
22153         CHECKSHADOW=false
22154     fi
22155     if test "$CHECKSHADOW" = "true"; then
22156         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22157 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22158 if test "${ac_cv_search_getspnam+set}" = set; then
22159   echo $ECHO_N "(cached) $ECHO_C" >&6
22160 else
22161   ac_func_search_save_LIBS=$LIBS
22162 cat >conftest.$ac_ext <<_ACEOF
22163 /* confdefs.h.  */
22164 _ACEOF
22165 cat confdefs.h >>conftest.$ac_ext
22166 cat >>conftest.$ac_ext <<_ACEOF
22167 /* end confdefs.h.  */
22168
22169 /* Override any GCC internal prototype to avoid an error.
22170    Use char because int might match the return type of a GCC
22171    builtin and then its argument prototype would still apply.  */
22172 #ifdef __cplusplus
22173 extern "C"
22174 #endif
22175 char getspnam ();
22176 int
22177 main ()
22178 {
22179 return getspnam ();
22180   ;
22181   return 0;
22182 }
22183 _ACEOF
22184 for ac_lib in '' gen; do
22185   if test -z "$ac_lib"; then
22186     ac_res="none required"
22187   else
22188     ac_res=-l$ac_lib
22189     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22190   fi
22191   rm -f conftest.$ac_objext conftest$ac_exeext
22192 if { (ac_try="$ac_link"
22193 case "(($ac_try" in
22194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22195   *) ac_try_echo=$ac_try;;
22196 esac
22197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22198   (eval "$ac_link") 2>conftest.er1
22199   ac_status=$?
22200   grep -v '^ *+' conftest.er1 >conftest.err
22201   rm -f conftest.er1
22202   cat conftest.err >&5
22203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22204   (exit $ac_status); } && {
22205          test -z "$ac_c_werror_flag" ||
22206          test ! -s conftest.err
22207        } && test -s conftest$ac_exeext &&
22208        $as_test_x conftest$ac_exeext; then
22209   ac_cv_search_getspnam=$ac_res
22210 else
22211   echo "$as_me: failed program was:" >&5
22212 sed 's/^/| /' conftest.$ac_ext >&5
22213
22214
22215 fi
22216
22217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22218       conftest$ac_exeext
22219   if test "${ac_cv_search_getspnam+set}" = set; then
22220   break
22221 fi
22222 done
22223 if test "${ac_cv_search_getspnam+set}" = set; then
22224   :
22225 else
22226   ac_cv_search_getspnam=no
22227 fi
22228 rm conftest.$ac_ext
22229 LIBS=$ac_func_search_save_LIBS
22230 fi
22231 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22232 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22233 ac_res=$ac_cv_search_getspnam
22234 if test "$ac_res" != no; then
22235   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22236   cat >>confdefs.h <<\_ACEOF
22237 #define HAVE_GETSPNAM 1
22238 _ACEOF
22239  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22240 fi
22241
22242     fi
22243     if test "$CHECKSHADOW" = "true"; then
22244         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22245 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22246 if test "${ac_cv_search_getprpwnam+set}" = set; then
22247   echo $ECHO_N "(cached) $ECHO_C" >&6
22248 else
22249   ac_func_search_save_LIBS=$LIBS
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h.  */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h.  */
22256
22257 /* Override any GCC internal prototype to avoid an error.
22258    Use char because int might match the return type of a GCC
22259    builtin and then its argument prototype would still apply.  */
22260 #ifdef __cplusplus
22261 extern "C"
22262 #endif
22263 char getprpwnam ();
22264 int
22265 main ()
22266 {
22267 return getprpwnam ();
22268   ;
22269   return 0;
22270 }
22271 _ACEOF
22272 for ac_lib in '' sec security prot; do
22273   if test -z "$ac_lib"; then
22274     ac_res="none required"
22275   else
22276     ac_res=-l$ac_lib
22277     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22278   fi
22279   rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (ac_try="$ac_link"
22281 case "(($ac_try" in
22282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22283   *) ac_try_echo=$ac_try;;
22284 esac
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286   (eval "$ac_link") 2>conftest.er1
22287   ac_status=$?
22288   grep -v '^ *+' conftest.er1 >conftest.err
22289   rm -f conftest.er1
22290   cat conftest.err >&5
22291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292   (exit $ac_status); } && {
22293          test -z "$ac_c_werror_flag" ||
22294          test ! -s conftest.err
22295        } && test -s conftest$ac_exeext &&
22296        $as_test_x conftest$ac_exeext; then
22297   ac_cv_search_getprpwnam=$ac_res
22298 else
22299   echo "$as_me: failed program was:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22301
22302
22303 fi
22304
22305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22306       conftest$ac_exeext
22307   if test "${ac_cv_search_getprpwnam+set}" = set; then
22308   break
22309 fi
22310 done
22311 if test "${ac_cv_search_getprpwnam+set}" = set; then
22312   :
22313 else
22314   ac_cv_search_getprpwnam=no
22315 fi
22316 rm conftest.$ac_ext
22317 LIBS=$ac_func_search_save_LIBS
22318 fi
22319 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22320 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22321 ac_res=$ac_cv_search_getprpwnam
22322 if test "$ac_res" != no; then
22323   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22324   cat >>confdefs.h <<\_ACEOF
22325 #define HAVE_GETPRPWNAM 1
22326 _ACEOF
22327  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22328 fi
22329
22330     fi
22331     if test -n "$SECUREWARE"; then
22332
22333
22334
22335 for ac_func in bigcrypt set_auth_parameters initprivs
22336 do
22337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22341   echo $ECHO_N "(cached) $ECHO_C" >&6
22342 else
22343   cat >conftest.$ac_ext <<_ACEOF
22344 /* confdefs.h.  */
22345 _ACEOF
22346 cat confdefs.h >>conftest.$ac_ext
22347 cat >>conftest.$ac_ext <<_ACEOF
22348 /* end confdefs.h.  */
22349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22351 #define $ac_func innocuous_$ac_func
22352
22353 /* System header to define __stub macros and hopefully few prototypes,
22354     which can conflict with char $ac_func (); below.
22355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22356     <limits.h> exists even on freestanding compilers.  */
22357
22358 #ifdef __STDC__
22359 # include <limits.h>
22360 #else
22361 # include <assert.h>
22362 #endif
22363
22364 #undef $ac_func
22365
22366 /* Override any GCC internal prototype to avoid an error.
22367    Use char because int might match the return type of a GCC
22368    builtin and then its argument prototype would still apply.  */
22369 #ifdef __cplusplus
22370 extern "C"
22371 #endif
22372 char $ac_func ();
22373 /* The GNU C library defines this for functions which it implements
22374     to always fail with ENOSYS.  Some functions are actually named
22375     something starting with __ and the normal name is an alias.  */
22376 #if defined __stub_$ac_func || defined __stub___$ac_func
22377 choke me
22378 #endif
22379
22380 int
22381 main ()
22382 {
22383 return $ac_func ();
22384   ;
22385   return 0;
22386 }
22387 _ACEOF
22388 rm -f conftest.$ac_objext conftest$ac_exeext
22389 if { (ac_try="$ac_link"
22390 case "(($ac_try" in
22391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22392   *) ac_try_echo=$ac_try;;
22393 esac
22394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22395   (eval "$ac_link") 2>conftest.er1
22396   ac_status=$?
22397   grep -v '^ *+' conftest.er1 >conftest.err
22398   rm -f conftest.er1
22399   cat conftest.err >&5
22400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22401   (exit $ac_status); } && {
22402          test -z "$ac_c_werror_flag" ||
22403          test ! -s conftest.err
22404        } && test -s conftest$ac_exeext &&
22405        $as_test_x conftest$ac_exeext; then
22406   eval "$as_ac_var=yes"
22407 else
22408   echo "$as_me: failed program was:" >&5
22409 sed 's/^/| /' conftest.$ac_ext >&5
22410
22411         eval "$as_ac_var=no"
22412 fi
22413
22414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22415       conftest$ac_exeext conftest.$ac_ext
22416 fi
22417 ac_res=`eval echo '${'$as_ac_var'}'`
22418                { echo "$as_me:$LINENO: result: $ac_res" >&5
22419 echo "${ECHO_T}$ac_res" >&6; }
22420 if test `eval echo '${'$as_ac_var'}'` = yes; then
22421   cat >>confdefs.h <<_ACEOF
22422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22423 _ACEOF
22424
22425 fi
22426 done
22427
22428         AUTH_OBJS="$AUTH_OBJS secureware.o"
22429     fi
22430 fi
22431
22432 if test ${with_ldap-'no'} != "no"; then
22433     _LDFLAGS="$LDFLAGS"
22434     if test "$with_ldap" != "yes"; then
22435
22436     if test X"$with_rpath" = X"yes"; then
22437         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22438     else
22439         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22440     fi
22441     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22442         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22443     fi
22444
22445
22446     if test X"$with_rpath" = X"yes"; then
22447         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22448     else
22449         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22450     fi
22451     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22452         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22453     fi
22454
22455         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22456         with_ldap=yes
22457     fi
22458     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22459
22460     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22461 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22462     LDAP_LIBS=""
22463     _LIBS="$LIBS"
22464     found=no
22465     for l in -lldap -llber '-lssl -lcrypto'; do
22466         LIBS="${LIBS} $l"
22467         LDAP_LIBS="${LDAP_LIBS} $l"
22468         cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 #include <sys/types.h>
22475         #include <lber.h>
22476         #include <ldap.h>
22477 int
22478 main ()
22479 {
22480 (void)ldap_init(0, 0)
22481   ;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest.$ac_objext conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22492   (eval "$ac_link") 2>conftest.er1
22493   ac_status=$?
22494   grep -v '^ *+' conftest.er1 >conftest.err
22495   rm -f conftest.er1
22496   cat conftest.err >&5
22497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22498   (exit $ac_status); } && {
22499          test -z "$ac_c_werror_flag" ||
22500          test ! -s conftest.err
22501        } && test -s conftest$ac_exeext &&
22502        $as_test_x conftest$ac_exeext; then
22503   found=yes; break
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508
22509 fi
22510
22511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22512       conftest$ac_exeext conftest.$ac_ext
22513     done
22514         if test "$found" = "no"; then
22515         LIBS="${_LIBS} -lldap"
22516         LDAP_LIBS="-lldap"
22517         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22518 echo "${ECHO_T}not found, using -lldap" >&6; }
22519     else
22520         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22521 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22522     fi
22523         OLIBS="$LIBS"
22524     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22525 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22526 if test "${ac_cv_search_ber_set_option+set}" = set; then
22527   echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529   ac_func_search_save_LIBS=$LIBS
22530 cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h.  */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h.  */
22536
22537 /* Override any GCC internal prototype to avoid an error.
22538    Use char because int might match the return type of a GCC
22539    builtin and then its argument prototype would still apply.  */
22540 #ifdef __cplusplus
22541 extern "C"
22542 #endif
22543 char ber_set_option ();
22544 int
22545 main ()
22546 {
22547 return ber_set_option ();
22548   ;
22549   return 0;
22550 }
22551 _ACEOF
22552 for ac_lib in '' lber; do
22553   if test -z "$ac_lib"; then
22554     ac_res="none required"
22555   else
22556     ac_res=-l$ac_lib
22557     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22558   fi
22559   rm -f conftest.$ac_objext conftest$ac_exeext
22560 if { (ac_try="$ac_link"
22561 case "(($ac_try" in
22562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563   *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566   (eval "$ac_link") 2>conftest.er1
22567   ac_status=$?
22568   grep -v '^ *+' conftest.er1 >conftest.err
22569   rm -f conftest.er1
22570   cat conftest.err >&5
22571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572   (exit $ac_status); } && {
22573          test -z "$ac_c_werror_flag" ||
22574          test ! -s conftest.err
22575        } && test -s conftest$ac_exeext &&
22576        $as_test_x conftest$ac_exeext; then
22577   ac_cv_search_ber_set_option=$ac_res
22578 else
22579   echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582
22583 fi
22584
22585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22586       conftest$ac_exeext
22587   if test "${ac_cv_search_ber_set_option+set}" = set; then
22588   break
22589 fi
22590 done
22591 if test "${ac_cv_search_ber_set_option+set}" = set; then
22592   :
22593 else
22594   ac_cv_search_ber_set_option=no
22595 fi
22596 rm conftest.$ac_ext
22597 LIBS=$ac_func_search_save_LIBS
22598 fi
22599 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22600 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22601 ac_res=$ac_cv_search_ber_set_option
22602 if test "$ac_res" != no; then
22603   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22604   found=yes
22605 else
22606   found=no
22607 fi
22608
22609     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22610         LDAP_LIBS="$LDAP_LIBS -llber"
22611     fi
22612         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22613 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22614     cat >conftest.$ac_ext <<_ACEOF
22615 /* confdefs.h.  */
22616 _ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h.  */
22620 #include <sys/types.h>
22621     #include <ldap.h>
22622 int
22623 main ()
22624 {
22625 (void)ldap_init(0, 0)
22626   ;
22627   return 0;
22628 }
22629 _ACEOF
22630 rm -f conftest.$ac_objext conftest$ac_exeext
22631 if { (ac_try="$ac_link"
22632 case "(($ac_try" in
22633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22634   *) ac_try_echo=$ac_try;;
22635 esac
22636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22637   (eval "$ac_link") 2>conftest.er1
22638   ac_status=$?
22639   grep -v '^ *+' conftest.er1 >conftest.err
22640   rm -f conftest.er1
22641   cat conftest.err >&5
22642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22643   (exit $ac_status); } && {
22644          test -z "$ac_c_werror_flag" ||
22645          test ! -s conftest.err
22646        } && test -s conftest$ac_exeext &&
22647        $as_test_x conftest$ac_exeext; then
22648   { echo "$as_me:$LINENO: result: no" >&5
22649 echo "${ECHO_T}no" >&6; }
22650 else
22651   echo "$as_me: failed program was:" >&5
22652 sed 's/^/| /' conftest.$ac_ext >&5
22653
22654
22655     { echo "$as_me:$LINENO: result: yes" >&5
22656 echo "${ECHO_T}yes" >&6; }
22657     cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_LBER_H 1
22659 _ACEOF
22660
22661 fi
22662
22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664       conftest$ac_exeext conftest.$ac_ext
22665
22666
22667
22668
22669
22670 for ac_func in ldap_initialize ldap_start_tls_s ldapssl_init ldapssl_set_strength
22671 do
22672 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22673 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22674 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22675 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22676   echo $ECHO_N "(cached) $ECHO_C" >&6
22677 else
22678   cat >conftest.$ac_ext <<_ACEOF
22679 /* confdefs.h.  */
22680 _ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h.  */
22684 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22685    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22686 #define $ac_func innocuous_$ac_func
22687
22688 /* System header to define __stub macros and hopefully few prototypes,
22689     which can conflict with char $ac_func (); below.
22690     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22691     <limits.h> exists even on freestanding compilers.  */
22692
22693 #ifdef __STDC__
22694 # include <limits.h>
22695 #else
22696 # include <assert.h>
22697 #endif
22698
22699 #undef $ac_func
22700
22701 /* Override any GCC internal prototype to avoid an error.
22702    Use char because int might match the return type of a GCC
22703    builtin and then its argument prototype would still apply.  */
22704 #ifdef __cplusplus
22705 extern "C"
22706 #endif
22707 char $ac_func ();
22708 /* The GNU C library defines this for functions which it implements
22709     to always fail with ENOSYS.  Some functions are actually named
22710     something starting with __ and the normal name is an alias.  */
22711 #if defined __stub_$ac_func || defined __stub___$ac_func
22712 choke me
22713 #endif
22714
22715 int
22716 main ()
22717 {
22718 return $ac_func ();
22719   ;
22720   return 0;
22721 }
22722 _ACEOF
22723 rm -f conftest.$ac_objext conftest$ac_exeext
22724 if { (ac_try="$ac_link"
22725 case "(($ac_try" in
22726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22727   *) ac_try_echo=$ac_try;;
22728 esac
22729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22730   (eval "$ac_link") 2>conftest.er1
22731   ac_status=$?
22732   grep -v '^ *+' conftest.er1 >conftest.err
22733   rm -f conftest.er1
22734   cat conftest.err >&5
22735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22736   (exit $ac_status); } && {
22737          test -z "$ac_c_werror_flag" ||
22738          test ! -s conftest.err
22739        } && test -s conftest$ac_exeext &&
22740        $as_test_x conftest$ac_exeext; then
22741   eval "$as_ac_var=yes"
22742 else
22743   echo "$as_me: failed program was:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22745
22746         eval "$as_ac_var=no"
22747 fi
22748
22749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22750       conftest$ac_exeext conftest.$ac_ext
22751 fi
22752 ac_res=`eval echo '${'$as_ac_var'}'`
22753                { echo "$as_me:$LINENO: result: $ac_res" >&5
22754 echo "${ECHO_T}$ac_res" >&6; }
22755 if test `eval echo '${'$as_ac_var'}'` = yes; then
22756   cat >>confdefs.h <<_ACEOF
22757 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22758 _ACEOF
22759
22760 fi
22761 done
22762
22763
22764
22765 for ac_header in ldap_ssl.h mps/ldap_ssl.h
22766 do
22767 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22768 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22769 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22770 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22771   echo $ECHO_N "(cached) $ECHO_C" >&6
22772 else
22773   cat >conftest.$ac_ext <<_ACEOF
22774 /* confdefs.h.  */
22775 _ACEOF
22776 cat confdefs.h >>conftest.$ac_ext
22777 cat >>conftest.$ac_ext <<_ACEOF
22778 /* end confdefs.h.  */
22779 #include <ldap.h>
22780
22781 #include <$ac_header>
22782 _ACEOF
22783 rm -f conftest.$ac_objext
22784 if { (ac_try="$ac_compile"
22785 case "(($ac_try" in
22786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22787   *) ac_try_echo=$ac_try;;
22788 esac
22789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22790   (eval "$ac_compile") 2>conftest.er1
22791   ac_status=$?
22792   grep -v '^ *+' conftest.er1 >conftest.err
22793   rm -f conftest.er1
22794   cat conftest.err >&5
22795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22796   (exit $ac_status); } && {
22797          test -z "$ac_c_werror_flag" ||
22798          test ! -s conftest.err
22799        } && test -s conftest.$ac_objext; then
22800   eval "$as_ac_Header=yes"
22801 else
22802   echo "$as_me: failed program was:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22804
22805         eval "$as_ac_Header=no"
22806 fi
22807
22808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809 fi
22810 ac_res=`eval echo '${'$as_ac_Header'}'`
22811                { echo "$as_me:$LINENO: result: $ac_res" >&5
22812 echo "${ECHO_T}$ac_res" >&6; }
22813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22814   cat >>confdefs.h <<_ACEOF
22815 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22816 _ACEOF
22817  break
22818 fi
22819
22820 done
22821
22822
22823     SUDO_LIBS="${SUDO_LIBS}${LDAP_LIBS}"
22824     LIBS="$_LIBS"
22825     LDFLAGS="$_LDFLAGS"
22826     # XXX - OpenLDAP has deprecated ldap_get_values()
22827     CPPFLAGS="${CPPFLAGS} -DLDAP_DEPRECATED"
22828 fi
22829
22830 if test -n "$blibpath"; then
22831     if test -n "$blibpath_add"; then
22832         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
22833     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
22834         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
22835     fi
22836 fi
22837
22838 { echo "$as_me:$LINENO: checking for log file location" >&5
22839 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
22840 if test -n "$with_logpath"; then
22841     { echo "$as_me:$LINENO: result: $with_logpath" >&5
22842 echo "${ECHO_T}$with_logpath" >&6; }
22843     cat >>confdefs.h <<EOF
22844 #define _PATH_SUDO_LOGFILE "$with_logpath"
22845 EOF
22846
22847 elif test -d "/var/log"; then
22848     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
22849 echo "${ECHO_T}/var/log/sudo.log" >&6; }
22850     cat >>confdefs.h <<\EOF
22851 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
22852 EOF
22853
22854 elif test -d "/var/adm"; then
22855     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
22856 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
22857     cat >>confdefs.h <<\EOF
22858 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
22859 EOF
22860
22861 elif test -d "/usr/adm"; then
22862     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
22863 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
22864     cat >>confdefs.h <<\EOF
22865 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
22866 EOF
22867
22868 else
22869     { echo "$as_me:$LINENO: result: unknown" >&5
22870 echo "${ECHO_T}unknown" >&6; }
22871 fi
22872
22873 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
22874 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
22875 if test -n "$with_timedir"; then
22876     { echo "$as_me:$LINENO: result: $with_timedir" >&5
22877 echo "${ECHO_T}$with_timedir" >&6; }
22878     cat >>confdefs.h <<EOF
22879 #define _PATH_SUDO_TIMEDIR "$with_timedir"
22880 EOF
22881
22882     timedir="$with_timedir"
22883 elif test -d "/var/run"; then
22884     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
22885 echo "${ECHO_T}/var/run/sudo" >&6; }
22886     cat >>confdefs.h <<\EOF
22887 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
22888 EOF
22889
22890     timedir="/var/run/sudo"
22891 elif test -d "/var/adm"; then
22892     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
22893 echo "${ECHO_T}/var/adm/sudo" >&6; }
22894     cat >>confdefs.h <<\EOF
22895 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
22896 EOF
22897
22898     timedir="/var/adm/sudo"
22899 else
22900     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
22901 echo "${ECHO_T}/usr/adm/sudo" >&6; }
22902     cat >>confdefs.h <<\EOF
22903 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
22904 EOF
22905
22906     timedir="/usr/adm/sudo"
22907 fi
22908
22909
22910 case "$with_passwd" in
22911 yes|maybe)
22912     AUTH_OBJS="$AUTH_OBJS passwd.o"
22913     ;;
22914 *)
22915     cat >>confdefs.h <<\_ACEOF
22916 #define WITHOUT_PASSWD 1
22917 _ACEOF
22918
22919     if test -z "$AUTH_OBJS"; then
22920         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
22921 echo "$as_me: error: no authentication methods defined." >&2;}
22922    { (exit 1); exit 1; }; }
22923     fi
22924     ;;
22925 esac
22926 AUTH_OBJS=${AUTH_OBJS# }
22927 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
22928 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
22929 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
22930
22931 if test -n "$LIBS"; then
22932     L="$LIBS"
22933     LIBS=
22934     for l in ${L}; do
22935         dupe=0
22936         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
22937             test $l = $sl && dupe=1
22938         done
22939         test $dupe = 0 && LIBS="${LIBS} $l"
22940     done
22941 fi
22942
22943 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
22944
22945 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
22946     oexec_prefix="$exec_prefix"
22947     if test "$exec_prefix" = '$(prefix)'; then
22948         if test "$prefix" = "NONE"; then
22949             exec_prefix="$ac_default_prefix"
22950         else
22951             exec_prefix="$prefix"
22952         fi
22953     fi
22954     if test X"$with_noexec" != X"no"; then
22955         PROGS="${PROGS} sudo_noexec.la"
22956         INSTALL_NOEXEC="install-noexec"
22957
22958         eval noexec_file="$with_noexec"
22959
22960 cat >>confdefs.h <<_ACEOF
22961 #define _PATH_SUDO_NOEXEC "$noexec_file"
22962 _ACEOF
22963
22964     fi
22965     if test X"$with_selinux" != X"no"; then
22966         eval sesh_file="$libexecdir/sesh"
22967
22968 cat >>confdefs.h <<_ACEOF
22969 #define _PATH_SUDO_SESH "$sesh_file"
22970 _ACEOF
22971
22972     fi
22973     exec_prefix="$oexec_prefix"
22974 fi
22975
22976 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man"
22977
22978 cat >confcache <<\_ACEOF
22979 # This file is a shell script that caches the results of configure
22980 # tests run on this system so they can be shared between configure
22981 # scripts and configure runs, see configure's option --config-cache.
22982 # It is not useful on other systems.  If it contains results you don't
22983 # want to keep, you may remove or edit it.
22984 #
22985 # config.status only pays attention to the cache file if you give it
22986 # the --recheck option to rerun configure.
22987 #
22988 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22989 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22990 # following values.
22991
22992 _ACEOF
22993
22994 # The following way of writing the cache mishandles newlines in values,
22995 # but we know of no workaround that is simple, portable, and efficient.
22996 # So, we kill variables containing newlines.
22997 # Ultrix sh set writes to stderr and can't be redirected directly,
22998 # and sets the high bit in the cache file unless we assign to the vars.
22999 (
23000   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23001     eval ac_val=\$$ac_var
23002     case $ac_val in #(
23003     *${as_nl}*)
23004       case $ac_var in #(
23005       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23006 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23007       esac
23008       case $ac_var in #(
23009       _ | IFS | as_nl) ;; #(
23010       *) $as_unset $ac_var ;;
23011       esac ;;
23012     esac
23013   done
23014
23015   (set) 2>&1 |
23016     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23017     *${as_nl}ac_space=\ *)
23018       # `set' does not quote correctly, so add quotes (double-quote
23019       # substitution turns \\\\ into \\, and sed turns \\ into \).
23020       sed -n \
23021         "s/'/'\\\\''/g;
23022           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23023       ;; #(
23024     *)
23025       # `set' quotes correctly as required by POSIX, so do not add quotes.
23026       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23027       ;;
23028     esac |
23029     sort
23030 ) |
23031   sed '
23032      /^ac_cv_env_/b end
23033      t clear
23034      :clear
23035      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23036      t end
23037      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23038      :end' >>confcache
23039 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23040   if test -w "$cache_file"; then
23041     test "x$cache_file" != "x/dev/null" &&
23042       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23043 echo "$as_me: updating cache $cache_file" >&6;}
23044     cat confcache >$cache_file
23045   else
23046     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23047 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23048   fi
23049 fi
23050 rm -f confcache
23051
23052 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23053 # Let make expand exec_prefix.
23054 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23055
23056 DEFS=-DHAVE_CONFIG_H
23057
23058 ac_libobjs=
23059 ac_ltlibobjs=
23060 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23061   # 1. Remove the extension, and $U if already installed.
23062   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23063   ac_i=`echo "$ac_i" | sed "$ac_script"`
23064   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23065   #    will be set to the directory where LIBOBJS objects are built.
23066   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23067   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23068 done
23069 LIBOBJS=$ac_libobjs
23070
23071 LTLIBOBJS=$ac_ltlibobjs
23072
23073
23074
23075 : ${CONFIG_STATUS=./config.status}
23076 ac_clean_files_save=$ac_clean_files
23077 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23078 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23079 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23080 cat >$CONFIG_STATUS <<_ACEOF
23081 #! $SHELL
23082 # Generated by $as_me.
23083 # Run this file to recreate the current configuration.
23084 # Compiler output produced by configure, useful for debugging
23085 # configure, is in config.log if it exists.
23086
23087 debug=false
23088 ac_cs_recheck=false
23089 ac_cs_silent=false
23090 SHELL=\${CONFIG_SHELL-$SHELL}
23091 _ACEOF
23092
23093 cat >>$CONFIG_STATUS <<\_ACEOF
23094 ## --------------------- ##
23095 ## M4sh Initialization.  ##
23096 ## --------------------- ##
23097
23098 # Be more Bourne compatible
23099 DUALCASE=1; export DUALCASE # for MKS sh
23100 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23101   emulate sh
23102   NULLCMD=:
23103   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23104   # is contrary to our usage.  Disable this feature.
23105   alias -g '${1+"$@"}'='"$@"'
23106   setopt NO_GLOB_SUBST
23107 else
23108   case `(set -o) 2>/dev/null` in
23109   *posix*) set -o posix ;;
23110 esac
23111
23112 fi
23113
23114
23115
23116
23117 # PATH needs CR
23118 # Avoid depending upon Character Ranges.
23119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23122 as_cr_digits='0123456789'
23123 as_cr_alnum=$as_cr_Letters$as_cr_digits
23124
23125 # The user is always right.
23126 if test "${PATH_SEPARATOR+set}" != set; then
23127   echo "#! /bin/sh" >conf$$.sh
23128   echo  "exit 0"   >>conf$$.sh
23129   chmod +x conf$$.sh
23130   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23131     PATH_SEPARATOR=';'
23132   else
23133     PATH_SEPARATOR=:
23134   fi
23135   rm -f conf$$.sh
23136 fi
23137
23138 # Support unset when possible.
23139 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23140   as_unset=unset
23141 else
23142   as_unset=false
23143 fi
23144
23145
23146 # IFS
23147 # We need space, tab and new line, in precisely that order.  Quoting is
23148 # there to prevent editors from complaining about space-tab.
23149 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23150 # splitting by setting IFS to empty value.)
23151 as_nl='
23152 '
23153 IFS=" ""        $as_nl"
23154
23155 # Find who we are.  Look in the path if we contain no directory separator.
23156 case $0 in
23157   *[\\/]* ) as_myself=$0 ;;
23158   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23159 for as_dir in $PATH
23160 do
23161   IFS=$as_save_IFS
23162   test -z "$as_dir" && as_dir=.
23163   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23164 done
23165 IFS=$as_save_IFS
23166
23167      ;;
23168 esac
23169 # We did not find ourselves, most probably we were run as `sh COMMAND'
23170 # in which case we are not to be found in the path.
23171 if test "x$as_myself" = x; then
23172   as_myself=$0
23173 fi
23174 if test ! -f "$as_myself"; then
23175   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23176   { (exit 1); exit 1; }
23177 fi
23178
23179 # Work around bugs in pre-3.0 UWIN ksh.
23180 for as_var in ENV MAIL MAILPATH
23181 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23182 done
23183 PS1='$ '
23184 PS2='> '
23185 PS4='+ '
23186
23187 # NLS nuisances.
23188 for as_var in \
23189   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23190   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23191   LC_TELEPHONE LC_TIME
23192 do
23193   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23194     eval $as_var=C; export $as_var
23195   else
23196     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23197   fi
23198 done
23199
23200 # Required to use basename.
23201 if expr a : '\(a\)' >/dev/null 2>&1 &&
23202    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23203   as_expr=expr
23204 else
23205   as_expr=false
23206 fi
23207
23208 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23209   as_basename=basename
23210 else
23211   as_basename=false
23212 fi
23213
23214
23215 # Name of the executable.
23216 as_me=`$as_basename -- "$0" ||
23217 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23218          X"$0" : 'X\(//\)$' \| \
23219          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23220 echo X/"$0" |
23221     sed '/^.*\/\([^/][^/]*\)\/*$/{
23222             s//\1/
23223             q
23224           }
23225           /^X\/\(\/\/\)$/{
23226             s//\1/
23227             q
23228           }
23229           /^X\/\(\/\).*/{
23230             s//\1/
23231             q
23232           }
23233           s/.*/./; q'`
23234
23235 # CDPATH.
23236 $as_unset CDPATH
23237
23238
23239
23240   as_lineno_1=$LINENO
23241   as_lineno_2=$LINENO
23242   test "x$as_lineno_1" != "x$as_lineno_2" &&
23243   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23244
23245   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23246   # uniformly replaced by the line number.  The first 'sed' inserts a
23247   # line-number line after each line using $LINENO; the second 'sed'
23248   # does the real work.  The second script uses 'N' to pair each
23249   # line-number line with the line containing $LINENO, and appends
23250   # trailing '-' during substitution so that $LINENO is not a special
23251   # case at line end.
23252   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23253   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23254   # E. McMahon (1931-1989) for sed's syntax.  :-)
23255   sed -n '
23256     p
23257     /[$]LINENO/=
23258   ' <$as_myself |
23259     sed '
23260       s/[$]LINENO.*/&-/
23261       t lineno
23262       b
23263       :lineno
23264       N
23265       :loop
23266       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23267       t loop
23268       s/-\n.*//
23269     ' >$as_me.lineno &&
23270   chmod +x "$as_me.lineno" ||
23271     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23272    { (exit 1); exit 1; }; }
23273
23274   # Don't try to exec as it changes $[0], causing all sort of problems
23275   # (the dirname of $[0] is not the place where we might find the
23276   # original and so on.  Autoconf is especially sensitive to this).
23277   . "./$as_me.lineno"
23278   # Exit status is that of the last command.
23279   exit
23280 }
23281
23282
23283 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23284   as_dirname=dirname
23285 else
23286   as_dirname=false
23287 fi
23288
23289 ECHO_C= ECHO_N= ECHO_T=
23290 case `echo -n x` in
23291 -n*)
23292   case `echo 'x\c'` in
23293   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23294   *)   ECHO_C='\c';;
23295   esac;;
23296 *)
23297   ECHO_N='-n';;
23298 esac
23299
23300 if expr a : '\(a\)' >/dev/null 2>&1 &&
23301    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23302   as_expr=expr
23303 else
23304   as_expr=false
23305 fi
23306
23307 rm -f conf$$ conf$$.exe conf$$.file
23308 if test -d conf$$.dir; then
23309   rm -f conf$$.dir/conf$$.file
23310 else
23311   rm -f conf$$.dir
23312   mkdir conf$$.dir
23313 fi
23314 echo >conf$$.file
23315 if ln -s conf$$.file conf$$ 2>/dev/null; then
23316   as_ln_s='ln -s'
23317   # ... but there are two gotchas:
23318   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23319   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23320   # In both cases, we have to default to `cp -p'.
23321   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23322     as_ln_s='cp -p'
23323 elif ln conf$$.file conf$$ 2>/dev/null; then
23324   as_ln_s=ln
23325 else
23326   as_ln_s='cp -p'
23327 fi
23328 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23329 rmdir conf$$.dir 2>/dev/null
23330
23331 if mkdir -p . 2>/dev/null; then
23332   as_mkdir_p=:
23333 else
23334   test -d ./-p && rmdir ./-p
23335   as_mkdir_p=false
23336 fi
23337
23338 if test -x / >/dev/null 2>&1; then
23339   as_test_x='test -x'
23340 else
23341   if ls -dL / >/dev/null 2>&1; then
23342     as_ls_L_option=L
23343   else
23344     as_ls_L_option=
23345   fi
23346   as_test_x='
23347     eval sh -c '\''
23348       if test -d "$1"; then
23349         test -d "$1/.";
23350       else
23351         case $1 in
23352         -*)set "./$1";;
23353         esac;
23354         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23355         ???[sx]*):;;*)false;;esac;fi
23356     '\'' sh
23357   '
23358 fi
23359 as_executable_p=$as_test_x
23360
23361 # Sed expression to map a string onto a valid CPP name.
23362 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23363
23364 # Sed expression to map a string onto a valid variable name.
23365 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23366
23367
23368 exec 6>&1
23369
23370 # Save the log message, to keep $[0] and so on meaningful, and to
23371 # report actual input values of CONFIG_FILES etc. instead of their
23372 # values after options handling.
23373 ac_log="
23374 This file was extended by sudo $as_me 1.6.9, which was
23375 generated by GNU Autoconf 2.61.  Invocation command line was
23376
23377   CONFIG_FILES    = $CONFIG_FILES
23378   CONFIG_HEADERS  = $CONFIG_HEADERS
23379   CONFIG_LINKS    = $CONFIG_LINKS
23380   CONFIG_COMMANDS = $CONFIG_COMMANDS
23381   $ $0 $@
23382
23383 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23384 "
23385
23386 _ACEOF
23387
23388 cat >>$CONFIG_STATUS <<_ACEOF
23389 # Files that config.status was made for.
23390 config_files="$ac_config_files"
23391 config_headers="$ac_config_headers"
23392
23393 _ACEOF
23394
23395 cat >>$CONFIG_STATUS <<\_ACEOF
23396 ac_cs_usage="\
23397 \`$as_me' instantiates files from templates according to the
23398 current configuration.
23399
23400 Usage: $0 [OPTIONS] [FILE]...
23401
23402   -h, --help       print this help, then exit
23403   -V, --version    print version number and configuration settings, then exit
23404   -q, --quiet      do not print progress messages
23405   -d, --debug      don't remove temporary files
23406       --recheck    update $as_me by reconfiguring in the same conditions
23407   --file=FILE[:TEMPLATE]
23408                    instantiate the configuration file FILE
23409   --header=FILE[:TEMPLATE]
23410                    instantiate the configuration header FILE
23411
23412 Configuration files:
23413 $config_files
23414
23415 Configuration headers:
23416 $config_headers
23417
23418 Report bugs to <bug-autoconf@gnu.org>."
23419
23420 _ACEOF
23421 cat >>$CONFIG_STATUS <<_ACEOF
23422 ac_cs_version="\\
23423 sudo config.status 1.6.9
23424 configured by $0, generated by GNU Autoconf 2.61,
23425   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23426
23427 Copyright (C) 2006 Free Software Foundation, Inc.
23428 This config.status script is free software; the Free Software Foundation
23429 gives unlimited permission to copy, distribute and modify it."
23430
23431 ac_pwd='$ac_pwd'
23432 srcdir='$srcdir'
23433 _ACEOF
23434
23435 cat >>$CONFIG_STATUS <<\_ACEOF
23436 # If no file are specified by the user, then we need to provide default
23437 # value.  By we need to know if files were specified by the user.
23438 ac_need_defaults=:
23439 while test $# != 0
23440 do
23441   case $1 in
23442   --*=*)
23443     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23444     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23445     ac_shift=:
23446     ;;
23447   *)
23448     ac_option=$1
23449     ac_optarg=$2
23450     ac_shift=shift
23451     ;;
23452   esac
23453
23454   case $ac_option in
23455   # Handling of the options.
23456   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23457     ac_cs_recheck=: ;;
23458   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23459     echo "$ac_cs_version"; exit ;;
23460   --debug | --debu | --deb | --de | --d | -d )
23461     debug=: ;;
23462   --file | --fil | --fi | --f )
23463     $ac_shift
23464     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23465     ac_need_defaults=false;;
23466   --header | --heade | --head | --hea )
23467     $ac_shift
23468     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23469     ac_need_defaults=false;;
23470   --he | --h)
23471     # Conflict between --help and --header
23472     { echo "$as_me: error: ambiguous option: $1
23473 Try \`$0 --help' for more information." >&2
23474    { (exit 1); exit 1; }; };;
23475   --help | --hel | -h )
23476     echo "$ac_cs_usage"; exit ;;
23477   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23478   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23479     ac_cs_silent=: ;;
23480
23481   # This is an error.
23482   -*) { echo "$as_me: error: unrecognized option: $1
23483 Try \`$0 --help' for more information." >&2
23484    { (exit 1); exit 1; }; } ;;
23485
23486   *) ac_config_targets="$ac_config_targets $1"
23487      ac_need_defaults=false ;;
23488
23489   esac
23490   shift
23491 done
23492
23493 ac_configure_extra_args=
23494
23495 if $ac_cs_silent; then
23496   exec 6>/dev/null
23497   ac_configure_extra_args="$ac_configure_extra_args --silent"
23498 fi
23499
23500 _ACEOF
23501 cat >>$CONFIG_STATUS <<_ACEOF
23502 if \$ac_cs_recheck; then
23503   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23504   CONFIG_SHELL=$SHELL
23505   export CONFIG_SHELL
23506   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23507 fi
23508
23509 _ACEOF
23510 cat >>$CONFIG_STATUS <<\_ACEOF
23511 exec 5>>config.log
23512 {
23513   echo
23514   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23515 ## Running $as_me. ##
23516 _ASBOX
23517   echo "$ac_log"
23518 } >&5
23519
23520 _ACEOF
23521 cat >>$CONFIG_STATUS <<_ACEOF
23522 _ACEOF
23523
23524 cat >>$CONFIG_STATUS <<\_ACEOF
23525
23526 # Handling of arguments.
23527 for ac_config_target in $ac_config_targets
23528 do
23529   case $ac_config_target in
23530     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23531     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
23532     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23533     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
23534     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
23535     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
23536
23537   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23538 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23539    { (exit 1); exit 1; }; };;
23540   esac
23541 done
23542
23543
23544 # If the user did not use the arguments to specify the items to instantiate,
23545 # then the envvar interface is used.  Set only those that are not.
23546 # We use the long form for the default assignment because of an extremely
23547 # bizarre bug on SunOS 4.1.3.
23548 if $ac_need_defaults; then
23549   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23550   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23551 fi
23552
23553 # Have a temporary directory for convenience.  Make it in the build tree
23554 # simply because there is no reason against having it here, and in addition,
23555 # creating and moving files from /tmp can sometimes cause problems.
23556 # Hook for its removal unless debugging.
23557 # Note that there is a small window in which the directory will not be cleaned:
23558 # after its creation but before its name has been assigned to `$tmp'.
23559 $debug ||
23560 {
23561   tmp=
23562   trap 'exit_status=$?
23563   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23564 ' 0
23565   trap '{ (exit 1); exit 1; }' 1 2 13 15
23566 }
23567 # Create a (secure) tmp directory for tmp files.
23568
23569 {
23570   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23571   test -n "$tmp" && test -d "$tmp"
23572 }  ||
23573 {
23574   tmp=./conf$$-$RANDOM
23575   (umask 077 && mkdir "$tmp")
23576 } ||
23577 {
23578    echo "$me: cannot create a temporary directory in ." >&2
23579    { (exit 1); exit 1; }
23580 }
23581
23582 #
23583 # Set up the sed scripts for CONFIG_FILES section.
23584 #
23585
23586 # No need to generate the scripts if there are no CONFIG_FILES.
23587 # This happens for instance when ./config.status config.h
23588 if test -n "$CONFIG_FILES"; then
23589
23590 _ACEOF
23591
23592
23593
23594 ac_delim='%!_!# '
23595 for ac_last_try in false false false false false :; do
23596   cat >conf$$subs.sed <<_ACEOF
23597 SHELL!$SHELL$ac_delim
23598 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23599 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23600 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23601 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23602 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23603 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23604 exec_prefix!$exec_prefix$ac_delim
23605 prefix!$prefix$ac_delim
23606 program_transform_name!$program_transform_name$ac_delim
23607 bindir!$bindir$ac_delim
23608 sbindir!$sbindir$ac_delim
23609 libexecdir!$libexecdir$ac_delim
23610 datarootdir!$datarootdir$ac_delim
23611 datadir!$datadir$ac_delim
23612 sysconfdir!$sysconfdir$ac_delim
23613 sharedstatedir!$sharedstatedir$ac_delim
23614 localstatedir!$localstatedir$ac_delim
23615 includedir!$includedir$ac_delim
23616 oldincludedir!$oldincludedir$ac_delim
23617 docdir!$docdir$ac_delim
23618 infodir!$infodir$ac_delim
23619 htmldir!$htmldir$ac_delim
23620 dvidir!$dvidir$ac_delim
23621 pdfdir!$pdfdir$ac_delim
23622 psdir!$psdir$ac_delim
23623 libdir!$libdir$ac_delim
23624 localedir!$localedir$ac_delim
23625 mandir!$mandir$ac_delim
23626 DEFS!$DEFS$ac_delim
23627 ECHO_C!$ECHO_C$ac_delim
23628 ECHO_N!$ECHO_N$ac_delim
23629 ECHO_T!$ECHO_T$ac_delim
23630 LIBS!$LIBS$ac_delim
23631 build_alias!$build_alias$ac_delim
23632 host_alias!$host_alias$ac_delim
23633 target_alias!$target_alias$ac_delim
23634 LIBTOOL!$LIBTOOL$ac_delim
23635 CFLAGS!$CFLAGS$ac_delim
23636 PROGS!$PROGS$ac_delim
23637 CPPFLAGS!$CPPFLAGS$ac_delim
23638 LDFLAGS!$LDFLAGS$ac_delim
23639 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
23640 SUDO_OBJS!$SUDO_OBJS$ac_delim
23641 SUDO_LIBS!$SUDO_LIBS$ac_delim
23642 NET_LIBS!$NET_LIBS$ac_delim
23643 AFS_LIBS!$AFS_LIBS$ac_delim
23644 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
23645 OSDEFS!$OSDEFS$ac_delim
23646 AUTH_OBJS!$AUTH_OBJS$ac_delim
23647 MANTYPE!$MANTYPE$ac_delim
23648 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
23649 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
23650 SUDOERS_UID!$SUDOERS_UID$ac_delim
23651 SUDOERS_GID!$SUDOERS_GID$ac_delim
23652 DEV!$DEV$ac_delim
23653 SELINUX!$SELINUX$ac_delim
23654 BAMAN!$BAMAN$ac_delim
23655 LCMAN!$LCMAN$ac_delim
23656 SEMAN!$SEMAN$ac_delim
23657 mansectsu!$mansectsu$ac_delim
23658 mansectform!$mansectform$ac_delim
23659 mansrcdir!$mansrcdir$ac_delim
23660 NOEXECDIR!$NOEXECDIR$ac_delim
23661 noexec_file!$noexec_file$ac_delim
23662 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
23663 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
23664 timedir!$timedir$ac_delim
23665 timeout!$timeout$ac_delim
23666 password_timeout!$password_timeout$ac_delim
23667 sudo_umask!$sudo_umask$ac_delim
23668 passprompt!$passprompt$ac_delim
23669 long_otp_prompt!$long_otp_prompt$ac_delim
23670 lecture!$lecture$ac_delim
23671 logfac!$logfac$ac_delim
23672 goodpri!$goodpri$ac_delim
23673 badpri!$badpri$ac_delim
23674 loglen!$loglen$ac_delim
23675 ignore_dot!$ignore_dot$ac_delim
23676 mail_no_user!$mail_no_user$ac_delim
23677 mail_no_host!$mail_no_host$ac_delim
23678 mail_no_perms!$mail_no_perms$ac_delim
23679 mailto!$mailto$ac_delim
23680 mailsub!$mailsub$ac_delim
23681 badpass_message!$badpass_message$ac_delim
23682 fqdn!$fqdn$ac_delim
23683 runas_default!$runas_default$ac_delim
23684 env_editor!$env_editor$ac_delim
23685 passwd_tries!$passwd_tries$ac_delim
23686 tty_tickets!$tty_tickets$ac_delim
23687 insults!$insults$ac_delim
23688 root_sudo!$root_sudo$ac_delim
23689 path_info!$path_info$ac_delim
23690 EGREPPROG!$EGREPPROG$ac_delim
23691 CC!$CC$ac_delim
23692 ac_ct_CC!$ac_ct_CC$ac_delim
23693 EXEEXT!$EXEEXT$ac_delim
23694 _ACEOF
23695
23696   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23697     break
23698   elif $ac_last_try; then
23699     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23700 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23701    { (exit 1); exit 1; }; }
23702   else
23703     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23704   fi
23705 done
23706
23707 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23708 if test -n "$ac_eof"; then
23709   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23710   ac_eof=`expr $ac_eof + 1`
23711 fi
23712
23713 cat >>$CONFIG_STATUS <<_ACEOF
23714 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23716 _ACEOF
23717 sed '
23718 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23719 s/^/s,@/; s/!/@,|#_!!_#|/
23720 :n
23721 t n
23722 s/'"$ac_delim"'$/,g/; t
23723 s/$/\\/; p
23724 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23725 ' >>$CONFIG_STATUS <conf$$subs.sed
23726 rm -f conf$$subs.sed
23727 cat >>$CONFIG_STATUS <<_ACEOF
23728 CEOF$ac_eof
23729 _ACEOF
23730
23731
23732 ac_delim='%!_!# '
23733 for ac_last_try in false false false false false :; do
23734   cat >conf$$subs.sed <<_ACEOF
23735 OBJEXT!$OBJEXT$ac_delim
23736 CPP!$CPP$ac_delim
23737 build!$build$ac_delim
23738 build_cpu!$build_cpu$ac_delim
23739 build_vendor!$build_vendor$ac_delim
23740 build_os!$build_os$ac_delim
23741 host!$host$ac_delim
23742 host_cpu!$host_cpu$ac_delim
23743 host_vendor!$host_vendor$ac_delim
23744 host_os!$host_os$ac_delim
23745 target!$target$ac_delim
23746 target_cpu!$target_cpu$ac_delim
23747 target_vendor!$target_vendor$ac_delim
23748 target_os!$target_os$ac_delim
23749 SED!$SED$ac_delim
23750 GREP!$GREP$ac_delim
23751 EGREP!$EGREP$ac_delim
23752 LN_S!$LN_S$ac_delim
23753 ECHO!$ECHO$ac_delim
23754 AR!$AR$ac_delim
23755 RANLIB!$RANLIB$ac_delim
23756 STRIP!$STRIP$ac_delim
23757 UNAMEPROG!$UNAMEPROG$ac_delim
23758 TRPROG!$TRPROG$ac_delim
23759 NROFFPROG!$NROFFPROG$ac_delim
23760 YACC!$YACC$ac_delim
23761 YFLAGS!$YFLAGS$ac_delim
23762 LIBOBJS!$LIBOBJS$ac_delim
23763 ALLOCA!$ALLOCA$ac_delim
23764 KRB5CONFIG!$KRB5CONFIG$ac_delim
23765 LTLIBOBJS!$LTLIBOBJS$ac_delim
23766 _ACEOF
23767
23768   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 31; then
23769     break
23770   elif $ac_last_try; then
23771     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23772 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23773    { (exit 1); exit 1; }; }
23774   else
23775     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23776   fi
23777 done
23778
23779 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23780 if test -n "$ac_eof"; then
23781   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23782   ac_eof=`expr $ac_eof + 1`
23783 fi
23784
23785 cat >>$CONFIG_STATUS <<_ACEOF
23786 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23787 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23788 _ACEOF
23789 sed '
23790 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23791 s/^/s,@/; s/!/@,|#_!!_#|/
23792 :n
23793 t n
23794 s/'"$ac_delim"'$/,g/; t
23795 s/$/\\/; p
23796 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23797 ' >>$CONFIG_STATUS <conf$$subs.sed
23798 rm -f conf$$subs.sed
23799 cat >>$CONFIG_STATUS <<_ACEOF
23800 :end
23801 s/|#_!!_#|//g
23802 CEOF$ac_eof
23803 _ACEOF
23804
23805
23806 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23807 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23808 # trailing colons and then remove the whole line if VPATH becomes empty
23809 # (actually we leave an empty line to preserve line numbers).
23810 if test "x$srcdir" = x.; then
23811   ac_vpsub='/^[  ]*VPATH[        ]*=/{
23812 s/:*\$(srcdir):*/:/
23813 s/:*\${srcdir}:*/:/
23814 s/:*@srcdir@:*/:/
23815 s/^\([^=]*=[     ]*\):*/\1/
23816 s/:*$//
23817 s/^[^=]*=[       ]*$//
23818 }'
23819 fi
23820
23821 cat >>$CONFIG_STATUS <<\_ACEOF
23822 fi # test -n "$CONFIG_FILES"
23823
23824
23825 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
23826 do
23827   case $ac_tag in
23828   :[FHLC]) ac_mode=$ac_tag; continue;;
23829   esac
23830   case $ac_mode$ac_tag in
23831   :[FHL]*:*);;
23832   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23833 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23834    { (exit 1); exit 1; }; };;
23835   :[FH]-) ac_tag=-:-;;
23836   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23837   esac
23838   ac_save_IFS=$IFS
23839   IFS=:
23840   set x $ac_tag
23841   IFS=$ac_save_IFS
23842   shift
23843   ac_file=$1
23844   shift
23845
23846   case $ac_mode in
23847   :L) ac_source=$1;;
23848   :[FH])
23849     ac_file_inputs=
23850     for ac_f
23851     do
23852       case $ac_f in
23853       -) ac_f="$tmp/stdin";;
23854       *) # Look for the file first in the build tree, then in the source tree
23855          # (if the path is not absolute).  The absolute path cannot be DOS-style,
23856          # because $ac_f cannot contain `:'.
23857          test -f "$ac_f" ||
23858            case $ac_f in
23859            [\\/$]*) false;;
23860            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23861            esac ||
23862            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23863 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23864    { (exit 1); exit 1; }; };;
23865       esac
23866       ac_file_inputs="$ac_file_inputs $ac_f"
23867     done
23868
23869     # Let's still pretend it is `configure' which instantiates (i.e., don't
23870     # use $as_me), people would be surprised to read:
23871     #    /* config.h.  Generated by config.status.  */
23872     configure_input="Generated from "`IFS=:
23873           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23874     if test x"$ac_file" != x-; then
23875       configure_input="$ac_file.  $configure_input"
23876       { echo "$as_me:$LINENO: creating $ac_file" >&5
23877 echo "$as_me: creating $ac_file" >&6;}
23878     fi
23879
23880     case $ac_tag in
23881     *:-:* | *:-) cat >"$tmp/stdin";;
23882     esac
23883     ;;
23884   esac
23885
23886   ac_dir=`$as_dirname -- "$ac_file" ||
23887 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23888          X"$ac_file" : 'X\(//\)[^/]' \| \
23889          X"$ac_file" : 'X\(//\)$' \| \
23890          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23891 echo X"$ac_file" |
23892     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23893             s//\1/
23894             q
23895           }
23896           /^X\(\/\/\)[^/].*/{
23897             s//\1/
23898             q
23899           }
23900           /^X\(\/\/\)$/{
23901             s//\1/
23902             q
23903           }
23904           /^X\(\/\).*/{
23905             s//\1/
23906             q
23907           }
23908           s/.*/./; q'`
23909   { as_dir="$ac_dir"
23910   case $as_dir in #(
23911   -*) as_dir=./$as_dir;;
23912   esac
23913   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23914     as_dirs=
23915     while :; do
23916       case $as_dir in #(
23917       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23918       *) as_qdir=$as_dir;;
23919       esac
23920       as_dirs="'$as_qdir' $as_dirs"
23921       as_dir=`$as_dirname -- "$as_dir" ||
23922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23923          X"$as_dir" : 'X\(//\)[^/]' \| \
23924          X"$as_dir" : 'X\(//\)$' \| \
23925          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23926 echo X"$as_dir" |
23927     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23928             s//\1/
23929             q
23930           }
23931           /^X\(\/\/\)[^/].*/{
23932             s//\1/
23933             q
23934           }
23935           /^X\(\/\/\)$/{
23936             s//\1/
23937             q
23938           }
23939           /^X\(\/\).*/{
23940             s//\1/
23941             q
23942           }
23943           s/.*/./; q'`
23944       test -d "$as_dir" && break
23945     done
23946     test -z "$as_dirs" || eval "mkdir $as_dirs"
23947   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23948 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23949    { (exit 1); exit 1; }; }; }
23950   ac_builddir=.
23951
23952 case "$ac_dir" in
23953 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23954 *)
23955   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23956   # A ".." for each directory in $ac_dir_suffix.
23957   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23958   case $ac_top_builddir_sub in
23959   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23960   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23961   esac ;;
23962 esac
23963 ac_abs_top_builddir=$ac_pwd
23964 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23965 # for backward compatibility:
23966 ac_top_builddir=$ac_top_build_prefix
23967
23968 case $srcdir in
23969   .)  # We are building in place.
23970     ac_srcdir=.
23971     ac_top_srcdir=$ac_top_builddir_sub
23972     ac_abs_top_srcdir=$ac_pwd ;;
23973   [\\/]* | ?:[\\/]* )  # Absolute name.
23974     ac_srcdir=$srcdir$ac_dir_suffix;
23975     ac_top_srcdir=$srcdir
23976     ac_abs_top_srcdir=$srcdir ;;
23977   *) # Relative name.
23978     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23979     ac_top_srcdir=$ac_top_build_prefix$srcdir
23980     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23981 esac
23982 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23983
23984
23985   case $ac_mode in
23986   :F)
23987   #
23988   # CONFIG_FILE
23989   #
23990
23991 _ACEOF
23992
23993 cat >>$CONFIG_STATUS <<\_ACEOF
23994 # If the template does not know about datarootdir, expand it.
23995 # FIXME: This hack should be removed a few years after 2.60.
23996 ac_datarootdir_hack=; ac_datarootdir_seen=
23997
23998 case `sed -n '/datarootdir/ {
23999   p
24000   q
24001 }
24002 /@datadir@/p
24003 /@docdir@/p
24004 /@infodir@/p
24005 /@localedir@/p
24006 /@mandir@/p
24007 ' $ac_file_inputs` in
24008 *datarootdir*) ac_datarootdir_seen=yes;;
24009 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24010   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24011 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24012 _ACEOF
24013 cat >>$CONFIG_STATUS <<_ACEOF
24014   ac_datarootdir_hack='
24015   s&@datadir@&$datadir&g
24016   s&@docdir@&$docdir&g
24017   s&@infodir@&$infodir&g
24018   s&@localedir@&$localedir&g
24019   s&@mandir@&$mandir&g
24020     s&\\\${datarootdir}&$datarootdir&g' ;;
24021 esac
24022 _ACEOF
24023
24024 # Neutralize VPATH when `$srcdir' = `.'.
24025 # Shell code in configure.ac might set extrasub.
24026 # FIXME: do we really want to maintain this feature?
24027 cat >>$CONFIG_STATUS <<_ACEOF
24028   sed "$ac_vpsub
24029 $extrasub
24030 _ACEOF
24031 cat >>$CONFIG_STATUS <<\_ACEOF
24032 :t
24033 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24034 s&@configure_input@&$configure_input&;t t
24035 s&@top_builddir@&$ac_top_builddir_sub&;t t
24036 s&@srcdir@&$ac_srcdir&;t t
24037 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24038 s&@top_srcdir@&$ac_top_srcdir&;t t
24039 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24040 s&@builddir@&$ac_builddir&;t t
24041 s&@abs_builddir@&$ac_abs_builddir&;t t
24042 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24043 $ac_datarootdir_hack
24044 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24045
24046 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24047   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24048   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24049   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24050 which seems to be undefined.  Please make sure it is defined." >&5
24051 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24052 which seems to be undefined.  Please make sure it is defined." >&2;}
24053
24054   rm -f "$tmp/stdin"
24055   case $ac_file in
24056   -) cat "$tmp/out"; rm -f "$tmp/out";;
24057   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24058   esac
24059  ;;
24060   :H)
24061   #
24062   # CONFIG_HEADER
24063   #
24064 _ACEOF
24065
24066 # Transform confdefs.h into a sed script `conftest.defines', that
24067 # substitutes the proper values into config.h.in to produce config.h.
24068 rm -f conftest.defines conftest.tail
24069 # First, append a space to every undef/define line, to ease matching.
24070 echo 's/$/ /' >conftest.defines
24071 # Then, protect against being on the right side of a sed subst, or in
24072 # an unquoted here document, in config.status.  If some macros were
24073 # called several times there might be several #defines for the same
24074 # symbol, which is useless.  But do not sort them, since the last
24075 # AC_DEFINE must be honored.
24076 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24077 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24078 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24079 # PARAMS is the parameter list in the macro definition--in most cases, it's
24080 # just an empty string.
24081 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24082 ac_dB='\\)[      (].*,\\1define\\2'
24083 ac_dC=' '
24084 ac_dD=' ,'
24085
24086 uniq confdefs.h |
24087   sed -n '
24088         t rset
24089         :rset
24090         s/^[     ]*#[    ]*define[       ][      ]*//
24091         t ok
24092         d
24093         :ok
24094         s/[\\&,]/\\&/g
24095         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24096         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24097   ' >>conftest.defines
24098
24099 # Remove the space that was appended to ease matching.
24100 # Then replace #undef with comments.  This is necessary, for
24101 # example, in the case of _POSIX_SOURCE, which is predefined and required
24102 # on some systems where configure will not decide to define it.
24103 # (The regexp can be short, since the line contains either #define or #undef.)
24104 echo 's/ $//
24105 s,^[     #]*u.*,/* & */,' >>conftest.defines
24106
24107 # Break up conftest.defines:
24108 ac_max_sed_lines=50
24109
24110 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24111 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24112 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24113 # et cetera.
24114 ac_in='$ac_file_inputs'
24115 ac_out='"$tmp/out1"'
24116 ac_nxt='"$tmp/out2"'
24117
24118 while :
24119 do
24120   # Write a here document:
24121     cat >>$CONFIG_STATUS <<_ACEOF
24122     # First, check the format of the line:
24123     cat >"\$tmp/defines.sed" <<\\CEOF
24124 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24125 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24126 b
24127 :def
24128 _ACEOF
24129   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24130   echo 'CEOF
24131     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24132   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24133   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24134   grep . conftest.tail >/dev/null || break
24135   rm -f conftest.defines
24136   mv conftest.tail conftest.defines
24137 done
24138 rm -f conftest.defines conftest.tail
24139
24140 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24141 cat >>$CONFIG_STATUS <<\_ACEOF
24142   if test x"$ac_file" != x-; then
24143     echo "/* $configure_input  */" >"$tmp/config.h"
24144     cat "$ac_result" >>"$tmp/config.h"
24145     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24146       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24147 echo "$as_me: $ac_file is unchanged" >&6;}
24148     else
24149       rm -f $ac_file
24150       mv "$tmp/config.h" $ac_file
24151     fi
24152   else
24153     echo "/* $configure_input  */"
24154     cat "$ac_result"
24155   fi
24156   rm -f "$tmp/out12"
24157 # Compute $ac_file's index in $config_headers.
24158 _am_stamp_count=1
24159 for _am_header in $config_headers :; do
24160   case $_am_header in
24161     $ac_file | $ac_file:* )
24162       break ;;
24163     * )
24164       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24165   esac
24166 done
24167 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
24168 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24169          X$ac_file : 'X\(//\)[^/]' \| \
24170          X$ac_file : 'X\(//\)$' \| \
24171          X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
24172 echo X$ac_file |
24173     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24174             s//\1/
24175             q
24176           }
24177           /^X\(\/\/\)[^/].*/{
24178             s//\1/
24179             q
24180           }
24181           /^X\(\/\/\)$/{
24182             s//\1/
24183             q
24184           }
24185           /^X\(\/\).*/{
24186             s//\1/
24187             q
24188           }
24189           s/.*/./; q'`/stamp-h$_am_stamp_count
24190  ;;
24191
24192
24193   esac
24194
24195 done # for ac_tag
24196
24197
24198 { (exit 0); exit 0; }
24199 _ACEOF
24200 chmod +x $CONFIG_STATUS
24201 ac_clean_files=$ac_clean_files_save
24202
24203
24204 # configure is writing to config.log, and then calls config.status.
24205 # config.status does its own redirection, appending to config.log.
24206 # Unfortunately, on DOS this fails, as config.log is still kept open
24207 # by configure, so config.status won't be able to write to it; its
24208 # output is simply discarded.  So we exec the FD to /dev/null,
24209 # effectively closing config.log, so it can be properly (re)opened and
24210 # appended to by config.status.  When coming back to configure, we
24211 # need to make the FD available again.
24212 if test "$no_create" != yes; then
24213   ac_cs_success=:
24214   ac_config_status_args=
24215   test "$silent" = yes &&
24216     ac_config_status_args="$ac_config_status_args --quiet"
24217   exec 5>/dev/null
24218   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24219   exec 5>>config.log
24220   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24221   # would make configure fail if this is the last instruction.
24222   $ac_cs_success || { (exit 1); exit 1; }
24223 fi
24224
24225
24226 if test "$with_pam" = "yes"; then
24227     case $host in
24228         *-*-linux*)
24229             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24230 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
24231             ;;
24232     esac
24233 fi
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260
24261
24262
24263
24264
24265
24266
24267
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301
24302
24303
24304
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330
24331
24332
24333
24334
24335
24336
24337
24338
24339
24340
24341
24342
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362
24363
24364
24365
24366
24367
24368
24369
24370
24371
24372
24373
24374
24375
24376
24377
24378
24379
24380