clean up some noise in the diff file
[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.7.
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.7'
726 PACKAGE_STRING='sudo 1.7'
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 devdir
826 mansectsu
827 mansectform
828 mansrcdir
829 NOEXECFILE
830 NOEXECDIR
831 noexec_file
832 INSTALL_NOEXEC
833 DONT_LEAK_PATH_INFO
834 BSDAUTH_USAGE
835 SELINUX_USAGE
836 LDAP
837 LOGINCAP_USAGE
838 timedir
839 timeout
840 password_timeout
841 sudo_umask
842 passprompt
843 long_otp_prompt
844 lecture
845 logfac
846 goodpri
847 badpri
848 loglen
849 ignore_dot
850 mail_no_user
851 mail_no_host
852 mail_no_perms
853 mailto
854 mailsub
855 badpass_message
856 fqdn
857 runas_default
858 env_editor
859 passwd_tries
860 tty_tickets
861 insults
862 root_sudo
863 path_info
864 ldap_conf
865 ldap_secret
866 nsswitch_conf
867 EGREPPROG
868 CC
869 ac_ct_CC
870 EXEEXT
871 OBJEXT
872 CPP
873 build
874 build_cpu
875 build_vendor
876 build_os
877 host
878 host_cpu
879 host_vendor
880 host_os
881 target
882 target_cpu
883 target_vendor
884 target_os
885 SED
886 GREP
887 EGREP
888 LN_S
889 ECHO
890 AR
891 RANLIB
892 STRIP
893 DSYMUTIL
894 NMEDIT
895 UNAMEPROG
896 TRPROG
897 NROFFPROG
898 YACC
899 YFLAGS
900 LIBOBJS
901 KRB5CONFIG
902 LTLIBOBJS'
903 ac_subst_files=''
904       ac_precious_vars='build_alias
905 host_alias
906 target_alias
907 CC
908 CFLAGS
909 LDFLAGS
910 LIBS
911 CPPFLAGS
912 CPP
913 YACC
914 YFLAGS'
915
916
917 # Initialize some variables set by options.
918 ac_init_help=
919 ac_init_version=false
920 # The variables have the same names as the options, with
921 # dashes changed to underlines.
922 cache_file=/dev/null
923 exec_prefix=NONE
924 no_create=
925 no_recursion=
926 prefix=NONE
927 program_prefix=NONE
928 program_suffix=NONE
929 program_transform_name=s,x,x,
930 silent=
931 site=
932 srcdir=
933 verbose=
934 x_includes=NONE
935 x_libraries=NONE
936
937 # Installation directory options.
938 # These are left unexpanded so users can "make install exec_prefix=/foo"
939 # and all the variables that are supposed to be based on exec_prefix
940 # by default will actually change.
941 # Use braces instead of parens because sh, perl, etc. also accept them.
942 # (The list follows the same order as the GNU Coding Standards.)
943 bindir='${exec_prefix}/bin'
944 sbindir='${exec_prefix}/sbin'
945 libexecdir='${exec_prefix}/libexec'
946 datarootdir='${prefix}/share'
947 datadir='${datarootdir}'
948 sysconfdir='${prefix}/etc'
949 sharedstatedir='${prefix}/com'
950 localstatedir='${prefix}/var'
951 includedir='${prefix}/include'
952 oldincludedir='/usr/include'
953 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
954 infodir='${datarootdir}/info'
955 htmldir='${docdir}'
956 dvidir='${docdir}'
957 pdfdir='${docdir}'
958 psdir='${docdir}'
959 libdir='${exec_prefix}/lib'
960 localedir='${datarootdir}/locale'
961 mandir='${datarootdir}/man'
962
963 ac_prev=
964 ac_dashdash=
965 for ac_option
966 do
967   # If the previous option needs an argument, assign it.
968   if test -n "$ac_prev"; then
969     eval $ac_prev=\$ac_option
970     ac_prev=
971     continue
972   fi
973
974   case $ac_option in
975   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976   *)    ac_optarg=yes ;;
977   esac
978
979   # Accept the important Cygnus configure options, so we can diagnose typos.
980
981   case $ac_dashdash$ac_option in
982   --)
983     ac_dashdash=yes ;;
984
985   -bindir | --bindir | --bindi | --bind | --bin | --bi)
986     ac_prev=bindir ;;
987   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
988     bindir=$ac_optarg ;;
989
990   -build | --build | --buil | --bui | --bu)
991     ac_prev=build_alias ;;
992   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
993     build_alias=$ac_optarg ;;
994
995   -cache-file | --cache-file | --cache-fil | --cache-fi \
996   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
997     ac_prev=cache_file ;;
998   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
999   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1000     cache_file=$ac_optarg ;;
1001
1002   --config-cache | -C)
1003     cache_file=config.cache ;;
1004
1005   -datadir | --datadir | --datadi | --datad)
1006     ac_prev=datadir ;;
1007   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1008     datadir=$ac_optarg ;;
1009
1010   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1011   | --dataroo | --dataro | --datar)
1012     ac_prev=datarootdir ;;
1013   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1014   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1015     datarootdir=$ac_optarg ;;
1016
1017   -disable-* | --disable-*)
1018     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019     # Reject names that are not valid shell variable names.
1020     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022    { (exit 1); exit 1; }; }
1023     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024     eval enable_$ac_feature=no ;;
1025
1026   -docdir | --docdir | --docdi | --doc | --do)
1027     ac_prev=docdir ;;
1028   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029     docdir=$ac_optarg ;;
1030
1031   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032     ac_prev=dvidir ;;
1033   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034     dvidir=$ac_optarg ;;
1035
1036   -enable-* | --enable-*)
1037     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038     # Reject names that are not valid shell variable names.
1039     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1040       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1041    { (exit 1); exit 1; }; }
1042     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1043     eval enable_$ac_feature=\$ac_optarg ;;
1044
1045   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1046   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1047   | --exec | --exe | --ex)
1048     ac_prev=exec_prefix ;;
1049   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1050   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1051   | --exec=* | --exe=* | --ex=*)
1052     exec_prefix=$ac_optarg ;;
1053
1054   -gas | --gas | --ga | --g)
1055     # Obsolete; use --with-gas.
1056     with_gas=yes ;;
1057
1058   -help | --help | --hel | --he | -h)
1059     ac_init_help=long ;;
1060   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1061     ac_init_help=recursive ;;
1062   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1063     ac_init_help=short ;;
1064
1065   -host | --host | --hos | --ho)
1066     ac_prev=host_alias ;;
1067   -host=* | --host=* | --hos=* | --ho=*)
1068     host_alias=$ac_optarg ;;
1069
1070   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1071     ac_prev=htmldir ;;
1072   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1073   | --ht=*)
1074     htmldir=$ac_optarg ;;
1075
1076   -includedir | --includedir | --includedi | --included | --include \
1077   | --includ | --inclu | --incl | --inc)
1078     ac_prev=includedir ;;
1079   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1080   | --includ=* | --inclu=* | --incl=* | --inc=*)
1081     includedir=$ac_optarg ;;
1082
1083   -infodir | --infodir | --infodi | --infod | --info | --inf)
1084     ac_prev=infodir ;;
1085   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1086     infodir=$ac_optarg ;;
1087
1088   -libdir | --libdir | --libdi | --libd)
1089     ac_prev=libdir ;;
1090   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1091     libdir=$ac_optarg ;;
1092
1093   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1094   | --libexe | --libex | --libe)
1095     ac_prev=libexecdir ;;
1096   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1097   | --libexe=* | --libex=* | --libe=*)
1098     libexecdir=$ac_optarg ;;
1099
1100   -localedir | --localedir | --localedi | --localed | --locale)
1101     ac_prev=localedir ;;
1102   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1103     localedir=$ac_optarg ;;
1104
1105   -localstatedir | --localstatedir | --localstatedi | --localstated \
1106   | --localstate | --localstat | --localsta | --localst | --locals)
1107     ac_prev=localstatedir ;;
1108   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1109   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1110     localstatedir=$ac_optarg ;;
1111
1112   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1113     ac_prev=mandir ;;
1114   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1115     mandir=$ac_optarg ;;
1116
1117   -nfp | --nfp | --nf)
1118     # Obsolete; use --without-fp.
1119     with_fp=no ;;
1120
1121   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1122   | --no-cr | --no-c | -n)
1123     no_create=yes ;;
1124
1125   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1126   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1127     no_recursion=yes ;;
1128
1129   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1130   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1131   | --oldin | --oldi | --old | --ol | --o)
1132     ac_prev=oldincludedir ;;
1133   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1134   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1135   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1136     oldincludedir=$ac_optarg ;;
1137
1138   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1139     ac_prev=prefix ;;
1140   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1141     prefix=$ac_optarg ;;
1142
1143   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1144   | --program-pre | --program-pr | --program-p)
1145     ac_prev=program_prefix ;;
1146   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1147   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1148     program_prefix=$ac_optarg ;;
1149
1150   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1151   | --program-suf | --program-su | --program-s)
1152     ac_prev=program_suffix ;;
1153   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1154   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1155     program_suffix=$ac_optarg ;;
1156
1157   -program-transform-name | --program-transform-name \
1158   | --program-transform-nam | --program-transform-na \
1159   | --program-transform-n | --program-transform- \
1160   | --program-transform | --program-transfor \
1161   | --program-transfo | --program-transf \
1162   | --program-trans | --program-tran \
1163   | --progr-tra | --program-tr | --program-t)
1164     ac_prev=program_transform_name ;;
1165   -program-transform-name=* | --program-transform-name=* \
1166   | --program-transform-nam=* | --program-transform-na=* \
1167   | --program-transform-n=* | --program-transform-=* \
1168   | --program-transform=* | --program-transfor=* \
1169   | --program-transfo=* | --program-transf=* \
1170   | --program-trans=* | --program-tran=* \
1171   | --progr-tra=* | --program-tr=* | --program-t=*)
1172     program_transform_name=$ac_optarg ;;
1173
1174   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1175     ac_prev=pdfdir ;;
1176   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1177     pdfdir=$ac_optarg ;;
1178
1179   -psdir | --psdir | --psdi | --psd | --ps)
1180     ac_prev=psdir ;;
1181   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1182     psdir=$ac_optarg ;;
1183
1184   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1185   | -silent | --silent | --silen | --sile | --sil)
1186     silent=yes ;;
1187
1188   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1189     ac_prev=sbindir ;;
1190   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1191   | --sbi=* | --sb=*)
1192     sbindir=$ac_optarg ;;
1193
1194   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1195   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1196   | --sharedst | --shareds | --shared | --share | --shar \
1197   | --sha | --sh)
1198     ac_prev=sharedstatedir ;;
1199   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1200   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1201   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1202   | --sha=* | --sh=*)
1203     sharedstatedir=$ac_optarg ;;
1204
1205   -site | --site | --sit)
1206     ac_prev=site ;;
1207   -site=* | --site=* | --sit=*)
1208     site=$ac_optarg ;;
1209
1210   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1211     ac_prev=srcdir ;;
1212   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1213     srcdir=$ac_optarg ;;
1214
1215   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1216   | --syscon | --sysco | --sysc | --sys | --sy)
1217     ac_prev=sysconfdir ;;
1218   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1219   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1220     sysconfdir=$ac_optarg ;;
1221
1222   -target | --target | --targe | --targ | --tar | --ta | --t)
1223     ac_prev=target_alias ;;
1224   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1225     target_alias=$ac_optarg ;;
1226
1227   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1228     verbose=yes ;;
1229
1230   -version | --version | --versio | --versi | --vers | -V)
1231     ac_init_version=: ;;
1232
1233   -with-* | --with-*)
1234     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1235     # Reject names that are not valid shell variable names.
1236     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1237       { echo "$as_me: error: invalid package name: $ac_package" >&2
1238    { (exit 1); exit 1; }; }
1239     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1240     eval with_$ac_package=\$ac_optarg ;;
1241
1242   -without-* | --without-*)
1243     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1244     # Reject names that are not valid shell variable names.
1245     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1246       { echo "$as_me: error: invalid package name: $ac_package" >&2
1247    { (exit 1); exit 1; }; }
1248     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1249     eval with_$ac_package=no ;;
1250
1251   --x)
1252     # Obsolete; use --with-x.
1253     with_x=yes ;;
1254
1255   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1256   | --x-incl | --x-inc | --x-in | --x-i)
1257     ac_prev=x_includes ;;
1258   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1259   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1260     x_includes=$ac_optarg ;;
1261
1262   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1263   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1264     ac_prev=x_libraries ;;
1265   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1266   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1267     x_libraries=$ac_optarg ;;
1268
1269   -*) { echo "$as_me: error: unrecognized option: $ac_option
1270 Try \`$0 --help' for more information." >&2
1271    { (exit 1); exit 1; }; }
1272     ;;
1273
1274   *=*)
1275     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1276     # Reject names that are not valid shell variable names.
1277     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1278       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1279    { (exit 1); exit 1; }; }
1280     eval $ac_envvar=\$ac_optarg
1281     export $ac_envvar ;;
1282
1283   *)
1284     # FIXME: should be removed in autoconf 3.0.
1285     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1286     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1287       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1288     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1289     ;;
1290
1291   esac
1292 done
1293
1294 if test -n "$ac_prev"; then
1295   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1296   { echo "$as_me: error: missing argument to $ac_option" >&2
1297    { (exit 1); exit 1; }; }
1298 fi
1299
1300 # Be sure to have absolute directory names.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   case $ac_val in
1308     [\\/$]* | ?:[\\/]* )  continue;;
1309     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1310   esac
1311   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1312    { (exit 1); exit 1; }; }
1313 done
1314
1315 # There might be people who depend on the old broken behavior: `$host'
1316 # used to hold the argument of --host etc.
1317 # FIXME: To remove some day.
1318 build=$build_alias
1319 host=$host_alias
1320 target=$target_alias
1321
1322 # FIXME: To remove some day.
1323 if test "x$host_alias" != x; then
1324   if test "x$build_alias" = x; then
1325     cross_compiling=maybe
1326     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1327     If a cross compiler is detected then cross compile mode will be used." >&2
1328   elif test "x$build_alias" != "x$host_alias"; then
1329     cross_compiling=yes
1330   fi
1331 fi
1332
1333 ac_tool_prefix=
1334 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1335
1336 test "$silent" = yes && exec 6>/dev/null
1337
1338
1339 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340 ac_ls_di=`ls -di .` &&
1341 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342   { echo "$as_me: error: Working directory cannot be determined" >&2
1343    { (exit 1); exit 1; }; }
1344 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1345   { echo "$as_me: error: pwd does not report name of working directory" >&2
1346    { (exit 1); exit 1; }; }
1347
1348
1349 # Find the source files, if location was not specified.
1350 if test -z "$srcdir"; then
1351   ac_srcdir_defaulted=yes
1352   # Try the directory containing this script, then the parent directory.
1353   ac_confdir=`$as_dirname -- "$0" ||
1354 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1355          X"$0" : 'X\(//\)[^/]' \| \
1356          X"$0" : 'X\(//\)$' \| \
1357          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1358 echo X"$0" |
1359     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1360             s//\1/
1361             q
1362           }
1363           /^X\(\/\/\)[^/].*/{
1364             s//\1/
1365             q
1366           }
1367           /^X\(\/\/\)$/{
1368             s//\1/
1369             q
1370           }
1371           /^X\(\/\).*/{
1372             s//\1/
1373             q
1374           }
1375           s/.*/./; q'`
1376   srcdir=$ac_confdir
1377   if test ! -r "$srcdir/$ac_unique_file"; then
1378     srcdir=..
1379   fi
1380 else
1381   ac_srcdir_defaulted=no
1382 fi
1383 if test ! -r "$srcdir/$ac_unique_file"; then
1384   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1385   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1386    { (exit 1); exit 1; }; }
1387 fi
1388 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1389 ac_abs_confdir=`(
1390         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1391    { (exit 1); exit 1; }; }
1392         pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395   srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_env_${ac_var}_value=\$${ac_var}
1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414   # Omit some internal or obsolete options to make the list less imposing.
1415   # This message is too long to be a string in the A/UX 3.1 sh.
1416   cat <<_ACEOF
1417 \`configure' configures sudo 1.7 to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427   -h, --help              display this help and exit
1428       --help=short        display options specific to this package
1429       --help=recursive    display the short help of all the included packages
1430   -V, --version           display version information and exit
1431   -q, --quiet, --silent   do not print \`checking...' messages
1432       --cache-file=FILE   cache test results in FILE [disabled]
1433   -C, --config-cache      alias for \`--cache-file=config.cache'
1434   -n, --no-create         do not create output files
1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438   --prefix=PREFIX         install architecture-independent files in PREFIX
1439                           [$ac_default_prefix]
1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                           [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451   --bindir=DIR           user executables [EPREFIX/bin]
1452   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1453   --libexecdir=DIR       program executables [EPREFIX/libexec]
1454   --sysconfdir=DIR       read-only single-machine data [etc]
1455   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1456   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1457   --libdir=DIR           object code libraries [EPREFIX/lib]
1458   --includedir=DIR       C header files [PREFIX/include]
1459   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR          info documentation [DATAROOTDIR/info]
1463   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR           man documentation [DATAROOTDIR/man]
1465   --docdir=DIR           documentation root [DATAROOTDIR/doc/sudo]
1466   --htmldir=DIR          html documentation [DOCDIR]
1467   --dvidir=DIR           dvi documentation [DOCDIR]
1468   --pdfdir=DIR           pdf documentation [DOCDIR]
1469   --psdir=DIR            ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 System types:
1475   --build=BUILD     configure for building on BUILD [guessed]
1476   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1477   --target=TARGET   configure for building compilers for TARGET [HOST]
1478 _ACEOF
1479 fi
1480
1481 if test -n "$ac_init_help"; then
1482   case $ac_init_help in
1483      short | recursive ) echo "Configuration of sudo 1.7:";;
1484    esac
1485   cat <<\_ACEOF
1486
1487 Optional Features:
1488   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1489   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1490   --disable-authentication
1491                           Do not require authentication by default
1492   --disable-root-mailer   Don't run the mailer as root, run as the user
1493   --disable-setreuid      Don't try to use the setreuid() function
1494   --disable-setresuid     Don't try to use the setresuid() function
1495   --disable-shadow        Never use shadow passwords
1496   --disable-root-sudo     Don't allow root to run sudo
1497   --enable-log-host       Log the hostname in the log file
1498   --enable-noargs-shell   If sudo is given no arguments run a shell
1499   --enable-shell-sets-home
1500                           Set $HOME to target user in shell mode
1501   --disable-path-info     Print 'command not allowed' not 'command not found'
1502   --enable-gss-krb5-ccache-name
1503                           Use GSS-API to set the Kerberos V cred cache name
1504   --enable-static[=PKGS]  build static libraries [default=no]
1505   --enable-shared[=PKGS]  build shared libraries [default=yes]
1506   --enable-fast-install[=PKGS]
1507                           optimize for fast installation [default=yes]
1508   --disable-libtool-lock  avoid locking (might break parallel builds)
1509   --disable-sia           Disable SIA on Digital UNIX
1510   --disable-pam-session   Disable PAM session support
1511
1512 Optional Packages:
1513   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1514   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1515   --with-otp-only         deprecated
1516   --with-alertmail        deprecated
1517   --with-CC               C compiler to use
1518   --with-rpath            pass -R flag in addition to -L for lib paths
1519   --with-blibpath=PATH    pass -blibpath flag to ld for additional lib paths
1520   --with-incpath          additional places to look for include files
1521   --with-libpath          additional places to look for libraries
1522   --with-libraries        additional libraries to link with
1523   --with-devel            add development options
1524   --with-efence           link with -lefence for malloc() debugging
1525   --with-csops            add CSOps standard options
1526   --without-passwd        don't use passwd/shadow file for authentication
1527   --with-skey=DIR         enable S/Key support
1528   --with-opie=DIR         enable OPIE support
1529   --with-long-otp-prompt  use a two line OTP (skey/opie) prompt
1530   --with-SecurID[=DIR]    enable SecurID support
1531   --with-fwtk[=DIR]       enable FWTK AuthSRV support
1532   --with-kerb4[=DIR]      enable Kerberos IV support
1533   --with-kerb5[=DIR]      enable Kerberos V support
1534   --with-aixauth          enable AIX general authentication support
1535   --with-pam              enable PAM support
1536   --with-AFS              enable AFS support
1537   --with-DCE              enable DCE support
1538   --with-logincap         enable BSD login class support
1539   --with-bsdauth          enable BSD authentication support
1540   --with-project          enable Solaris project support
1541   --without-lecture       don't print lecture for first-time sudoer
1542   --with-logging          log via syslog, file, or both
1543   --with-logfac           syslog facility to log with (default is "local2")
1544   --with-goodpri          syslog priority for commands (def is "notice")
1545   --with-badpri           syslog priority for failures (def is "alert")
1546   --with-logpath          path to the sudo log file
1547   --with-loglen           maximum length of a log file line (default is 80)
1548   --with-ignore-dot       ignore '.' in the PATH
1549   --without-mail-if-no-user do not send mail if user not in sudoers
1550   --with-mail-if-no-host  send mail if user in sudoers but not for this host
1551   --with-mail-if-noperms  send mail if user not allowed to run command
1552   --with-mailto           who should get sudo mail (default is "root")
1553   --with-mailsubject      subject of sudo mail
1554   --with-passprompt       default password prompt
1555   --with-badpass-message  message the user sees when the password is wrong
1556   --with-fqdn             expect fully qualified hosts in sudoers
1557   --with-timedir          path to the sudo timestamp dir
1558   --with-sendmail=path    set path to sendmail
1559   --without-sendmail      do not send mail at all
1560   --with-sudoers-mode     mode of sudoers file (defaults to 0440)
1561   --with-sudoers-uid      uid that owns sudoers file (defaults to 0)
1562   --with-sudoers-gid      gid that owns sudoers file (defaults to 0)
1563   --with-umask            umask with which the prog should run (default is 022)
1564   --without-umask         Preserves the umask of the user invoking sudo.
1565   --with-runas-default    User to run commands as (default is "root")
1566   --with-exempt=group     no passwd needed for users in this group
1567   --with-editor=path      Default editor for visudo (defaults to vi)
1568   --with-env-editor       Use the environment variable EDITOR for visudo
1569   --with-passwd-tries     number of tries to enter password (default is 3)
1570   --with-timeout          minutes before sudo asks for passwd again (def is 5 minutes)
1571   --with-password-timeout passwd prompt timeout in minutes (default is 5 minutes)
1572   --with-tty-tickets      use a different ticket file for each tty
1573   --with-insults          insult the user for entering an incorrect password
1574   --with-all-insults      include all the sudo insult sets
1575   --with-classic-insults  include the insults from the "classic" sudo
1576   --with-csops-insults    include CSOps insults
1577   --with-hal-insults      include 2001-like insults
1578   --with-goons-insults    include the insults from the "Goon Show"
1579   --with-nsswitch[=PATH]  path to nsswitch.conf
1580   --with-ldap[=DIR]       enable LDAP support
1581   --with-ldap-conf-file   path to LDAP configuration file
1582   --with-ldap-secret-file path to LDAP secret password file
1583   --with-pc-insults       replace politically incorrect insults with less offensive ones
1584   --with-secure-path      override the user's path with a built-in one
1585   --without-interfaces    don't try to read the ip addr of ether interfaces
1586   --with-stow             properly handle GNU stow packaging
1587   --with-askpass=PATH     Fully qualified pathname of askpass helper
1588   --with-selinux          enable SELinux support
1589   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1590   --with-pic              try to use only PIC/non-PIC objects [default=use
1591                           both]
1592   --with-noexec=PATH      fully qualified pathname of sudo_noexec.so
1593
1594 Some influential environment variables:
1595   CC          C compiler command
1596   CFLAGS      C compiler flags
1597   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1598               nonstandard directory <lib dir>
1599   LIBS        libraries to pass to the linker, e.g. -l<library>
1600   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1601               you have headers in a nonstandard directory <include dir>
1602   CPP         C preprocessor
1603   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
1604               the first program found out of: `bison -y', `byacc', `yacc'.
1605   YFLAGS      The list of arguments that will be passed by default to $YACC.
1606               This script will default YFLAGS to the empty string to avoid a
1607               default value of `-d' given by some make applications.
1608
1609 Use these variables to override the choices made by `configure' or to help
1610 it to find libraries and programs with nonstandard names/locations.
1611
1612 _ACEOF
1613 ac_status=$?
1614 fi
1615
1616 if test "$ac_init_help" = "recursive"; then
1617   # If there are subdirs, report their specific --help.
1618   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1619     test -d "$ac_dir" || continue
1620     ac_builddir=.
1621
1622 case "$ac_dir" in
1623 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *)
1625   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1626   # A ".." for each directory in $ac_dir_suffix.
1627   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1628   case $ac_top_builddir_sub in
1629   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1630   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1631   esac ;;
1632 esac
1633 ac_abs_top_builddir=$ac_pwd
1634 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1635 # for backward compatibility:
1636 ac_top_builddir=$ac_top_build_prefix
1637
1638 case $srcdir in
1639   .)  # We are building in place.
1640     ac_srcdir=.
1641     ac_top_srcdir=$ac_top_builddir_sub
1642     ac_abs_top_srcdir=$ac_pwd ;;
1643   [\\/]* | ?:[\\/]* )  # Absolute name.
1644     ac_srcdir=$srcdir$ac_dir_suffix;
1645     ac_top_srcdir=$srcdir
1646     ac_abs_top_srcdir=$srcdir ;;
1647   *) # Relative name.
1648     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1649     ac_top_srcdir=$ac_top_build_prefix$srcdir
1650     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1651 esac
1652 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1653
1654     cd "$ac_dir" || { ac_status=$?; continue; }
1655     # Check for guested configure.
1656     if test -f "$ac_srcdir/configure.gnu"; then
1657       echo &&
1658       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1659     elif test -f "$ac_srcdir/configure"; then
1660       echo &&
1661       $SHELL "$ac_srcdir/configure" --help=recursive
1662     else
1663       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1664     fi || ac_status=$?
1665     cd "$ac_pwd" || { ac_status=$?; break; }
1666   done
1667 fi
1668
1669 test -n "$ac_init_help" && exit $ac_status
1670 if $ac_init_version; then
1671   cat <<\_ACEOF
1672 sudo configure 1.7
1673 generated by GNU Autoconf 2.61
1674
1675 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1676 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1677 This configure script is free software; the Free Software Foundation
1678 gives unlimited permission to copy, distribute and modify it.
1679 _ACEOF
1680   exit
1681 fi
1682 cat >config.log <<_ACEOF
1683 This file contains any messages produced by compilers while
1684 running configure, to aid debugging if configure makes a mistake.
1685
1686 It was created by sudo $as_me 1.7, which was
1687 generated by GNU Autoconf 2.61.  Invocation command line was
1688
1689   $ $0 $@
1690
1691 _ACEOF
1692 exec 5>>config.log
1693 {
1694 cat <<_ASUNAME
1695 ## --------- ##
1696 ## Platform. ##
1697 ## --------- ##
1698
1699 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1700 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1701 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1702 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1703 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1704
1705 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1706 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1707
1708 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1709 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1710 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1711 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1712 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1713 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1714 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1715
1716 _ASUNAME
1717
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1719 for as_dir in $PATH
1720 do
1721   IFS=$as_save_IFS
1722   test -z "$as_dir" && as_dir=.
1723   echo "PATH: $as_dir"
1724 done
1725 IFS=$as_save_IFS
1726
1727 } >&5
1728
1729 cat >&5 <<_ACEOF
1730
1731
1732 ## ----------- ##
1733 ## Core tests. ##
1734 ## ----------- ##
1735
1736 _ACEOF
1737
1738
1739 # Keep a trace of the command line.
1740 # Strip out --no-create and --no-recursion so they do not pile up.
1741 # Strip out --silent because we don't want to record it for future runs.
1742 # Also quote any args containing shell meta-characters.
1743 # Make two passes to allow for proper duplicate-argument suppression.
1744 ac_configure_args=
1745 ac_configure_args0=
1746 ac_configure_args1=
1747 ac_must_keep_next=false
1748 for ac_pass in 1 2
1749 do
1750   for ac_arg
1751   do
1752     case $ac_arg in
1753     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1754     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1755     | -silent | --silent | --silen | --sile | --sil)
1756       continue ;;
1757     *\'*)
1758       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1759     esac
1760     case $ac_pass in
1761     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1762     2)
1763       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1764       if test $ac_must_keep_next = true; then
1765         ac_must_keep_next=false # Got value, back to normal.
1766       else
1767         case $ac_arg in
1768           *=* | --config-cache | -C | -disable-* | --disable-* \
1769           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1770           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1771           | -with-* | --with-* | -without-* | --without-* | --x)
1772             case "$ac_configure_args0 " in
1773               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1774             esac
1775             ;;
1776           -* ) ac_must_keep_next=true ;;
1777         esac
1778       fi
1779       ac_configure_args="$ac_configure_args '$ac_arg'"
1780       ;;
1781     esac
1782   done
1783 done
1784 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1785 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1786
1787 # When interrupted or exit'd, cleanup temporary files, and complete
1788 # config.log.  We remove comments because anyway the quotes in there
1789 # would cause problems or look ugly.
1790 # WARNING: Use '\'' to represent an apostrophe within the trap.
1791 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1792 trap 'exit_status=$?
1793   # Save into config.log some information that might help in debugging.
1794   {
1795     echo
1796
1797     cat <<\_ASBOX
1798 ## ---------------- ##
1799 ## Cache variables. ##
1800 ## ---------------- ##
1801 _ASBOX
1802     echo
1803     # The following way of writing the cache mishandles newlines in values,
1804 (
1805   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1806     eval ac_val=\$$ac_var
1807     case $ac_val in #(
1808     *${as_nl}*)
1809       case $ac_var in #(
1810       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1811 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1812       esac
1813       case $ac_var in #(
1814       _ | IFS | as_nl) ;; #(
1815       *) $as_unset $ac_var ;;
1816       esac ;;
1817     esac
1818   done
1819   (set) 2>&1 |
1820     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1821     *${as_nl}ac_space=\ *)
1822       sed -n \
1823         "s/'\''/'\''\\\\'\'''\''/g;
1824           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1825       ;; #(
1826     *)
1827       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1828       ;;
1829     esac |
1830     sort
1831 )
1832     echo
1833
1834     cat <<\_ASBOX
1835 ## ----------------- ##
1836 ## Output variables. ##
1837 ## ----------------- ##
1838 _ASBOX
1839     echo
1840     for ac_var in $ac_subst_vars
1841     do
1842       eval ac_val=\$$ac_var
1843       case $ac_val in
1844       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1845       esac
1846       echo "$ac_var='\''$ac_val'\''"
1847     done | sort
1848     echo
1849
1850     if test -n "$ac_subst_files"; then
1851       cat <<\_ASBOX
1852 ## ------------------- ##
1853 ## File substitutions. ##
1854 ## ------------------- ##
1855 _ASBOX
1856       echo
1857       for ac_var in $ac_subst_files
1858       do
1859         eval ac_val=\$$ac_var
1860         case $ac_val in
1861         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1862         esac
1863         echo "$ac_var='\''$ac_val'\''"
1864       done | sort
1865       echo
1866     fi
1867
1868     if test -s confdefs.h; then
1869       cat <<\_ASBOX
1870 ## ----------- ##
1871 ## confdefs.h. ##
1872 ## ----------- ##
1873 _ASBOX
1874       echo
1875       cat confdefs.h
1876       echo
1877     fi
1878     test "$ac_signal" != 0 &&
1879       echo "$as_me: caught signal $ac_signal"
1880     echo "$as_me: exit $exit_status"
1881   } >&5
1882   rm -f core *.core core.conftest.* &&
1883     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884     exit $exit_status
1885 ' 0
1886 for ac_signal in 1 2 13 15; do
1887   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1888 done
1889 ac_signal=0
1890
1891 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1892 rm -f -r conftest* confdefs.h
1893
1894 # Predefined preprocessor variables.
1895
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1898 _ACEOF
1899
1900
1901 cat >>confdefs.h <<_ACEOF
1902 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1903 _ACEOF
1904
1905
1906 cat >>confdefs.h <<_ACEOF
1907 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 _ACEOF
1909
1910
1911 cat >>confdefs.h <<_ACEOF
1912 #define PACKAGE_STRING "$PACKAGE_STRING"
1913 _ACEOF
1914
1915
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1918 _ACEOF
1919
1920
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer explicitly selected file to automatically selected ones.
1923 if test -n "$CONFIG_SITE"; then
1924   set x "$CONFIG_SITE"
1925 elif test "x$prefix" != xNONE; then
1926   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1927 else
1928   set x "$ac_default_prefix/share/config.site" \
1929         "$ac_default_prefix/etc/config.site"
1930 fi
1931 shift
1932 for ac_site_file
1933 do
1934   if test -r "$ac_site_file"; then
1935     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1936 echo "$as_me: loading site script $ac_site_file" >&6;}
1937     sed 's/^/| /' "$ac_site_file" >&5
1938     . "$ac_site_file"
1939   fi
1940 done
1941
1942 if test -r "$cache_file"; then
1943   # Some versions of bash will fail to source /dev/null (special
1944   # files actually), so we avoid doing that.
1945   if test -f "$cache_file"; then
1946     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1947 echo "$as_me: loading cache $cache_file" >&6;}
1948     case $cache_file in
1949       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1950       *)                      . "./$cache_file";;
1951     esac
1952   fi
1953 else
1954   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1955 echo "$as_me: creating cache $cache_file" >&6;}
1956   >$cache_file
1957 fi
1958
1959 # Check that the precious variables saved in the cache have kept the same
1960 # value.
1961 ac_cache_corrupted=false
1962 for ac_var in $ac_precious_vars; do
1963   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1964   eval ac_new_set=\$ac_env_${ac_var}_set
1965   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1966   eval ac_new_val=\$ac_env_${ac_var}_value
1967   case $ac_old_set,$ac_new_set in
1968     set,)
1969       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1970 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1971       ac_cache_corrupted=: ;;
1972     ,set)
1973       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1974 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1975       ac_cache_corrupted=: ;;
1976     ,);;
1977     *)
1978       if test "x$ac_old_val" != "x$ac_new_val"; then
1979         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1982 echo "$as_me:   former value:  $ac_old_val" >&2;}
1983         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1984 echo "$as_me:   current value: $ac_new_val" >&2;}
1985         ac_cache_corrupted=:
1986       fi;;
1987   esac
1988   # Pass precious variables to config.status.
1989   if test "$ac_new_set" = set; then
1990     case $ac_new_val in
1991     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1992     *) ac_arg=$ac_var=$ac_new_val ;;
1993     esac
1994     case " $ac_configure_args " in
1995       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1996       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1997     esac
1998   fi
1999 done
2000 if $ac_cache_corrupted; then
2001   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2002 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2003   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2004 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2005    { (exit 1); exit 1; }; }
2006 fi
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032 ac_ext=c
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2037
2038
2039 ac_config_headers="$ac_config_headers config.h pathnames.h"
2040
2041 { echo "$as_me:$LINENO: Configuring Sudo version 1.7" >&5
2042 echo "$as_me: Configuring Sudo version 1.7" >&6;}
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
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108 timeout=5
2109 password_timeout=5
2110 sudo_umask=0022
2111 passprompt="Password:"
2112 long_otp_prompt=off
2113 lecture=once
2114 logfac=local2
2115 goodpri=notice
2116 badpri=alert
2117 loglen=80
2118 ignore_dot=off
2119 mail_no_user=on
2120 mail_no_host=off
2121 mail_no_perms=off
2122 mailto=root
2123 mailsub='*** SECURITY information for %h ***'
2124 badpass_message='Sorry, try again.'
2125 fqdn=off
2126 runas_default=root
2127 env_editor=off
2128 passwd_tries=3
2129 tty_tickets=off
2130 insults=off
2131 root_sudo=on
2132 path_info=on
2133 INSTALL_NOEXEC=
2134 devdir='$(srcdir)'
2135 PROGS="sudo visudo"
2136 : ${MANTYPE='man'}
2137 : ${mansrcdir='.'}
2138 : ${SUDOERS_MODE='0440'}
2139 : ${SUDOERS_UID='0'}
2140 : ${SUDOERS_GID='0'}
2141 DEV="#"
2142 LDAP="#"
2143 SELINUX="#"
2144 BAMAN='.\" '
2145 LCMAN='.\" '
2146 SEMAN='.\" '
2147 AUTH_OBJS=
2148 AUTH_REG=
2149 AUTH_EXCL=
2150 AUTH_EXCL_DEF=
2151 AUTH_DEF=passwd
2152
2153 CHECKSHADOW=true
2154 shadow_defs=
2155 shadow_funcs=
2156 shadow_libs=
2157 shadow_libs_optional=
2158
2159 if test X"$prefix" = X"NONE"; then
2160     test "$mandir" = '${datarootdir}/man' && mandir='$(prefix)/man'
2161 else
2162     test "$mandir" = '${datarootdir}/man' && mandir='$(datarootdir)/man'
2163 fi
2164 test "$bindir" = '${exec_prefix}/bin' && bindir='$(exec_prefix)/bin'
2165 test "$sbindir" = '${exec_prefix}/sbin' && sbindir='$(exec_prefix)/sbin'
2166 test "$sysconfdir" = '${prefix}/etc' -a X"$with_stow" != X"yes" && sysconfdir='/etc'
2167
2168
2169
2170 # Check whether --with-otp-only was given.
2171 if test "${with_otp_only+set}" = set; then
2172   withval=$with_otp_only; case $with_otp_only in
2173     yes)        with_passwd="no"
2174                 { echo "$as_me:$LINENO: --with-otp-only option deprecated, treating as --without-passwd" >&5
2175 echo "$as_me: --with-otp-only option deprecated, treating as --without-passwd" >&6;}
2176                 ;;
2177 esac
2178 fi
2179
2180
2181
2182 # Check whether --with-alertmail was given.
2183 if test "${with_alertmail+set}" = set; then
2184   withval=$with_alertmail; case $with_alertmail in
2185     *)          with_mailto="$with_alertmail"
2186                 { echo "$as_me:$LINENO: --with-alertmail option deprecated, treating as --mailto" >&5
2187 echo "$as_me: --with-alertmail option deprecated, treating as --mailto" >&6;}
2188                 ;;
2189 esac
2190 fi
2191
2192
2193
2194
2195 # Check whether --with-CC was given.
2196 if test "${with_CC+set}" = set; then
2197   withval=$with_CC; case $with_CC in
2198     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-CC an argument.\"" >&5
2199 echo "$as_me: error: \"must give --with-CC an argument.\"" >&2;}
2200    { (exit 1); exit 1; }; }
2201                 ;;
2202     no)         { { echo "$as_me:$LINENO: error: \"illegal argument: --without-CC.\"" >&5
2203 echo "$as_me: error: \"illegal argument: --without-CC.\"" >&2;}
2204    { (exit 1); exit 1; }; }
2205                 ;;
2206     *)          CC=$with_CC
2207                 ;;
2208 esac
2209 fi
2210
2211
2212
2213 # Check whether --with-rpath was given.
2214 if test "${with_rpath+set}" = set; then
2215   withval=$with_rpath; case $with_rpath in
2216     yes|no)     ;;
2217     *)          { { echo "$as_me:$LINENO: error: \"--with-rpath does not take an argument.\"" >&5
2218 echo "$as_me: error: \"--with-rpath does not take an argument.\"" >&2;}
2219    { (exit 1); exit 1; }; }
2220                 ;;
2221 esac
2222 fi
2223
2224
2225
2226 # Check whether --with-blibpath was given.
2227 if test "${with_blibpath+set}" = set; then
2228   withval=$with_blibpath; case $with_blibpath in
2229     yes|no)     ;;
2230     *)          { echo "$as_me:$LINENO: will pass -blibpath:${with_blibpath} to the loader." >&5
2231 echo "$as_me: will pass -blibpath:${with_blibpath} to the loader." >&6;}
2232                 ;;
2233 esac
2234 fi
2235
2236
2237
2238 # Check whether --with-incpath was given.
2239 if test "${with_incpath+set}" = set; then
2240   withval=$with_incpath; case $with_incpath in
2241     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-incpath an argument.\"" >&5
2242 echo "$as_me: error: \"must give --with-incpath an argument.\"" >&2;}
2243    { (exit 1); exit 1; }; }
2244                 ;;
2245     no)         { { echo "$as_me:$LINENO: error: \"--without-incpath not supported.\"" >&5
2246 echo "$as_me: error: \"--without-incpath not supported.\"" >&2;}
2247    { (exit 1); exit 1; }; }
2248                 ;;
2249     *)          { echo "$as_me:$LINENO: Adding ${with_incpath} to CPPFLAGS" >&5
2250 echo "$as_me: Adding ${with_incpath} to CPPFLAGS" >&6;}
2251                 for i in ${with_incpath}; do
2252                     CPPFLAGS="${CPPFLAGS} -I${i}"
2253                 done
2254                 ;;
2255 esac
2256 fi
2257
2258
2259
2260 # Check whether --with-libpath was given.
2261 if test "${with_libpath+set}" = set; then
2262   withval=$with_libpath; case $with_libpath in
2263     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libpath an argument.\"" >&5
2264 echo "$as_me: error: \"must give --with-libpath an argument.\"" >&2;}
2265    { (exit 1); exit 1; }; }
2266                 ;;
2267     no)         { { echo "$as_me:$LINENO: error: \"--without-libpath not supported.\"" >&5
2268 echo "$as_me: error: \"--without-libpath not supported.\"" >&2;}
2269    { (exit 1); exit 1; }; }
2270                 ;;
2271     *)          { echo "$as_me:$LINENO: Adding ${with_libpath} to LDFLAGS" >&5
2272 echo "$as_me: Adding ${with_libpath} to LDFLAGS" >&6;}
2273                 ;;
2274 esac
2275 fi
2276
2277
2278
2279 # Check whether --with-libraries was given.
2280 if test "${with_libraries+set}" = set; then
2281   withval=$with_libraries; case $with_libraries in
2282     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-libraries an argument.\"" >&5
2283 echo "$as_me: error: \"must give --with-libraries an argument.\"" >&2;}
2284    { (exit 1); exit 1; }; }
2285                 ;;
2286     no)         { { echo "$as_me:$LINENO: error: \"--without-libraries not supported.\"" >&5
2287 echo "$as_me: error: \"--without-libraries not supported.\"" >&2;}
2288    { (exit 1); exit 1; }; }
2289                 ;;
2290     *)          { echo "$as_me:$LINENO: Adding ${with_libraries} to LIBS" >&5
2291 echo "$as_me: Adding ${with_libraries} to LIBS" >&6;}
2292                 ;;
2293 esac
2294 fi
2295
2296
2297
2298 # Check whether --with-devel was given.
2299 if test "${with_devel+set}" = set; then
2300   withval=$with_devel; case $with_devel in
2301     yes)        { echo "$as_me:$LINENO: Setting up for development: -Wall, flex, yacc" >&5
2302 echo "$as_me: Setting up for development: -Wall, flex, yacc" >&6;}
2303                 PROGS="${PROGS} testsudoers"
2304                 OSDEFS="${OSDEFS} -DSUDO_DEVEL"
2305                 DEV=""
2306                 devdir=.
2307                 ;;
2308     no)         ;;
2309     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&5
2310 echo "$as_me: WARNING: Ignoring unknown argument to --with-devel: $with_devel" >&2;}
2311                 ;;
2312 esac
2313 fi
2314
2315
2316
2317 # Check whether --with-efence was given.
2318 if test "${with_efence+set}" = set; then
2319   withval=$with_efence; case $with_efence in
2320     yes)        { echo "$as_me:$LINENO: Sudo will link with -lefence (Electric Fence)" >&5
2321 echo "$as_me: Sudo will link with -lefence (Electric Fence)" >&6;}
2322                 LIBS="${LIBS} -lefence"
2323                 if test -f /usr/local/lib/libefence.a; then
2324                     with_libpath="${with_libpath} /usr/local/lib"
2325                 fi
2326                 ;;
2327     no)         ;;
2328     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&5
2329 echo "$as_me: WARNING: Ignoring unknown argument to --with-efence: $with_efence" >&2;}
2330                 ;;
2331 esac
2332 fi
2333
2334
2335
2336 # Check whether --with-csops was given.
2337 if test "${with_csops+set}" = set; then
2338   withval=$with_csops; case $with_csops in
2339     yes)        { echo "$as_me:$LINENO: Adding CSOps standard options" >&5
2340 echo "$as_me: Adding CSOps standard options" >&6;}
2341                 CHECKSIA=false
2342                 with_ignore_dot=yes
2343                 insults=on
2344                 with_classic_insults=yes
2345                 with_csops_insults=yes
2346                 with_env_editor=yes
2347                 : ${mansectsu='8'}
2348                 : ${mansectform='5'}
2349                 ;;
2350     no)         ;;
2351     *)          { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&5
2352 echo "$as_me: WARNING: Ignoring unknown argument to --with-csops: $with_csops" >&2;}
2353                 ;;
2354 esac
2355 fi
2356
2357
2358
2359 # Check whether --with-passwd was given.
2360 if test "${with_passwd+set}" = set; then
2361   withval=$with_passwd; case $with_passwd in
2362     yes|no)     { echo "$as_me:$LINENO: checking whether to use shadow/passwd file authentication" >&5
2363 echo $ECHO_N "checking whether to use shadow/passwd file authentication... $ECHO_C" >&6; }
2364                 { echo "$as_me:$LINENO: result: $with_passwd" >&5
2365 echo "${ECHO_T}$with_passwd" >&6; }
2366                 AUTH_DEF=""
2367                 test "$with_passwd" = "yes" && AUTH_REG="$AUTH_REG passwd"
2368                 ;;
2369     *)          { { echo "$as_me:$LINENO: error: \"Sorry, --with-passwd does not take an argument.\"" >&5
2370 echo "$as_me: error: \"Sorry, --with-passwd does not take an argument.\"" >&2;}
2371    { (exit 1); exit 1; }; }
2372                 ;;
2373 esac
2374 fi
2375
2376
2377
2378 # Check whether --with-skey was given.
2379 if test "${with_skey+set}" = set; then
2380   withval=$with_skey; case $with_skey in
2381     no)         with_skey=""
2382                 ;;
2383     *)          cat >>confdefs.h <<\_ACEOF
2384 #define HAVE_SKEY 1
2385 _ACEOF
2386
2387                 { echo "$as_me:$LINENO: checking whether to try S/Key authentication" >&5
2388 echo $ECHO_N "checking whether to try S/Key authentication... $ECHO_C" >&6; }
2389                 { echo "$as_me:$LINENO: result: yes" >&5
2390 echo "${ECHO_T}yes" >&6; }
2391                 AUTH_REG="$AUTH_REG S/Key"
2392                 ;;
2393 esac
2394 fi
2395
2396
2397
2398 # Check whether --with-opie was given.
2399 if test "${with_opie+set}" = set; then
2400   withval=$with_opie; case $with_opie in
2401     no)         with_opie=""
2402                 ;;
2403     *)          cat >>confdefs.h <<\_ACEOF
2404 #define HAVE_OPIE 1
2405 _ACEOF
2406
2407                 { echo "$as_me:$LINENO: checking whether to try NRL OPIE authentication" >&5
2408 echo $ECHO_N "checking whether to try NRL OPIE authentication... $ECHO_C" >&6; }
2409                 { echo "$as_me:$LINENO: result: yes" >&5
2410 echo "${ECHO_T}yes" >&6; }
2411                 AUTH_REG="$AUTH_REG NRL_OPIE"
2412                 ;;
2413 esac
2414 fi
2415
2416
2417
2418 # Check whether --with-long-otp-prompt was given.
2419 if test "${with_long_otp_prompt+set}" = set; then
2420   withval=$with_long_otp_prompt; case $with_long_otp_prompt in
2421     yes)        cat >>confdefs.h <<\_ACEOF
2422 #define LONG_OTP_PROMPT 1
2423 _ACEOF
2424
2425                 { echo "$as_me:$LINENO: checking whether to use a two line prompt for OTP authentication" >&5
2426 echo $ECHO_N "checking whether to use a two line prompt for OTP authentication... $ECHO_C" >&6; }
2427                 { echo "$as_me:$LINENO: result: yes" >&5
2428 echo "${ECHO_T}yes" >&6; }
2429                 long_otp_prompt=on
2430                 ;;
2431     no)         long_otp_prompt=off
2432                 ;;
2433     *)          { { echo "$as_me:$LINENO: error: \"--with-long-otp-prompt does not take an argument.\"" >&5
2434 echo "$as_me: error: \"--with-long-otp-prompt does not take an argument.\"" >&2;}
2435    { (exit 1); exit 1; }; }
2436                 ;;
2437 esac
2438 fi
2439
2440
2441
2442 # Check whether --with-SecurID was given.
2443 if test "${with_SecurID+set}" = set; then
2444   withval=$with_SecurID; case $with_SecurID in
2445     no)         with_SecurID="";;
2446     *)          cat >>confdefs.h <<\_ACEOF
2447 #define HAVE_SECURID 1
2448 _ACEOF
2449
2450                 { echo "$as_me:$LINENO: checking whether to use SecurID for authentication" >&5
2451 echo $ECHO_N "checking whether to use SecurID for authentication... $ECHO_C" >&6; }
2452                 { echo "$as_me:$LINENO: result: yes" >&5
2453 echo "${ECHO_T}yes" >&6; }
2454                 AUTH_EXCL="$AUTH_EXCL SecurID"
2455                 ;;
2456 esac
2457 fi
2458
2459
2460
2461 # Check whether --with-fwtk was given.
2462 if test "${with_fwtk+set}" = set; then
2463   withval=$with_fwtk; case $with_fwtk in
2464     no)         with_fwtk="";;
2465     *)          cat >>confdefs.h <<\_ACEOF
2466 #define HAVE_FWTK 1
2467 _ACEOF
2468
2469                 { echo "$as_me:$LINENO: checking whether to use FWTK AuthSRV for authentication" >&5
2470 echo $ECHO_N "checking whether to use FWTK AuthSRV for authentication... $ECHO_C" >&6; }
2471                 { echo "$as_me:$LINENO: result: yes" >&5
2472 echo "${ECHO_T}yes" >&6; }
2473                 AUTH_EXCL="$AUTH_EXCL FWTK"
2474                 ;;
2475 esac
2476 fi
2477
2478
2479
2480 # Check whether --with-kerb4 was given.
2481 if test "${with_kerb4+set}" = set; then
2482   withval=$with_kerb4; case $with_kerb4 in
2483     no)         with_kerb4="";;
2484     *)          { echo "$as_me:$LINENO: checking whether to try kerberos IV authentication" >&5
2485 echo $ECHO_N "checking whether to try kerberos IV authentication... $ECHO_C" >&6; }
2486                 { echo "$as_me:$LINENO: result: yes" >&5
2487 echo "${ECHO_T}yes" >&6; }
2488                 AUTH_REG="$AUTH_REG kerb4"
2489                 ;;
2490 esac
2491 fi
2492
2493
2494
2495 # Check whether --with-kerb5 was given.
2496 if test "${with_kerb5+set}" = set; then
2497   withval=$with_kerb5; case $with_kerb5 in
2498     no)         with_kerb5="";;
2499     *)          { echo "$as_me:$LINENO: checking whether to try Kerberos V authentication" >&5
2500 echo $ECHO_N "checking whether to try Kerberos V authentication... $ECHO_C" >&6; }
2501                 { echo "$as_me:$LINENO: result: yes" >&5
2502 echo "${ECHO_T}yes" >&6; }
2503                 AUTH_REG="$AUTH_REG kerb5"
2504                 ;;
2505 esac
2506 fi
2507
2508
2509
2510 # Check whether --with-aixauth was given.
2511 if test "${with_aixauth+set}" = set; then
2512   withval=$with_aixauth; case $with_aixauth in
2513     yes)        AUTH_EXCL="$AUTH_EXCL AIX_AUTH";;
2514     no)         ;;
2515     *)          { { echo "$as_me:$LINENO: error: \"--with-aixauth does not take an argument.\"" >&5
2516 echo "$as_me: error: \"--with-aixauth does not take an argument.\"" >&2;}
2517    { (exit 1); exit 1; }; }
2518                 ;;
2519 esac
2520 fi
2521
2522
2523
2524 # Check whether --with-pam was given.
2525 if test "${with_pam+set}" = set; then
2526   withval=$with_pam; case $with_pam in
2527     yes)        AUTH_EXCL="$AUTH_EXCL PAM";;
2528     no)         ;;
2529     *)          { { echo "$as_me:$LINENO: error: \"--with-pam does not take an argument.\"" >&5
2530 echo "$as_me: error: \"--with-pam does not take an argument.\"" >&2;}
2531    { (exit 1); exit 1; }; }
2532                 ;;
2533 esac
2534 fi
2535
2536
2537
2538 # Check whether --with-AFS was given.
2539 if test "${with_AFS+set}" = set; then
2540   withval=$with_AFS; case $with_AFS in
2541     yes)        cat >>confdefs.h <<\_ACEOF
2542 #define HAVE_AFS 1
2543 _ACEOF
2544
2545                 { echo "$as_me:$LINENO: checking whether to try AFS (kerberos) authentication" >&5
2546 echo $ECHO_N "checking whether to try AFS (kerberos) authentication... $ECHO_C" >&6; }
2547                 { echo "$as_me:$LINENO: result: yes" >&5
2548 echo "${ECHO_T}yes" >&6; }
2549                 AUTH_REG="$AUTH_REG AFS"
2550                 ;;
2551     no)         ;;
2552     *)          { { echo "$as_me:$LINENO: error: \"--with-AFS does not take an argument.\"" >&5
2553 echo "$as_me: error: \"--with-AFS does not take an argument.\"" >&2;}
2554    { (exit 1); exit 1; }; }
2555                 ;;
2556 esac
2557 fi
2558
2559
2560
2561 # Check whether --with-DCE was given.
2562 if test "${with_DCE+set}" = set; then
2563   withval=$with_DCE; case $with_DCE in
2564     yes)        cat >>confdefs.h <<\_ACEOF
2565 #define HAVE_DCE 1
2566 _ACEOF
2567
2568                 { echo "$as_me:$LINENO: checking whether to try DCE (kerberos) authentication" >&5
2569 echo $ECHO_N "checking whether to try DCE (kerberos) authentication... $ECHO_C" >&6; }
2570                 { echo "$as_me:$LINENO: result: yes" >&5
2571 echo "${ECHO_T}yes" >&6; }
2572                 AUTH_REG="$AUTH_REG DCE"
2573                 ;;
2574     no)         ;;
2575     *)          { { echo "$as_me:$LINENO: error: \"--with-DCE does not take an argument.\"" >&5
2576 echo "$as_me: error: \"--with-DCE does not take an argument.\"" >&2;}
2577    { (exit 1); exit 1; }; }
2578                 ;;
2579 esac
2580 fi
2581
2582
2583
2584 # Check whether --with-logincap was given.
2585 if test "${with_logincap+set}" = set; then
2586   withval=$with_logincap; case $with_logincap in
2587     yes|no)     ;;
2588     *)          { { echo "$as_me:$LINENO: error: \"--with-logincap does not take an argument.\"" >&5
2589 echo "$as_me: error: \"--with-logincap does not take an argument.\"" >&2;}
2590    { (exit 1); exit 1; }; }
2591                 ;;
2592 esac
2593 fi
2594
2595
2596
2597 # Check whether --with-bsdauth was given.
2598 if test "${with_bsdauth+set}" = set; then
2599   withval=$with_bsdauth; case $with_bsdauth in
2600     yes)        AUTH_EXCL="$AUTH_EXCL BSD_AUTH";;
2601     no)         ;;
2602     *)          { { echo "$as_me:$LINENO: error: \"--with-bsdauth does not take an argument.\"" >&5
2603 echo "$as_me: error: \"--with-bsdauth does not take an argument.\"" >&2;}
2604    { (exit 1); exit 1; }; }
2605                 ;;
2606 esac
2607 fi
2608
2609
2610
2611 # Check whether --with-project was given.
2612 if test "${with_project+set}" = set; then
2613   withval=$with_project; case $with_project in
2614     yes|no)     ;;
2615     no) ;;
2616     *)          { { echo "$as_me:$LINENO: error: \"--with-project does not take an argument.\"" >&5
2617 echo "$as_me: error: \"--with-project does not take an argument.\"" >&2;}
2618    { (exit 1); exit 1; }; }
2619                 ;;
2620 esac
2621 fi
2622
2623
2624 { echo "$as_me:$LINENO: checking whether to lecture users the first time they run sudo" >&5
2625 echo $ECHO_N "checking whether to lecture users the first time they run sudo... $ECHO_C" >&6; }
2626
2627 # Check whether --with-lecture was given.
2628 if test "${with_lecture+set}" = set; then
2629   withval=$with_lecture; case $with_lecture in
2630     yes|short|always)   lecture=once
2631                 ;;
2632     no|none|never)      lecture=never
2633                 ;;
2634     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-lecture: $with_lecture\"" >&5
2635 echo "$as_me: error: \"unknown argument to --with-lecture: $with_lecture\"" >&2;}
2636    { (exit 1); exit 1; }; }
2637                 ;;
2638 esac
2639 fi
2640
2641 if test "$lecture" = "once"; then
2642     { echo "$as_me:$LINENO: result: yes" >&5
2643 echo "${ECHO_T}yes" >&6; }
2644 else
2645     cat >>confdefs.h <<\_ACEOF
2646 #define NO_LECTURE 1
2647 _ACEOF
2648
2649     { echo "$as_me:$LINENO: result: no" >&5
2650 echo "${ECHO_T}no" >&6; }
2651 fi
2652
2653 { echo "$as_me:$LINENO: checking whether sudo should log via syslog or to a file by default" >&5
2654 echo $ECHO_N "checking whether sudo should log via syslog or to a file by default... $ECHO_C" >&6; }
2655
2656 # Check whether --with-logging was given.
2657 if test "${with_logging+set}" = set; then
2658   withval=$with_logging; case $with_logging in
2659     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logging an argument.\"" >&5
2660 echo "$as_me: error: \"must give --with-logging an argument.\"" >&2;}
2661    { (exit 1); exit 1; }; }
2662                 ;;
2663     no)         { { echo "$as_me:$LINENO: error: \"--without-logging not supported.\"" >&5
2664 echo "$as_me: error: \"--without-logging not supported.\"" >&2;}
2665    { (exit 1); exit 1; }; }
2666                 ;;
2667     syslog)     cat >>confdefs.h <<\_ACEOF
2668 #define LOGGING SLOG_SYSLOG
2669 _ACEOF
2670
2671                 { echo "$as_me:$LINENO: result: syslog" >&5
2672 echo "${ECHO_T}syslog" >&6; }
2673                 ;;
2674     file)       cat >>confdefs.h <<\_ACEOF
2675 #define LOGGING SLOG_FILE
2676 _ACEOF
2677
2678                 { echo "$as_me:$LINENO: result: file" >&5
2679 echo "${ECHO_T}file" >&6; }
2680                 ;;
2681     both)       cat >>confdefs.h <<\_ACEOF
2682 #define LOGGING SLOG_BOTH
2683 _ACEOF
2684
2685                 { echo "$as_me:$LINENO: result: both" >&5
2686 echo "${ECHO_T}both" >&6; }
2687                 ;;
2688     *)          { { echo "$as_me:$LINENO: error: \"unknown argument to --with-logging: $with_logging\"" >&5
2689 echo "$as_me: error: \"unknown argument to --with-logging: $with_logging\"" >&2;}
2690    { (exit 1); exit 1; }; }
2691                 ;;
2692 esac
2693 else
2694   cat >>confdefs.h <<\_ACEOF
2695 #define LOGGING SLOG_SYSLOG
2696 _ACEOF
2697  { echo "$as_me:$LINENO: result: syslog" >&5
2698 echo "${ECHO_T}syslog" >&6; }
2699 fi
2700
2701
2702 { echo "$as_me:$LINENO: checking which syslog facility sudo should log with" >&5
2703 echo $ECHO_N "checking which syslog facility sudo should log with... $ECHO_C" >&6; }
2704
2705 # Check whether --with-logfac was given.
2706 if test "${with_logfac+set}" = set; then
2707   withval=$with_logfac; case $with_logfac in
2708     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logfac an argument.\"" >&5
2709 echo "$as_me: error: \"must give --with-logfac an argument.\"" >&2;}
2710    { (exit 1); exit 1; }; }
2711                 ;;
2712     no)         { { echo "$as_me:$LINENO: error: \"--without-logfac not supported.\"" >&5
2713 echo "$as_me: error: \"--without-logfac not supported.\"" >&2;}
2714    { (exit 1); exit 1; }; }
2715                 ;;
2716     authpriv|auth|daemon|user|local0|local1|local2|local3|local4|local5|local6|local7)          logfac=$with_logfac
2717                 ;;
2718     *)          { { echo "$as_me:$LINENO: error: \"$with_logfac is not a supported syslog facility.\"" >&5
2719 echo "$as_me: error: \"$with_logfac is not a supported syslog facility.\"" >&2;}
2720    { (exit 1); exit 1; }; }
2721                 ;;
2722 esac
2723 fi
2724
2725
2726 cat >>confdefs.h <<_ACEOF
2727 #define LOGFAC "$logfac"
2728 _ACEOF
2729
2730 { echo "$as_me:$LINENO: result: $logfac" >&5
2731 echo "${ECHO_T}$logfac" >&6; }
2732
2733 { echo "$as_me:$LINENO: checking at which syslog priority to log commands" >&5
2734 echo $ECHO_N "checking at which syslog priority to log commands... $ECHO_C" >&6; }
2735
2736 # Check whether --with-goodpri was given.
2737 if test "${with_goodpri+set}" = set; then
2738   withval=$with_goodpri; case $with_goodpri in
2739     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-goodpri an argument.\"" >&5
2740 echo "$as_me: error: \"must give --with-goodpri an argument.\"" >&2;}
2741    { (exit 1); exit 1; }; }
2742                 ;;
2743     no)         { { echo "$as_me:$LINENO: error: \"--without-goodpri not supported.\"" >&5
2744 echo "$as_me: error: \"--without-goodpri not supported.\"" >&2;}
2745    { (exit 1); exit 1; }; }
2746                 ;;
2747     alert|crit|debug|emerg|err|info|notice|warning)
2748                 goodpri=$with_goodpri
2749                 ;;
2750     *)          { { echo "$as_me:$LINENO: error: \"$with_goodpri is not a supported syslog priority.\"" >&5
2751 echo "$as_me: error: \"$with_goodpri is not a supported syslog priority.\"" >&2;}
2752    { (exit 1); exit 1; }; }
2753                 ;;
2754 esac
2755 fi
2756
2757
2758 cat >>confdefs.h <<_ACEOF
2759 #define PRI_SUCCESS "$goodpri"
2760 _ACEOF
2761
2762 { echo "$as_me:$LINENO: result: $goodpri" >&5
2763 echo "${ECHO_T}$goodpri" >&6; }
2764
2765 { echo "$as_me:$LINENO: checking at which syslog priority to log failures" >&5
2766 echo $ECHO_N "checking at which syslog priority to log failures... $ECHO_C" >&6; }
2767
2768 # Check whether --with-badpri was given.
2769 if test "${with_badpri+set}" = set; then
2770   withval=$with_badpri; case $with_badpri in
2771     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-badpri an argument.\"" >&5
2772 echo "$as_me: error: \"must give --with-badpri an argument.\"" >&2;}
2773    { (exit 1); exit 1; }; }
2774                 ;;
2775     no)         { { echo "$as_me:$LINENO: error: \"--without-badpri not supported.\"" >&5
2776 echo "$as_me: error: \"--without-badpri not supported.\"" >&2;}
2777    { (exit 1); exit 1; }; }
2778                 ;;
2779     alert|crit|debug|emerg|err|info|notice|warning)
2780                 badpri=$with_badpri
2781                 ;;
2782     *)          { { echo "$as_me:$LINENO: error: $with_badpri is not a supported syslog priority." >&5
2783 echo "$as_me: error: $with_badpri is not a supported syslog priority." >&2;}
2784    { (exit 1); exit 1; }; }
2785                 ;;
2786 esac
2787 fi
2788
2789
2790 cat >>confdefs.h <<_ACEOF
2791 #define PRI_FAILURE "$badpri"
2792 _ACEOF
2793
2794 { echo "$as_me:$LINENO: result: $badpri" >&5
2795 echo "${ECHO_T}$badpri" >&6; }
2796
2797
2798 # Check whether --with-logpath was given.
2799 if test "${with_logpath+set}" = set; then
2800   withval=$with_logpath; case $with_logpath in
2801     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-logpath an argument.\"" >&5
2802 echo "$as_me: error: \"must give --with-logpath an argument.\"" >&2;}
2803    { (exit 1); exit 1; }; }
2804                 ;;
2805     no)         { { echo "$as_me:$LINENO: error: \"--without-logpath not supported.\"" >&5
2806 echo "$as_me: error: \"--without-logpath not supported.\"" >&2;}
2807    { (exit 1); exit 1; }; }
2808                 ;;
2809 esac
2810 fi
2811
2812
2813 { echo "$as_me:$LINENO: checking how long a line in the log file should be" >&5
2814 echo $ECHO_N "checking how long a line in the log file should be... $ECHO_C" >&6; }
2815
2816 # Check whether --with-loglen was given.
2817 if test "${with_loglen+set}" = set; then
2818   withval=$with_loglen; case $with_loglen in
2819     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-loglen an argument.\"" >&5
2820 echo "$as_me: error: \"must give --with-loglen an argument.\"" >&2;}
2821    { (exit 1); exit 1; }; }
2822                 ;;
2823     no)         { { echo "$as_me:$LINENO: error: \"--without-loglen not supported.\"" >&5
2824 echo "$as_me: error: \"--without-loglen not supported.\"" >&2;}
2825    { (exit 1); exit 1; }; }
2826                 ;;
2827     [0-9]*)     loglen=$with_loglen
2828                 ;;
2829     *)          { { echo "$as_me:$LINENO: error: \"you must enter a number, not $with_loglen\"" >&5
2830 echo "$as_me: error: \"you must enter a number, not $with_loglen\"" >&2;}
2831    { (exit 1); exit 1; }; }
2832                 ;;
2833 esac
2834 fi
2835
2836
2837 cat >>confdefs.h <<_ACEOF
2838 #define MAXLOGFILELEN $loglen
2839 _ACEOF
2840
2841 { echo "$as_me:$LINENO: result: $loglen" >&5
2842 echo "${ECHO_T}$loglen" >&6; }
2843
2844 { echo "$as_me:$LINENO: checking whether sudo should ignore '.' or '' in \$PATH" >&5
2845 echo $ECHO_N "checking whether sudo should ignore '.' or '' in \$PATH... $ECHO_C" >&6; }
2846
2847 # Check whether --with-ignore-dot was given.
2848 if test "${with_ignore_dot+set}" = set; then
2849   withval=$with_ignore_dot; case $with_ignore_dot in
2850     yes)        ignore_dot=on
2851                 ;;
2852     no)         ignore_dot=off
2853                 ;;
2854     *)          { { echo "$as_me:$LINENO: error: \"--with-ignore-dot does not take an argument.\"" >&5
2855 echo "$as_me: error: \"--with-ignore-dot does not take an argument.\"" >&2;}
2856    { (exit 1); exit 1; }; }
2857                 ;;
2858 esac
2859 fi
2860
2861 if test "$ignore_dot" = "on"; then
2862     cat >>confdefs.h <<\_ACEOF
2863 #define IGNORE_DOT_PATH 1
2864 _ACEOF
2865
2866     { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2868 else
2869     { echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6; }
2871 fi
2872
2873 { echo "$as_me:$LINENO: checking whether to send mail when a user is not in sudoers" >&5
2874 echo $ECHO_N "checking whether to send mail when a user is not in sudoers... $ECHO_C" >&6; }
2875
2876 # Check whether --with-mail-if-no-user was given.
2877 if test "${with_mail_if_no_user+set}" = set; then
2878   withval=$with_mail_if_no_user; case $with_mail_if_no_user in
2879     yes)        mail_no_user=on
2880                 ;;
2881     no)         mail_no_user=off
2882                 ;;
2883     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-user does not take an argument.\"" >&5
2884 echo "$as_me: error: \"--with-mail-if-no-user does not take an argument.\"" >&2;}
2885    { (exit 1); exit 1; }; }
2886                 ;;
2887 esac
2888 fi
2889
2890 if test "$mail_no_user" = "on"; then
2891     cat >>confdefs.h <<\_ACEOF
2892 #define SEND_MAIL_WHEN_NO_USER 1
2893 _ACEOF
2894
2895     { echo "$as_me:$LINENO: result: yes" >&5
2896 echo "${ECHO_T}yes" >&6; }
2897 else
2898     { echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6; }
2900 fi
2901
2902 { echo "$as_me:$LINENO: checking whether to send mail when user listed but not for this host" >&5
2903 echo $ECHO_N "checking whether to send mail when user listed but not for this host... $ECHO_C" >&6; }
2904
2905 # Check whether --with-mail-if-no-host was given.
2906 if test "${with_mail_if_no_host+set}" = set; then
2907   withval=$with_mail_if_no_host; case $with_mail_if_no_host in
2908     yes)        mail_no_host=on
2909                 ;;
2910     no)         mail_no_host=off
2911                 ;;
2912     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-no-host does not take an argument.\"" >&5
2913 echo "$as_me: error: \"--with-mail-if-no-host does not take an argument.\"" >&2;}
2914    { (exit 1); exit 1; }; }
2915                 ;;
2916 esac
2917 fi
2918
2919 if test "$mail_no_host" = "on"; then
2920     cat >>confdefs.h <<\_ACEOF
2921 #define SEND_MAIL_WHEN_NO_HOST 1
2922 _ACEOF
2923
2924     { echo "$as_me:$LINENO: result: yes" >&5
2925 echo "${ECHO_T}yes" >&6; }
2926 else
2927     { echo "$as_me:$LINENO: result: no" >&5
2928 echo "${ECHO_T}no" >&6; }
2929 fi
2930
2931 { echo "$as_me:$LINENO: checking whether to send mail when a user tries a disallowed command" >&5
2932 echo $ECHO_N "checking whether to send mail when a user tries a disallowed command... $ECHO_C" >&6; }
2933
2934 # Check whether --with-mail-if-noperms was given.
2935 if test "${with_mail_if_noperms+set}" = set; then
2936   withval=$with_mail_if_noperms; case $with_mail_if_noperms in
2937     yes)        mail_noperms=on
2938                 ;;
2939     no)         mail_noperms=off
2940                 ;;
2941     *)          { { echo "$as_me:$LINENO: error: \"--with-mail-if-noperms does not take an argument.\"" >&5
2942 echo "$as_me: error: \"--with-mail-if-noperms does not take an argument.\"" >&2;}
2943    { (exit 1); exit 1; }; }
2944                 ;;
2945 esac
2946 fi
2947
2948 if test "$mail_noperms" = "on"; then
2949     cat >>confdefs.h <<\_ACEOF
2950 #define SEND_MAIL_WHEN_NOT_OK 1
2951 _ACEOF
2952
2953     { echo "$as_me:$LINENO: result: yes" >&5
2954 echo "${ECHO_T}yes" >&6; }
2955 else
2956     { echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6; }
2958 fi
2959
2960 { echo "$as_me:$LINENO: checking who should get the mail that sudo sends" >&5
2961 echo $ECHO_N "checking who should get the mail that sudo sends... $ECHO_C" >&6; }
2962
2963 # Check whether --with-mailto was given.
2964 if test "${with_mailto+set}" = set; then
2965   withval=$with_mailto; case $with_mailto in
2966     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailto an argument.\"" >&5
2967 echo "$as_me: error: \"must give --with-mailto an argument.\"" >&2;}
2968    { (exit 1); exit 1; }; }
2969                 ;;
2970     no)         { { echo "$as_me:$LINENO: error: \"--without-mailto not supported.\"" >&5
2971 echo "$as_me: error: \"--without-mailto not supported.\"" >&2;}
2972    { (exit 1); exit 1; }; }
2973                 ;;
2974     *)          mailto=$with_mailto
2975                 ;;
2976 esac
2977 fi
2978
2979
2980 cat >>confdefs.h <<_ACEOF
2981 #define MAILTO "$mailto"
2982 _ACEOF
2983
2984 { echo "$as_me:$LINENO: result: $mailto" >&5
2985 echo "${ECHO_T}$mailto" >&6; }
2986
2987
2988 # Check whether --with-mailsubject was given.
2989 if test "${with_mailsubject+set}" = set; then
2990   withval=$with_mailsubject; case $with_mailsubject in
2991     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-mailsubject an argument.\"" >&5
2992 echo "$as_me: error: \"must give --with-mailsubject an argument.\"" >&2;}
2993    { (exit 1); exit 1; }; }
2994                 ;;
2995     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-mailsubject not supported." >&5
2996 echo "$as_me: WARNING: Sorry, --without-mailsubject not supported." >&2;}
2997                 ;;
2998     *)          mailsub="$with_mailsubject"
2999                 { echo "$as_me:$LINENO: checking sudo mail subject" >&5
3000 echo $ECHO_N "checking sudo mail subject... $ECHO_C" >&6; }
3001                 { echo "$as_me:$LINENO: result: Using alert mail subject: $mailsub" >&5
3002 echo "${ECHO_T}Using alert mail subject: $mailsub" >&6; }
3003                 ;;
3004 esac
3005 fi
3006
3007
3008 cat >>confdefs.h <<_ACEOF
3009 #define MAILSUBJECT "$mailsub"
3010 _ACEOF
3011
3012
3013 { echo "$as_me:$LINENO: checking for bad password prompt" >&5
3014 echo $ECHO_N "checking for bad password prompt... $ECHO_C" >&6; }
3015
3016 # Check whether --with-passprompt was given.
3017 if test "${with_passprompt+set}" = set; then
3018   withval=$with_passprompt; case $with_passprompt in
3019     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-passprompt an argument.\"" >&5
3020 echo "$as_me: error: \"must give --with-passprompt an argument.\"" >&2;}
3021    { (exit 1); exit 1; }; }
3022                 ;;
3023     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-passprompt not supported." >&5
3024 echo "$as_me: WARNING: Sorry, --without-passprompt not supported." >&2;}
3025                 ;;
3026     *)          passprompt="$with_passprompt"
3027 esac
3028 fi
3029
3030 { echo "$as_me:$LINENO: result: $passprompt" >&5
3031 echo "${ECHO_T}$passprompt" >&6; }
3032
3033 cat >>confdefs.h <<_ACEOF
3034 #define PASSPROMPT "$passprompt"
3035 _ACEOF
3036
3037
3038 { echo "$as_me:$LINENO: checking for bad password message" >&5
3039 echo $ECHO_N "checking for bad password message... $ECHO_C" >&6; }
3040
3041 # Check whether --with-badpass-message was given.
3042 if test "${with_badpass_message+set}" = set; then
3043   withval=$with_badpass_message; case $with_badpass_message in
3044     yes)        { { echo "$as_me:$LINENO: error: \"Must give --with-badpass-message an argument.\"" >&5
3045 echo "$as_me: error: \"Must give --with-badpass-message an argument.\"" >&2;}
3046    { (exit 1); exit 1; }; }
3047                 ;;
3048     no)         { echo "$as_me:$LINENO: WARNING: Sorry, --without-badpass-message not supported." >&5
3049 echo "$as_me: WARNING: Sorry, --without-badpass-message not supported." >&2;}
3050                 ;;
3051     *)          badpass_message="$with_badpass_message"
3052                 ;;
3053 esac
3054 fi
3055
3056
3057 cat >>confdefs.h <<_ACEOF
3058 #define INCORRECT_PASSWORD "$badpass_message"
3059 _ACEOF
3060
3061 { echo "$as_me:$LINENO: result: $badpass_message" >&5
3062 echo "${ECHO_T}$badpass_message" >&6; }
3063
3064 { echo "$as_me:$LINENO: checking whether to expect fully qualified hosts in sudoers" >&5
3065 echo $ECHO_N "checking whether to expect fully qualified hosts in sudoers... $ECHO_C" >&6; }
3066
3067 # Check whether --with-fqdn was given.
3068 if test "${with_fqdn+set}" = set; then
3069   withval=$with_fqdn; case $with_fqdn in
3070     yes)        fqdn=on
3071                 ;;
3072     no)         fqdn=off
3073                 ;;
3074     *)          { { echo "$as_me:$LINENO: error: \"--with-fqdn does not take an argument.\"" >&5
3075 echo "$as_me: error: \"--with-fqdn does not take an argument.\"" >&2;}
3076    { (exit 1); exit 1; }; }
3077                 ;;
3078 esac
3079 fi
3080
3081 if test "$fqdn" = "on"; then
3082     cat >>confdefs.h <<\_ACEOF
3083 #define FQDN 1
3084 _ACEOF
3085
3086     { echo "$as_me:$LINENO: result: yes" >&5
3087 echo "${ECHO_T}yes" >&6; }
3088 else
3089     { echo "$as_me:$LINENO: result: no" >&5
3090 echo "${ECHO_T}no" >&6; }
3091 fi
3092
3093
3094 # Check whether --with-timedir was given.
3095 if test "${with_timedir+set}" = set; then
3096   withval=$with_timedir; case $with_timedir in
3097     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-timedir an argument.\"" >&5
3098 echo "$as_me: error: \"must give --with-timedir an argument.\"" >&2;}
3099    { (exit 1); exit 1; }; }
3100                 ;;
3101     no)         { { echo "$as_me:$LINENO: error: \"--without-timedir not supported.\"" >&5
3102 echo "$as_me: error: \"--without-timedir not supported.\"" >&2;}
3103    { (exit 1); exit 1; }; }
3104                 ;;
3105 esac
3106 fi
3107
3108
3109
3110 # Check whether --with-sendmail was given.
3111 if test "${with_sendmail+set}" = set; then
3112   withval=$with_sendmail; case $with_sendmail in
3113     yes)        with_sendmail=""
3114                 ;;
3115     no)         ;;
3116     *)          cat >>confdefs.h <<EOF
3117 #define _PATH_SUDO_SENDMAIL "$with_sendmail"
3118 EOF
3119
3120                 ;;
3121 esac
3122 fi
3123
3124
3125
3126 # Check whether --with-sudoers-mode was given.
3127 if test "${with_sudoers_mode+set}" = set; then
3128   withval=$with_sudoers_mode; case $with_sudoers_mode in
3129     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-mode an argument.\"" >&5
3130 echo "$as_me: error: \"must give --with-sudoers-mode an argument.\"" >&2;}
3131    { (exit 1); exit 1; }; }
3132                 ;;
3133     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-mode not supported.\"" >&5
3134 echo "$as_me: error: \"--without-sudoers-mode not supported.\"" >&2;}
3135    { (exit 1); exit 1; }; }
3136                 ;;
3137     [1-9]*)     SUDOERS_MODE=0${with_sudoers_mode}
3138                 ;;
3139     0*)         SUDOERS_MODE=$with_sudoers_mode
3140                 ;;
3141     *)          { { echo "$as_me:$LINENO: error: \"you must use an octal mode, not a name.\"" >&5
3142 echo "$as_me: error: \"you must use an octal mode, not a name.\"" >&2;}
3143    { (exit 1); exit 1; }; }
3144                 ;;
3145 esac
3146 fi
3147
3148
3149
3150 # Check whether --with-sudoers-uid was given.
3151 if test "${with_sudoers_uid+set}" = set; then
3152   withval=$with_sudoers_uid; case $with_sudoers_uid in
3153     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-uid an argument.\"" >&5
3154 echo "$as_me: error: \"must give --with-sudoers-uid an argument.\"" >&2;}
3155    { (exit 1); exit 1; }; }
3156                 ;;
3157     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-uid not supported.\"" >&5
3158 echo "$as_me: error: \"--without-sudoers-uid not supported.\"" >&2;}
3159    { (exit 1); exit 1; }; }
3160                 ;;
3161     [0-9]*)     SUDOERS_UID=$with_sudoers_uid
3162                 ;;
3163     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric uid, not a name.\"" >&5
3164 echo "$as_me: error: \"you must use an unsigned numeric uid, not a name.\"" >&2;}
3165    { (exit 1); exit 1; }; }
3166                 ;;
3167 esac
3168 fi
3169
3170
3171
3172 # Check whether --with-sudoers-gid was given.
3173 if test "${with_sudoers_gid+set}" = set; then
3174   withval=$with_sudoers_gid; case $with_sudoers_gid in
3175     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-sudoers-gid an argument.\"" >&5
3176 echo "$as_me: error: \"must give --with-sudoers-gid an argument.\"" >&2;}
3177    { (exit 1); exit 1; }; }
3178                 ;;
3179     no)         { { echo "$as_me:$LINENO: error: \"--without-sudoers-gid not supported.\"" >&5
3180 echo "$as_me: error: \"--without-sudoers-gid not supported.\"" >&2;}
3181    { (exit 1); exit 1; }; }
3182                 ;;
3183     [0-9]*)     SUDOERS_GID=$with_sudoers_gid
3184                 ;;
3185     *)          { { echo "$as_me:$LINENO: error: \"you must use an unsigned numeric gid, not a name.\"" >&5
3186 echo "$as_me: error: \"you must use an unsigned numeric gid, not a name.\"" >&2;}
3187    { (exit 1); exit 1; }; }
3188                 ;;
3189 esac
3190 fi
3191
3192
3193 { echo "$as_me:$LINENO: checking for umask programs should be run with" >&5
3194 echo $ECHO_N "checking for umask programs should be run with... $ECHO_C" >&6; }
3195
3196 # Check whether --with-umask was given.
3197 if test "${with_umask+set}" = set; then
3198   withval=$with_umask; case $with_umask in
3199     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-umask an argument.\"" >&5
3200 echo "$as_me: error: \"must give --with-umask an argument.\"" >&2;}
3201    { (exit 1); exit 1; }; }
3202                 ;;
3203     no)         sudo_umask=0777
3204                 ;;
3205     [0-9]*)     sudo_umask=$with_umask
3206                 ;;
3207     *)          { { echo "$as_me:$LINENO: error: \"you must enter a numeric mask.\"" >&5
3208 echo "$as_me: error: \"you must enter a numeric mask.\"" >&2;}
3209    { (exit 1); exit 1; }; }
3210                 ;;
3211 esac
3212 fi
3213
3214
3215 cat >>confdefs.h <<_ACEOF
3216 #define SUDO_UMASK $sudo_umask
3217 _ACEOF
3218
3219 if test "$sudo_umask" = "0777"; then
3220     { echo "$as_me:$LINENO: result: user" >&5
3221 echo "${ECHO_T}user" >&6; }
3222 else
3223     { echo "$as_me:$LINENO: result: $sudo_umask" >&5
3224 echo "${ECHO_T}$sudo_umask" >&6; }
3225 fi
3226
3227 { echo "$as_me:$LINENO: checking for default user to run commands as" >&5
3228 echo $ECHO_N "checking for default user to run commands as... $ECHO_C" >&6; }
3229
3230 # Check whether --with-runas-default was given.
3231 if test "${with_runas_default+set}" = set; then
3232   withval=$with_runas_default; case $with_runas_default in
3233     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-runas-default an argument.\"" >&5
3234 echo "$as_me: error: \"must give --with-runas-default an argument.\"" >&2;}
3235    { (exit 1); exit 1; }; }
3236                 ;;
3237     no)         { { echo "$as_me:$LINENO: error: \"--without-runas-default not supported.\"" >&5
3238 echo "$as_me: error: \"--without-runas-default not supported.\"" >&2;}
3239    { (exit 1); exit 1; }; }
3240                 ;;
3241     *)          runas_default="$with_runas_default"
3242                 ;;
3243 esac
3244 fi
3245
3246
3247 cat >>confdefs.h <<_ACEOF
3248 #define RUNAS_DEFAULT "$runas_default"
3249 _ACEOF
3250
3251 { echo "$as_me:$LINENO: result: $runas_default" >&5
3252 echo "${ECHO_T}$runas_default" >&6; }
3253
3254
3255 # Check whether --with-exempt was given.
3256 if test "${with_exempt+set}" = set; then
3257   withval=$with_exempt; case $with_exempt in
3258     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-exempt an argument.\"" >&5
3259 echo "$as_me: error: \"must give --with-exempt an argument.\"" >&2;}
3260    { (exit 1); exit 1; }; }
3261                 ;;
3262     no)         { { echo "$as_me:$LINENO: error: \"--without-exempt not supported.\"" >&5
3263 echo "$as_me: error: \"--without-exempt not supported.\"" >&2;}
3264    { (exit 1); exit 1; }; }
3265                 ;;
3266     *)
3267 cat >>confdefs.h <<_ACEOF
3268 #define EXEMPTGROUP "$with_exempt"
3269 _ACEOF
3270
3271                 { echo "$as_me:$LINENO: checking for group to be exempt from password" >&5
3272 echo $ECHO_N "checking for group to be exempt from password... $ECHO_C" >&6; }
3273                 { echo "$as_me:$LINENO: result: $with_exempt" >&5
3274 echo "${ECHO_T}$with_exempt" >&6; }
3275                 ;;
3276 esac
3277 fi
3278
3279
3280 { echo "$as_me:$LINENO: checking for editor that visudo should use" >&5
3281 echo $ECHO_N "checking for editor that visudo should use... $ECHO_C" >&6; }
3282
3283 # Check whether --with-editor was given.
3284 if test "${with_editor+set}" = set; then
3285   withval=$with_editor; case $with_editor in
3286     yes)        { { echo "$as_me:$LINENO: error: \"must give --with-editor an argument.\"" >&5
3287 echo "$as_me: error: \"must give --with-editor an argument.\"" >&2;}
3288    { (exit 1); exit 1; }; }
3289                 ;;
3290     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3291 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3292    { (exit 1); exit 1; }; }
3293                 ;;
3294     *)
3295 cat >>confdefs.h <<_ACEOF
3296 #define EDITOR "$with_editor"
3297 _ACEOF
3298
3299                 { echo "$as_me:$LINENO: result: $with_editor" >&5
3300 echo "${ECHO_T}$with_editor" >&6; }
3301                 ;;
3302 esac
3303 else
3304   cat >>confdefs.h <<\_ACEOF
3305 #define EDITOR _PATH_VI
3306 _ACEOF
3307  { echo "$as_me:$LINENO: result: vi" >&5
3308 echo "${ECHO_T}vi" >&6; }
3309 fi
3310
3311
3312 { echo "$as_me:$LINENO: checking whether to obey EDITOR and VISUAL environment variables" >&5
3313 echo $ECHO_N "checking whether to obey EDITOR and VISUAL environment variables... $ECHO_C" >&6; }
3314
3315 # Check whether --with-env-editor was given.
3316 if test "${with_env_editor+set}" = set; then
3317   withval=$with_env_editor; case $with_env_editor in
3318     yes)        env_editor=on
3319                 ;;
3320     no)         env_editor=off
3321                 ;;
3322     *)          { { echo "$as_me:$LINENO: error: \"--with-env-editor does not take an argument.\"" >&5
3323 echo "$as_me: error: \"--with-env-editor does not take an argument.\"" >&2;}
3324    { (exit 1); exit 1; }; }
3325                 ;;
3326 esac
3327 fi
3328
3329 if test "$env_editor" = "on"; then
3330     cat >>confdefs.h <<\_ACEOF
3331 #define ENV_EDITOR 1
3332 _ACEOF
3333
3334     { echo "$as_me:$LINENO: result: yes" >&5
3335 echo "${ECHO_T}yes" >&6; }
3336 else
3337     { echo "$as_me:$LINENO: result: no" >&5
3338 echo "${ECHO_T}no" >&6; }
3339 fi
3340
3341 { echo "$as_me:$LINENO: checking number of tries a user gets to enter their password" >&5
3342 echo $ECHO_N "checking number of tries a user gets to enter their password... $ECHO_C" >&6; }
3343
3344 # Check whether --with-passwd-tries was given.
3345 if test "${with_passwd_tries+set}" = set; then
3346   withval=$with_passwd_tries; case $with_passwd_tries in
3347     yes)        ;;
3348     no)         { { echo "$as_me:$LINENO: error: \"--without-editor not supported.\"" >&5
3349 echo "$as_me: error: \"--without-editor not supported.\"" >&2;}
3350    { (exit 1); exit 1; }; }
3351                 ;;
3352     [1-9]*)     passwd_tries=$with_passwd_tries
3353                 ;;
3354     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of tries, > 0\"" >&5
3355 echo "$as_me: error: \"you must enter the numer of tries, > 0\"" >&2;}
3356    { (exit 1); exit 1; }; }
3357                 ;;
3358 esac
3359 fi
3360
3361
3362 cat >>confdefs.h <<_ACEOF
3363 #define TRIES_FOR_PASSWORD $passwd_tries
3364 _ACEOF
3365
3366 { echo "$as_me:$LINENO: result: $passwd_tries" >&5
3367 echo "${ECHO_T}$passwd_tries" >&6; }
3368
3369 { echo "$as_me:$LINENO: checking time in minutes after which sudo will ask for a password again" >&5
3370 echo $ECHO_N "checking time in minutes after which sudo will ask for a password again... $ECHO_C" >&6; }
3371
3372 # Check whether --with-timeout was given.
3373 if test "${with_timeout+set}" = set; then
3374   withval=$with_timeout; case $with_timeout in
3375     yes)        ;;
3376     no)         timeout=0
3377                 ;;
3378     [0-9]*)     timeout=$with_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 TIMEOUT $timeout
3390 _ACEOF
3391
3392 { echo "$as_me:$LINENO: result: $timeout" >&5
3393 echo "${ECHO_T}$timeout" >&6; }
3394
3395 { echo "$as_me:$LINENO: checking time in minutes after the password prompt will time out" >&5
3396 echo $ECHO_N "checking time in minutes after the password prompt will time out... $ECHO_C" >&6; }
3397
3398 # Check whether --with-password-timeout was given.
3399 if test "${with_password_timeout+set}" = set; then
3400   withval=$with_password_timeout; case $with_password_timeout in
3401     yes)        ;;
3402     no)         password_timeout=0
3403                 ;;
3404     [0-9]*)     password_timeout=$with_password_timeout
3405                 ;;
3406     *)          { { echo "$as_me:$LINENO: error: \"you must enter the numer of minutes.\"" >&5
3407 echo "$as_me: error: \"you must enter the numer of minutes.\"" >&2;}
3408    { (exit 1); exit 1; }; }
3409                 ;;
3410 esac
3411 fi
3412
3413
3414 cat >>confdefs.h <<_ACEOF
3415 #define PASSWORD_TIMEOUT $password_timeout
3416 _ACEOF
3417
3418 { echo "$as_me:$LINENO: result: $password_timeout" >&5
3419 echo "${ECHO_T}$password_timeout" >&6; }
3420
3421 { echo "$as_me:$LINENO: checking whether to use per-tty ticket files" >&5
3422 echo $ECHO_N "checking whether to use per-tty ticket files... $ECHO_C" >&6; }
3423
3424 # Check whether --with-tty-tickets was given.
3425 if test "${with_tty_tickets+set}" = set; then
3426   withval=$with_tty_tickets; case $with_tty_tickets in
3427     yes)        tty_tickets=on
3428                 ;;
3429     no)         tty_tickets=off
3430                 ;;
3431     *)          { { echo "$as_me:$LINENO: error: \"--with-tty-tickets does not take an argument.\"" >&5
3432 echo "$as_me: error: \"--with-tty-tickets does not take an argument.\"" >&2;}
3433    { (exit 1); exit 1; }; }
3434                 ;;
3435 esac
3436 fi
3437
3438 if test "$tty_tickets" = "on"; then
3439     cat >>confdefs.h <<\_ACEOF
3440 #define USE_TTY_TICKETS 1
3441 _ACEOF
3442
3443     { echo "$as_me:$LINENO: result: yes" >&5
3444 echo "${ECHO_T}yes" >&6; }
3445 else
3446     { echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6; }
3448 fi
3449
3450 { echo "$as_me:$LINENO: checking whether to include insults" >&5
3451 echo $ECHO_N "checking whether to include insults... $ECHO_C" >&6; }
3452
3453 # Check whether --with-insults was given.
3454 if test "${with_insults+set}" = set; then
3455   withval=$with_insults; case $with_insults in
3456     yes)        insults=on
3457                 with_classic_insults=yes
3458                 with_csops_insults=yes
3459                 ;;
3460     no)         insults=off
3461                 ;;
3462     *)          { { echo "$as_me:$LINENO: error: \"--with-insults does not take an argument.\"" >&5
3463 echo "$as_me: error: \"--with-insults does not take an argument.\"" >&2;}
3464    { (exit 1); exit 1; }; }
3465                 ;;
3466 esac
3467 fi
3468
3469 if test "$insults" = "on"; then
3470     cat >>confdefs.h <<\_ACEOF
3471 #define USE_INSULTS 1
3472 _ACEOF
3473
3474     { echo "$as_me:$LINENO: result: yes" >&5
3475 echo "${ECHO_T}yes" >&6; }
3476 else
3477     { echo "$as_me:$LINENO: result: no" >&5
3478 echo "${ECHO_T}no" >&6; }
3479 fi
3480
3481
3482 # Check whether --with-all-insults was given.
3483 if test "${with_all_insults+set}" = set; then
3484   withval=$with_all_insults; case $with_all_insults in
3485     yes)        with_classic_insults=yes
3486                 with_csops_insults=yes
3487                 with_hal_insults=yes
3488                 with_goons_insults=yes
3489                 ;;
3490     no)         ;;
3491     *)          { { echo "$as_me:$LINENO: error: \"--with-all-insults does not take an argument.\"" >&5
3492 echo "$as_me: error: \"--with-all-insults does not take an argument.\"" >&2;}
3493    { (exit 1); exit 1; }; }
3494                 ;;
3495 esac
3496 fi
3497
3498
3499
3500 # Check whether --with-classic-insults was given.
3501 if test "${with_classic_insults+set}" = set; then
3502   withval=$with_classic_insults; case $with_classic_insults in
3503     yes)        cat >>confdefs.h <<\_ACEOF
3504 #define CLASSIC_INSULTS 1
3505 _ACEOF
3506
3507                 ;;
3508     no)         ;;
3509     *)          { { echo "$as_me:$LINENO: error: \"--with-classic-insults does not take an argument.\"" >&5
3510 echo "$as_me: error: \"--with-classic-insults does not take an argument.\"" >&2;}
3511    { (exit 1); exit 1; }; }
3512                 ;;
3513 esac
3514 fi
3515
3516
3517
3518 # Check whether --with-csops-insults was given.
3519 if test "${with_csops_insults+set}" = set; then
3520   withval=$with_csops_insults; case $with_csops_insults in
3521     yes)        cat >>confdefs.h <<\_ACEOF
3522 #define CSOPS_INSULTS 1
3523 _ACEOF
3524
3525                 ;;
3526     no)         ;;
3527     *)          { { echo "$as_me:$LINENO: error: \"--with-csops-insults does not take an argument.\"" >&5
3528 echo "$as_me: error: \"--with-csops-insults does not take an argument.\"" >&2;}
3529    { (exit 1); exit 1; }; }
3530                 ;;
3531 esac
3532 fi
3533
3534
3535
3536 # Check whether --with-hal-insults was given.
3537 if test "${with_hal_insults+set}" = set; then
3538   withval=$with_hal_insults; case $with_hal_insults in
3539     yes)        cat >>confdefs.h <<\_ACEOF
3540 #define HAL_INSULTS 1
3541 _ACEOF
3542
3543                 ;;
3544     no)         ;;
3545     *)          { { echo "$as_me:$LINENO: error: \"--with-hal-insults does not take an argument.\"" >&5
3546 echo "$as_me: error: \"--with-hal-insults does not take an argument.\"" >&2;}
3547    { (exit 1); exit 1; }; }
3548                 ;;
3549 esac
3550 fi
3551
3552
3553
3554 # Check whether --with-goons-insults was given.
3555 if test "${with_goons_insults+set}" = set; then
3556   withval=$with_goons_insults; case $with_goons_insults in
3557     yes)        cat >>confdefs.h <<\_ACEOF
3558 #define GOONS_INSULTS 1
3559 _ACEOF
3560
3561                 ;;
3562     no)         ;;
3563     *)          { { echo "$as_me:$LINENO: error: \"--with-goons-insults does not take an argument.\"" >&5
3564 echo "$as_me: error: \"--with-goons-insults does not take an argument.\"" >&2;}
3565    { (exit 1); exit 1; }; }
3566                 ;;
3567 esac
3568 fi
3569
3570
3571
3572 # Check whether --with-nsswitch was given.
3573 if test "${with_nsswitch+set}" = set; then
3574   withval=$with_nsswitch; case $with_nsswitch in
3575     no)         ;;
3576     yes)        with_nsswitch="/etc/nsswitch.conf"
3577                 ;;
3578     *)          ;;
3579 esac
3580 fi
3581
3582 if test ${with_nsswitch-"yes"} != "no"; then
3583     cat >>confdefs.h <<EOF
3584 #define _PATH_NSSWITCH_CONF "${with_nsswitch-/etc/nsswitch.conf}"
3585 EOF
3586
3587     nsswitch_conf=${with_nsswitch-/etc/nsswitch.conf}
3588 else
3589     nsswitch_conf='/etc/nsswitch.conf'
3590 fi
3591
3592
3593 # Check whether --with-ldap was given.
3594 if test "${with_ldap+set}" = set; then
3595   withval=$with_ldap; case $with_ldap in
3596     no)         with_ldap="";;
3597     *)          cat >>confdefs.h <<\_ACEOF
3598 #define HAVE_LDAP 1
3599 _ACEOF
3600
3601                 { echo "$as_me:$LINENO: checking whether to use sudoers from LDAP" >&5
3602 echo $ECHO_N "checking whether to use sudoers from LDAP... $ECHO_C" >&6; }
3603                 { echo "$as_me:$LINENO: result: yes" >&5
3604 echo "${ECHO_T}yes" >&6; }
3605                 ;;
3606 esac
3607 fi
3608
3609
3610
3611 # Check whether --with-ldap-conf-file was given.
3612 if test "${with_ldap_conf_file+set}" = set; then
3613   withval=$with_ldap_conf_file;
3614 fi
3615
3616 cat >>confdefs.h <<EOF
3617 #define _PATH_LDAP_CONF "${with_ldap_conf_file-/etc/ldap.conf}"
3618 EOF
3619
3620 ldap_conf=${with_ldap_conf_file-'/etc/ldap.conf'}
3621
3622
3623 # Check whether --with-ldap-secret-file was given.
3624 if test "${with_ldap_secret_file+set}" = set; then
3625   withval=$with_ldap_secret_file;
3626 fi
3627
3628 cat >>confdefs.h <<EOF
3629 #define _PATH_LDAP_SECRET "${with_ldap_secret_file-/etc/ldap.secret}"
3630 EOF
3631
3632 ldap_secret=${with_ldap_secret_file-'/etc/ldap.secret'}
3633
3634
3635 # Check whether --with-pc-insults was given.
3636 if test "${with_pc_insults+set}" = set; then
3637   withval=$with_pc_insults; case $with_pc_insults in
3638     yes)        cat >>confdefs.h <<\_ACEOF
3639 #define PC_INSULTS 1
3640 _ACEOF
3641
3642                 ;;
3643     no)         ;;
3644     *)          { { echo "$as_me:$LINENO: error: \"--with-pc-insults does not take an argument.\"" >&5
3645 echo "$as_me: error: \"--with-pc-insults does not take an argument.\"" >&2;}
3646    { (exit 1); exit 1; }; }
3647                 ;;
3648 esac
3649 fi
3650
3651
3652 if test "$insults" = "on"; then
3653     { echo "$as_me:$LINENO: checking which insult sets to include" >&5
3654 echo $ECHO_N "checking which insult sets to include... $ECHO_C" >&6; }
3655     i=""
3656     test "$with_goons_insults" = "yes" && i="goons ${i}"
3657     test "$with_hal_insults" = "yes" && i="hal ${i}"
3658     test "$with_csops_insults" = "yes" && i="csops ${i}"
3659     test "$with_classic_insults" = "yes" && i="classic ${i}"
3660     { echo "$as_me:$LINENO: result: $i" >&5
3661 echo "${ECHO_T}$i" >&6; }
3662 fi
3663
3664 { echo "$as_me:$LINENO: checking whether to override the user's path" >&5
3665 echo $ECHO_N "checking whether to override the user's path... $ECHO_C" >&6; }
3666
3667 # Check whether --with-secure-path was given.
3668 if test "${with_secure_path+set}" = set; then
3669   withval=$with_secure_path; case $with_secure_path in
3670     yes)        cat >>confdefs.h <<_ACEOF
3671 #define SECURE_PATH "/bin:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc"
3672 _ACEOF
3673
3674                 { echo "$as_me:$LINENO: result: :/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&5
3675 echo "${ECHO_T}:/usr/ucb:/usr/bin:/usr/sbin:/sbin:/usr/etc:/etc" >&6; }
3676                 ;;
3677     no)         { echo "$as_me:$LINENO: result: no" >&5
3678 echo "${ECHO_T}no" >&6; }
3679                 ;;
3680     *)          cat >>confdefs.h <<_ACEOF
3681 #define SECURE_PATH "$with_secure_path"
3682 _ACEOF
3683
3684                 { echo "$as_me:$LINENO: result: $with_secure_path" >&5
3685 echo "${ECHO_T}$with_secure_path" >&6; }
3686                 ;;
3687 esac
3688 else
3689   { echo "$as_me:$LINENO: result: no" >&5
3690 echo "${ECHO_T}no" >&6; }
3691 fi
3692
3693
3694 { echo "$as_me:$LINENO: checking whether to get ip addresses from the network interfaces" >&5
3695 echo $ECHO_N "checking whether to get ip addresses from the network interfaces... $ECHO_C" >&6; }
3696
3697 # Check whether --with-interfaces was given.
3698 if test "${with_interfaces+set}" = set; then
3699   withval=$with_interfaces; case $with_interfaces in
3700     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3701 echo "${ECHO_T}yes" >&6; }
3702                 ;;
3703     no)         cat >>confdefs.h <<\_ACEOF
3704 #define STUB_LOAD_INTERFACES 1
3705 _ACEOF
3706
3707                 { echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6; }
3709                 ;;
3710     *)          { { echo "$as_me:$LINENO: error: \"--with-interfaces does not take an argument.\"" >&5
3711 echo "$as_me: error: \"--with-interfaces does not take an argument.\"" >&2;}
3712    { (exit 1); exit 1; }; }
3713                 ;;
3714 esac
3715 else
3716   { echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6; }
3718 fi
3719
3720
3721 { echo "$as_me:$LINENO: checking whether stow should be used" >&5
3722 echo $ECHO_N "checking whether stow should be used... $ECHO_C" >&6; }
3723
3724 # Check whether --with-stow was given.
3725 if test "${with_stow+set}" = set; then
3726   withval=$with_stow; case $with_stow in
3727     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3728 echo "${ECHO_T}yes" >&6; }
3729                 cat >>confdefs.h <<\_ACEOF
3730 #define USE_STOW 1
3731 _ACEOF
3732
3733                 ;;
3734     no)         { echo "$as_me:$LINENO: result: no" >&5
3735 echo "${ECHO_T}no" >&6; }
3736                 ;;
3737     *)          { { echo "$as_me:$LINENO: error: \"--with-stow does not take an argument.\"" >&5
3738 echo "$as_me: error: \"--with-stow does not take an argument.\"" >&2;}
3739    { (exit 1); exit 1; }; }
3740                 ;;
3741 esac
3742 else
3743   { echo "$as_me:$LINENO: result: no" >&5
3744 echo "${ECHO_T}no" >&6; }
3745 fi
3746
3747
3748 { echo "$as_me:$LINENO: checking whether to use an askpass helper" >&5
3749 echo $ECHO_N "checking whether to use an askpass helper... $ECHO_C" >&6; }
3750
3751 # Check whether --with-askpass was given.
3752 if test "${with_askpass+set}" = set; then
3753   withval=$with_askpass; case $with_askpass in
3754     yes)        { { echo "$as_me:$LINENO: error: \"--with-askpass takes a path as an argument.\"" >&5
3755 echo "$as_me: error: \"--with-askpass takes a path as an argument.\"" >&2;}
3756    { (exit 1); exit 1; }; }
3757                 ;;
3758     no)         ;;
3759     *)
3760 cat >>confdefs.h <<_ACEOF
3761 #define _PATH_SUDO_ASKPASS "$with_askpass"
3762 _ACEOF
3763
3764                 ;;
3765 esac
3766 else
3767   { echo "$as_me:$LINENO: result: no" >&5
3768 echo "${ECHO_T}no" >&6; }
3769 fi
3770
3771
3772
3773 { echo "$as_me:$LINENO: checking whether to do user authentication by default" >&5
3774 echo $ECHO_N "checking whether to do user authentication by default... $ECHO_C" >&6; }
3775 # Check whether --enable-authentication was given.
3776 if test "${enable_authentication+set}" = set; then
3777   enableval=$enable_authentication;  case "$enableval" in
3778     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3779 echo "${ECHO_T}yes" >&6; }
3780                 ;;
3781     no)         { echo "$as_me:$LINENO: result: no" >&5
3782 echo "${ECHO_T}no" >&6; }
3783                 cat >>confdefs.h <<\_ACEOF
3784 #define NO_AUTHENTICATION 1
3785 _ACEOF
3786
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-authentication: $enableval" >&5
3791 echo "$as_me: WARNING: Ignoring unknown argument to --enable-authentication: $enableval" >&2;}
3792                 ;;
3793   esac
3794
3795 else
3796   { echo "$as_me:$LINENO: result: yes" >&5
3797 echo "${ECHO_T}yes" >&6; }
3798 fi
3799
3800
3801 { echo "$as_me:$LINENO: checking whether to disable running the mailer as root" >&5
3802 echo $ECHO_N "checking whether to disable running the mailer as root... $ECHO_C" >&6; }
3803 # Check whether --enable-root-mailer was given.
3804 if test "${enable_root_mailer+set}" = set; then
3805   enableval=$enable_root_mailer;  case "$enableval" in
3806     yes)        { echo "$as_me:$LINENO: result: no" >&5
3807 echo "${ECHO_T}no" >&6; }
3808                 ;;
3809     no)         { echo "$as_me:$LINENO: result: yes" >&5
3810 echo "${ECHO_T}yes" >&6; }
3811                 cat >>confdefs.h <<\_ACEOF
3812 #define NO_ROOT_MAILER 1
3813 _ACEOF
3814
3815                 ;;
3816     *)          { echo "$as_me:$LINENO: result: no" >&5
3817 echo "${ECHO_T}no" >&6; }
3818                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&5
3819 echo "$as_me: WARNING: Ignoring unknown argument to --enable-root-mailer: $enableval" >&2;}
3820                 ;;
3821   esac
3822
3823 else
3824   { echo "$as_me:$LINENO: result: no" >&5
3825 echo "${ECHO_T}no" >&6; }
3826 fi
3827
3828
3829 # Check whether --enable-setreuid was given.
3830 if test "${enable_setreuid+set}" = set; then
3831   enableval=$enable_setreuid;  case "$enableval" in
3832     no)         SKIP_SETREUID=yes
3833                 ;;
3834     *)          ;;
3835   esac
3836
3837 fi
3838
3839
3840 # Check whether --enable-setresuid was given.
3841 if test "${enable_setresuid+set}" = set; then
3842   enableval=$enable_setresuid;  case "$enableval" in
3843     no)         SKIP_SETRESUID=yes
3844                 ;;
3845     *)          ;;
3846   esac
3847
3848 fi
3849
3850
3851 { echo "$as_me:$LINENO: checking whether to disable shadow password support" >&5
3852 echo $ECHO_N "checking whether to disable shadow password support... $ECHO_C" >&6; }
3853 # Check whether --enable-shadow was given.
3854 if test "${enable_shadow+set}" = set; then
3855   enableval=$enable_shadow;  case "$enableval" in
3856     yes)        { echo "$as_me:$LINENO: result: no" >&5
3857 echo "${ECHO_T}no" >&6; }
3858                 ;;
3859     no)         { echo "$as_me:$LINENO: result: yes" >&5
3860 echo "${ECHO_T}yes" >&6; }
3861                 CHECKSHADOW="false"
3862                 ;;
3863     *)          { echo "$as_me:$LINENO: result: no" >&5
3864 echo "${ECHO_T}no" >&6; }
3865                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&5
3866 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shadow: $enableval" >&2;}
3867                 ;;
3868   esac
3869
3870 else
3871   { echo "$as_me:$LINENO: result: no" >&5
3872 echo "${ECHO_T}no" >&6; }
3873 fi
3874
3875
3876 { echo "$as_me:$LINENO: checking whether root should be allowed to use sudo" >&5
3877 echo $ECHO_N "checking whether root should be allowed to use sudo... $ECHO_C" >&6; }
3878 # Check whether --enable-root-sudo was given.
3879 if test "${enable_root_sudo+set}" = set; then
3880   enableval=$enable_root_sudo;  case "$enableval" in
3881     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3882 echo "${ECHO_T}yes" >&6; }
3883                 ;;
3884     no)         cat >>confdefs.h <<\_ACEOF
3885 #define NO_ROOT_SUDO 1
3886 _ACEOF
3887
3888                 { echo "$as_me:$LINENO: result: no" >&5
3889 echo "${ECHO_T}no" >&6; }
3890                 root_sudo=off
3891                 ;;
3892     *)          { { echo "$as_me:$LINENO: error: \"--enable-root-sudo does not take an argument.\"" >&5
3893 echo "$as_me: error: \"--enable-root-sudo does not take an argument.\"" >&2;}
3894    { (exit 1); exit 1; }; }
3895                 ;;
3896   esac
3897
3898 else
3899   { echo "$as_me:$LINENO: result: yes" >&5
3900 echo "${ECHO_T}yes" >&6; }
3901 fi
3902
3903
3904 { echo "$as_me:$LINENO: checking whether to log the hostname in the log file" >&5
3905 echo $ECHO_N "checking whether to log the hostname in the log file... $ECHO_C" >&6; }
3906 # Check whether --enable-log-host was given.
3907 if test "${enable_log_host+set}" = set; then
3908   enableval=$enable_log_host;  case "$enableval" in
3909     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3910 echo "${ECHO_T}yes" >&6; }
3911                 cat >>confdefs.h <<\_ACEOF
3912 #define HOST_IN_LOG 1
3913 _ACEOF
3914
3915                 ;;
3916     no)         { echo "$as_me:$LINENO: result: no" >&5
3917 echo "${ECHO_T}no" >&6; }
3918                 ;;
3919     *)          { echo "$as_me:$LINENO: result: no" >&5
3920 echo "${ECHO_T}no" >&6; }
3921                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&5
3922 echo "$as_me: WARNING: Ignoring unknown argument to --enable-log-host: $enableval" >&2;}
3923                 ;;
3924   esac
3925
3926 else
3927   { echo "$as_me:$LINENO: result: no" >&5
3928 echo "${ECHO_T}no" >&6; }
3929 fi
3930
3931
3932 { echo "$as_me:$LINENO: checking whether to invoke a shell if sudo is given no arguments" >&5
3933 echo $ECHO_N "checking whether to invoke a shell if sudo is given no arguments... $ECHO_C" >&6; }
3934 # Check whether --enable-noargs-shell was given.
3935 if test "${enable_noargs_shell+set}" = set; then
3936   enableval=$enable_noargs_shell;  case "$enableval" in
3937     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3938 echo "${ECHO_T}yes" >&6; }
3939                 cat >>confdefs.h <<\_ACEOF
3940 #define SHELL_IF_NO_ARGS 1
3941 _ACEOF
3942
3943                 ;;
3944     no)         { echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6; }
3946                 ;;
3947     *)          { echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6; }
3949                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&5
3950 echo "$as_me: WARNING: Ignoring unknown argument to --enable-noargs-shell: $enableval" >&2;}
3951                 ;;
3952   esac
3953
3954 else
3955   { echo "$as_me:$LINENO: result: no" >&5
3956 echo "${ECHO_T}no" >&6; }
3957 fi
3958
3959
3960 { echo "$as_me:$LINENO: checking whether to set \$HOME to target user in shell mode" >&5
3961 echo $ECHO_N "checking whether to set \$HOME to target user in shell mode... $ECHO_C" >&6; }
3962 # Check whether --enable-shell-sets-home was given.
3963 if test "${enable_shell_sets_home+set}" = set; then
3964   enableval=$enable_shell_sets_home;  case "$enableval" in
3965     yes)        { echo "$as_me:$LINENO: result: yes" >&5
3966 echo "${ECHO_T}yes" >&6; }
3967                 cat >>confdefs.h <<\_ACEOF
3968 #define SHELL_SETS_HOME 1
3969 _ACEOF
3970
3971                 ;;
3972     no)         { echo "$as_me:$LINENO: result: no" >&5
3973 echo "${ECHO_T}no" >&6; }
3974                 ;;
3975     *)          { echo "$as_me:$LINENO: result: no" >&5
3976 echo "${ECHO_T}no" >&6; }
3977                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&5
3978 echo "$as_me: WARNING: Ignoring unknown argument to --enable-shell-sets-home: $enableval" >&2;}
3979                 ;;
3980   esac
3981
3982 else
3983   { echo "$as_me:$LINENO: result: no" >&5
3984 echo "${ECHO_T}no" >&6; }
3985 fi
3986
3987
3988 { echo "$as_me:$LINENO: checking whether to disable 'command not found' messages" >&5
3989 echo $ECHO_N "checking whether to disable 'command not found' messages... $ECHO_C" >&6; }
3990 # Check whether --enable-path_info was given.
3991 if test "${enable_path_info+set}" = set; then
3992   enableval=$enable_path_info;  case "$enableval" in
3993     yes)        { echo "$as_me:$LINENO: result: no" >&5
3994 echo "${ECHO_T}no" >&6; }
3995                 ;;
3996     no)         { echo "$as_me:$LINENO: result: yes" >&5
3997 echo "${ECHO_T}yes" >&6; }
3998                 cat >>confdefs.h <<\_ACEOF
3999 #define DONT_LEAK_PATH_INFO 1
4000 _ACEOF
4001
4002                 path_info=off
4003                 ;;
4004     *)          { echo "$as_me:$LINENO: result: no" >&5
4005 echo "${ECHO_T}no" >&6; }
4006                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&5
4007 echo "$as_me: WARNING: Ignoring unknown argument to --enable-path-info: $enableval" >&2;}
4008                 ;;
4009   esac
4010
4011 else
4012   { echo "$as_me:$LINENO: result: no" >&5
4013 echo "${ECHO_T}no" >&6; }
4014 fi
4015
4016
4017
4018 # Check whether --with-selinux was given.
4019 if test "${with_selinux+set}" = set; then
4020   withval=$with_selinux; case $with_selinux in
4021     yes)        SELINUX_USAGE="[-r role] [-t type] "
4022                 cat >>confdefs.h <<\_ACEOF
4023 #define HAVE_SELINUX 1
4024 _ACEOF
4025
4026                 SUDO_LIBS="${SUDO_LIBS} -lselinux"
4027                 SUDO_OBJS="${SUDO_OBJS} selinux.o"
4028                 PROGS="${PROGS} sesh"
4029                 SELINUX=""
4030                 SEMAN=""
4031                 ;;
4032     no)         ;;
4033     *)          { { echo "$as_me:$LINENO: error: \"--with-selinux does not take an argument.\"" >&5
4034 echo "$as_me: error: \"--with-selinux does not take an argument.\"" >&2;}
4035    { (exit 1); exit 1; }; }
4036                 ;;
4037 esac
4038 fi
4039
4040
4041 # Check whether --enable-gss_krb5_ccache_name was given.
4042 if test "${enable_gss_krb5_ccache_name+set}" = set; then
4043   enableval=$enable_gss_krb5_ccache_name; check_gss_krb5_ccache_name=$enableval
4044 else
4045   check_gss_krb5_ccache_name=no
4046 fi
4047
4048
4049 # Extract the first word of "egrep", so it can be a program name with args.
4050 set dummy egrep; ac_word=$2
4051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4053 if test "${ac_cv_prog_EGREPPROG+set}" = set; then
4054   echo $ECHO_N "(cached) $ECHO_C" >&6
4055 else
4056   if test -n "$EGREPPROG"; then
4057   ac_cv_prog_EGREPPROG="$EGREPPROG" # Let the user override the test.
4058 else
4059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4060 for as_dir in $PATH
4061 do
4062   IFS=$as_save_IFS
4063   test -z "$as_dir" && as_dir=.
4064   for ac_exec_ext in '' $ac_executable_extensions; do
4065   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4066     ac_cv_prog_EGREPPROG="egrep"
4067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4068     break 2
4069   fi
4070 done
4071 done
4072 IFS=$as_save_IFS
4073
4074 fi
4075 fi
4076 EGREPPROG=$ac_cv_prog_EGREPPROG
4077 if test -n "$EGREPPROG"; then
4078   { echo "$as_me:$LINENO: result: $EGREPPROG" >&5
4079 echo "${ECHO_T}$EGREPPROG" >&6; }
4080 else
4081   { echo "$as_me:$LINENO: result: no" >&5
4082 echo "${ECHO_T}no" >&6; }
4083 fi
4084
4085
4086 if test -z "$EGREPPROG"; then
4087     { { echo "$as_me:$LINENO: error: Sorry, configure requires egrep to run." >&5
4088 echo "$as_me: error: Sorry, configure requires egrep to run." >&2;}
4089    { (exit 1); exit 1; }; }
4090 fi
4091
4092 if test "$with_devel" != "yes"; then
4093     ac_cv_prog_cc_g=no
4094 fi
4095
4096 ac_ext=c
4097 ac_cpp='$CPP $CPPFLAGS'
4098 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4099 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4100 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4101 if test -n "$ac_tool_prefix"; then
4102   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4103 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4106 if test "${ac_cv_prog_CC+set}" = set; then
4107   echo $ECHO_N "(cached) $ECHO_C" >&6
4108 else
4109   if test -n "$CC"; then
4110   ac_cv_prog_CC="$CC" # Let the user override the test.
4111 else
4112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4113 for as_dir in $PATH
4114 do
4115   IFS=$as_save_IFS
4116   test -z "$as_dir" && as_dir=.
4117   for ac_exec_ext in '' $ac_executable_extensions; do
4118   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4119     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4120     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4121     break 2
4122   fi
4123 done
4124 done
4125 IFS=$as_save_IFS
4126
4127 fi
4128 fi
4129 CC=$ac_cv_prog_CC
4130 if test -n "$CC"; then
4131   { echo "$as_me:$LINENO: result: $CC" >&5
4132 echo "${ECHO_T}$CC" >&6; }
4133 else
4134   { echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6; }
4136 fi
4137
4138
4139 fi
4140 if test -z "$ac_cv_prog_CC"; then
4141   ac_ct_CC=$CC
4142   # Extract the first word of "gcc", so it can be a program name with args.
4143 set dummy gcc; ac_word=$2
4144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4146 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4147   echo $ECHO_N "(cached) $ECHO_C" >&6
4148 else
4149   if test -n "$ac_ct_CC"; then
4150   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4151 else
4152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153 for as_dir in $PATH
4154 do
4155   IFS=$as_save_IFS
4156   test -z "$as_dir" && as_dir=.
4157   for ac_exec_ext in '' $ac_executable_extensions; do
4158   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4159     ac_cv_prog_ac_ct_CC="gcc"
4160     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4161     break 2
4162   fi
4163 done
4164 done
4165 IFS=$as_save_IFS
4166
4167 fi
4168 fi
4169 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4170 if test -n "$ac_ct_CC"; then
4171   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4172 echo "${ECHO_T}$ac_ct_CC" >&6; }
4173 else
4174   { echo "$as_me:$LINENO: result: no" >&5
4175 echo "${ECHO_T}no" >&6; }
4176 fi
4177
4178   if test "x$ac_ct_CC" = x; then
4179     CC=""
4180   else
4181     case $cross_compiling:$ac_tool_warned in
4182 yes:)
4183 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4184 whose name does not start with the host triplet.  If you think this
4185 configuration is useful to you, please write to autoconf@gnu.org." >&5
4186 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4187 whose name does not start with the host triplet.  If you think this
4188 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4189 ac_tool_warned=yes ;;
4190 esac
4191     CC=$ac_ct_CC
4192   fi
4193 else
4194   CC="$ac_cv_prog_CC"
4195 fi
4196
4197 if test -z "$CC"; then
4198           if test -n "$ac_tool_prefix"; then
4199     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4200 set dummy ${ac_tool_prefix}cc; ac_word=$2
4201 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4203 if test "${ac_cv_prog_CC+set}" = set; then
4204   echo $ECHO_N "(cached) $ECHO_C" >&6
4205 else
4206   if test -n "$CC"; then
4207   ac_cv_prog_CC="$CC" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212   IFS=$as_save_IFS
4213   test -z "$as_dir" && as_dir=.
4214   for ac_exec_ext in '' $ac_executable_extensions; do
4215   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216     ac_cv_prog_CC="${ac_tool_prefix}cc"
4217     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218     break 2
4219   fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 CC=$ac_cv_prog_CC
4227 if test -n "$CC"; then
4228   { echo "$as_me:$LINENO: result: $CC" >&5
4229 echo "${ECHO_T}$CC" >&6; }
4230 else
4231   { echo "$as_me:$LINENO: result: no" >&5
4232 echo "${ECHO_T}no" >&6; }
4233 fi
4234
4235
4236   fi
4237 fi
4238 if test -z "$CC"; then
4239   # Extract the first word of "cc", so it can be a program name with args.
4240 set dummy cc; ac_word=$2
4241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4243 if test "${ac_cv_prog_CC+set}" = set; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   if test -n "$CC"; then
4247   ac_cv_prog_CC="$CC" # Let the user override the test.
4248 else
4249   ac_prog_rejected=no
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4251 for as_dir in $PATH
4252 do
4253   IFS=$as_save_IFS
4254   test -z "$as_dir" && as_dir=.
4255   for ac_exec_ext in '' $ac_executable_extensions; do
4256   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4257     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4258        ac_prog_rejected=yes
4259        continue
4260      fi
4261     ac_cv_prog_CC="cc"
4262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4263     break 2
4264   fi
4265 done
4266 done
4267 IFS=$as_save_IFS
4268
4269 if test $ac_prog_rejected = yes; then
4270   # We found a bogon in the path, so make sure we never use it.
4271   set dummy $ac_cv_prog_CC
4272   shift
4273   if test $# != 0; then
4274     # We chose a different compiler from the bogus one.
4275     # However, it has the same basename, so the bogon will be chosen
4276     # first if we set CC to just the basename; use the full file name.
4277     shift
4278     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4279   fi
4280 fi
4281 fi
4282 fi
4283 CC=$ac_cv_prog_CC
4284 if test -n "$CC"; then
4285   { echo "$as_me:$LINENO: result: $CC" >&5
4286 echo "${ECHO_T}$CC" >&6; }
4287 else
4288   { echo "$as_me:$LINENO: result: no" >&5
4289 echo "${ECHO_T}no" >&6; }
4290 fi
4291
4292
4293 fi
4294 if test -z "$CC"; then
4295   if test -n "$ac_tool_prefix"; then
4296   for ac_prog in cl.exe
4297   do
4298     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4299 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4300 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4302 if test "${ac_cv_prog_CC+set}" = set; then
4303   echo $ECHO_N "(cached) $ECHO_C" >&6
4304 else
4305   if test -n "$CC"; then
4306   ac_cv_prog_CC="$CC" # Let the user override the test.
4307 else
4308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4309 for as_dir in $PATH
4310 do
4311   IFS=$as_save_IFS
4312   test -z "$as_dir" && as_dir=.
4313   for ac_exec_ext in '' $ac_executable_extensions; do
4314   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4315     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4316     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4317     break 2
4318   fi
4319 done
4320 done
4321 IFS=$as_save_IFS
4322
4323 fi
4324 fi
4325 CC=$ac_cv_prog_CC
4326 if test -n "$CC"; then
4327   { echo "$as_me:$LINENO: result: $CC" >&5
4328 echo "${ECHO_T}$CC" >&6; }
4329 else
4330   { echo "$as_me:$LINENO: result: no" >&5
4331 echo "${ECHO_T}no" >&6; }
4332 fi
4333
4334
4335     test -n "$CC" && break
4336   done
4337 fi
4338 if test -z "$CC"; then
4339   ac_ct_CC=$CC
4340   for ac_prog in cl.exe
4341 do
4342   # Extract the first word of "$ac_prog", so it can be a program name with args.
4343 set dummy $ac_prog; ac_word=$2
4344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4346 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4347   echo $ECHO_N "(cached) $ECHO_C" >&6
4348 else
4349   if test -n "$ac_ct_CC"; then
4350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   test -z "$as_dir" && as_dir=.
4357   for ac_exec_ext in '' $ac_executable_extensions; do
4358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4359     ac_cv_prog_ac_ct_CC="$ac_prog"
4360     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4361     break 2
4362   fi
4363 done
4364 done
4365 IFS=$as_save_IFS
4366
4367 fi
4368 fi
4369 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4370 if test -n "$ac_ct_CC"; then
4371   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4372 echo "${ECHO_T}$ac_ct_CC" >&6; }
4373 else
4374   { echo "$as_me:$LINENO: result: no" >&5
4375 echo "${ECHO_T}no" >&6; }
4376 fi
4377
4378
4379   test -n "$ac_ct_CC" && break
4380 done
4381
4382   if test "x$ac_ct_CC" = x; then
4383     CC=""
4384   else
4385     case $cross_compiling:$ac_tool_warned in
4386 yes:)
4387 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4388 whose name does not start with the host triplet.  If you think this
4389 configuration is useful to you, please write to autoconf@gnu.org." >&5
4390 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4391 whose name does not start with the host triplet.  If you think this
4392 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4393 ac_tool_warned=yes ;;
4394 esac
4395     CC=$ac_ct_CC
4396   fi
4397 fi
4398
4399 fi
4400
4401
4402 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4403 See \`config.log' for more details." >&5
4404 echo "$as_me: error: no acceptable C compiler found in \$PATH
4405 See \`config.log' for more details." >&2;}
4406    { (exit 1); exit 1; }; }
4407
4408 # Provide some information about the compiler.
4409 echo "$as_me:$LINENO: checking for C compiler version" >&5
4410 ac_compiler=`set X $ac_compile; echo $2`
4411 { (ac_try="$ac_compiler --version >&5"
4412 case "(($ac_try" in
4413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414   *) ac_try_echo=$ac_try;;
4415 esac
4416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4417   (eval "$ac_compiler --version >&5") 2>&5
4418   ac_status=$?
4419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420   (exit $ac_status); }
4421 { (ac_try="$ac_compiler -v >&5"
4422 case "(($ac_try" in
4423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4424   *) ac_try_echo=$ac_try;;
4425 esac
4426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4427   (eval "$ac_compiler -v >&5") 2>&5
4428   ac_status=$?
4429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430   (exit $ac_status); }
4431 { (ac_try="$ac_compiler -V >&5"
4432 case "(($ac_try" in
4433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434   *) ac_try_echo=$ac_try;;
4435 esac
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437   (eval "$ac_compiler -V >&5") 2>&5
4438   ac_status=$?
4439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440   (exit $ac_status); }
4441
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h.  */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h.  */
4448
4449 int
4450 main ()
4451 {
4452
4453   ;
4454   return 0;
4455 }
4456 _ACEOF
4457 ac_clean_files_save=$ac_clean_files
4458 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4459 # Try to create an executable without -o first, disregard a.out.
4460 # It will help us diagnose broken compilers, and finding out an intuition
4461 # of exeext.
4462 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4463 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
4464 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4465 #
4466 # List of possible output files, starting from the most likely.
4467 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
4468 # only as a last resort.  b.out is created by i960 compilers.
4469 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
4470 #
4471 # The IRIX 6 linker writes into existing files which may not be
4472 # executable, retaining their permissions.  Remove them first so a
4473 # subsequent execution test works.
4474 ac_rmfiles=
4475 for ac_file in $ac_files
4476 do
4477   case $ac_file in
4478     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4479     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4480   esac
4481 done
4482 rm -f $ac_rmfiles
4483
4484 if { (ac_try="$ac_link_default"
4485 case "(($ac_try" in
4486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4487   *) ac_try_echo=$ac_try;;
4488 esac
4489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4490   (eval "$ac_link_default") 2>&5
4491   ac_status=$?
4492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4493   (exit $ac_status); }; then
4494   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4495 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4496 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4497 # so that the user can short-circuit this test for compilers unknown to
4498 # Autoconf.
4499 for ac_file in $ac_files ''
4500 do
4501   test -f "$ac_file" || continue
4502   case $ac_file in
4503     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
4504         ;;
4505     [ab].out )
4506         # We found the default executable, but exeext='' is most
4507         # certainly right.
4508         break;;
4509     *.* )
4510         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4511         then :; else
4512            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513         fi
4514         # We set ac_cv_exeext here because the later test for it is not
4515         # safe: cross compilers may not add the suffix if given an `-o'
4516         # argument, so we may need to know it at that point already.
4517         # Even if this section looks crufty: it has the advantage of
4518         # actually working.
4519         break;;
4520     * )
4521         break;;
4522   esac
4523 done
4524 test "$ac_cv_exeext" = no && ac_cv_exeext=
4525
4526 else
4527   ac_file=''
4528 fi
4529
4530 { echo "$as_me:$LINENO: result: $ac_file" >&5
4531 echo "${ECHO_T}$ac_file" >&6; }
4532 if test -z "$ac_file"; then
4533   echo "$as_me: failed program was:" >&5
4534 sed 's/^/| /' conftest.$ac_ext >&5
4535
4536 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4537 See \`config.log' for more details." >&5
4538 echo "$as_me: error: C compiler cannot create executables
4539 See \`config.log' for more details." >&2;}
4540    { (exit 77); exit 77; }; }
4541 fi
4542
4543 ac_exeext=$ac_cv_exeext
4544
4545 # Check that the compiler produces executables we can run.  If not, either
4546 # the compiler is broken, or we cross compile.
4547 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4548 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
4549 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4550 # If not cross compiling, check that we can run a simple program.
4551 if test "$cross_compiling" != yes; then
4552   if { ac_try='./$ac_file'
4553   { (case "(($ac_try" in
4554   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555   *) ac_try_echo=$ac_try;;
4556 esac
4557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4558   (eval "$ac_try") 2>&5
4559   ac_status=$?
4560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4561   (exit $ac_status); }; }; then
4562     cross_compiling=no
4563   else
4564     if test "$cross_compiling" = maybe; then
4565         cross_compiling=yes
4566     else
4567         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4568 If you meant to cross compile, use \`--host'.
4569 See \`config.log' for more details." >&5
4570 echo "$as_me: error: cannot run C compiled programs.
4571 If you meant to cross compile, use \`--host'.
4572 See \`config.log' for more details." >&2;}
4573    { (exit 1); exit 1; }; }
4574     fi
4575   fi
4576 fi
4577 { echo "$as_me:$LINENO: result: yes" >&5
4578 echo "${ECHO_T}yes" >&6; }
4579
4580 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4581 ac_clean_files=$ac_clean_files_save
4582 # Check that the compiler produces executables we can run.  If not, either
4583 # the compiler is broken, or we cross compile.
4584 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4585 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
4586 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
4587 echo "${ECHO_T}$cross_compiling" >&6; }
4588
4589 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
4590 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
4591 if { (ac_try="$ac_link"
4592 case "(($ac_try" in
4593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4594   *) ac_try_echo=$ac_try;;
4595 esac
4596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4597   (eval "$ac_link") 2>&5
4598   ac_status=$?
4599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600   (exit $ac_status); }; then
4601   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4602 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4603 # work properly (i.e., refer to `conftest.exe'), while it won't with
4604 # `rm'.
4605 for ac_file in conftest.exe conftest conftest.*; do
4606   test -f "$ac_file" || continue
4607   case $ac_file in
4608     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
4609     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4610           break;;
4611     * ) break;;
4612   esac
4613 done
4614 else
4615   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4616 See \`config.log' for more details." >&5
4617 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4618 See \`config.log' for more details." >&2;}
4619    { (exit 1); exit 1; }; }
4620 fi
4621
4622 rm -f conftest$ac_cv_exeext
4623 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4624 echo "${ECHO_T}$ac_cv_exeext" >&6; }
4625
4626 rm -f conftest.$ac_ext
4627 EXEEXT=$ac_cv_exeext
4628 ac_exeext=$EXEEXT
4629 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
4630 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
4631 if test "${ac_cv_objext+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   cat >conftest.$ac_ext <<_ACEOF
4635 /* confdefs.h.  */
4636 _ACEOF
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h.  */
4640
4641 int
4642 main ()
4643 {
4644
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.o conftest.obj
4650 if { (ac_try="$ac_compile"
4651 case "(($ac_try" in
4652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4653   *) ac_try_echo=$ac_try;;
4654 esac
4655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4656   (eval "$ac_compile") 2>&5
4657   ac_status=$?
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); }; then
4660   for ac_file in conftest.o conftest.obj conftest.*; do
4661   test -f "$ac_file" || continue;
4662   case $ac_file in
4663     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
4664     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4665        break;;
4666   esac
4667 done
4668 else
4669   echo "$as_me: failed program was:" >&5
4670 sed 's/^/| /' conftest.$ac_ext >&5
4671
4672 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4673 See \`config.log' for more details." >&5
4674 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4675 See \`config.log' for more details." >&2;}
4676    { (exit 1); exit 1; }; }
4677 fi
4678
4679 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4680 fi
4681 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4682 echo "${ECHO_T}$ac_cv_objext" >&6; }
4683 OBJEXT=$ac_cv_objext
4684 ac_objext=$OBJEXT
4685 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4686 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
4687 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4688   echo $ECHO_N "(cached) $ECHO_C" >&6
4689 else
4690   cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h.  */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h.  */
4696
4697 int
4698 main ()
4699 {
4700 #ifndef __GNUC__
4701        choke me
4702 #endif
4703
4704   ;
4705   return 0;
4706 }
4707 _ACEOF
4708 rm -f conftest.$ac_objext
4709 if { (ac_try="$ac_compile"
4710 case "(($ac_try" in
4711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4712   *) ac_try_echo=$ac_try;;
4713 esac
4714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4715   (eval "$ac_compile") 2>conftest.er1
4716   ac_status=$?
4717   grep -v '^ *+' conftest.er1 >conftest.err
4718   rm -f conftest.er1
4719   cat conftest.err >&5
4720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721   (exit $ac_status); } && {
4722          test -z "$ac_c_werror_flag" ||
4723          test ! -s conftest.err
4724        } && test -s conftest.$ac_objext; then
4725   ac_compiler_gnu=yes
4726 else
4727   echo "$as_me: failed program was:" >&5
4728 sed 's/^/| /' conftest.$ac_ext >&5
4729
4730         ac_compiler_gnu=no
4731 fi
4732
4733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4734 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4735
4736 fi
4737 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4738 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
4739 GCC=`test $ac_compiler_gnu = yes && echo yes`
4740 ac_test_CFLAGS=${CFLAGS+set}
4741 ac_save_CFLAGS=$CFLAGS
4742 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4743 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
4744 if test "${ac_cv_prog_cc_g+set}" = set; then
4745   echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747   ac_save_c_werror_flag=$ac_c_werror_flag
4748    ac_c_werror_flag=yes
4749    ac_cv_prog_cc_g=no
4750    CFLAGS="-g"
4751    cat >conftest.$ac_ext <<_ACEOF
4752 /* confdefs.h.  */
4753 _ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h.  */
4757
4758 int
4759 main ()
4760 {
4761
4762   ;
4763   return 0;
4764 }
4765 _ACEOF
4766 rm -f conftest.$ac_objext
4767 if { (ac_try="$ac_compile"
4768 case "(($ac_try" in
4769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4770   *) ac_try_echo=$ac_try;;
4771 esac
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773   (eval "$ac_compile") 2>conftest.er1
4774   ac_status=$?
4775   grep -v '^ *+' conftest.er1 >conftest.err
4776   rm -f conftest.er1
4777   cat conftest.err >&5
4778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779   (exit $ac_status); } && {
4780          test -z "$ac_c_werror_flag" ||
4781          test ! -s conftest.err
4782        } && test -s conftest.$ac_objext; then
4783   ac_cv_prog_cc_g=yes
4784 else
4785   echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788         CFLAGS=""
4789       cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795
4796 int
4797 main ()
4798 {
4799
4800   ;
4801   return 0;
4802 }
4803 _ACEOF
4804 rm -f conftest.$ac_objext
4805 if { (ac_try="$ac_compile"
4806 case "(($ac_try" in
4807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4808   *) ac_try_echo=$ac_try;;
4809 esac
4810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4811   (eval "$ac_compile") 2>conftest.er1
4812   ac_status=$?
4813   grep -v '^ *+' conftest.er1 >conftest.err
4814   rm -f conftest.er1
4815   cat conftest.err >&5
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } && {
4818          test -z "$ac_c_werror_flag" ||
4819          test ! -s conftest.err
4820        } && test -s conftest.$ac_objext; then
4821   :
4822 else
4823   echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826         ac_c_werror_flag=$ac_save_c_werror_flag
4827          CFLAGS="-g"
4828          cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h.  */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h.  */
4834
4835 int
4836 main ()
4837 {
4838
4839   ;
4840   return 0;
4841 }
4842 _ACEOF
4843 rm -f conftest.$ac_objext
4844 if { (ac_try="$ac_compile"
4845 case "(($ac_try" in
4846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4847   *) ac_try_echo=$ac_try;;
4848 esac
4849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4850   (eval "$ac_compile") 2>conftest.er1
4851   ac_status=$?
4852   grep -v '^ *+' conftest.er1 >conftest.err
4853   rm -f conftest.er1
4854   cat conftest.err >&5
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); } && {
4857          test -z "$ac_c_werror_flag" ||
4858          test ! -s conftest.err
4859        } && test -s conftest.$ac_objext; then
4860   ac_cv_prog_cc_g=yes
4861 else
4862   echo "$as_me: failed program was:" >&5
4863 sed 's/^/| /' conftest.$ac_ext >&5
4864
4865
4866 fi
4867
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 fi
4870
4871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4872 fi
4873
4874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4875    ac_c_werror_flag=$ac_save_c_werror_flag
4876 fi
4877 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4878 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4879 if test "$ac_test_CFLAGS" = set; then
4880   CFLAGS=$ac_save_CFLAGS
4881 elif test $ac_cv_prog_cc_g = yes; then
4882   if test "$GCC" = yes; then
4883     CFLAGS="-g -O2"
4884   else
4885     CFLAGS="-g"
4886   fi
4887 else
4888   if test "$GCC" = yes; then
4889     CFLAGS="-O2"
4890   else
4891     CFLAGS=
4892   fi
4893 fi
4894 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4895 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4896 if test "${ac_cv_prog_cc_c89+set}" = set; then
4897   echo $ECHO_N "(cached) $ECHO_C" >&6
4898 else
4899   ac_cv_prog_cc_c89=no
4900 ac_save_CC=$CC
4901 cat >conftest.$ac_ext <<_ACEOF
4902 /* confdefs.h.  */
4903 _ACEOF
4904 cat confdefs.h >>conftest.$ac_ext
4905 cat >>conftest.$ac_ext <<_ACEOF
4906 /* end confdefs.h.  */
4907 #include <stdarg.h>
4908 #include <stdio.h>
4909 #include <sys/types.h>
4910 #include <sys/stat.h>
4911 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4912 struct buf { int x; };
4913 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4914 static char *e (p, i)
4915      char **p;
4916      int i;
4917 {
4918   return p[i];
4919 }
4920 static char *f (char * (*g) (char **, int), char **p, ...)
4921 {
4922   char *s;
4923   va_list v;
4924   va_start (v,p);
4925   s = g (p, va_arg (v,int));
4926   va_end (v);
4927   return s;
4928 }
4929
4930 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4931    function prototypes and stuff, but not '\xHH' hex character constants.
4932    These don't provoke an error unfortunately, instead are silently treated
4933    as 'x'.  The following induces an error, until -std is added to get
4934    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4935    array size at least.  It's necessary to write '\x00'==0 to get something
4936    that's true only with -std.  */
4937 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4938
4939 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4940    inside strings and character constants.  */
4941 #define FOO(x) 'x'
4942 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4943
4944 int test (int i, double x);
4945 struct s1 {int (*f) (int a);};
4946 struct s2 {int (*f) (double a);};
4947 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4948 int argc;
4949 char **argv;
4950 int
4951 main ()
4952 {
4953 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4954   ;
4955   return 0;
4956 }
4957 _ACEOF
4958 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4959         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4960 do
4961   CC="$ac_save_CC $ac_arg"
4962   rm -f conftest.$ac_objext
4963 if { (ac_try="$ac_compile"
4964 case "(($ac_try" in
4965   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4966   *) ac_try_echo=$ac_try;;
4967 esac
4968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4969   (eval "$ac_compile") 2>conftest.er1
4970   ac_status=$?
4971   grep -v '^ *+' conftest.er1 >conftest.err
4972   rm -f conftest.er1
4973   cat conftest.err >&5
4974   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4975   (exit $ac_status); } && {
4976          test -z "$ac_c_werror_flag" ||
4977          test ! -s conftest.err
4978        } && test -s conftest.$ac_objext; then
4979   ac_cv_prog_cc_c89=$ac_arg
4980 else
4981   echo "$as_me: failed program was:" >&5
4982 sed 's/^/| /' conftest.$ac_ext >&5
4983
4984
4985 fi
4986
4987 rm -f core conftest.err conftest.$ac_objext
4988   test "x$ac_cv_prog_cc_c89" != "xno" && break
4989 done
4990 rm -f conftest.$ac_ext
4991 CC=$ac_save_CC
4992
4993 fi
4994 # AC_CACHE_VAL
4995 case "x$ac_cv_prog_cc_c89" in
4996   x)
4997     { echo "$as_me:$LINENO: result: none needed" >&5
4998 echo "${ECHO_T}none needed" >&6; } ;;
4999   xno)
5000     { echo "$as_me:$LINENO: result: unsupported" >&5
5001 echo "${ECHO_T}unsupported" >&6; } ;;
5002   *)
5003     CC="$CC $ac_cv_prog_cc_c89"
5004     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5005 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
5006 esac
5007
5008
5009 ac_ext=c
5010 ac_cpp='$CPP $CPPFLAGS'
5011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5014
5015
5016 { echo "$as_me:$LINENO: checking for library containing strerror" >&5
5017 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; }
5018 if test "${ac_cv_search_strerror+set}" = set; then
5019   echo $ECHO_N "(cached) $ECHO_C" >&6
5020 else
5021   ac_func_search_save_LIBS=$LIBS
5022 cat >conftest.$ac_ext <<_ACEOF
5023 /* confdefs.h.  */
5024 _ACEOF
5025 cat confdefs.h >>conftest.$ac_ext
5026 cat >>conftest.$ac_ext <<_ACEOF
5027 /* end confdefs.h.  */
5028
5029 /* Override any GCC internal prototype to avoid an error.
5030    Use char because int might match the return type of a GCC
5031    builtin and then its argument prototype would still apply.  */
5032 #ifdef __cplusplus
5033 extern "C"
5034 #endif
5035 char strerror ();
5036 int
5037 main ()
5038 {
5039 return strerror ();
5040   ;
5041   return 0;
5042 }
5043 _ACEOF
5044 for ac_lib in '' cposix; do
5045   if test -z "$ac_lib"; then
5046     ac_res="none required"
5047   else
5048     ac_res=-l$ac_lib
5049     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
5050   fi
5051   rm -f conftest.$ac_objext conftest$ac_exeext
5052 if { (ac_try="$ac_link"
5053 case "(($ac_try" in
5054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5055   *) ac_try_echo=$ac_try;;
5056 esac
5057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5058   (eval "$ac_link") 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } && {
5065          test -z "$ac_c_werror_flag" ||
5066          test ! -s conftest.err
5067        } && test -s conftest$ac_exeext &&
5068        $as_test_x conftest$ac_exeext; then
5069   ac_cv_search_strerror=$ac_res
5070 else
5071   echo "$as_me: failed program was:" >&5
5072 sed 's/^/| /' conftest.$ac_ext >&5
5073
5074
5075 fi
5076
5077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5078       conftest$ac_exeext
5079   if test "${ac_cv_search_strerror+set}" = set; then
5080   break
5081 fi
5082 done
5083 if test "${ac_cv_search_strerror+set}" = set; then
5084   :
5085 else
5086   ac_cv_search_strerror=no
5087 fi
5088 rm conftest.$ac_ext
5089 LIBS=$ac_func_search_save_LIBS
5090 fi
5091 { echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
5092 echo "${ECHO_T}$ac_cv_search_strerror" >&6; }
5093 ac_res=$ac_cv_search_strerror
5094 if test "$ac_res" != no; then
5095   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5096
5097 fi
5098
5099 ac_ext=c
5100 ac_cpp='$CPP $CPPFLAGS'
5101 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5102 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5103 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5104 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5105 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5106 # On Suns, sometimes $CPP names a directory.
5107 if test -n "$CPP" && test -d "$CPP"; then
5108   CPP=
5109 fi
5110 if test -z "$CPP"; then
5111   if test "${ac_cv_prog_CPP+set}" = set; then
5112   echo $ECHO_N "(cached) $ECHO_C" >&6
5113 else
5114       # Double quotes because CPP needs to be expanded
5115     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5116     do
5117       ac_preproc_ok=false
5118 for ac_c_preproc_warn_flag in '' yes
5119 do
5120   # Use a header file that comes with gcc, so configuring glibc
5121   # with a fresh cross-compiler works.
5122   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123   # <limits.h> exists even on freestanding compilers.
5124   # On the NeXT, cc -E runs the code through the compiler's parser,
5125   # not just through cpp. "Syntax error" is here to catch this case.
5126   cat >conftest.$ac_ext <<_ACEOF
5127 /* confdefs.h.  */
5128 _ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h.  */
5132 #ifdef __STDC__
5133 # include <limits.h>
5134 #else
5135 # include <assert.h>
5136 #endif
5137                      Syntax error
5138 _ACEOF
5139 if { (ac_try="$ac_cpp conftest.$ac_ext"
5140 case "(($ac_try" in
5141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5142   *) ac_try_echo=$ac_try;;
5143 esac
5144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5145   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5146   ac_status=$?
5147   grep -v '^ *+' conftest.er1 >conftest.err
5148   rm -f conftest.er1
5149   cat conftest.err >&5
5150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151   (exit $ac_status); } >/dev/null && {
5152          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5153          test ! -s conftest.err
5154        }; then
5155   :
5156 else
5157   echo "$as_me: failed program was:" >&5
5158 sed 's/^/| /' conftest.$ac_ext >&5
5159
5160   # Broken: fails on valid input.
5161 continue
5162 fi
5163
5164 rm -f conftest.err conftest.$ac_ext
5165
5166   # OK, works on sane cases.  Now check whether nonexistent headers
5167   # can be detected and how.
5168   cat >conftest.$ac_ext <<_ACEOF
5169 /* confdefs.h.  */
5170 _ACEOF
5171 cat confdefs.h >>conftest.$ac_ext
5172 cat >>conftest.$ac_ext <<_ACEOF
5173 /* end confdefs.h.  */
5174 #include <ac_nonexistent.h>
5175 _ACEOF
5176 if { (ac_try="$ac_cpp conftest.$ac_ext"
5177 case "(($ac_try" in
5178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5179   *) ac_try_echo=$ac_try;;
5180 esac
5181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5182   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5183   ac_status=$?
5184   grep -v '^ *+' conftest.er1 >conftest.err
5185   rm -f conftest.er1
5186   cat conftest.err >&5
5187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } >/dev/null && {
5189          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5190          test ! -s conftest.err
5191        }; then
5192   # Broken: success on invalid input.
5193 continue
5194 else
5195   echo "$as_me: failed program was:" >&5
5196 sed 's/^/| /' conftest.$ac_ext >&5
5197
5198   # Passes both tests.
5199 ac_preproc_ok=:
5200 break
5201 fi
5202
5203 rm -f conftest.err conftest.$ac_ext
5204
5205 done
5206 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5207 rm -f conftest.err conftest.$ac_ext
5208 if $ac_preproc_ok; then
5209   break
5210 fi
5211
5212     done
5213     ac_cv_prog_CPP=$CPP
5214
5215 fi
5216   CPP=$ac_cv_prog_CPP
5217 else
5218   ac_cv_prog_CPP=$CPP
5219 fi
5220 { echo "$as_me:$LINENO: result: $CPP" >&5
5221 echo "${ECHO_T}$CPP" >&6; }
5222 ac_preproc_ok=false
5223 for ac_c_preproc_warn_flag in '' yes
5224 do
5225   # Use a header file that comes with gcc, so configuring glibc
5226   # with a fresh cross-compiler works.
5227   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5228   # <limits.h> exists even on freestanding compilers.
5229   # On the NeXT, cc -E runs the code through the compiler's parser,
5230   # not just through cpp. "Syntax error" is here to catch this case.
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 #ifdef __STDC__
5238 # include <limits.h>
5239 #else
5240 # include <assert.h>
5241 #endif
5242                      Syntax error
5243 _ACEOF
5244 if { (ac_try="$ac_cpp conftest.$ac_ext"
5245 case "(($ac_try" in
5246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5247   *) ac_try_echo=$ac_try;;
5248 esac
5249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5250   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5251   ac_status=$?
5252   grep -v '^ *+' conftest.er1 >conftest.err
5253   rm -f conftest.er1
5254   cat conftest.err >&5
5255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5256   (exit $ac_status); } >/dev/null && {
5257          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5258          test ! -s conftest.err
5259        }; then
5260   :
5261 else
5262   echo "$as_me: failed program was:" >&5
5263 sed 's/^/| /' conftest.$ac_ext >&5
5264
5265   # Broken: fails on valid input.
5266 continue
5267 fi
5268
5269 rm -f conftest.err conftest.$ac_ext
5270
5271   # OK, works on sane cases.  Now check whether nonexistent headers
5272   # can be detected and how.
5273   cat >conftest.$ac_ext <<_ACEOF
5274 /* confdefs.h.  */
5275 _ACEOF
5276 cat confdefs.h >>conftest.$ac_ext
5277 cat >>conftest.$ac_ext <<_ACEOF
5278 /* end confdefs.h.  */
5279 #include <ac_nonexistent.h>
5280 _ACEOF
5281 if { (ac_try="$ac_cpp conftest.$ac_ext"
5282 case "(($ac_try" in
5283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5284   *) ac_try_echo=$ac_try;;
5285 esac
5286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5287   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5288   ac_status=$?
5289   grep -v '^ *+' conftest.er1 >conftest.err
5290   rm -f conftest.er1
5291   cat conftest.err >&5
5292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293   (exit $ac_status); } >/dev/null && {
5294          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5295          test ! -s conftest.err
5296        }; then
5297   # Broken: success on invalid input.
5298 continue
5299 else
5300   echo "$as_me: failed program was:" >&5
5301 sed 's/^/| /' conftest.$ac_ext >&5
5302
5303   # Passes both tests.
5304 ac_preproc_ok=:
5305 break
5306 fi
5307
5308 rm -f conftest.err conftest.$ac_ext
5309
5310 done
5311 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5312 rm -f conftest.err conftest.$ac_ext
5313 if $ac_preproc_ok; then
5314   :
5315 else
5316   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5317 See \`config.log' for more details." >&5
5318 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5319 See \`config.log' for more details." >&2;}
5320    { (exit 1); exit 1; }; }
5321 fi
5322
5323 ac_ext=c
5324 ac_cpp='$CPP $CPPFLAGS'
5325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5328
5329
5330 ac_aux_dir=
5331 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
5332   if test -f "$ac_dir/install-sh"; then
5333     ac_aux_dir=$ac_dir
5334     ac_install_sh="$ac_aux_dir/install-sh -c"
5335     break
5336   elif test -f "$ac_dir/install.sh"; then
5337     ac_aux_dir=$ac_dir
5338     ac_install_sh="$ac_aux_dir/install.sh -c"
5339     break
5340   elif test -f "$ac_dir/shtool"; then
5341     ac_aux_dir=$ac_dir
5342     ac_install_sh="$ac_aux_dir/shtool install -c"
5343     break
5344   fi
5345 done
5346 if test -z "$ac_aux_dir"; then
5347   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
5348 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
5349    { (exit 1); exit 1; }; }
5350 fi
5351
5352 # These three variables are undocumented and unsupported,
5353 # and are intended to be withdrawn in a future Autoconf release.
5354 # They can cause serious problems if a builder's source tree is in a directory
5355 # whose full name contains unusual characters.
5356 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
5357 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
5358 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
5359
5360
5361 # Make sure we can run config.sub.
5362 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5363   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
5364 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
5365    { (exit 1); exit 1; }; }
5366
5367 { echo "$as_me:$LINENO: checking build system type" >&5
5368 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
5369 if test "${ac_cv_build+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   ac_build_alias=$build_alias
5373 test "x$ac_build_alias" = x &&
5374   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5375 test "x$ac_build_alias" = x &&
5376   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5377 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5378    { (exit 1); exit 1; }; }
5379 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5380   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
5381 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
5382    { (exit 1); exit 1; }; }
5383
5384 fi
5385 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5386 echo "${ECHO_T}$ac_cv_build" >&6; }
5387 case $ac_cv_build in
5388 *-*-*) ;;
5389 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
5390 echo "$as_me: error: invalid value of canonical build" >&2;}
5391    { (exit 1); exit 1; }; };;
5392 esac
5393 build=$ac_cv_build
5394 ac_save_IFS=$IFS; IFS='-'
5395 set x $ac_cv_build
5396 shift
5397 build_cpu=$1
5398 build_vendor=$2
5399 shift; shift
5400 # Remember, the first character of IFS is used to create $*,
5401 # except with old shells:
5402 build_os=$*
5403 IFS=$ac_save_IFS
5404 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5405
5406
5407 { echo "$as_me:$LINENO: checking host system type" >&5
5408 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
5409 if test "${ac_cv_host+set}" = set; then
5410   echo $ECHO_N "(cached) $ECHO_C" >&6
5411 else
5412   if test "x$host_alias" = x; then
5413   ac_cv_host=$ac_cv_build
5414 else
5415   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5416     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
5417 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
5418    { (exit 1); exit 1; }; }
5419 fi
5420
5421 fi
5422 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5423 echo "${ECHO_T}$ac_cv_host" >&6; }
5424 case $ac_cv_host in
5425 *-*-*) ;;
5426 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
5427 echo "$as_me: error: invalid value of canonical host" >&2;}
5428    { (exit 1); exit 1; }; };;
5429 esac
5430 host=$ac_cv_host
5431 ac_save_IFS=$IFS; IFS='-'
5432 set x $ac_cv_host
5433 shift
5434 host_cpu=$1
5435 host_vendor=$2
5436 shift; shift
5437 # Remember, the first character of IFS is used to create $*,
5438 # except with old shells:
5439 host_os=$*
5440 IFS=$ac_save_IFS
5441 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5442
5443
5444 { echo "$as_me:$LINENO: checking target system type" >&5
5445 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
5446 if test "${ac_cv_target+set}" = set; then
5447   echo $ECHO_N "(cached) $ECHO_C" >&6
5448 else
5449   if test "x$target_alias" = x; then
5450   ac_cv_target=$ac_cv_host
5451 else
5452   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
5453     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
5454 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
5455    { (exit 1); exit 1; }; }
5456 fi
5457
5458 fi
5459 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
5460 echo "${ECHO_T}$ac_cv_target" >&6; }
5461 case $ac_cv_target in
5462 *-*-*) ;;
5463 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
5464 echo "$as_me: error: invalid value of canonical target" >&2;}
5465    { (exit 1); exit 1; }; };;
5466 esac
5467 target=$ac_cv_target
5468 ac_save_IFS=$IFS; IFS='-'
5469 set x $ac_cv_target
5470 shift
5471 target_cpu=$1
5472 target_vendor=$2
5473 shift; shift
5474 # Remember, the first character of IFS is used to create $*,
5475 # except with old shells:
5476 target_os=$*
5477 IFS=$ac_save_IFS
5478 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
5479
5480
5481 # The aliases save the names the user supplied, while $host etc.
5482 # will get canonicalized.
5483 test -n "$target_alias" &&
5484   test "$program_prefix$program_suffix$program_transform_name" = \
5485     NONENONEs,x,x, &&
5486   program_prefix=${target_alias}-
5487 # Check whether --enable-static was given.
5488 if test "${enable_static+set}" = set; then
5489   enableval=$enable_static; p=${PACKAGE-default}
5490     case $enableval in
5491     yes) enable_static=yes ;;
5492     no) enable_static=no ;;
5493     *)
5494      enable_static=no
5495       # Look at the argument we got.  We use all the common list separators.
5496       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5497       for pkg in $enableval; do
5498         IFS="$lt_save_ifs"
5499         if test "X$pkg" = "X$p"; then
5500           enable_static=yes
5501         fi
5502       done
5503       IFS="$lt_save_ifs"
5504       ;;
5505     esac
5506 else
5507   enable_static=no
5508 fi
5509
5510
5511
5512 # Check whether --enable-shared was given.
5513 if test "${enable_shared+set}" = set; then
5514   enableval=$enable_shared; p=${PACKAGE-default}
5515     case $enableval in
5516     yes) enable_shared=yes ;;
5517     no) enable_shared=no ;;
5518     *)
5519       enable_shared=no
5520       # Look at the argument we got.  We use all the common list separators.
5521       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5522       for pkg in $enableval; do
5523         IFS="$lt_save_ifs"
5524         if test "X$pkg" = "X$p"; then
5525           enable_shared=yes
5526         fi
5527       done
5528       IFS="$lt_save_ifs"
5529       ;;
5530     esac
5531 else
5532   enable_shared=yes
5533 fi
5534
5535
5536 # Check whether --enable-fast-install was given.
5537 if test "${enable_fast_install+set}" = set; then
5538   enableval=$enable_fast_install; p=${PACKAGE-default}
5539     case $enableval in
5540     yes) enable_fast_install=yes ;;
5541     no) enable_fast_install=no ;;
5542     *)
5543       enable_fast_install=no
5544       # Look at the argument we got.  We use all the common list separators.
5545       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5546       for pkg in $enableval; do
5547         IFS="$lt_save_ifs"
5548         if test "X$pkg" = "X$p"; then
5549           enable_fast_install=yes
5550         fi
5551       done
5552       IFS="$lt_save_ifs"
5553       ;;
5554     esac
5555 else
5556   enable_fast_install=yes
5557 fi
5558
5559
5560 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5561 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
5562 if test "${lt_cv_path_SED+set}" = set; then
5563   echo $ECHO_N "(cached) $ECHO_C" >&6
5564 else
5565   # Loop through the user's path and test for sed and gsed.
5566 # Then use that list of sed's as ones to test for truncation.
5567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5568 for as_dir in $PATH
5569 do
5570   IFS=$as_save_IFS
5571   test -z "$as_dir" && as_dir=.
5572   for lt_ac_prog in sed gsed; do
5573     for ac_exec_ext in '' $ac_executable_extensions; do
5574       if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
5575         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5576       fi
5577     done
5578   done
5579 done
5580 IFS=$as_save_IFS
5581 lt_ac_max=0
5582 lt_ac_count=0
5583 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5584 # along with /bin/sed that truncates output.
5585 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5586   test ! -f $lt_ac_sed && continue
5587   cat /dev/null > conftest.in
5588   lt_ac_count=0
5589   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5590   # Check for GNU sed and select it if it is found.
5591   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5592     lt_cv_path_SED=$lt_ac_sed
5593     break
5594   fi
5595   while true; do
5596     cat conftest.in conftest.in >conftest.tmp
5597     mv conftest.tmp conftest.in
5598     cp conftest.in conftest.nl
5599     echo >>conftest.nl
5600     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5601     cmp -s conftest.out conftest.nl || break
5602     # 10000 chars as input seems more than enough
5603     test $lt_ac_count -gt 10 && break
5604     lt_ac_count=`expr $lt_ac_count + 1`
5605     if test $lt_ac_count -gt $lt_ac_max; then
5606       lt_ac_max=$lt_ac_count
5607       lt_cv_path_SED=$lt_ac_sed
5608     fi
5609   done
5610 done
5611
5612 fi
5613
5614 SED=$lt_cv_path_SED
5615
5616 { echo "$as_me:$LINENO: result: $SED" >&5
5617 echo "${ECHO_T}$SED" >&6; }
5618
5619 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5620 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
5621 if test "${ac_cv_path_GREP+set}" = set; then
5622   echo $ECHO_N "(cached) $ECHO_C" >&6
5623 else
5624   # Extract the first word of "grep ggrep" to use in msg output
5625 if test -z "$GREP"; then
5626 set dummy grep ggrep; ac_prog_name=$2
5627 if test "${ac_cv_path_GREP+set}" = set; then
5628   echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630   ac_path_GREP_found=false
5631 # Loop through the user's path and test for each of PROGNAME-LIST
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5634 do
5635   IFS=$as_save_IFS
5636   test -z "$as_dir" && as_dir=.
5637   for ac_prog in grep ggrep; do
5638   for ac_exec_ext in '' $ac_executable_extensions; do
5639     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5640     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5641     # Check for GNU ac_path_GREP and select it if it is found.
5642   # Check for GNU $ac_path_GREP
5643 case `"$ac_path_GREP" --version 2>&1` in
5644 *GNU*)
5645   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5646 *)
5647   ac_count=0
5648   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5649   while :
5650   do
5651     cat "conftest.in" "conftest.in" >"conftest.tmp"
5652     mv "conftest.tmp" "conftest.in"
5653     cp "conftest.in" "conftest.nl"
5654     echo 'GREP' >> "conftest.nl"
5655     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657     ac_count=`expr $ac_count + 1`
5658     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5659       # Best one so far, save it but keep looking for a better one
5660       ac_cv_path_GREP="$ac_path_GREP"
5661       ac_path_GREP_max=$ac_count
5662     fi
5663     # 10*(2^10) chars as input seems more than enough
5664     test $ac_count -gt 10 && break
5665   done
5666   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5667 esac
5668
5669
5670     $ac_path_GREP_found && break 3
5671   done
5672 done
5673
5674 done
5675 IFS=$as_save_IFS
5676
5677
5678 fi
5679
5680 GREP="$ac_cv_path_GREP"
5681 if test -z "$GREP"; then
5682   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5683 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5684    { (exit 1); exit 1; }; }
5685 fi
5686
5687 else
5688   ac_cv_path_GREP=$GREP
5689 fi
5690
5691
5692 fi
5693 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5694 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
5695  GREP="$ac_cv_path_GREP"
5696
5697
5698 { echo "$as_me:$LINENO: checking for egrep" >&5
5699 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
5700 if test "${ac_cv_path_EGREP+set}" = set; then
5701   echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5704    then ac_cv_path_EGREP="$GREP -E"
5705    else
5706      # Extract the first word of "egrep" to use in msg output
5707 if test -z "$EGREP"; then
5708 set dummy egrep; ac_prog_name=$2
5709 if test "${ac_cv_path_EGREP+set}" = set; then
5710   echo $ECHO_N "(cached) $ECHO_C" >&6
5711 else
5712   ac_path_EGREP_found=false
5713 # Loop through the user's path and test for each of PROGNAME-LIST
5714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5716 do
5717   IFS=$as_save_IFS
5718   test -z "$as_dir" && as_dir=.
5719   for ac_prog in egrep; do
5720   for ac_exec_ext in '' $ac_executable_extensions; do
5721     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5722     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5723     # Check for GNU ac_path_EGREP and select it if it is found.
5724   # Check for GNU $ac_path_EGREP
5725 case `"$ac_path_EGREP" --version 2>&1` in
5726 *GNU*)
5727   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5728 *)
5729   ac_count=0
5730   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
5731   while :
5732   do
5733     cat "conftest.in" "conftest.in" >"conftest.tmp"
5734     mv "conftest.tmp" "conftest.in"
5735     cp "conftest.in" "conftest.nl"
5736     echo 'EGREP' >> "conftest.nl"
5737     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5738     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5739     ac_count=`expr $ac_count + 1`
5740     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5741       # Best one so far, save it but keep looking for a better one
5742       ac_cv_path_EGREP="$ac_path_EGREP"
5743       ac_path_EGREP_max=$ac_count
5744     fi
5745     # 10*(2^10) chars as input seems more than enough
5746     test $ac_count -gt 10 && break
5747   done
5748   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5749 esac
5750
5751
5752     $ac_path_EGREP_found && break 3
5753   done
5754 done
5755
5756 done
5757 IFS=$as_save_IFS
5758
5759
5760 fi
5761
5762 EGREP="$ac_cv_path_EGREP"
5763 if test -z "$EGREP"; then
5764   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5765 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5766    { (exit 1); exit 1; }; }
5767 fi
5768
5769 else
5770   ac_cv_path_EGREP=$EGREP
5771 fi
5772
5773
5774    fi
5775 fi
5776 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5777 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
5778  EGREP="$ac_cv_path_EGREP"
5779
5780
5781
5782 # Check whether --with-gnu-ld was given.
5783 if test "${with_gnu_ld+set}" = set; then
5784   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5785 else
5786   with_gnu_ld=no
5787 fi
5788
5789 ac_prog=ld
5790 if test "$GCC" = yes; then
5791   # Check if gcc -print-prog-name=ld gives a path.
5792   { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5793 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
5794   case $host in
5795   *-*-mingw*)
5796     # gcc leaves a trailing carriage return which upsets mingw
5797     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5798   *)
5799     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5800   esac
5801   case $ac_prog in
5802     # Accept absolute paths.
5803     [\\/]* | ?:[\\/]*)
5804       re_direlt='/[^/][^/]*/\.\./'
5805       # Canonicalize the pathname of ld
5806       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5807       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5808         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5809       done
5810       test -z "$LD" && LD="$ac_prog"
5811       ;;
5812   "")
5813     # If it fails, then pretend we aren't using GCC.
5814     ac_prog=ld
5815     ;;
5816   *)
5817     # If it is relative, then search for the first ld in PATH.
5818     with_gnu_ld=unknown
5819     ;;
5820   esac
5821 elif test "$with_gnu_ld" = yes; then
5822   { echo "$as_me:$LINENO: checking for GNU ld" >&5
5823 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
5824 else
5825   { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5826 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
5827 fi
5828 if test "${lt_cv_path_LD+set}" = set; then
5829   echo $ECHO_N "(cached) $ECHO_C" >&6
5830 else
5831   if test -z "$LD"; then
5832   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5833   for ac_dir in $PATH; do
5834     IFS="$lt_save_ifs"
5835     test -z "$ac_dir" && ac_dir=.
5836     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5837       lt_cv_path_LD="$ac_dir/$ac_prog"
5838       # Check to see if the program is GNU ld.  I'd rather use --version,
5839       # but apparently some variants of GNU ld only accept -v.
5840       # Break only if it was the GNU/non-GNU ld that we prefer.
5841       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5842       *GNU* | *'with BFD'*)
5843         test "$with_gnu_ld" != no && break
5844         ;;
5845       *)
5846         test "$with_gnu_ld" != yes && break
5847         ;;
5848       esac
5849     fi
5850   done
5851   IFS="$lt_save_ifs"
5852 else
5853   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5854 fi
5855 fi
5856
5857 LD="$lt_cv_path_LD"
5858 if test -n "$LD"; then
5859   { echo "$as_me:$LINENO: result: $LD" >&5
5860 echo "${ECHO_T}$LD" >&6; }
5861 else
5862   { echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6; }
5864 fi
5865 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5866 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5867    { (exit 1); exit 1; }; }
5868 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5869 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
5870 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5871   echo $ECHO_N "(cached) $ECHO_C" >&6
5872 else
5873   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5874 case `$LD -v 2>&1 </dev/null` in
5875 *GNU* | *'with BFD'*)
5876   lt_cv_prog_gnu_ld=yes
5877   ;;
5878 *)
5879   lt_cv_prog_gnu_ld=no
5880   ;;
5881 esac
5882 fi
5883 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5884 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
5885 with_gnu_ld=$lt_cv_prog_gnu_ld
5886
5887
5888 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5889 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5890 if test "${lt_cv_ld_reload_flag+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   lt_cv_ld_reload_flag='-r'
5894 fi
5895 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5896 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5897 reload_flag=$lt_cv_ld_reload_flag
5898 case $reload_flag in
5899 "" | " "*) ;;
5900 *) reload_flag=" $reload_flag" ;;
5901 esac
5902 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5903 case $host_os in
5904   darwin*)
5905     if test "$GCC" = yes; then
5906       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5907     else
5908       reload_cmds='$LD$reload_flag -o $output$reload_objs'
5909     fi
5910     ;;
5911 esac
5912
5913 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5914 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5915 if test "${lt_cv_path_NM+set}" = set; then
5916   echo $ECHO_N "(cached) $ECHO_C" >&6
5917 else
5918   if test -n "$NM"; then
5919   # Let the user override the test.
5920   lt_cv_path_NM="$NM"
5921 else
5922   lt_nm_to_check="${ac_tool_prefix}nm"
5923   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5924     lt_nm_to_check="$lt_nm_to_check nm"
5925   fi
5926   for lt_tmp_nm in $lt_nm_to_check; do
5927     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5928     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5929       IFS="$lt_save_ifs"
5930       test -z "$ac_dir" && ac_dir=.
5931       tmp_nm="$ac_dir/$lt_tmp_nm"
5932       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5933         # Check to see if the nm accepts a BSD-compat flag.
5934         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5935         #   nm: unknown option "B" ignored
5936         # Tru64's nm complains that /dev/null is an invalid object file
5937         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5938         */dev/null* | *'Invalid file or object type'*)
5939           lt_cv_path_NM="$tmp_nm -B"
5940           break
5941           ;;
5942         *)
5943           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5944           */dev/null*)
5945             lt_cv_path_NM="$tmp_nm -p"
5946             break
5947             ;;
5948           *)
5949             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5950             continue # so that we can try to find one that supports BSD flags
5951             ;;
5952           esac
5953           ;;
5954         esac
5955       fi
5956     done
5957     IFS="$lt_save_ifs"
5958   done
5959   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5960 fi
5961 fi
5962 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5963 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5964 NM="$lt_cv_path_NM"
5965
5966 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5967 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5968 LN_S=$as_ln_s
5969 if test "$LN_S" = "ln -s"; then
5970   { echo "$as_me:$LINENO: result: yes" >&5
5971 echo "${ECHO_T}yes" >&6; }
5972 else
5973   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5974 echo "${ECHO_T}no, using $LN_S" >&6; }
5975 fi
5976
5977 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5978 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5979 if test "${lt_cv_deplibs_check_method+set}" = set; then
5980   echo $ECHO_N "(cached) $ECHO_C" >&6
5981 else
5982   lt_cv_file_magic_cmd='$MAGIC_CMD'
5983 lt_cv_file_magic_test_file=
5984 lt_cv_deplibs_check_method='unknown'
5985 # Need to set the preceding variable on all platforms that support
5986 # interlibrary dependencies.
5987 # 'none' -- dependencies not supported.
5988 # `unknown' -- same as none, but documents that we really don't know.
5989 # 'pass_all' -- all dependencies passed with no checks.
5990 # 'test_compile' -- check by making test program.
5991 # 'file_magic [[regex]]' -- check by looking for files in library path
5992 # which responds to the $file_magic_cmd with a given extended regex.
5993 # If you have `file' or equivalent on your system and you're not sure
5994 # whether `pass_all' will *always* work, you probably want this one.
5995
5996 case $host_os in
5997 aix[4-9]*)
5998   lt_cv_deplibs_check_method=pass_all
5999   ;;
6000
6001 beos*)
6002   lt_cv_deplibs_check_method=pass_all
6003   ;;
6004
6005 bsdi[45]*)
6006   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6007   lt_cv_file_magic_cmd='/usr/bin/file -L'
6008   lt_cv_file_magic_test_file=/shlib/libc.so
6009   ;;
6010
6011 cygwin*)
6012   # func_win32_libid is a shell function defined in ltmain.sh
6013   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6014   lt_cv_file_magic_cmd='func_win32_libid'
6015   ;;
6016
6017 mingw* | pw32*)
6018   # Base MSYS/MinGW do not provide the 'file' command needed by
6019   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6020   # unless we find 'file', for example because we are cross-compiling.
6021   if ( file / ) >/dev/null 2>&1; then
6022     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6023     lt_cv_file_magic_cmd='func_win32_libid'
6024   else
6025     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6026     lt_cv_file_magic_cmd='$OBJDUMP -f'
6027   fi
6028   ;;
6029
6030 darwin* | rhapsody*)
6031   lt_cv_deplibs_check_method=pass_all
6032   ;;
6033
6034 freebsd* | dragonfly*)
6035   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6036     case $host_cpu in
6037     i*86 )
6038       # Not sure whether the presence of OpenBSD here was a mistake.
6039       # Let's accept both of them until this is cleared up.
6040       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6041       lt_cv_file_magic_cmd=/usr/bin/file
6042       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6043       ;;
6044     esac
6045   else
6046     lt_cv_deplibs_check_method=pass_all
6047   fi
6048   ;;
6049
6050 gnu*)
6051   lt_cv_deplibs_check_method=pass_all
6052   ;;
6053
6054 hpux10.20* | hpux11*)
6055   lt_cv_file_magic_cmd=/usr/bin/file
6056   case $host_cpu in
6057   ia64*)
6058     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6059     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6060     ;;
6061   hppa*64*)
6062     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]'
6063     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6064     ;;
6065   *)
6066     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6067     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6068     ;;
6069   esac
6070   ;;
6071
6072 interix[3-9]*)
6073   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6074   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6075   ;;
6076
6077 irix5* | irix6* | nonstopux*)
6078   case $LD in
6079   *-32|*"-32 ") libmagic=32-bit;;
6080   *-n32|*"-n32 ") libmagic=N32;;
6081   *-64|*"-64 ") libmagic=64-bit;;
6082   *) libmagic=never-match;;
6083   esac
6084   lt_cv_deplibs_check_method=pass_all
6085   ;;
6086
6087 # This must be Linux ELF.
6088 linux* | k*bsd*-gnu)
6089   lt_cv_deplibs_check_method=pass_all
6090   ;;
6091
6092 netbsd*)
6093   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6094     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6095   else
6096     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6097   fi
6098   ;;
6099
6100 newos6*)
6101   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6102   lt_cv_file_magic_cmd=/usr/bin/file
6103   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6104   ;;
6105
6106 nto-qnx*)
6107   lt_cv_deplibs_check_method=unknown
6108   ;;
6109
6110 openbsd*)
6111   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6112     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6113   else
6114     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6115   fi
6116   ;;
6117
6118 osf3* | osf4* | osf5*)
6119   lt_cv_deplibs_check_method=pass_all
6120   ;;
6121
6122 rdos*)
6123   lt_cv_deplibs_check_method=pass_all
6124   ;;
6125
6126 solaris*)
6127   lt_cv_deplibs_check_method=pass_all
6128   ;;
6129
6130 sysv4 | sysv4.3*)
6131   case $host_vendor in
6132   motorola)
6133     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]'
6134     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6135     ;;
6136   ncr)
6137     lt_cv_deplibs_check_method=pass_all
6138     ;;
6139   sequent)
6140     lt_cv_file_magic_cmd='/bin/file'
6141     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6142     ;;
6143   sni)
6144     lt_cv_file_magic_cmd='/bin/file'
6145     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6146     lt_cv_file_magic_test_file=/lib/libc.so
6147     ;;
6148   siemens)
6149     lt_cv_deplibs_check_method=pass_all
6150     ;;
6151   pc)
6152     lt_cv_deplibs_check_method=pass_all
6153     ;;
6154   esac
6155   ;;
6156
6157 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6158   lt_cv_deplibs_check_method=pass_all
6159   ;;
6160 esac
6161
6162 fi
6163 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6164 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
6165 file_magic_cmd=$lt_cv_file_magic_cmd
6166 deplibs_check_method=$lt_cv_deplibs_check_method
6167 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6168
6169
6170
6171
6172 # If no C compiler was specified, use CC.
6173 LTCC=${LTCC-"$CC"}
6174
6175 # If no C compiler flags were specified, use CFLAGS.
6176 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6177
6178 # Allow CC to be a program name with arguments.
6179 compiler=$CC
6180
6181 # Check whether --enable-libtool-lock was given.
6182 if test "${enable_libtool_lock+set}" = set; then
6183   enableval=$enable_libtool_lock;
6184 fi
6185
6186 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6187
6188 # Some flags need to be propagated to the compiler or linker for good
6189 # libtool support.
6190 case $host in
6191 ia64-*-hpux*)
6192   # Find out which ABI we are using.
6193   echo 'int i;' > conftest.$ac_ext
6194   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6195   (eval $ac_compile) 2>&5
6196   ac_status=$?
6197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198   (exit $ac_status); }; then
6199     case `/usr/bin/file conftest.$ac_objext` in
6200     *ELF-32*)
6201       HPUX_IA64_MODE="32"
6202       ;;
6203     *ELF-64*)
6204       HPUX_IA64_MODE="64"
6205       ;;
6206     esac
6207   fi
6208   rm -rf conftest*
6209   ;;
6210 *-*-irix6*)
6211   # Find out which ABI we are using.
6212   echo '#line 6212 "configure"' > conftest.$ac_ext
6213   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6214   (eval $ac_compile) 2>&5
6215   ac_status=$?
6216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6217   (exit $ac_status); }; then
6218    if test "$lt_cv_prog_gnu_ld" = yes; then
6219     case `/usr/bin/file conftest.$ac_objext` in
6220     *32-bit*)
6221       LD="${LD-ld} -melf32bsmip"
6222       ;;
6223     *N32*)
6224       LD="${LD-ld} -melf32bmipn32"
6225       ;;
6226     *64-bit*)
6227       LD="${LD-ld} -melf64bmip"
6228       ;;
6229     esac
6230    else
6231     case `/usr/bin/file conftest.$ac_objext` in
6232     *32-bit*)
6233       LD="${LD-ld} -32"
6234       ;;
6235     *N32*)
6236       LD="${LD-ld} -n32"
6237       ;;
6238     *64-bit*)
6239       LD="${LD-ld} -64"
6240       ;;
6241     esac
6242    fi
6243   fi
6244   rm -rf conftest*
6245   ;;
6246
6247 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6248 s390*-*linux*|sparc*-*linux*)
6249   # Find out which ABI we are using.
6250   echo 'int i;' > conftest.$ac_ext
6251   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6252   (eval $ac_compile) 2>&5
6253   ac_status=$?
6254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6255   (exit $ac_status); }; then
6256     case `/usr/bin/file conftest.o` in
6257     *32-bit*)
6258       case $host in
6259         x86_64-*kfreebsd*-gnu)
6260           LD="${LD-ld} -m elf_i386_fbsd"
6261           ;;
6262         x86_64-*linux*)
6263           LD="${LD-ld} -m elf_i386"
6264           ;;
6265         ppc64-*linux*|powerpc64-*linux*)
6266           LD="${LD-ld} -m elf32ppclinux"
6267           ;;
6268         s390x-*linux*)
6269           LD="${LD-ld} -m elf_s390"
6270           ;;
6271         sparc64-*linux*)
6272           LD="${LD-ld} -m elf32_sparc"
6273           ;;
6274       esac
6275       ;;
6276     *64-bit*)
6277       case $host in
6278         x86_64-*kfreebsd*-gnu)
6279           LD="${LD-ld} -m elf_x86_64_fbsd"
6280           ;;
6281         x86_64-*linux*)
6282           LD="${LD-ld} -m elf_x86_64"
6283           ;;
6284         ppc*-*linux*|powerpc*-*linux*)
6285           LD="${LD-ld} -m elf64ppc"
6286           ;;
6287         s390*-*linux*)
6288           LD="${LD-ld} -m elf64_s390"
6289           ;;
6290         sparc*-*linux*)
6291           LD="${LD-ld} -m elf64_sparc"
6292           ;;
6293       esac
6294       ;;
6295     esac
6296   fi
6297   rm -rf conftest*
6298   ;;
6299
6300 *-*-sco3.2v5*)
6301   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6302   SAVE_CFLAGS="$CFLAGS"
6303   CFLAGS="$CFLAGS -belf"
6304   { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6305 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6306 if test "${lt_cv_cc_needs_belf+set}" = set; then
6307   echo $ECHO_N "(cached) $ECHO_C" >&6
6308 else
6309   ac_ext=c
6310 ac_cpp='$CPP $CPPFLAGS'
6311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6314
6315      cat >conftest.$ac_ext <<_ACEOF
6316 /* confdefs.h.  */
6317 _ACEOF
6318 cat confdefs.h >>conftest.$ac_ext
6319 cat >>conftest.$ac_ext <<_ACEOF
6320 /* end confdefs.h.  */
6321
6322 int
6323 main ()
6324 {
6325
6326   ;
6327   return 0;
6328 }
6329 _ACEOF
6330 rm -f conftest.$ac_objext conftest$ac_exeext
6331 if { (ac_try="$ac_link"
6332 case "(($ac_try" in
6333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334   *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337   (eval "$ac_link") 2>conftest.er1
6338   ac_status=$?
6339   grep -v '^ *+' conftest.er1 >conftest.err
6340   rm -f conftest.er1
6341   cat conftest.err >&5
6342   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343   (exit $ac_status); } && {
6344          test -z "$ac_c_werror_flag" ||
6345          test ! -s conftest.err
6346        } && test -s conftest$ac_exeext &&
6347        $as_test_x conftest$ac_exeext; then
6348   lt_cv_cc_needs_belf=yes
6349 else
6350   echo "$as_me: failed program was:" >&5
6351 sed 's/^/| /' conftest.$ac_ext >&5
6352
6353         lt_cv_cc_needs_belf=no
6354 fi
6355
6356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6357       conftest$ac_exeext conftest.$ac_ext
6358      ac_ext=c
6359 ac_cpp='$CPP $CPPFLAGS'
6360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6363
6364 fi
6365 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6366 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6367   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6368     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6369     CFLAGS="$SAVE_CFLAGS"
6370   fi
6371   ;;
6372 sparc*-*solaris*)
6373   # Find out which ABI we are using.
6374   echo 'int i;' > conftest.$ac_ext
6375   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6376   (eval $ac_compile) 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }; then
6380     case `/usr/bin/file conftest.o` in
6381     *64-bit*)
6382       case $lt_cv_prog_gnu_ld in
6383       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6384       *)
6385         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6386           LD="${LD-ld} -64"
6387         fi
6388         ;;
6389       esac
6390       ;;
6391     esac
6392   fi
6393   rm -rf conftest*
6394   ;;
6395
6396
6397 esac
6398
6399 need_locks="$enable_libtool_lock"
6400
6401
6402
6403 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6404 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6405 if test "${ac_cv_header_stdc+set}" = set; then
6406   echo $ECHO_N "(cached) $ECHO_C" >&6
6407 else
6408   cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h.  */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h.  */
6414 #include <stdlib.h>
6415 #include <stdarg.h>
6416 #include <string.h>
6417 #include <float.h>
6418
6419 int
6420 main ()
6421 {
6422
6423   ;
6424   return 0;
6425 }
6426 _ACEOF
6427 rm -f conftest.$ac_objext
6428 if { (ac_try="$ac_compile"
6429 case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434   (eval "$ac_compile") 2>conftest.er1
6435   ac_status=$?
6436   grep -v '^ *+' conftest.er1 >conftest.err
6437   rm -f conftest.er1
6438   cat conftest.err >&5
6439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6440   (exit $ac_status); } && {
6441          test -z "$ac_c_werror_flag" ||
6442          test ! -s conftest.err
6443        } && test -s conftest.$ac_objext; then
6444   ac_cv_header_stdc=yes
6445 else
6446   echo "$as_me: failed program was:" >&5
6447 sed 's/^/| /' conftest.$ac_ext >&5
6448
6449         ac_cv_header_stdc=no
6450 fi
6451
6452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6453
6454 if test $ac_cv_header_stdc = yes; then
6455   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6456   cat >conftest.$ac_ext <<_ACEOF
6457 /* confdefs.h.  */
6458 _ACEOF
6459 cat confdefs.h >>conftest.$ac_ext
6460 cat >>conftest.$ac_ext <<_ACEOF
6461 /* end confdefs.h.  */
6462 #include <string.h>
6463
6464 _ACEOF
6465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6466   $EGREP "memchr" >/dev/null 2>&1; then
6467   :
6468 else
6469   ac_cv_header_stdc=no
6470 fi
6471 rm -f conftest*
6472
6473 fi
6474
6475 if test $ac_cv_header_stdc = yes; then
6476   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6477   cat >conftest.$ac_ext <<_ACEOF
6478 /* confdefs.h.  */
6479 _ACEOF
6480 cat confdefs.h >>conftest.$ac_ext
6481 cat >>conftest.$ac_ext <<_ACEOF
6482 /* end confdefs.h.  */
6483 #include <stdlib.h>
6484
6485 _ACEOF
6486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6487   $EGREP "free" >/dev/null 2>&1; then
6488   :
6489 else
6490   ac_cv_header_stdc=no
6491 fi
6492 rm -f conftest*
6493
6494 fi
6495
6496 if test $ac_cv_header_stdc = yes; then
6497   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6498   if test "$cross_compiling" = yes; then
6499   :
6500 else
6501   cat >conftest.$ac_ext <<_ACEOF
6502 /* confdefs.h.  */
6503 _ACEOF
6504 cat confdefs.h >>conftest.$ac_ext
6505 cat >>conftest.$ac_ext <<_ACEOF
6506 /* end confdefs.h.  */
6507 #include <ctype.h>
6508 #include <stdlib.h>
6509 #if ((' ' & 0x0FF) == 0x020)
6510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6511 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6512 #else
6513 # define ISLOWER(c) \
6514                    (('a' <= (c) && (c) <= 'i') \
6515                      || ('j' <= (c) && (c) <= 'r') \
6516                      || ('s' <= (c) && (c) <= 'z'))
6517 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6518 #endif
6519
6520 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6521 int
6522 main ()
6523 {
6524   int i;
6525   for (i = 0; i < 256; i++)
6526     if (XOR (islower (i), ISLOWER (i))
6527         || toupper (i) != TOUPPER (i))
6528       return 2;
6529   return 0;
6530 }
6531 _ACEOF
6532 rm -f conftest$ac_exeext
6533 if { (ac_try="$ac_link"
6534 case "(($ac_try" in
6535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536   *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539   (eval "$ac_link") 2>&5
6540   ac_status=$?
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6543   { (case "(($ac_try" in
6544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6545   *) ac_try_echo=$ac_try;;
6546 esac
6547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6548   (eval "$ac_try") 2>&5
6549   ac_status=$?
6550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6551   (exit $ac_status); }; }; then
6552   :
6553 else
6554   echo "$as_me: program exited with status $ac_status" >&5
6555 echo "$as_me: failed program was:" >&5
6556 sed 's/^/| /' conftest.$ac_ext >&5
6557
6558 ( exit $ac_status )
6559 ac_cv_header_stdc=no
6560 fi
6561 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6562 fi
6563
6564
6565 fi
6566 fi
6567 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6568 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6569 if test $ac_cv_header_stdc = yes; then
6570
6571 cat >>confdefs.h <<\_ACEOF
6572 #define STDC_HEADERS 1
6573 _ACEOF
6574
6575 fi
6576
6577 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6588                   inttypes.h stdint.h unistd.h
6589 do
6590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6594   echo $ECHO_N "(cached) $ECHO_C" >&6
6595 else
6596   cat >conftest.$ac_ext <<_ACEOF
6597 /* confdefs.h.  */
6598 _ACEOF
6599 cat confdefs.h >>conftest.$ac_ext
6600 cat >>conftest.$ac_ext <<_ACEOF
6601 /* end confdefs.h.  */
6602 $ac_includes_default
6603
6604 #include <$ac_header>
6605 _ACEOF
6606 rm -f conftest.$ac_objext
6607 if { (ac_try="$ac_compile"
6608 case "(($ac_try" in
6609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6610   *) ac_try_echo=$ac_try;;
6611 esac
6612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6613   (eval "$ac_compile") 2>conftest.er1
6614   ac_status=$?
6615   grep -v '^ *+' conftest.er1 >conftest.err
6616   rm -f conftest.er1
6617   cat conftest.err >&5
6618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619   (exit $ac_status); } && {
6620          test -z "$ac_c_werror_flag" ||
6621          test ! -s conftest.err
6622        } && test -s conftest.$ac_objext; then
6623   eval "$as_ac_Header=yes"
6624 else
6625   echo "$as_me: failed program was:" >&5
6626 sed 's/^/| /' conftest.$ac_ext >&5
6627
6628         eval "$as_ac_Header=no"
6629 fi
6630
6631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6632 fi
6633 ac_res=`eval echo '${'$as_ac_Header'}'`
6634                { echo "$as_me:$LINENO: result: $ac_res" >&5
6635 echo "${ECHO_T}$ac_res" >&6; }
6636 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6637   cat >>confdefs.h <<_ACEOF
6638 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639 _ACEOF
6640
6641 fi
6642
6643 done
6644
6645
6646
6647 for ac_header in dlfcn.h
6648 do
6649 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6651   { echo "$as_me:$LINENO: checking for $ac_header" >&5
6652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6653 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6654   echo $ECHO_N "(cached) $ECHO_C" >&6
6655 fi
6656 ac_res=`eval echo '${'$as_ac_Header'}'`
6657                { echo "$as_me:$LINENO: result: $ac_res" >&5
6658 echo "${ECHO_T}$ac_res" >&6; }
6659 else
6660   # Is the header compilable?
6661 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6663 cat >conftest.$ac_ext <<_ACEOF
6664 /* confdefs.h.  */
6665 _ACEOF
6666 cat confdefs.h >>conftest.$ac_ext
6667 cat >>conftest.$ac_ext <<_ACEOF
6668 /* end confdefs.h.  */
6669 $ac_includes_default
6670 #include <$ac_header>
6671 _ACEOF
6672 rm -f conftest.$ac_objext
6673 if { (ac_try="$ac_compile"
6674 case "(($ac_try" in
6675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6676   *) ac_try_echo=$ac_try;;
6677 esac
6678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6679   (eval "$ac_compile") 2>conftest.er1
6680   ac_status=$?
6681   grep -v '^ *+' conftest.er1 >conftest.err
6682   rm -f conftest.er1
6683   cat conftest.err >&5
6684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6685   (exit $ac_status); } && {
6686          test -z "$ac_c_werror_flag" ||
6687          test ! -s conftest.err
6688        } && test -s conftest.$ac_objext; then
6689   ac_header_compiler=yes
6690 else
6691   echo "$as_me: failed program was:" >&5
6692 sed 's/^/| /' conftest.$ac_ext >&5
6693
6694         ac_header_compiler=no
6695 fi
6696
6697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6699 echo "${ECHO_T}$ac_header_compiler" >&6; }
6700
6701 # Is the header present?
6702 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6703 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6704 cat >conftest.$ac_ext <<_ACEOF
6705 /* confdefs.h.  */
6706 _ACEOF
6707 cat confdefs.h >>conftest.$ac_ext
6708 cat >>conftest.$ac_ext <<_ACEOF
6709 /* end confdefs.h.  */
6710 #include <$ac_header>
6711 _ACEOF
6712 if { (ac_try="$ac_cpp conftest.$ac_ext"
6713 case "(($ac_try" in
6714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715   *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6719   ac_status=$?
6720   grep -v '^ *+' conftest.er1 >conftest.err
6721   rm -f conftest.er1
6722   cat conftest.err >&5
6723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724   (exit $ac_status); } >/dev/null && {
6725          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6726          test ! -s conftest.err
6727        }; then
6728   ac_header_preproc=yes
6729 else
6730   echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733   ac_header_preproc=no
6734 fi
6735
6736 rm -f conftest.err conftest.$ac_ext
6737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6738 echo "${ECHO_T}$ac_header_preproc" >&6; }
6739
6740 # So?  What about this header?
6741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6742   yes:no: )
6743     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6744 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6745     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6747     ac_header_preproc=yes
6748     ;;
6749   no:yes:* )
6750     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6752     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6753 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6754     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6755 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6756     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6757 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6758     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6760     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6761 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6762
6763     ;;
6764 esac
6765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6768   echo $ECHO_N "(cached) $ECHO_C" >&6
6769 else
6770   eval "$as_ac_Header=\$ac_header_preproc"
6771 fi
6772 ac_res=`eval echo '${'$as_ac_Header'}'`
6773                { echo "$as_me:$LINENO: result: $ac_res" >&5
6774 echo "${ECHO_T}$ac_res" >&6; }
6775
6776 fi
6777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6778   cat >>confdefs.h <<_ACEOF
6779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6780 _ACEOF
6781
6782 fi
6783
6784 done
6785
6786
6787 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6788 # find the maximum length of command line arguments
6789 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6790 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6791 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6792   echo $ECHO_N "(cached) $ECHO_C" >&6
6793 else
6794     i=0
6795   teststring="ABCD"
6796
6797   case $build_os in
6798   msdosdjgpp*)
6799     # On DJGPP, this test can blow up pretty badly due to problems in libc
6800     # (any single argument exceeding 2000 bytes causes a buffer overrun
6801     # during glob expansion).  Even if it were fixed, the result of this
6802     # check would be larger than it should be.
6803     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6804     ;;
6805
6806   gnu*)
6807     # Under GNU Hurd, this test is not required because there is
6808     # no limit to the length of command line arguments.
6809     # Libtool will interpret -1 as no limit whatsoever
6810     lt_cv_sys_max_cmd_len=-1;
6811     ;;
6812
6813   cygwin* | mingw*)
6814     # On Win9x/ME, this test blows up -- it succeeds, but takes
6815     # about 5 minutes as the teststring grows exponentially.
6816     # Worse, since 9x/ME are not pre-emptively multitasking,
6817     # you end up with a "frozen" computer, even though with patience
6818     # the test eventually succeeds (with a max line length of 256k).
6819     # Instead, let's just punt: use the minimum linelength reported by
6820     # all of the supported platforms: 8192 (on NT/2K/XP).
6821     lt_cv_sys_max_cmd_len=8192;
6822     ;;
6823
6824   amigaos*)
6825     # On AmigaOS with pdksh, this test takes hours, literally.
6826     # So we just punt and use a minimum line length of 8192.
6827     lt_cv_sys_max_cmd_len=8192;
6828     ;;
6829
6830   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6831     # This has been around since 386BSD, at least.  Likely further.
6832     if test -x /sbin/sysctl; then
6833       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6834     elif test -x /usr/sbin/sysctl; then
6835       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6836     else
6837       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6838     fi
6839     # And add a safety zone
6840     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6841     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6842     ;;
6843
6844   interix*)
6845     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6846     lt_cv_sys_max_cmd_len=196608
6847     ;;
6848
6849   osf*)
6850     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6851     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6852     # nice to cause kernel panics so lets avoid the loop below.
6853     # First set a reasonable default.
6854     lt_cv_sys_max_cmd_len=16384
6855     #
6856     if test -x /sbin/sysconfig; then
6857       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6858         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6859       esac
6860     fi
6861     ;;
6862   sco3.2v5*)
6863     lt_cv_sys_max_cmd_len=102400
6864     ;;
6865   sysv5* | sco5v6* | sysv4.2uw2*)
6866     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6867     if test -n "$kargmax"; then
6868       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
6869     else
6870       lt_cv_sys_max_cmd_len=32768
6871     fi
6872     ;;
6873   *)
6874     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6875     if test -n "$lt_cv_sys_max_cmd_len"; then
6876       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6877       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6878     else
6879       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6880       while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6881                = "XX$teststring") >/dev/null 2>&1 &&
6882               new_result=`expr "X$teststring" : ".*" 2>&1` &&
6883               lt_cv_sys_max_cmd_len=$new_result &&
6884               test $i != 17 # 1/2 MB should be enough
6885       do
6886         i=`expr $i + 1`
6887         teststring=$teststring$teststring
6888       done
6889       teststring=
6890       # Add a significant safety factor because C++ compilers can tack on massive
6891       # amounts of additional arguments before passing them to the linker.
6892       # It appears as though 1/2 is a usable value.
6893       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6894     fi
6895     ;;
6896   esac
6897
6898 fi
6899
6900 if test -n $lt_cv_sys_max_cmd_len ; then
6901   { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6902 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6903 else
6904   { echo "$as_me:$LINENO: result: none" >&5
6905 echo "${ECHO_T}none" >&6; }
6906 fi
6907
6908
6909
6910
6911
6912 # Check for command to grab the raw symbol name followed by C symbol from nm.
6913 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6914 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6915 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6916   echo $ECHO_N "(cached) $ECHO_C" >&6
6917 else
6918
6919 # These are sane defaults that work on at least a few old systems.
6920 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6921
6922 # Character class describing NM global symbol codes.
6923 symcode='[BCDEGRST]'
6924
6925 # Regexp to match symbols that can be accessed directly from C.
6926 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6927
6928 # Transform an extracted symbol line into a proper C declaration
6929 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6930
6931 # Transform an extracted symbol line into symbol name and symbol address
6932 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'"
6933
6934 # Define system-specific variables.
6935 case $host_os in
6936 aix*)
6937   symcode='[BCDT]'
6938   ;;
6939 cygwin* | mingw* | pw32*)
6940   symcode='[ABCDGISTW]'
6941   ;;
6942 hpux*) # Its linker distinguishes data from code symbols
6943   if test "$host_cpu" = ia64; then
6944     symcode='[ABCDEGRST]'
6945   fi
6946   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6947   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'"
6948   ;;
6949 linux* | k*bsd*-gnu)
6950   if test "$host_cpu" = ia64; then
6951     symcode='[ABCDGIRSTW]'
6952     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6953     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'"
6954   fi
6955   ;;
6956 irix* | nonstopux*)
6957   symcode='[BCDEGRST]'
6958   ;;
6959 osf*)
6960   symcode='[BCDEGQRST]'
6961   ;;
6962 solaris*)
6963   symcode='[BDRT]'
6964   ;;
6965 sco3.2v5*)
6966   symcode='[DT]'
6967   ;;
6968 sysv4.2uw2*)
6969   symcode='[DT]'
6970   ;;
6971 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6972   symcode='[ABDT]'
6973   ;;
6974 sysv4)
6975   symcode='[DFNSTU]'
6976   ;;
6977 esac
6978
6979 # Handle CRLF in mingw tool chain
6980 opt_cr=
6981 case $build_os in
6982 mingw*)
6983   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6984   ;;
6985 esac
6986
6987 # If we're using GNU nm, then use its standard symbol codes.
6988 case `$NM -V 2>&1` in
6989 *GNU* | *'with BFD'*)
6990   symcode='[ABCDGIRSTW]' ;;
6991 esac
6992
6993 # Try without a prefix undercore, then with it.
6994 for ac_symprfx in "" "_"; do
6995
6996   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6997   symxfrm="\\1 $ac_symprfx\\2 \\2"
6998
6999   # Write the raw and C identifiers.
7000   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7001
7002   # Check to see that the pipe works correctly.
7003   pipe_works=no
7004
7005   rm -f conftest*
7006   cat > conftest.$ac_ext <<EOF
7007 #ifdef __cplusplus
7008 extern "C" {
7009 #endif
7010 char nm_test_var;
7011 void nm_test_func(){}
7012 #ifdef __cplusplus
7013 }
7014 #endif
7015 int main(){nm_test_var='a';nm_test_func();return(0);}
7016 EOF
7017
7018   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7019   (eval $ac_compile) 2>&5
7020   ac_status=$?
7021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022   (exit $ac_status); }; then
7023     # Now try to grab the symbols.
7024     nlist=conftest.nm
7025     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7026   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7027   ac_status=$?
7028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7029   (exit $ac_status); } && test -s "$nlist"; then
7030       # Try sorting and uniquifying the output.
7031       if sort "$nlist" | uniq > "$nlist"T; then
7032         mv -f "$nlist"T "$nlist"
7033       else
7034         rm -f "$nlist"T
7035       fi
7036
7037       # Make sure that we snagged all the symbols we need.
7038       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7039         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7040           cat <<EOF > conftest.$ac_ext
7041 #ifdef __cplusplus
7042 extern "C" {
7043 #endif
7044
7045 EOF
7046           # Now generate the symbol file.
7047           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7048
7049           cat <<EOF >> conftest.$ac_ext
7050 #if defined (__STDC__) && __STDC__
7051 # define lt_ptr_t void *
7052 #else
7053 # define lt_ptr_t char *
7054 # define const
7055 #endif
7056
7057 /* The mapping between symbol names and symbols. */
7058 const struct {
7059   const char *name;
7060   lt_ptr_t address;
7061 }
7062 lt_preloaded_symbols[] =
7063 {
7064 EOF
7065           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7066           cat <<\EOF >> conftest.$ac_ext
7067   {0, (lt_ptr_t) 0}
7068 };
7069
7070 #ifdef __cplusplus
7071 }
7072 #endif
7073 EOF
7074           # Now try linking the two files.
7075           mv conftest.$ac_objext conftstm.$ac_objext
7076           lt_save_LIBS="$LIBS"
7077           lt_save_CFLAGS="$CFLAGS"
7078           LIBS="conftstm.$ac_objext"
7079           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7080           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7081   (eval $ac_link) 2>&5
7082   ac_status=$?
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7085             pipe_works=yes
7086           fi
7087           LIBS="$lt_save_LIBS"
7088           CFLAGS="$lt_save_CFLAGS"
7089         else
7090           echo "cannot find nm_test_func in $nlist" >&5
7091         fi
7092       else
7093         echo "cannot find nm_test_var in $nlist" >&5
7094       fi
7095     else
7096       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7097     fi
7098   else
7099     echo "$progname: failed program was:" >&5
7100     cat conftest.$ac_ext >&5
7101   fi
7102   rm -rf conftest* conftst*
7103
7104   # Do not use the global_symbol_pipe unless it works.
7105   if test "$pipe_works" = yes; then
7106     break
7107   else
7108     lt_cv_sys_global_symbol_pipe=
7109   fi
7110 done
7111
7112 fi
7113
7114 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7115   lt_cv_sys_global_symbol_to_cdecl=
7116 fi
7117 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7118   { echo "$as_me:$LINENO: result: failed" >&5
7119 echo "${ECHO_T}failed" >&6; }
7120 else
7121   { echo "$as_me:$LINENO: result: ok" >&5
7122 echo "${ECHO_T}ok" >&6; }
7123 fi
7124
7125 { echo "$as_me:$LINENO: checking for objdir" >&5
7126 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7127 if test "${lt_cv_objdir+set}" = set; then
7128   echo $ECHO_N "(cached) $ECHO_C" >&6
7129 else
7130   rm -f .libs 2>/dev/null
7131 mkdir .libs 2>/dev/null
7132 if test -d .libs; then
7133   lt_cv_objdir=.libs
7134 else
7135   # MS-DOS does not allow filenames that begin with a dot.
7136   lt_cv_objdir=_libs
7137 fi
7138 rmdir .libs 2>/dev/null
7139 fi
7140 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7141 echo "${ECHO_T}$lt_cv_objdir" >&6; }
7142 objdir=$lt_cv_objdir
7143
7144
7145
7146
7147
7148 case $host_os in
7149 aix3*)
7150   # AIX sometimes has problems with the GCC collect2 program.  For some
7151   # reason, if we set the COLLECT_NAMES environment variable, the problems
7152   # vanish in a puff of smoke.
7153   if test "X${COLLECT_NAMES+set}" != Xset; then
7154     COLLECT_NAMES=
7155     export COLLECT_NAMES
7156   fi
7157   ;;
7158 esac
7159
7160 # Sed substitution that helps us do robust quoting.  It backslashifies
7161 # metacharacters that are still active within double-quoted strings.
7162 Xsed='sed -e 1s/^X//'
7163 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7164
7165 # Same as above, but do not quote variable references.
7166 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7167
7168 # Sed substitution to delay expansion of an escaped shell variable in a
7169 # double_quote_subst'ed string.
7170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7171
7172 # Sed substitution to avoid accidental globbing in evaled expressions
7173 no_glob_subst='s/\*/\\\*/g'
7174
7175 # Constants:
7176 rm="rm -f"
7177
7178 # Global variables:
7179 default_ofile=libtool
7180 can_build_shared=yes
7181
7182 # All known linkers require a `.a' archive for static linking (except MSVC,
7183 # which needs '.lib').
7184 libext=a
7185 ltmain="$ac_aux_dir/ltmain.sh"
7186 ofile="$default_ofile"
7187 with_gnu_ld="$lt_cv_prog_gnu_ld"
7188
7189 if test -n "$ac_tool_prefix"; then
7190   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7191 set dummy ${ac_tool_prefix}ar; ac_word=$2
7192 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7194 if test "${ac_cv_prog_AR+set}" = set; then
7195   echo $ECHO_N "(cached) $ECHO_C" >&6
7196 else
7197   if test -n "$AR"; then
7198   ac_cv_prog_AR="$AR" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7202 do
7203   IFS=$as_save_IFS
7204   test -z "$as_dir" && as_dir=.
7205   for ac_exec_ext in '' $ac_executable_extensions; do
7206   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207     ac_cv_prog_AR="${ac_tool_prefix}ar"
7208     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7209     break 2
7210   fi
7211 done
7212 done
7213 IFS=$as_save_IFS
7214
7215 fi
7216 fi
7217 AR=$ac_cv_prog_AR
7218 if test -n "$AR"; then
7219   { echo "$as_me:$LINENO: result: $AR" >&5
7220 echo "${ECHO_T}$AR" >&6; }
7221 else
7222   { echo "$as_me:$LINENO: result: no" >&5
7223 echo "${ECHO_T}no" >&6; }
7224 fi
7225
7226
7227 fi
7228 if test -z "$ac_cv_prog_AR"; then
7229   ac_ct_AR=$AR
7230   # Extract the first word of "ar", so it can be a program name with args.
7231 set dummy ar; ac_word=$2
7232 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7234 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7235   echo $ECHO_N "(cached) $ECHO_C" >&6
7236 else
7237   if test -n "$ac_ct_AR"; then
7238   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7239 else
7240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7241 for as_dir in $PATH
7242 do
7243   IFS=$as_save_IFS
7244   test -z "$as_dir" && as_dir=.
7245   for ac_exec_ext in '' $ac_executable_extensions; do
7246   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247     ac_cv_prog_ac_ct_AR="ar"
7248     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7249     break 2
7250   fi
7251 done
7252 done
7253 IFS=$as_save_IFS
7254
7255 fi
7256 fi
7257 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7258 if test -n "$ac_ct_AR"; then
7259   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7260 echo "${ECHO_T}$ac_ct_AR" >&6; }
7261 else
7262   { echo "$as_me:$LINENO: result: no" >&5
7263 echo "${ECHO_T}no" >&6; }
7264 fi
7265
7266   if test "x$ac_ct_AR" = x; then
7267     AR="false"
7268   else
7269     case $cross_compiling:$ac_tool_warned in
7270 yes:)
7271 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7272 whose name does not start with the host triplet.  If you think this
7273 configuration is useful to you, please write to autoconf@gnu.org." >&5
7274 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7275 whose name does not start with the host triplet.  If you think this
7276 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7277 ac_tool_warned=yes ;;
7278 esac
7279     AR=$ac_ct_AR
7280   fi
7281 else
7282   AR="$ac_cv_prog_AR"
7283 fi
7284
7285 if test -n "$ac_tool_prefix"; then
7286   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7287 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7290 if test "${ac_cv_prog_RANLIB+set}" = set; then
7291   echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293   if test -n "$RANLIB"; then
7294   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7295 else
7296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7297 for as_dir in $PATH
7298 do
7299   IFS=$as_save_IFS
7300   test -z "$as_dir" && as_dir=.
7301   for ac_exec_ext in '' $ac_executable_extensions; do
7302   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7303     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7304     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7305     break 2
7306   fi
7307 done
7308 done
7309 IFS=$as_save_IFS
7310
7311 fi
7312 fi
7313 RANLIB=$ac_cv_prog_RANLIB
7314 if test -n "$RANLIB"; then
7315   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7316 echo "${ECHO_T}$RANLIB" >&6; }
7317 else
7318   { echo "$as_me:$LINENO: result: no" >&5
7319 echo "${ECHO_T}no" >&6; }
7320 fi
7321
7322
7323 fi
7324 if test -z "$ac_cv_prog_RANLIB"; then
7325   ac_ct_RANLIB=$RANLIB
7326   # Extract the first word of "ranlib", so it can be a program name with args.
7327 set dummy ranlib; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7331   echo $ECHO_N "(cached) $ECHO_C" >&6
7332 else
7333   if test -n "$ac_ct_RANLIB"; then
7334   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7335 else
7336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 for as_dir in $PATH
7338 do
7339   IFS=$as_save_IFS
7340   test -z "$as_dir" && as_dir=.
7341   for ac_exec_ext in '' $ac_executable_extensions; do
7342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7343     ac_cv_prog_ac_ct_RANLIB="ranlib"
7344     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345     break 2
7346   fi
7347 done
7348 done
7349 IFS=$as_save_IFS
7350
7351 fi
7352 fi
7353 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7354 if test -n "$ac_ct_RANLIB"; then
7355   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7356 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7357 else
7358   { echo "$as_me:$LINENO: result: no" >&5
7359 echo "${ECHO_T}no" >&6; }
7360 fi
7361
7362   if test "x$ac_ct_RANLIB" = x; then
7363     RANLIB=":"
7364   else
7365     case $cross_compiling:$ac_tool_warned in
7366 yes:)
7367 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7368 whose name does not start with the host triplet.  If you think this
7369 configuration is useful to you, please write to autoconf@gnu.org." >&5
7370 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7371 whose name does not start with the host triplet.  If you think this
7372 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7373 ac_tool_warned=yes ;;
7374 esac
7375     RANLIB=$ac_ct_RANLIB
7376   fi
7377 else
7378   RANLIB="$ac_cv_prog_RANLIB"
7379 fi
7380
7381 if test -n "$ac_tool_prefix"; then
7382   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7383 set dummy ${ac_tool_prefix}strip; ac_word=$2
7384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7386 if test "${ac_cv_prog_STRIP+set}" = set; then
7387   echo $ECHO_N "(cached) $ECHO_C" >&6
7388 else
7389   if test -n "$STRIP"; then
7390   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7391 else
7392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393 for as_dir in $PATH
7394 do
7395   IFS=$as_save_IFS
7396   test -z "$as_dir" && as_dir=.
7397   for ac_exec_ext in '' $ac_executable_extensions; do
7398   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7400     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401     break 2
7402   fi
7403 done
7404 done
7405 IFS=$as_save_IFS
7406
7407 fi
7408 fi
7409 STRIP=$ac_cv_prog_STRIP
7410 if test -n "$STRIP"; then
7411   { echo "$as_me:$LINENO: result: $STRIP" >&5
7412 echo "${ECHO_T}$STRIP" >&6; }
7413 else
7414   { echo "$as_me:$LINENO: result: no" >&5
7415 echo "${ECHO_T}no" >&6; }
7416 fi
7417
7418
7419 fi
7420 if test -z "$ac_cv_prog_STRIP"; then
7421   ac_ct_STRIP=$STRIP
7422   # Extract the first word of "strip", so it can be a program name with args.
7423 set dummy strip; ac_word=$2
7424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7426 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7427   echo $ECHO_N "(cached) $ECHO_C" >&6
7428 else
7429   if test -n "$ac_ct_STRIP"; then
7430   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7431 else
7432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7433 for as_dir in $PATH
7434 do
7435   IFS=$as_save_IFS
7436   test -z "$as_dir" && as_dir=.
7437   for ac_exec_ext in '' $ac_executable_extensions; do
7438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7439     ac_cv_prog_ac_ct_STRIP="strip"
7440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7441     break 2
7442   fi
7443 done
7444 done
7445 IFS=$as_save_IFS
7446
7447 fi
7448 fi
7449 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7450 if test -n "$ac_ct_STRIP"; then
7451   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7452 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7453 else
7454   { echo "$as_me:$LINENO: result: no" >&5
7455 echo "${ECHO_T}no" >&6; }
7456 fi
7457
7458   if test "x$ac_ct_STRIP" = x; then
7459     STRIP=":"
7460   else
7461     case $cross_compiling:$ac_tool_warned in
7462 yes:)
7463 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7464 whose name does not start with the host triplet.  If you think this
7465 configuration is useful to you, please write to autoconf@gnu.org." >&5
7466 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7467 whose name does not start with the host triplet.  If you think this
7468 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471     STRIP=$ac_ct_STRIP
7472   fi
7473 else
7474   STRIP="$ac_cv_prog_STRIP"
7475 fi
7476
7477
7478 old_CC="$CC"
7479 old_CFLAGS="$CFLAGS"
7480
7481 # Set sane defaults for various variables
7482 test -z "$AR" && AR=ar
7483 test -z "$AR_FLAGS" && AR_FLAGS=cru
7484 test -z "$AS" && AS=as
7485 test -z "$CC" && CC=cc
7486 test -z "$LTCC" && LTCC=$CC
7487 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7488 test -z "$DLLTOOL" && DLLTOOL=dlltool
7489 test -z "$LD" && LD=ld
7490 test -z "$LN_S" && LN_S="ln -s"
7491 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7492 test -z "$NM" && NM=nm
7493 test -z "$SED" && SED=sed
7494 test -z "$OBJDUMP" && OBJDUMP=objdump
7495 test -z "$RANLIB" && RANLIB=:
7496 test -z "$STRIP" && STRIP=:
7497 test -z "$ac_objext" && ac_objext=o
7498
7499 # Determine commands to create old-style static archives.
7500 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7501 old_postinstall_cmds='chmod 644 $oldlib'
7502 old_postuninstall_cmds=
7503
7504 if test -n "$RANLIB"; then
7505   case $host_os in
7506   openbsd*)
7507     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7508     ;;
7509   *)
7510     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7511     ;;
7512   esac
7513   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7514 fi
7515
7516 for cc_temp in $compiler""; do
7517   case $cc_temp in
7518     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7519     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7520     \-*) ;;
7521     *) break;;
7522   esac
7523 done
7524 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7525
7526
7527 # Only perform the check for file, if the check method requires it
7528 case $deplibs_check_method in
7529 file_magic*)
7530   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7531     { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7532 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7533 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7534   echo $ECHO_N "(cached) $ECHO_C" >&6
7535 else
7536   case $MAGIC_CMD in
7537 [\\/*] |  ?:[\\/]*)
7538   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7539   ;;
7540 *)
7541   lt_save_MAGIC_CMD="$MAGIC_CMD"
7542   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7543   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7544   for ac_dir in $ac_dummy; do
7545     IFS="$lt_save_ifs"
7546     test -z "$ac_dir" && ac_dir=.
7547     if test -f $ac_dir/${ac_tool_prefix}file; then
7548       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7549       if test -n "$file_magic_test_file"; then
7550         case $deplibs_check_method in
7551         "file_magic "*)
7552           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7553           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7554           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7555             $EGREP "$file_magic_regex" > /dev/null; then
7556             :
7557           else
7558             cat <<EOF 1>&2
7559
7560 *** Warning: the command libtool uses to detect shared libraries,
7561 *** $file_magic_cmd, produces output that libtool cannot recognize.
7562 *** The result is that libtool may fail to recognize shared libraries
7563 *** as such.  This will affect the creation of libtool libraries that
7564 *** depend on shared libraries, but programs linked with such libtool
7565 *** libraries will work regardless of this problem.  Nevertheless, you
7566 *** may want to report the problem to your system manager and/or to
7567 *** bug-libtool@gnu.org
7568
7569 EOF
7570           fi ;;
7571         esac
7572       fi
7573       break
7574     fi
7575   done
7576   IFS="$lt_save_ifs"
7577   MAGIC_CMD="$lt_save_MAGIC_CMD"
7578   ;;
7579 esac
7580 fi
7581
7582 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7583 if test -n "$MAGIC_CMD"; then
7584   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7585 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7586 else
7587   { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7589 fi
7590
7591 if test -z "$lt_cv_path_MAGIC_CMD"; then
7592   if test -n "$ac_tool_prefix"; then
7593     { echo "$as_me:$LINENO: checking for file" >&5
7594 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7595 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7596   echo $ECHO_N "(cached) $ECHO_C" >&6
7597 else
7598   case $MAGIC_CMD in
7599 [\\/*] |  ?:[\\/]*)
7600   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7601   ;;
7602 *)
7603   lt_save_MAGIC_CMD="$MAGIC_CMD"
7604   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7605   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7606   for ac_dir in $ac_dummy; do
7607     IFS="$lt_save_ifs"
7608     test -z "$ac_dir" && ac_dir=.
7609     if test -f $ac_dir/file; then
7610       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7611       if test -n "$file_magic_test_file"; then
7612         case $deplibs_check_method in
7613         "file_magic "*)
7614           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7615           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7616           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7617             $EGREP "$file_magic_regex" > /dev/null; then
7618             :
7619           else
7620             cat <<EOF 1>&2
7621
7622 *** Warning: the command libtool uses to detect shared libraries,
7623 *** $file_magic_cmd, produces output that libtool cannot recognize.
7624 *** The result is that libtool may fail to recognize shared libraries
7625 *** as such.  This will affect the creation of libtool libraries that
7626 *** depend on shared libraries, but programs linked with such libtool
7627 *** libraries will work regardless of this problem.  Nevertheless, you
7628 *** may want to report the problem to your system manager and/or to
7629 *** bug-libtool@gnu.org
7630
7631 EOF
7632           fi ;;
7633         esac
7634       fi
7635       break
7636     fi
7637   done
7638   IFS="$lt_save_ifs"
7639   MAGIC_CMD="$lt_save_MAGIC_CMD"
7640   ;;
7641 esac
7642 fi
7643
7644 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7645 if test -n "$MAGIC_CMD"; then
7646   { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7647 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7648 else
7649   { echo "$as_me:$LINENO: result: no" >&5
7650 echo "${ECHO_T}no" >&6; }
7651 fi
7652
7653   else
7654     MAGIC_CMD=:
7655   fi
7656 fi
7657
7658   fi
7659   ;;
7660 esac
7661
7662
7663   case $host_os in
7664     rhapsody* | darwin*)
7665     if test -n "$ac_tool_prefix"; then
7666   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7667 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7670 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7671   echo $ECHO_N "(cached) $ECHO_C" >&6
7672 else
7673   if test -n "$DSYMUTIL"; then
7674   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7675 else
7676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681   for ac_exec_ext in '' $ac_executable_extensions; do
7682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7683     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691 fi
7692 fi
7693 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7694 if test -n "$DSYMUTIL"; then
7695   { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7696 echo "${ECHO_T}$DSYMUTIL" >&6; }
7697 else
7698   { echo "$as_me:$LINENO: result: no" >&5
7699 echo "${ECHO_T}no" >&6; }
7700 fi
7701
7702
7703 fi
7704 if test -z "$ac_cv_prog_DSYMUTIL"; then
7705   ac_ct_DSYMUTIL=$DSYMUTIL
7706   # Extract the first word of "dsymutil", so it can be a program name with args.
7707 set dummy dsymutil; ac_word=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7711   echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713   if test -n "$ac_ct_DSYMUTIL"; then
7714   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7715 else
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7718 do
7719   IFS=$as_save_IFS
7720   test -z "$as_dir" && as_dir=.
7721   for ac_exec_ext in '' $ac_executable_extensions; do
7722   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7723     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7724     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7725     break 2
7726   fi
7727 done
7728 done
7729 IFS=$as_save_IFS
7730
7731 fi
7732 fi
7733 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7734 if test -n "$ac_ct_DSYMUTIL"; then
7735   { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7736 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7737 else
7738   { echo "$as_me:$LINENO: result: no" >&5
7739 echo "${ECHO_T}no" >&6; }
7740 fi
7741
7742   if test "x$ac_ct_DSYMUTIL" = x; then
7743     DSYMUTIL=":"
7744   else
7745     case $cross_compiling:$ac_tool_warned in
7746 yes:)
7747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7748 whose name does not start with the host triplet.  If you think this
7749 configuration is useful to you, please write to autoconf@gnu.org." >&5
7750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7751 whose name does not start with the host triplet.  If you think this
7752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7753 ac_tool_warned=yes ;;
7754 esac
7755     DSYMUTIL=$ac_ct_DSYMUTIL
7756   fi
7757 else
7758   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7759 fi
7760
7761     if test -n "$ac_tool_prefix"; then
7762   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7763 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7764 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7766 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7767   echo $ECHO_N "(cached) $ECHO_C" >&6
7768 else
7769   if test -n "$NMEDIT"; then
7770   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7771 else
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7773 for as_dir in $PATH
7774 do
7775   IFS=$as_save_IFS
7776   test -z "$as_dir" && as_dir=.
7777   for ac_exec_ext in '' $ac_executable_extensions; do
7778   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7779     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7780     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7781     break 2
7782   fi
7783 done
7784 done
7785 IFS=$as_save_IFS
7786
7787 fi
7788 fi
7789 NMEDIT=$ac_cv_prog_NMEDIT
7790 if test -n "$NMEDIT"; then
7791   { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7792 echo "${ECHO_T}$NMEDIT" >&6; }
7793 else
7794   { echo "$as_me:$LINENO: result: no" >&5
7795 echo "${ECHO_T}no" >&6; }
7796 fi
7797
7798
7799 fi
7800 if test -z "$ac_cv_prog_NMEDIT"; then
7801   ac_ct_NMEDIT=$NMEDIT
7802   # Extract the first word of "nmedit", so it can be a program name with args.
7803 set dummy nmedit; ac_word=$2
7804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7806 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7807   echo $ECHO_N "(cached) $ECHO_C" >&6
7808 else
7809   if test -n "$ac_ct_NMEDIT"; then
7810   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7811 else
7812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7813 for as_dir in $PATH
7814 do
7815   IFS=$as_save_IFS
7816   test -z "$as_dir" && as_dir=.
7817   for ac_exec_ext in '' $ac_executable_extensions; do
7818   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7819     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7820     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7821     break 2
7822   fi
7823 done
7824 done
7825 IFS=$as_save_IFS
7826
7827 fi
7828 fi
7829 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7830 if test -n "$ac_ct_NMEDIT"; then
7831   { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7832 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7833 else
7834   { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7836 fi
7837
7838   if test "x$ac_ct_NMEDIT" = x; then
7839     NMEDIT=":"
7840   else
7841     case $cross_compiling:$ac_tool_warned in
7842 yes:)
7843 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7844 whose name does not start with the host triplet.  If you think this
7845 configuration is useful to you, please write to autoconf@gnu.org." >&5
7846 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7847 whose name does not start with the host triplet.  If you think this
7848 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7849 ac_tool_warned=yes ;;
7850 esac
7851     NMEDIT=$ac_ct_NMEDIT
7852   fi
7853 else
7854   NMEDIT="$ac_cv_prog_NMEDIT"
7855 fi
7856
7857
7858     { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7859 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7860 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7861   echo $ECHO_N "(cached) $ECHO_C" >&6
7862 else
7863   lt_cv_apple_cc_single_mod=no
7864       if test -z "${LT_MULTI_MODULE}"; then
7865    # By default we will add the -single_module flag. You can override
7866    # by either setting the environment variable LT_MULTI_MODULE
7867    # non-empty at configure time, or by adding -multi_module to the
7868    # link flags.
7869    echo "int foo(void){return 1;}" > conftest.c
7870    $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7871      -dynamiclib ${wl}-single_module conftest.c
7872    if test -f libconftest.dylib; then
7873      lt_cv_apple_cc_single_mod=yes
7874      rm -rf libconftest.dylib*
7875    fi
7876    rm conftest.c
7877       fi
7878 fi
7879 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7880 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7881     { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7882 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7883 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7884   echo $ECHO_N "(cached) $ECHO_C" >&6
7885 else
7886   lt_cv_ld_exported_symbols_list=no
7887       save_LDFLAGS=$LDFLAGS
7888       echo "_main" > conftest.sym
7889       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7890       cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h.  */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h.  */
7896
7897 int
7898 main ()
7899 {
7900
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (ac_try="$ac_link"
7907 case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7912   (eval "$ac_link") 2>conftest.er1
7913   ac_status=$?
7914   grep -v '^ *+' conftest.er1 >conftest.err
7915   rm -f conftest.er1
7916   cat conftest.err >&5
7917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918   (exit $ac_status); } && {
7919          test -z "$ac_c_werror_flag" ||
7920          test ! -s conftest.err
7921        } && test -s conftest$ac_exeext &&
7922        $as_test_x conftest$ac_exeext; then
7923   lt_cv_ld_exported_symbols_list=yes
7924 else
7925   echo "$as_me: failed program was:" >&5
7926 sed 's/^/| /' conftest.$ac_ext >&5
7927
7928         lt_cv_ld_exported_symbols_list=no
7929 fi
7930
7931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7932       conftest$ac_exeext conftest.$ac_ext
7933    LDFLAGS="$save_LDFLAGS"
7934
7935 fi
7936 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7937 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7938     case $host_os in
7939     rhapsody* | darwin1.[0123])
7940       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7941     darwin1.*)
7942      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7943     darwin*)
7944       # if running on 10.5 or later, the deployment target defaults
7945       # to the OS version, if on x86, and 10.4, the deployment
7946       # target defaults to 10.4. Don't you love it?
7947       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7948    10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7949      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7950    10.[012]*)
7951      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7952    10.*)
7953      _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7954       esac
7955     ;;
7956   esac
7957     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7958       _lt_dar_single_mod='$single_module'
7959     fi
7960     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7961       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7962     else
7963       _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7964     fi
7965     if test "$DSYMUTIL" != ":"; then
7966       _lt_dsymutil="~$DSYMUTIL \$lib || :"
7967     else
7968       _lt_dsymutil=
7969     fi
7970     ;;
7971   esac
7972
7973
7974 enable_dlopen=no
7975 enable_win32_dll=no
7976
7977 # Check whether --enable-libtool-lock was given.
7978 if test "${enable_libtool_lock+set}" = set; then
7979   enableval=$enable_libtool_lock;
7980 fi
7981
7982 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7983
7984
7985 # Check whether --with-pic was given.
7986 if test "${with_pic+set}" = set; then
7987   withval=$with_pic; pic_mode="$withval"
7988 else
7989   pic_mode=default
7990 fi
7991
7992 test -z "$pic_mode" && pic_mode=default
7993
7994 # Use C for the default configuration in the libtool script
7995 tagname=
7996 lt_save_CC="$CC"
7997 ac_ext=c
7998 ac_cpp='$CPP $CPPFLAGS'
7999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8002
8003
8004 # Source file extension for C test sources.
8005 ac_ext=c
8006
8007 # Object file extension for compiled C test sources.
8008 objext=o
8009 objext=$objext
8010
8011 # Code to be used in simple compile tests
8012 lt_simple_compile_test_code="int some_variable = 0;"
8013
8014 # Code to be used in simple link tests
8015 lt_simple_link_test_code='int main(){return(0);}'
8016
8017
8018 # If no C compiler was specified, use CC.
8019 LTCC=${LTCC-"$CC"}
8020
8021 # If no C compiler flags were specified, use CFLAGS.
8022 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8023
8024 # Allow CC to be a program name with arguments.
8025 compiler=$CC
8026
8027
8028 # save warnings/boilerplate of simple test code
8029 ac_outfile=conftest.$ac_objext
8030 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8031 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8032 _lt_compiler_boilerplate=`cat conftest.err`
8033 $rm conftest*
8034
8035 ac_outfile=conftest.$ac_objext
8036 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8037 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8038 _lt_linker_boilerplate=`cat conftest.err`
8039 $rm -r conftest*
8040
8041
8042 ## CAVEAT EMPTOR:
8043 ## There is no encapsulation within the following macros, do not change
8044 ## the running order or otherwise move them around unless you know exactly
8045 ## what you are doing...
8046
8047 lt_prog_compiler_no_builtin_flag=
8048
8049 if test "$GCC" = yes; then
8050   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8051
8052
8053 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8054 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
8055 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8056   echo $ECHO_N "(cached) $ECHO_C" >&6
8057 else
8058   lt_cv_prog_compiler_rtti_exceptions=no
8059   ac_outfile=conftest.$ac_objext
8060    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8061    lt_compiler_flag="-fno-rtti -fno-exceptions"
8062    # Insert the option either (1) after the last *FLAGS variable, or
8063    # (2) before a word containing "conftest.", or (3) at the end.
8064    # Note that $ac_compile itself does not contain backslashes and begins
8065    # with a dollar sign (not a hyphen), so the echo should work correctly.
8066    # The option is referenced via a variable to avoid confusing sed.
8067    lt_compile=`echo "$ac_compile" | $SED \
8068    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8070    -e 's:$: $lt_compiler_flag:'`
8071    (eval echo "\"\$as_me:8071: $lt_compile\"" >&5)
8072    (eval "$lt_compile" 2>conftest.err)
8073    ac_status=$?
8074    cat conftest.err >&5
8075    echo "$as_me:8075: \$? = $ac_status" >&5
8076    if (exit $ac_status) && test -s "$ac_outfile"; then
8077      # The compiler can only warn and ignore the option if not recognized
8078      # So say no if there are warnings other than the usual output.
8079      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8080      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8081      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8082        lt_cv_prog_compiler_rtti_exceptions=yes
8083      fi
8084    fi
8085    $rm conftest*
8086
8087 fi
8088 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8089 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8090
8091 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8092     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8093 else
8094     :
8095 fi
8096
8097 fi
8098
8099 lt_prog_compiler_wl=
8100 lt_prog_compiler_pic=
8101 lt_prog_compiler_static=
8102
8103 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8104 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
8105
8106   if test "$GCC" = yes; then
8107     lt_prog_compiler_wl='-Wl,'
8108     lt_prog_compiler_static='-static'
8109
8110     case $host_os in
8111       aix*)
8112       # All AIX code is PIC.
8113       if test "$host_cpu" = ia64; then
8114         # AIX 5 now supports IA64 processor
8115         lt_prog_compiler_static='-Bstatic'
8116       fi
8117       ;;
8118
8119     amigaos*)
8120       # FIXME: we need at least 68020 code to build shared libraries, but
8121       # adding the `-m68020' flag to GCC prevents building anything better,
8122       # like `-m68040'.
8123       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8124       ;;
8125
8126     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8127       # PIC is the default for these OSes.
8128       ;;
8129
8130     mingw* | cygwin* | pw32* | os2*)
8131       # This hack is so that the source file can tell whether it is being
8132       # built for inclusion in a dll (and should export symbols for example).
8133       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8134       # (--disable-auto-import) libraries
8135       lt_prog_compiler_pic='-DDLL_EXPORT'
8136       ;;
8137
8138     darwin* | rhapsody*)
8139       # PIC is the default on this platform
8140       # Common symbols not allowed in MH_DYLIB files
8141       lt_prog_compiler_pic='-fno-common'
8142       ;;
8143
8144     interix[3-9]*)
8145       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8146       # Instead, we relocate shared libraries at runtime.
8147       ;;
8148
8149     msdosdjgpp*)
8150       # Just because we use GCC doesn't mean we suddenly get shared libraries
8151       # on systems that don't support them.
8152       lt_prog_compiler_can_build_shared=no
8153       enable_shared=no
8154       ;;
8155
8156     sysv4*MP*)
8157       if test -d /usr/nec; then
8158         lt_prog_compiler_pic=-Kconform_pic
8159       fi
8160       ;;
8161
8162     hpux*)
8163       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8164       # not for PA HP-UX.
8165       case $host_cpu in
8166       hppa*64*|ia64*)
8167         # +Z the default
8168         ;;
8169       *)
8170         lt_prog_compiler_pic='-fPIC'
8171         ;;
8172       esac
8173       ;;
8174
8175     *)
8176       lt_prog_compiler_pic='-fPIC'
8177       ;;
8178     esac
8179   else
8180     # PORTME Check for flag to pass linker flags through the system compiler.
8181     case $host_os in
8182     aix*)
8183       lt_prog_compiler_wl='-Wl,'
8184       if test "$host_cpu" = ia64; then
8185         # AIX 5 now supports IA64 processor
8186         lt_prog_compiler_static='-Bstatic'
8187       else
8188         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8189       fi
8190       ;;
8191       darwin*)
8192         # PIC is the default on this platform
8193         # Common symbols not allowed in MH_DYLIB files
8194        case $cc_basename in
8195          xlc*)
8196          lt_prog_compiler_pic='-qnocommon'
8197          lt_prog_compiler_wl='-Wl,'
8198          ;;
8199        esac
8200        ;;
8201
8202     mingw* | cygwin* | pw32* | os2*)
8203       # This hack is so that the source file can tell whether it is being
8204       # built for inclusion in a dll (and should export symbols for example).
8205       lt_prog_compiler_pic='-DDLL_EXPORT'
8206       ;;
8207
8208     hpux9* | hpux10* | hpux11*)
8209       lt_prog_compiler_wl='-Wl,'
8210       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8211       # not for PA HP-UX.
8212       case $host_cpu in
8213       hppa*64*|ia64*)
8214         # +Z the default
8215         ;;
8216       *)
8217         lt_prog_compiler_pic='+Z'
8218         ;;
8219       esac
8220       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8221       lt_prog_compiler_static='${wl}-a ${wl}archive'
8222       ;;
8223
8224     irix5* | irix6* | nonstopux*)
8225       lt_prog_compiler_wl='-Wl,'
8226       # PIC (with -KPIC) is the default.
8227       lt_prog_compiler_static='-non_shared'
8228       ;;
8229
8230     newsos6)
8231       lt_prog_compiler_pic='-KPIC'
8232       lt_prog_compiler_static='-Bstatic'
8233       ;;
8234
8235     linux* | k*bsd*-gnu)
8236       case $cc_basename in
8237       icc* | ecc*)
8238         lt_prog_compiler_wl='-Wl,'
8239         lt_prog_compiler_pic='-KPIC'
8240         lt_prog_compiler_static='-static'
8241         ;;
8242       pgcc* | pgf77* | pgf90* | pgf95*)
8243         # Portland Group compilers (*not* the Pentium gcc compiler,
8244         # which looks to be a dead project)
8245         lt_prog_compiler_wl='-Wl,'
8246         lt_prog_compiler_pic='-fpic'
8247         lt_prog_compiler_static='-Bstatic'
8248         ;;
8249       ccc*)
8250         lt_prog_compiler_wl='-Wl,'
8251         # All Alpha code is PIC.
8252         lt_prog_compiler_static='-non_shared'
8253         ;;
8254       *)
8255         case `$CC -V 2>&1 | sed 5q` in
8256         *Sun\ C*)
8257           # Sun C 5.9
8258           lt_prog_compiler_pic='-KPIC'
8259           lt_prog_compiler_static='-Bstatic'
8260           lt_prog_compiler_wl='-Wl,'
8261           ;;
8262         *Sun\ F*)
8263           # Sun Fortran 8.3 passes all unrecognized flags to the linker
8264           lt_prog_compiler_pic='-KPIC'
8265           lt_prog_compiler_static='-Bstatic'
8266           lt_prog_compiler_wl=''
8267           ;;
8268         esac
8269         ;;
8270       esac
8271       ;;
8272
8273     osf3* | osf4* | osf5*)
8274       lt_prog_compiler_wl='-Wl,'
8275       # All OSF/1 code is PIC.
8276       lt_prog_compiler_static='-non_shared'
8277       ;;
8278
8279     rdos*)
8280       lt_prog_compiler_static='-non_shared'
8281       ;;
8282
8283     solaris*)
8284       lt_prog_compiler_pic='-KPIC'
8285       lt_prog_compiler_static='-Bstatic'
8286       case $cc_basename in
8287       f77* | f90* | f95*)
8288         lt_prog_compiler_wl='-Qoption ld ';;
8289       *)
8290         lt_prog_compiler_wl='-Wl,';;
8291       esac
8292       ;;
8293
8294     sunos4*)
8295       lt_prog_compiler_wl='-Qoption ld '
8296       lt_prog_compiler_pic='-PIC'
8297       lt_prog_compiler_static='-Bstatic'
8298       ;;
8299
8300     sysv4 | sysv4.2uw2* | sysv4.3*)
8301       lt_prog_compiler_wl='-Wl,'
8302       lt_prog_compiler_pic='-KPIC'
8303       lt_prog_compiler_static='-Bstatic'
8304       ;;
8305
8306     sysv4*MP*)
8307       if test -d /usr/nec ;then
8308         lt_prog_compiler_pic='-Kconform_pic'
8309         lt_prog_compiler_static='-Bstatic'
8310       fi
8311       ;;
8312
8313     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8314       lt_prog_compiler_wl='-Wl,'
8315       lt_prog_compiler_pic='-KPIC'
8316       lt_prog_compiler_static='-Bstatic'
8317       ;;
8318
8319     unicos*)
8320       lt_prog_compiler_wl='-Wl,'
8321       lt_prog_compiler_can_build_shared=no
8322       ;;
8323
8324     uts4*)
8325       lt_prog_compiler_pic='-pic'
8326       lt_prog_compiler_static='-Bstatic'
8327       ;;
8328
8329     *)
8330       lt_prog_compiler_can_build_shared=no
8331       ;;
8332     esac
8333   fi
8334
8335 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8336 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8337
8338 #
8339 # Check to make sure the PIC flag actually works.
8340 #
8341 if test -n "$lt_prog_compiler_pic"; then
8342
8343 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8344 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8345 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8346   echo $ECHO_N "(cached) $ECHO_C" >&6
8347 else
8348   lt_cv_prog_compiler_pic_works=no
8349   ac_outfile=conftest.$ac_objext
8350    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8351    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8352    # Insert the option either (1) after the last *FLAGS variable, or
8353    # (2) before a word containing "conftest.", or (3) at the end.
8354    # Note that $ac_compile itself does not contain backslashes and begins
8355    # with a dollar sign (not a hyphen), so the echo should work correctly.
8356    # The option is referenced via a variable to avoid confusing sed.
8357    lt_compile=`echo "$ac_compile" | $SED \
8358    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8359    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8360    -e 's:$: $lt_compiler_flag:'`
8361    (eval echo "\"\$as_me:8361: $lt_compile\"" >&5)
8362    (eval "$lt_compile" 2>conftest.err)
8363    ac_status=$?
8364    cat conftest.err >&5
8365    echo "$as_me:8365: \$? = $ac_status" >&5
8366    if (exit $ac_status) && test -s "$ac_outfile"; then
8367      # The compiler can only warn and ignore the option if not recognized
8368      # So say no if there are warnings other than the usual output.
8369      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8370      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8371      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8372        lt_cv_prog_compiler_pic_works=yes
8373      fi
8374    fi
8375    $rm conftest*
8376
8377 fi
8378 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8379 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8380
8381 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8382     case $lt_prog_compiler_pic in
8383      "" | " "*) ;;
8384      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8385      esac
8386 else
8387     lt_prog_compiler_pic=
8388      lt_prog_compiler_can_build_shared=no
8389 fi
8390
8391 fi
8392 case $host_os in
8393   # For platforms which do not support PIC, -DPIC is meaningless:
8394   *djgpp*)
8395     lt_prog_compiler_pic=
8396     ;;
8397   *)
8398     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8399     ;;
8400 esac
8401
8402 #
8403 # Check to make sure the static flag actually works.
8404 #
8405 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8406 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8407 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8408 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8409   echo $ECHO_N "(cached) $ECHO_C" >&6
8410 else
8411   lt_cv_prog_compiler_static_works=no
8412    save_LDFLAGS="$LDFLAGS"
8413    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8414    echo "$lt_simple_link_test_code" > conftest.$ac_ext
8415    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8416      # The linker can only warn and ignore the option if not recognized
8417      # So say no if there are warnings
8418      if test -s conftest.err; then
8419        # Append any errors to the config.log.
8420        cat conftest.err 1>&5
8421        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8422        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8423        if diff conftest.exp conftest.er2 >/dev/null; then
8424          lt_cv_prog_compiler_static_works=yes
8425        fi
8426      else
8427        lt_cv_prog_compiler_static_works=yes
8428      fi
8429    fi
8430    $rm -r conftest*
8431    LDFLAGS="$save_LDFLAGS"
8432
8433 fi
8434 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8435 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8436
8437 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8438     :
8439 else
8440     lt_prog_compiler_static=
8441 fi
8442
8443
8444 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8445 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8446 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8447   echo $ECHO_N "(cached) $ECHO_C" >&6
8448 else
8449   lt_cv_prog_compiler_c_o=no
8450    $rm -r conftest 2>/dev/null
8451    mkdir conftest
8452    cd conftest
8453    mkdir out
8454    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8455
8456    lt_compiler_flag="-o out/conftest2.$ac_objext"
8457    # Insert the option either (1) after the last *FLAGS variable, or
8458    # (2) before a word containing "conftest.", or (3) at the end.
8459    # Note that $ac_compile itself does not contain backslashes and begins
8460    # with a dollar sign (not a hyphen), so the echo should work correctly.
8461    lt_compile=`echo "$ac_compile" | $SED \
8462    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8463    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8464    -e 's:$: $lt_compiler_flag:'`
8465    (eval echo "\"\$as_me:8465: $lt_compile\"" >&5)
8466    (eval "$lt_compile" 2>out/conftest.err)
8467    ac_status=$?
8468    cat out/conftest.err >&5
8469    echo "$as_me:8469: \$? = $ac_status" >&5
8470    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8471    then
8472      # The compiler can only warn and ignore the option if not recognized
8473      # So say no if there are warnings
8474      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8475      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8476      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8477        lt_cv_prog_compiler_c_o=yes
8478      fi
8479    fi
8480    chmod u+w . 2>&5
8481    $rm conftest*
8482    # SGI C++ compiler will create directory out/ii_files/ for
8483    # template instantiation
8484    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8485    $rm out/* && rmdir out
8486    cd ..
8487    rmdir conftest
8488    $rm conftest*
8489
8490 fi
8491 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8492 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8493
8494
8495 hard_links="nottested"
8496 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8497   # do not overwrite the value of need_locks provided by the user
8498   { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8499 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8500   hard_links=yes
8501   $rm conftest*
8502   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8503   touch conftest.a
8504   ln conftest.a conftest.b 2>&5 || hard_links=no
8505   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8506   { echo "$as_me:$LINENO: result: $hard_links" >&5
8507 echo "${ECHO_T}$hard_links" >&6; }
8508   if test "$hard_links" = no; then
8509     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8510 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8511     need_locks=warn
8512   fi
8513 else
8514   need_locks=no
8515 fi
8516
8517 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8518 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8519
8520   runpath_var=
8521   allow_undefined_flag=
8522   enable_shared_with_static_runtimes=no
8523   archive_cmds=
8524   archive_expsym_cmds=
8525   old_archive_From_new_cmds=
8526   old_archive_from_expsyms_cmds=
8527   export_dynamic_flag_spec=
8528   whole_archive_flag_spec=
8529   thread_safe_flag_spec=
8530   hardcode_libdir_flag_spec=
8531   hardcode_libdir_flag_spec_ld=
8532   hardcode_libdir_separator=
8533   hardcode_direct=no
8534   hardcode_minus_L=no
8535   hardcode_shlibpath_var=unsupported
8536   link_all_deplibs=unknown
8537   hardcode_automatic=no
8538   module_cmds=
8539   module_expsym_cmds=
8540   always_export_symbols=no
8541   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8542   # include_expsyms should be a list of space-separated symbols to be *always*
8543   # included in the symbol list
8544   include_expsyms=
8545   # exclude_expsyms can be an extended regexp of symbols to exclude
8546   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8547   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8548   # as well as any symbol that contains `d'.
8549   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8550   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8551   # platforms (ab)use it in PIC code, but their linkers get confused if
8552   # the symbol is explicitly referenced.  Since portable code cannot
8553   # rely on this symbol name, it's probably fine to never include it in
8554   # preloaded symbol tables.
8555   # Exclude shared library initialization/finalization symbols.
8556   extract_expsyms_cmds=
8557   # Just being paranoid about ensuring that cc_basename is set.
8558   for cc_temp in $compiler""; do
8559   case $cc_temp in
8560     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8561     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8562     \-*) ;;
8563     *) break;;
8564   esac
8565 done
8566 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8567
8568   case $host_os in
8569   cygwin* | mingw* | pw32*)
8570     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8571     # When not using gcc, we currently assume that we are using
8572     # Microsoft Visual C++.
8573     if test "$GCC" != yes; then
8574       with_gnu_ld=no
8575     fi
8576     ;;
8577   interix*)
8578     # we just hope/assume this is gcc and not c89 (= MSVC++)
8579     with_gnu_ld=yes
8580     ;;
8581   openbsd*)
8582     with_gnu_ld=no
8583     ;;
8584   esac
8585
8586   ld_shlibs=yes
8587   if test "$with_gnu_ld" = yes; then
8588     # If archive_cmds runs LD, not CC, wlarc should be empty
8589     wlarc='${wl}'
8590
8591     # Set some defaults for GNU ld with shared library support. These
8592     # are reset later if shared libraries are not supported. Putting them
8593     # here allows them to be overridden if necessary.
8594     runpath_var=LD_RUN_PATH
8595     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8596     export_dynamic_flag_spec='${wl}--export-dynamic'
8597     # ancient GNU ld didn't support --whole-archive et. al.
8598     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8599         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8600       else
8601         whole_archive_flag_spec=
8602     fi
8603     supports_anon_versioning=no
8604     case `$LD -v 2>/dev/null` in
8605       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8606       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8607       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8608       *\ 2.11.*) ;; # other 2.11 versions
8609       *) supports_anon_versioning=yes ;;
8610     esac
8611
8612     # See if GNU ld supports shared libraries.
8613     case $host_os in
8614     aix[3-9]*)
8615       # On AIX/PPC, the GNU linker is very broken
8616       if test "$host_cpu" != ia64; then
8617         ld_shlibs=no
8618         cat <<EOF 1>&2
8619
8620 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8621 *** to be unable to reliably create shared libraries on AIX.
8622 *** Therefore, libtool is disabling shared libraries support.  If you
8623 *** really care for shared libraries, you may want to modify your PATH
8624 *** so that a non-GNU linker is found, and then restart.
8625
8626 EOF
8627       fi
8628       ;;
8629
8630     amigaos*)
8631       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)'
8632       hardcode_libdir_flag_spec='-L$libdir'
8633       hardcode_minus_L=yes
8634
8635       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8636       # that the semantics of dynamic libraries on AmigaOS, at least up
8637       # to version 4, is to share data among multiple programs linked
8638       # with the same dynamic library.  Since this doesn't match the
8639       # behavior of shared libraries on other platforms, we can't use
8640       # them.
8641       ld_shlibs=no
8642       ;;
8643
8644     beos*)
8645       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8646         allow_undefined_flag=unsupported
8647         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8648         # support --undefined.  This deserves some investigation.  FIXME
8649         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8650       else
8651         ld_shlibs=no
8652       fi
8653       ;;
8654
8655     cygwin* | mingw* | pw32*)
8656       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8657       # as there is no search path for DLLs.
8658       hardcode_libdir_flag_spec='-L$libdir'
8659       allow_undefined_flag=unsupported
8660       always_export_symbols=no
8661       enable_shared_with_static_runtimes=yes
8662       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8663
8664       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8665         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8666         # If the export-symbols file already is a .def file (1st line
8667         # is EXPORTS), use it as is; otherwise, prepend...
8668         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8669           cp $export_symbols $output_objdir/$soname.def;
8670         else
8671           echo EXPORTS > $output_objdir/$soname.def;
8672           cat $export_symbols >> $output_objdir/$soname.def;
8673         fi~
8674         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8675       else
8676         ld_shlibs=no
8677       fi
8678       ;;
8679
8680     interix[3-9]*)
8681       hardcode_direct=no
8682       hardcode_shlibpath_var=no
8683       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8684       export_dynamic_flag_spec='${wl}-E'
8685       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8686       # Instead, shared libraries are loaded at an image base (0x10000000 by
8687       # default) and relocated if they conflict, which is a slow very memory
8688       # consuming and fragmenting process.  To avoid this, we pick a random,
8689       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8690       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8691       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8692       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'
8693       ;;
8694
8695     gnu* | linux* | k*bsd*-gnu)
8696       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8697         tmp_addflag=
8698         case $cc_basename,$host_cpu in
8699         pgcc*)                          # Portland Group C compiler
8700           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'
8701           tmp_addflag=' $pic_flag'
8702           ;;
8703         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8704           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'
8705           tmp_addflag=' $pic_flag -Mnomain' ;;
8706         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8707           tmp_addflag=' -i_dynamic' ;;
8708         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8709           tmp_addflag=' -i_dynamic -nofor_main' ;;
8710         ifc* | ifort*)                  # Intel Fortran compiler
8711           tmp_addflag=' -nofor_main' ;;
8712         esac
8713         case `$CC -V 2>&1 | sed 5q` in
8714         *Sun\ C*)                       # Sun C 5.9
8715           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'
8716           tmp_sharedflag='-G' ;;
8717         *Sun\ F*)                       # Sun Fortran 8.3
8718           tmp_sharedflag='-G' ;;
8719         *)
8720           tmp_sharedflag='-shared' ;;
8721         esac
8722         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723
8724         if test $supports_anon_versioning = yes; then
8725           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8726   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8727   $echo "local: *; };" >> $output_objdir/$libname.ver~
8728           $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8729         fi
8730       else
8731         ld_shlibs=no
8732       fi
8733       ;;
8734
8735     netbsd*)
8736       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8737         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8738         wlarc=
8739       else
8740         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742       fi
8743       ;;
8744
8745     solaris*)
8746       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8747         ld_shlibs=no
8748         cat <<EOF 1>&2
8749
8750 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8751 *** create shared libraries on Solaris systems.  Therefore, libtool
8752 *** is disabling shared libraries support.  We urge you to upgrade GNU
8753 *** binutils to release 2.9.1 or newer.  Another option is to modify
8754 *** your PATH or compiler configuration so that the native linker is
8755 *** used, and then restart.
8756
8757 EOF
8758       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8759         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8760         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8761       else
8762         ld_shlibs=no
8763       fi
8764       ;;
8765
8766     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8767       case `$LD -v 2>&1` in
8768         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8769         ld_shlibs=no
8770         cat <<_LT_EOF 1>&2
8771
8772 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8773 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8774 *** is disabling shared libraries support.  We urge you to upgrade GNU
8775 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8776 *** your PATH or compiler configuration so that the native linker is
8777 *** used, and then restart.
8778
8779 _LT_EOF
8780         ;;
8781         *)
8782           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8783             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8784             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8785             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8786           else
8787             ld_shlibs=no
8788           fi
8789         ;;
8790       esac
8791       ;;
8792
8793     sunos4*)
8794       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8795       wlarc=
8796       hardcode_direct=yes
8797       hardcode_shlibpath_var=no
8798       ;;
8799
8800     *)
8801       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8802         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8803         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8804       else
8805         ld_shlibs=no
8806       fi
8807       ;;
8808     esac
8809
8810     if test "$ld_shlibs" = no; then
8811       runpath_var=
8812       hardcode_libdir_flag_spec=
8813       export_dynamic_flag_spec=
8814       whole_archive_flag_spec=
8815     fi
8816   else
8817     # PORTME fill in a description of your system's linker (not GNU ld)
8818     case $host_os in
8819     aix3*)
8820       allow_undefined_flag=unsupported
8821       always_export_symbols=yes
8822       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'
8823       # Note: this linker hardcodes the directories in LIBPATH if there
8824       # are no directories specified by -L.
8825       hardcode_minus_L=yes
8826       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8827         # Neither direct hardcoding nor static linking is supported with a
8828         # broken collect2.
8829         hardcode_direct=unsupported
8830       fi
8831       ;;
8832
8833     aix[4-9]*)
8834       if test "$host_cpu" = ia64; then
8835         # On IA64, the linker does run time linking by default, so we don't
8836         # have to do anything special.
8837         aix_use_runtimelinking=no
8838         exp_sym_flag='-Bexport'
8839         no_entry_flag=""
8840       else
8841         # If we're using GNU nm, then we don't want the "-C" option.
8842         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8843         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8844           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'
8845         else
8846           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'
8847         fi
8848         aix_use_runtimelinking=no
8849
8850         # Test if we are trying to use run time linking or normal
8851         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8852         # need to do runtime linking.
8853         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8854           for ld_flag in $LDFLAGS; do
8855           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8856             aix_use_runtimelinking=yes
8857             break
8858           fi
8859           done
8860           ;;
8861         esac
8862
8863         exp_sym_flag='-bexport'
8864         no_entry_flag='-bnoentry'
8865       fi
8866
8867       # When large executables or shared objects are built, AIX ld can
8868       # have problems creating the table of contents.  If linking a library
8869       # or program results in "error TOC overflow" add -mminimal-toc to
8870       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8871       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8872
8873       archive_cmds=''
8874       hardcode_direct=yes
8875       hardcode_libdir_separator=':'
8876       link_all_deplibs=yes
8877
8878       if test "$GCC" = yes; then
8879         case $host_os in aix4.[012]|aix4.[012].*)
8880         # We only want to do this on AIX 4.2 and lower, the check
8881         # below for broken collect2 doesn't work under 4.3+
8882           collect2name=`${CC} -print-prog-name=collect2`
8883           if test -f "$collect2name" && \
8884            strings "$collect2name" | grep resolve_lib_name >/dev/null
8885           then
8886           # We have reworked collect2
8887           :
8888           else
8889           # We have old collect2
8890           hardcode_direct=unsupported
8891           # It fails to find uninstalled libraries when the uninstalled
8892           # path is not listed in the libpath.  Setting hardcode_minus_L
8893           # to unsupported forces relinking
8894           hardcode_minus_L=yes
8895           hardcode_libdir_flag_spec='-L$libdir'
8896           hardcode_libdir_separator=
8897           fi
8898           ;;
8899         esac
8900         shared_flag='-shared'
8901         if test "$aix_use_runtimelinking" = yes; then
8902           shared_flag="$shared_flag "'${wl}-G'
8903         fi
8904       else
8905         # not using gcc
8906         if test "$host_cpu" = ia64; then
8907         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8908         # chokes on -Wl,-G. The following line is correct:
8909           shared_flag='-G'
8910         else
8911           if test "$aix_use_runtimelinking" = yes; then
8912             shared_flag='${wl}-G'
8913           else
8914             shared_flag='${wl}-bM:SRE'
8915           fi
8916         fi
8917       fi
8918
8919       # It seems that -bexpall does not export symbols beginning with
8920       # underscore (_), so it is better to generate a list of symbols to export.
8921       always_export_symbols=yes
8922       if test "$aix_use_runtimelinking" = yes; then
8923         # Warning - without using the other runtime loading flags (-brtl),
8924         # -berok will link without error, but may produce a broken library.
8925         allow_undefined_flag='-berok'
8926        # Determine the default libpath from the value encoded in an empty executable.
8927        cat >conftest.$ac_ext <<_ACEOF
8928 /* confdefs.h.  */
8929 _ACEOF
8930 cat confdefs.h >>conftest.$ac_ext
8931 cat >>conftest.$ac_ext <<_ACEOF
8932 /* end confdefs.h.  */
8933
8934 int
8935 main ()
8936 {
8937
8938   ;
8939   return 0;
8940 }
8941 _ACEOF
8942 rm -f conftest.$ac_objext conftest$ac_exeext
8943 if { (ac_try="$ac_link"
8944 case "(($ac_try" in
8945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8946   *) ac_try_echo=$ac_try;;
8947 esac
8948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8949   (eval "$ac_link") 2>conftest.er1
8950   ac_status=$?
8951   grep -v '^ *+' conftest.er1 >conftest.err
8952   rm -f conftest.er1
8953   cat conftest.err >&5
8954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955   (exit $ac_status); } && {
8956          test -z "$ac_c_werror_flag" ||
8957          test ! -s conftest.err
8958        } && test -s conftest$ac_exeext &&
8959        $as_test_x conftest$ac_exeext; then
8960
8961 lt_aix_libpath_sed='
8962     /Import File Strings/,/^$/ {
8963         /^0/ {
8964             s/^0  *\(.*\)$/\1/
8965             p
8966         }
8967     }'
8968 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8969 # Check for a 64-bit object if we didn't find anything.
8970 if test -z "$aix_libpath"; then
8971   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8972 fi
8973 else
8974   echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.$ac_ext >&5
8976
8977
8978 fi
8979
8980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8981       conftest$ac_exeext conftest.$ac_ext
8982 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8983
8984        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8985         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"
8986        else
8987         if test "$host_cpu" = ia64; then
8988           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8989           allow_undefined_flag="-z nodefs"
8990           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"
8991         else
8992          # Determine the default libpath from the value encoded in an empty executable.
8993          cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h.  */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h.  */
8999
9000 int
9001 main ()
9002 {
9003
9004   ;
9005   return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext conftest$ac_exeext
9009 if { (ac_try="$ac_link"
9010 case "(($ac_try" in
9011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012   *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015   (eval "$ac_link") 2>conftest.er1
9016   ac_status=$?
9017   grep -v '^ *+' conftest.er1 >conftest.err
9018   rm -f conftest.er1
9019   cat conftest.err >&5
9020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021   (exit $ac_status); } && {
9022          test -z "$ac_c_werror_flag" ||
9023          test ! -s conftest.err
9024        } && test -s conftest$ac_exeext &&
9025        $as_test_x conftest$ac_exeext; then
9026
9027 lt_aix_libpath_sed='
9028     /Import File Strings/,/^$/ {
9029         /^0/ {
9030             s/^0  *\(.*\)$/\1/
9031             p
9032         }
9033     }'
9034 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9035 # Check for a 64-bit object if we didn't find anything.
9036 if test -z "$aix_libpath"; then
9037   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9038 fi
9039 else
9040   echo "$as_me: failed program was:" >&5
9041 sed 's/^/| /' conftest.$ac_ext >&5
9042
9043
9044 fi
9045
9046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9047       conftest$ac_exeext conftest.$ac_ext
9048 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9049
9050          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9051           # Warning - without using the other run time loading flags,
9052           # -berok will link without error, but may produce a broken library.
9053           no_undefined_flag=' ${wl}-bernotok'
9054           allow_undefined_flag=' ${wl}-berok'
9055           # Exported symbols can be pulled into shared objects from archives
9056           whole_archive_flag_spec='$convenience'
9057           archive_cmds_need_lc=yes
9058           # This is similar to how AIX traditionally builds its shared libraries.
9059           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'
9060         fi
9061       fi
9062       ;;
9063
9064     amigaos*)
9065       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)'
9066       hardcode_libdir_flag_spec='-L$libdir'
9067       hardcode_minus_L=yes
9068       # see comment about different semantics on the GNU ld section
9069       ld_shlibs=no
9070       ;;
9071
9072     bsdi[45]*)
9073       export_dynamic_flag_spec=-rdynamic
9074       ;;
9075
9076     cygwin* | mingw* | pw32*)
9077       # When not using gcc, we currently assume that we are using
9078       # Microsoft Visual C++.
9079       # hardcode_libdir_flag_spec is actually meaningless, as there is
9080       # no search path for DLLs.
9081       hardcode_libdir_flag_spec=' '
9082       allow_undefined_flag=unsupported
9083       # Tell ltmain to make .lib files, not .a files.
9084       libext=lib
9085       # Tell ltmain to make .dll files, not .so files.
9086       shrext_cmds=".dll"
9087       # FIXME: Setting linknames here is a bad hack.
9088       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9089       # The linker will automatically build a .lib file if we build a DLL.
9090       old_archive_From_new_cmds='true'
9091       # FIXME: Should let the user specify the lib program.
9092       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9093       fix_srcfile_path='`cygpath -w "$srcfile"`'
9094       enable_shared_with_static_runtimes=yes
9095       ;;
9096
9097     darwin* | rhapsody*)
9098       case $host_os in
9099         rhapsody* | darwin1.[012])
9100          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9101          ;;
9102        *) # Darwin 1.3 on
9103          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9104            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9105          else
9106            case ${MACOSX_DEPLOYMENT_TARGET} in
9107              10.[012])
9108                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9109                ;;
9110              10.*)
9111                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9112                ;;
9113            esac
9114          fi
9115          ;;
9116       esac
9117       archive_cmds_need_lc=no
9118       hardcode_direct=no
9119       hardcode_automatic=yes
9120       hardcode_shlibpath_var=unsupported
9121       whole_archive_flag_spec=''
9122       link_all_deplibs=yes
9123     if test "$GCC" = yes ; then
9124         output_verbose_link_cmd='echo'
9125         archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9126         module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9127         archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9128         module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9129     else
9130       case $cc_basename in
9131         xlc*)
9132          output_verbose_link_cmd='echo'
9133          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
9134          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9135           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9136          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}'
9137           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}'
9138           ;;
9139        *)
9140          ld_shlibs=no
9141           ;;
9142       esac
9143     fi
9144       ;;
9145
9146     dgux*)
9147       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9148       hardcode_libdir_flag_spec='-L$libdir'
9149       hardcode_shlibpath_var=no
9150       ;;
9151
9152     freebsd1*)
9153       ld_shlibs=no
9154       ;;
9155
9156     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9157     # support.  Future versions do this automatically, but an explicit c++rt0.o
9158     # does not break anything, and helps significantly (at the cost of a little
9159     # extra space).
9160     freebsd2.2*)
9161       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9162       hardcode_libdir_flag_spec='-R$libdir'
9163       hardcode_direct=yes
9164       hardcode_shlibpath_var=no
9165       ;;
9166
9167     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9168     freebsd2*)
9169       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9170       hardcode_direct=yes
9171       hardcode_minus_L=yes
9172       hardcode_shlibpath_var=no
9173       ;;
9174
9175     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9176     freebsd* | dragonfly*)
9177       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9178       hardcode_libdir_flag_spec='-R$libdir'
9179       hardcode_direct=yes
9180       hardcode_shlibpath_var=no
9181       ;;
9182
9183     hpux9*)
9184       if test "$GCC" = yes; then
9185         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'
9186       else
9187         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'
9188       fi
9189       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9190       hardcode_libdir_separator=:
9191       hardcode_direct=yes
9192
9193       # hardcode_minus_L: Not really in the search PATH,
9194       # but as the default location of the library.
9195       hardcode_minus_L=yes
9196       export_dynamic_flag_spec='${wl}-E'
9197       ;;
9198
9199     hpux10*)
9200       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9201         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9202       else
9203         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9204       fi
9205       if test "$with_gnu_ld" = no; then
9206         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9207         hardcode_libdir_separator=:
9208
9209         hardcode_direct=yes
9210         export_dynamic_flag_spec='${wl}-E'
9211
9212         # hardcode_minus_L: Not really in the search PATH,
9213         # but as the default location of the library.
9214         hardcode_minus_L=yes
9215       fi
9216       ;;
9217
9218     hpux11*)
9219       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9220         case $host_cpu in
9221         hppa*64*)
9222           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9223           ;;
9224         ia64*)
9225           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9226           ;;
9227         *)
9228           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9229           ;;
9230         esac
9231       else
9232         case $host_cpu in
9233         hppa*64*)
9234           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9235           ;;
9236         ia64*)
9237           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9238           ;;
9239         *)
9240           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241           ;;
9242         esac
9243       fi
9244       if test "$with_gnu_ld" = no; then
9245         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9246         hardcode_libdir_separator=:
9247
9248         case $host_cpu in
9249         hppa*64*|ia64*)
9250           hardcode_libdir_flag_spec_ld='+b $libdir'
9251           hardcode_direct=no
9252           hardcode_shlibpath_var=no
9253           ;;
9254         *)
9255           hardcode_direct=yes
9256           export_dynamic_flag_spec='${wl}-E'
9257
9258           # hardcode_minus_L: Not really in the search PATH,
9259           # but as the default location of the library.
9260           hardcode_minus_L=yes
9261           ;;
9262         esac
9263       fi
9264       ;;
9265
9266     irix5* | irix6* | nonstopux*)
9267       if test "$GCC" = yes; then
9268         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'
9269       else
9270         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'
9271         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9272       fi
9273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274       hardcode_libdir_separator=:
9275       link_all_deplibs=yes
9276       ;;
9277
9278     netbsd*)
9279       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9280         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9281       else
9282         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9283       fi
9284       hardcode_libdir_flag_spec='-R$libdir'
9285       hardcode_direct=yes
9286       hardcode_shlibpath_var=no
9287       ;;
9288
9289     newsos6)
9290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291       hardcode_direct=yes
9292       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293       hardcode_libdir_separator=:
9294       hardcode_shlibpath_var=no
9295       ;;
9296
9297     openbsd*)
9298       if test -f /usr/libexec/ld.so; then
9299         hardcode_direct=yes
9300         hardcode_shlibpath_var=no
9301         if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9302           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9303           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9304           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9305           export_dynamic_flag_spec='${wl}-E'
9306         else
9307           case $host_os in
9308            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9309              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9310              hardcode_libdir_flag_spec='-R$libdir'
9311              ;;
9312            *)
9313              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9314              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9315              ;;
9316           esac
9317         fi
9318       else
9319         ld_shlibs=no
9320       fi
9321       ;;
9322
9323     os2*)
9324       hardcode_libdir_flag_spec='-L$libdir'
9325       hardcode_minus_L=yes
9326       allow_undefined_flag=unsupported
9327       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'
9328       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9329       ;;
9330
9331     osf3*)
9332       if test "$GCC" = yes; then
9333         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9334         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'
9335       else
9336         allow_undefined_flag=' -expect_unresolved \*'
9337         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'
9338       fi
9339       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9340       hardcode_libdir_separator=:
9341       ;;
9342
9343     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9344       if test "$GCC" = yes; then
9345         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9346         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'
9347         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9348       else
9349         allow_undefined_flag=' -expect_unresolved \*'
9350         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'
9351         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9352         $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'
9353
9354         # Both c and cxx compiler support -rpath directly
9355         hardcode_libdir_flag_spec='-rpath $libdir'
9356       fi
9357       hardcode_libdir_separator=:
9358       ;;
9359
9360     solaris*)
9361       no_undefined_flag=' -z text'
9362       if test "$GCC" = yes; then
9363         wlarc='${wl}'
9364         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9365         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9366           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9367       else
9368         wlarc=''
9369         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9371         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9372       fi
9373       hardcode_libdir_flag_spec='-R$libdir'
9374       hardcode_shlibpath_var=no
9375       case $host_os in
9376       solaris2.[0-5] | solaris2.[0-5].*) ;;
9377       *)
9378         # The compiler driver will combine and reorder linker options,
9379         # but understands `-z linker_flag'.  GCC discards it without `$wl',
9380         # but is careful enough not to reorder.
9381         # Supported since Solaris 2.6 (maybe 2.5.1?)
9382         if test "$GCC" = yes; then
9383           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9384         else
9385           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9386         fi
9387         ;;
9388       esac
9389       link_all_deplibs=yes
9390       ;;
9391
9392     sunos4*)
9393       if test "x$host_vendor" = xsequent; then
9394         # Use $CC to link under sequent, because it throws in some extra .o
9395         # files that make .init and .fini sections work.
9396         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9397       else
9398         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9399       fi
9400       hardcode_libdir_flag_spec='-L$libdir'
9401       hardcode_direct=yes
9402       hardcode_minus_L=yes
9403       hardcode_shlibpath_var=no
9404       ;;
9405
9406     sysv4)
9407       case $host_vendor in
9408         sni)
9409           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9410           hardcode_direct=yes # is this really true???
9411         ;;
9412         siemens)
9413           ## LD is ld it makes a PLAMLIB
9414           ## CC just makes a GrossModule.
9415           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9416           reload_cmds='$CC -r -o $output$reload_objs'
9417           hardcode_direct=no
9418         ;;
9419         motorola)
9420           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9421           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9422         ;;
9423       esac
9424       runpath_var='LD_RUN_PATH'
9425       hardcode_shlibpath_var=no
9426       ;;
9427
9428     sysv4.3*)
9429       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9430       hardcode_shlibpath_var=no
9431       export_dynamic_flag_spec='-Bexport'
9432       ;;
9433
9434     sysv4*MP*)
9435       if test -d /usr/nec; then
9436         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437         hardcode_shlibpath_var=no
9438         runpath_var=LD_RUN_PATH
9439         hardcode_runpath_var=yes
9440         ld_shlibs=yes
9441       fi
9442       ;;
9443
9444     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9445       no_undefined_flag='${wl}-z,text'
9446       archive_cmds_need_lc=no
9447       hardcode_shlibpath_var=no
9448       runpath_var='LD_RUN_PATH'
9449
9450       if test "$GCC" = yes; then
9451         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9452         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9453       else
9454         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9455         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9456       fi
9457       ;;
9458
9459     sysv5* | sco3.2v5* | sco5v6*)
9460       # Note: We can NOT use -z defs as we might desire, because we do not
9461       # link with -lc, and that would cause any symbols used from libc to
9462       # always be unresolved, which means just about no library would
9463       # ever link correctly.  If we're not using GNU ld we use -z text
9464       # though, which does catch some bad symbols but isn't as heavy-handed
9465       # as -z defs.
9466       no_undefined_flag='${wl}-z,text'
9467       allow_undefined_flag='${wl}-z,nodefs'
9468       archive_cmds_need_lc=no
9469       hardcode_shlibpath_var=no
9470       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9471       hardcode_libdir_separator=':'
9472       link_all_deplibs=yes
9473       export_dynamic_flag_spec='${wl}-Bexport'
9474       runpath_var='LD_RUN_PATH'
9475
9476       if test "$GCC" = yes; then
9477         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9478         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9479       else
9480         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9481         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9482       fi
9483       ;;
9484
9485     uts4*)
9486       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9487       hardcode_libdir_flag_spec='-L$libdir'
9488       hardcode_shlibpath_var=no
9489       ;;
9490
9491     *)
9492       ld_shlibs=no
9493       ;;
9494     esac
9495   fi
9496
9497 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9498 echo "${ECHO_T}$ld_shlibs" >&6; }
9499 test "$ld_shlibs" = no && can_build_shared=no
9500
9501 #
9502 # Do we need to explicitly link libc?
9503 #
9504 case "x$archive_cmds_need_lc" in
9505 x|xyes)
9506   # Assume -lc should be added
9507   archive_cmds_need_lc=yes
9508
9509   if test "$enable_shared" = yes && test "$GCC" = yes; then
9510     case $archive_cmds in
9511     *'~'*)
9512       # FIXME: we may have to deal with multi-command sequences.
9513       ;;
9514     '$CC '*)
9515       # Test whether the compiler implicitly links with -lc since on some
9516       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9517       # to ld, don't add -lc before -lgcc.
9518       { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9519 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9520       $rm conftest*
9521       echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9522
9523       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9524   (eval $ac_compile) 2>&5
9525   ac_status=$?
9526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9527   (exit $ac_status); } 2>conftest.err; then
9528         soname=conftest
9529         lib=conftest
9530         libobjs=conftest.$ac_objext
9531         deplibs=
9532         wl=$lt_prog_compiler_wl
9533         pic_flag=$lt_prog_compiler_pic
9534         compiler_flags=-v
9535         linker_flags=-v
9536         verstring=
9537         output_objdir=.
9538         libname=conftest
9539         lt_save_allow_undefined_flag=$allow_undefined_flag
9540         allow_undefined_flag=
9541         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9542   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9543   ac_status=$?
9544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545   (exit $ac_status); }
9546         then
9547           archive_cmds_need_lc=no
9548         else
9549           archive_cmds_need_lc=yes
9550         fi
9551         allow_undefined_flag=$lt_save_allow_undefined_flag
9552       else
9553         cat conftest.err 1>&5
9554       fi
9555       $rm conftest*
9556       { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9557 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9558       ;;
9559     esac
9560   fi
9561   ;;
9562 esac
9563
9564 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9565 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9566 library_names_spec=
9567 libname_spec='lib$name'
9568 soname_spec=
9569 shrext_cmds=".so"
9570 postinstall_cmds=
9571 postuninstall_cmds=
9572 finish_cmds=
9573 finish_eval=
9574 shlibpath_var=
9575 shlibpath_overrides_runpath=unknown
9576 version_type=none
9577 dynamic_linker="$host_os ld.so"
9578 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9579
9580 if test "$GCC" = yes; then
9581   case $host_os in
9582     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9583     *) lt_awk_arg="/^libraries:/" ;;
9584   esac
9585   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9586   if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9587     # if the path contains ";" then we assume it to be the separator
9588     # otherwise default to the standard path separator (i.e. ":") - it is
9589     # assumed that no part of a normal pathname contains ";" but that should
9590     # okay in the real world where ";" in dirpaths is itself problematic.
9591     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9592   else
9593     lt_search_path_spec=`echo "$lt_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9594   fi
9595   # Ok, now we have the path, separated by spaces, we can step through it
9596   # and add multilib dir if necessary.
9597   lt_tmp_lt_search_path_spec=
9598   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9599   for lt_sys_path in $lt_search_path_spec; do
9600     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9601       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9602     else
9603       test -d "$lt_sys_path" && \
9604         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9605     fi
9606   done
9607   lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9608 BEGIN {RS=" "; FS="/|\n";} {
9609   lt_foo="";
9610   lt_count=0;
9611   for (lt_i = NF; lt_i > 0; lt_i--) {
9612     if ($lt_i != "" && $lt_i != ".") {
9613       if ($lt_i == "..") {
9614         lt_count++;
9615       } else {
9616         if (lt_count == 0) {
9617           lt_foo="/" $lt_i lt_foo;
9618         } else {
9619           lt_count--;
9620         }
9621       }
9622     }
9623   }
9624   if (lt_foo != "") { lt_freq[lt_foo]++; }
9625   if (lt_freq[lt_foo] == 1) { print lt_foo; }
9626 }'`
9627   sys_lib_search_path_spec=`echo $lt_search_path_spec`
9628 else
9629   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9630 fi
9631 need_lib_prefix=no
9632 hardcode_into_libs=no
9633
9634 # when you set need_version to no, make sure it does not cause -set_version
9635 # flags to be left without arguments
9636 need_version=no
9637
9638 case $host_os in
9639 aix3*)
9640   version_type=linux
9641   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9642   shlibpath_var=LIBPATH
9643
9644   # AIX 3 has no versioning support, so we append a major version to the name.
9645   soname_spec='${libname}${release}${shared_ext}$major'
9646   ;;
9647
9648 aix[4-9]*)
9649   version_type=linux
9650   need_lib_prefix=no
9651   need_version=no
9652   hardcode_into_libs=yes
9653   if test "$host_cpu" = ia64; then
9654     # AIX 5 supports IA64
9655     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9656     shlibpath_var=LD_LIBRARY_PATH
9657   else
9658     # With GCC up to 2.95.x, collect2 would create an import file
9659     # for dependence libraries.  The import file would start with
9660     # the line `#! .'.  This would cause the generated library to
9661     # depend on `.', always an invalid library.  This was fixed in
9662     # development snapshots of GCC prior to 3.0.
9663     case $host_os in
9664       aix4 | aix4.[01] | aix4.[01].*)
9665       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9666            echo ' yes '
9667            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9668         :
9669       else
9670         can_build_shared=no
9671       fi
9672       ;;
9673     esac
9674     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9675     # soname into executable. Probably we can add versioning support to
9676     # collect2, so additional links can be useful in future.
9677     if test "$aix_use_runtimelinking" = yes; then
9678       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9679       # instead of lib<name>.a to let people know that these are not
9680       # typical AIX shared libraries.
9681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9682     else
9683       # We preserve .a as extension for shared libraries through AIX4.2
9684       # and later when we are not doing run time linking.
9685       library_names_spec='${libname}${release}.a $libname.a'
9686       soname_spec='${libname}${release}${shared_ext}$major'
9687     fi
9688     shlibpath_var=LIBPATH
9689   fi
9690   ;;
9691
9692 amigaos*)
9693   library_names_spec='$libname.ixlibrary $libname.a'
9694   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9695   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'
9696   ;;
9697
9698 beos*)
9699   library_names_spec='${libname}${shared_ext}'
9700   dynamic_linker="$host_os ld.so"
9701   shlibpath_var=LIBRARY_PATH
9702   ;;
9703
9704 bsdi[45]*)
9705   version_type=linux
9706   need_version=no
9707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708   soname_spec='${libname}${release}${shared_ext}$major'
9709   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9710   shlibpath_var=LD_LIBRARY_PATH
9711   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9712   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9713   # the default ld.so.conf also contains /usr/contrib/lib and
9714   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9715   # libtool to hard-code these into programs
9716   ;;
9717
9718 cygwin* | mingw* | pw32*)
9719   version_type=windows
9720   shrext_cmds=".dll"
9721   need_version=no
9722   need_lib_prefix=no
9723
9724   case $GCC,$host_os in
9725   yes,cygwin* | yes,mingw* | yes,pw32*)
9726     library_names_spec='$libname.dll.a'
9727     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9728     postinstall_cmds='base_file=`basename \${file}`~
9729       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9730       dldir=$destdir/`dirname \$dlpath`~
9731       test -d \$dldir || mkdir -p \$dldir~
9732       $install_prog $dir/$dlname \$dldir/$dlname~
9733       chmod a+x \$dldir/$dlname'
9734     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9735       dlpath=$dir/\$dldll~
9736        $rm \$dlpath'
9737     shlibpath_overrides_runpath=yes
9738
9739     case $host_os in
9740     cygwin*)
9741       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9742       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9743       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9744       ;;
9745     mingw*)
9746       # MinGW DLLs use traditional 'lib' prefix
9747       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9748       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9749       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9750         # It is most probably a Windows format PATH printed by
9751         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9752         # path with ; separators, and with drive letters. We can handle the
9753         # drive letters (cygwin fileutils understands them), so leave them,
9754         # especially as we might pass files found there to a mingw objdump,
9755         # which wouldn't understand a cygwinified path. Ahh.
9756         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9757       else
9758         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9759       fi
9760       ;;
9761     pw32*)
9762       # pw32 DLLs use 'pw' prefix rather than 'lib'
9763       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764       ;;
9765     esac
9766     ;;
9767
9768   *)
9769     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9770     ;;
9771   esac
9772   dynamic_linker='Win32 ld.exe'
9773   # FIXME: first we should search . and the directory the executable is in
9774   shlibpath_var=PATH
9775   ;;
9776
9777 darwin* | rhapsody*)
9778   dynamic_linker="$host_os dyld"
9779   version_type=darwin
9780   need_lib_prefix=no
9781   need_version=no
9782   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9783   soname_spec='${libname}${release}${major}$shared_ext'
9784   shlibpath_overrides_runpath=yes
9785   shlibpath_var=DYLD_LIBRARY_PATH
9786   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9787
9788   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9789   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9790   ;;
9791
9792 dgux*)
9793   version_type=linux
9794   need_lib_prefix=no
9795   need_version=no
9796   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9797   soname_spec='${libname}${release}${shared_ext}$major'
9798   shlibpath_var=LD_LIBRARY_PATH
9799   ;;
9800
9801 freebsd1*)
9802   dynamic_linker=no
9803   ;;
9804
9805 freebsd* | dragonfly*)
9806   # DragonFly does not have aout.  When/if they implement a new
9807   # versioning mechanism, adjust this.
9808   if test -x /usr/bin/objformat; then
9809     objformat=`/usr/bin/objformat`
9810   else
9811     case $host_os in
9812     freebsd[123]*) objformat=aout ;;
9813     *) objformat=elf ;;
9814     esac
9815   fi
9816   version_type=freebsd-$objformat
9817   case $version_type in
9818     freebsd-elf*)
9819       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9820       need_version=no
9821       need_lib_prefix=no
9822       ;;
9823     freebsd-*)
9824       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9825       need_version=no
9826       ;;
9827   esac
9828   shlibpath_var=LD_LIBRARY_PATH
9829   case $host_os in
9830   freebsd2*)
9831     shlibpath_overrides_runpath=yes
9832     ;;
9833   freebsd3.[01]* | freebsdelf3.[01]*)
9834     shlibpath_overrides_runpath=yes
9835     hardcode_into_libs=yes
9836     ;;
9837   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9838   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9839     shlibpath_overrides_runpath=no
9840     hardcode_into_libs=yes
9841     ;;
9842   *) # from 4.6 on, and DragonFly
9843     shlibpath_overrides_runpath=yes
9844     hardcode_into_libs=yes
9845     ;;
9846   esac
9847   ;;
9848
9849 gnu*)
9850   version_type=linux
9851   need_lib_prefix=no
9852   need_version=no
9853   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9854   soname_spec='${libname}${release}${shared_ext}$major'
9855   shlibpath_var=LD_LIBRARY_PATH
9856   hardcode_into_libs=yes
9857   ;;
9858
9859 hpux9* | hpux10* | hpux11*)
9860   # Give a soname corresponding to the major version so that dld.sl refuses to
9861   # link against other versions.
9862   version_type=sunos
9863   need_lib_prefix=no
9864   need_version=no
9865   case $host_cpu in
9866   ia64*)
9867     shrext_cmds='.so'
9868     hardcode_into_libs=yes
9869     dynamic_linker="$host_os dld.so"
9870     shlibpath_var=LD_LIBRARY_PATH
9871     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9873     soname_spec='${libname}${release}${shared_ext}$major'
9874     if test "X$HPUX_IA64_MODE" = X32; then
9875       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9876     else
9877       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9878     fi
9879     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9880     ;;
9881    hppa*64*)
9882      shrext_cmds='.sl'
9883      hardcode_into_libs=yes
9884      dynamic_linker="$host_os dld.sl"
9885      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9886      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9887      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9888      soname_spec='${libname}${release}${shared_ext}$major'
9889      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9890      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9891      ;;
9892    *)
9893     shrext_cmds='.sl'
9894     dynamic_linker="$host_os dld.sl"
9895     shlibpath_var=SHLIB_PATH
9896     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9897     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9898     soname_spec='${libname}${release}${shared_ext}$major'
9899     ;;
9900   esac
9901   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9902   postinstall_cmds='chmod 555 $lib'
9903   ;;
9904
9905 interix[3-9]*)
9906   version_type=linux
9907   need_lib_prefix=no
9908   need_version=no
9909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9910   soname_spec='${libname}${release}${shared_ext}$major'
9911   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9912   shlibpath_var=LD_LIBRARY_PATH
9913   shlibpath_overrides_runpath=no
9914   hardcode_into_libs=yes
9915   ;;
9916
9917 irix5* | irix6* | nonstopux*)
9918   case $host_os in
9919     nonstopux*) version_type=nonstopux ;;
9920     *)
9921         if test "$lt_cv_prog_gnu_ld" = yes; then
9922                 version_type=linux
9923         else
9924                 version_type=irix
9925         fi ;;
9926   esac
9927   need_lib_prefix=no
9928   need_version=no
9929   soname_spec='${libname}${release}${shared_ext}$major'
9930   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9931   case $host_os in
9932   irix5* | nonstopux*)
9933     libsuff= shlibsuff=
9934     ;;
9935   *)
9936     case $LD in # libtool.m4 will add one of these switches to LD
9937     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9938       libsuff= shlibsuff= libmagic=32-bit;;
9939     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9940       libsuff=32 shlibsuff=N32 libmagic=N32;;
9941     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9942       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9943     *) libsuff= shlibsuff= libmagic=never-match;;
9944     esac
9945     ;;
9946   esac
9947   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9948   shlibpath_overrides_runpath=no
9949   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9950   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9951   hardcode_into_libs=yes
9952   ;;
9953
9954 # No shared lib support for Linux oldld, aout, or coff.
9955 linux*oldld* | linux*aout* | linux*coff*)
9956   dynamic_linker=no
9957   ;;
9958
9959 # This must be Linux ELF.
9960 linux* | k*bsd*-gnu)
9961   version_type=linux
9962   need_lib_prefix=no
9963   need_version=no
9964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9965   soname_spec='${libname}${release}${shared_ext}$major'
9966   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9967   shlibpath_var=LD_LIBRARY_PATH
9968   shlibpath_overrides_runpath=no
9969   # This implies no fast_install, which is unacceptable.
9970   # Some rework will be needed to allow for fast_install
9971   # before this can be enabled.
9972   hardcode_into_libs=yes
9973
9974   # Append ld.so.conf contents to the search path
9975   if test -f /etc/ld.so.conf; then
9976     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' ' '`
9977     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9978   fi
9979
9980   # We used to test for /lib/ld.so.1 and disable shared libraries on
9981   # powerpc, because MkLinux only supported shared libraries with the
9982   # GNU dynamic linker.  Since this was broken with cross compilers,
9983   # most powerpc-linux boxes support dynamic linking these days and
9984   # people can always --disable-shared, the test was removed, and we
9985   # assume the GNU/Linux dynamic linker is in use.
9986   dynamic_linker='GNU/Linux ld.so'
9987   ;;
9988
9989 netbsd*)
9990   version_type=sunos
9991   need_lib_prefix=no
9992   need_version=no
9993   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9994     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9995     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9996     dynamic_linker='NetBSD (a.out) ld.so'
9997   else
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     dynamic_linker='NetBSD ld.elf_so'
10001   fi
10002   shlibpath_var=LD_LIBRARY_PATH
10003   shlibpath_overrides_runpath=yes
10004   hardcode_into_libs=yes
10005   ;;
10006
10007 newsos6)
10008   version_type=linux
10009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010   shlibpath_var=LD_LIBRARY_PATH
10011   shlibpath_overrides_runpath=yes
10012   ;;
10013
10014 nto-qnx*)
10015   version_type=linux
10016   need_lib_prefix=no
10017   need_version=no
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10019   soname_spec='${libname}${release}${shared_ext}$major'
10020   shlibpath_var=LD_LIBRARY_PATH
10021   shlibpath_overrides_runpath=yes
10022   ;;
10023
10024 openbsd*)
10025   version_type=sunos
10026   sys_lib_dlsearch_path_spec="/usr/lib"
10027   need_lib_prefix=no
10028   need_version=no
10029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10030   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10031   shlibpath_var=LD_LIBRARY_PATH
10032   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10033     case $host_os in
10034       openbsd2.[89] | openbsd2.[89].*)
10035         shlibpath_overrides_runpath=no
10036         ;;
10037       *)
10038         shlibpath_overrides_runpath=yes
10039         ;;
10040       esac
10041   else
10042     shlibpath_overrides_runpath=yes
10043   fi
10044   ;;
10045
10046 os2*)
10047   libname_spec='$name'
10048   shrext_cmds=".dll"
10049   need_lib_prefix=no
10050   library_names_spec='$libname${shared_ext} $libname.a'
10051   dynamic_linker='OS/2 ld.exe'
10052   shlibpath_var=LIBPATH
10053   ;;
10054
10055 osf3* | osf4* | osf5*)
10056   version_type=osf
10057   need_lib_prefix=no
10058   need_version=no
10059   soname_spec='${libname}${release}${shared_ext}$major'
10060   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061   shlibpath_var=LD_LIBRARY_PATH
10062   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10063   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10064   ;;
10065
10066 rdos*)
10067   dynamic_linker=no
10068   ;;
10069
10070 solaris*)
10071   version_type=linux
10072   need_lib_prefix=no
10073   need_version=no
10074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10075   soname_spec='${libname}${release}${shared_ext}$major'
10076   shlibpath_var=LD_LIBRARY_PATH
10077   shlibpath_overrides_runpath=yes
10078   hardcode_into_libs=yes
10079   # ldd complains unless libraries are executable
10080   postinstall_cmds='chmod +x $lib'
10081   ;;
10082
10083 sunos4*)
10084   version_type=sunos
10085   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10086   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10087   shlibpath_var=LD_LIBRARY_PATH
10088   shlibpath_overrides_runpath=yes
10089   if test "$with_gnu_ld" = yes; then
10090     need_lib_prefix=no
10091   fi
10092   need_version=no
10093   ;;
10094
10095 sysv4 | sysv4.3*)
10096   version_type=linux
10097   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10098   soname_spec='${libname}${release}${shared_ext}$major'
10099   shlibpath_var=LD_LIBRARY_PATH
10100   case $host_vendor in
10101     sni)
10102       shlibpath_overrides_runpath=no
10103       need_lib_prefix=no
10104       export_dynamic_flag_spec='${wl}-Blargedynsym'
10105       runpath_var=LD_RUN_PATH
10106       ;;
10107     siemens)
10108       need_lib_prefix=no
10109       ;;
10110     motorola)
10111       need_lib_prefix=no
10112       need_version=no
10113       shlibpath_overrides_runpath=no
10114       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10115       ;;
10116   esac
10117   ;;
10118
10119 sysv4*MP*)
10120   if test -d /usr/nec ;then
10121     version_type=linux
10122     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10123     soname_spec='$libname${shared_ext}.$major'
10124     shlibpath_var=LD_LIBRARY_PATH
10125   fi
10126   ;;
10127
10128 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10129   version_type=freebsd-elf
10130   need_lib_prefix=no
10131   need_version=no
10132   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10133   soname_spec='${libname}${release}${shared_ext}$major'
10134   shlibpath_var=LD_LIBRARY_PATH
10135   hardcode_into_libs=yes
10136   if test "$with_gnu_ld" = yes; then
10137     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10138     shlibpath_overrides_runpath=no
10139   else
10140     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10141     shlibpath_overrides_runpath=yes
10142     case $host_os in
10143       sco3.2v5*)
10144         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10145         ;;
10146     esac
10147   fi
10148   sys_lib_dlsearch_path_spec='/usr/lib'
10149   ;;
10150
10151 uts4*)
10152   version_type=linux
10153   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10154   soname_spec='${libname}${release}${shared_ext}$major'
10155   shlibpath_var=LD_LIBRARY_PATH
10156   ;;
10157
10158 *)
10159   dynamic_linker=no
10160   ;;
10161 esac
10162 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10163 echo "${ECHO_T}$dynamic_linker" >&6; }
10164 test "$dynamic_linker" = no && can_build_shared=no
10165
10166 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10167   echo $ECHO_N "(cached) $ECHO_C" >&6
10168 else
10169   lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
10170 fi
10171
10172 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10173 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10174   echo $ECHO_N "(cached) $ECHO_C" >&6
10175 else
10176   lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
10177 fi
10178
10179 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10180
10181 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10182 if test "$GCC" = yes; then
10183   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10184 fi
10185
10186 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10187 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10188 hardcode_action=
10189 if test -n "$hardcode_libdir_flag_spec" || \
10190    test -n "$runpath_var" || \
10191    test "X$hardcode_automatic" = "Xyes" ; then
10192
10193   # We can hardcode non-existent directories.
10194   if test "$hardcode_direct" != no &&
10195      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10196      # have to relink, otherwise we might link with an installed library
10197      # when we should be linking with a yet-to-be-installed one
10198      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10199      test "$hardcode_minus_L" != no; then
10200     # Linking always hardcodes the temporary library directory.
10201     hardcode_action=relink
10202   else
10203     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10204     hardcode_action=immediate
10205   fi
10206 else
10207   # We cannot hardcode anything, or else we can only hardcode existing
10208   # directories.
10209   hardcode_action=unsupported
10210 fi
10211 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
10212 echo "${ECHO_T}$hardcode_action" >&6; }
10213
10214 if test "$hardcode_action" = relink; then
10215   # Fast installation is not supported
10216   enable_fast_install=no
10217 elif test "$shlibpath_overrides_runpath" = yes ||
10218      test "$enable_shared" = no; then
10219   # Fast installation is not necessary
10220   enable_fast_install=needless
10221 fi
10222
10223 striplib=
10224 old_striplib=
10225 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10226 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
10227 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10228   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10229   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10230   { echo "$as_me:$LINENO: result: yes" >&5
10231 echo "${ECHO_T}yes" >&6; }
10232 else
10233 # FIXME - insert some real tests, host_os isn't really good enough
10234   case $host_os in
10235    darwin*)
10236        if test -n "$STRIP" ; then
10237          striplib="$STRIP -x"
10238          old_striplib="$STRIP -S"
10239          { echo "$as_me:$LINENO: result: yes" >&5
10240 echo "${ECHO_T}yes" >&6; }
10241        else
10242   { echo "$as_me:$LINENO: result: no" >&5
10243 echo "${ECHO_T}no" >&6; }
10244 fi
10245        ;;
10246    *)
10247   { echo "$as_me:$LINENO: result: no" >&5
10248 echo "${ECHO_T}no" >&6; }
10249     ;;
10250   esac
10251 fi
10252
10253 if test "x$enable_dlopen" != xyes; then
10254   enable_dlopen=unknown
10255   enable_dlopen_self=unknown
10256   enable_dlopen_self_static=unknown
10257 else
10258   lt_cv_dlopen=no
10259   lt_cv_dlopen_libs=
10260
10261   case $host_os in
10262   beos*)
10263     lt_cv_dlopen="load_add_on"
10264     lt_cv_dlopen_libs=
10265     lt_cv_dlopen_self=yes
10266     ;;
10267
10268   mingw* | pw32*)
10269     lt_cv_dlopen="LoadLibrary"
10270     lt_cv_dlopen_libs=
10271    ;;
10272
10273   cygwin*)
10274     lt_cv_dlopen="dlopen"
10275     lt_cv_dlopen_libs=
10276    ;;
10277
10278   darwin*)
10279   # if libdl is installed we need to link against it
10280     { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10281 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10282 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10283   echo $ECHO_N "(cached) $ECHO_C" >&6
10284 else
10285   ac_check_lib_save_LIBS=$LIBS
10286 LIBS="-ldl  $LIBS"
10287 cat >conftest.$ac_ext <<_ACEOF
10288 /* confdefs.h.  */
10289 _ACEOF
10290 cat confdefs.h >>conftest.$ac_ext
10291 cat >>conftest.$ac_ext <<_ACEOF
10292 /* end confdefs.h.  */
10293
10294 /* Override any GCC internal prototype to avoid an error.
10295    Use char because int might match the return type of a GCC
10296    builtin and then its argument prototype would still apply.  */
10297 #ifdef __cplusplus
10298 extern "C"
10299 #endif
10300 char dlopen ();
10301 int
10302 main ()
10303 {
10304 return dlopen ();
10305   ;
10306   return 0;
10307 }
10308 _ACEOF
10309 rm -f conftest.$ac_objext conftest$ac_exeext
10310 if { (ac_try="$ac_link"
10311 case "(($ac_try" in
10312   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10313   *) ac_try_echo=$ac_try;;
10314 esac
10315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10316   (eval "$ac_link") 2>conftest.er1
10317   ac_status=$?
10318   grep -v '^ *+' conftest.er1 >conftest.err
10319   rm -f conftest.er1
10320   cat conftest.err >&5
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); } && {
10323          test -z "$ac_c_werror_flag" ||
10324          test ! -s conftest.err
10325        } && test -s conftest$ac_exeext &&
10326        $as_test_x conftest$ac_exeext; then
10327   ac_cv_lib_dl_dlopen=yes
10328 else
10329   echo "$as_me: failed program was:" >&5
10330 sed 's/^/| /' conftest.$ac_ext >&5
10331
10332         ac_cv_lib_dl_dlopen=no
10333 fi
10334
10335 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10336       conftest$ac_exeext conftest.$ac_ext
10337 LIBS=$ac_check_lib_save_LIBS
10338 fi
10339 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10340 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10341 if test $ac_cv_lib_dl_dlopen = yes; then
10342   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10343 else
10344
10345     lt_cv_dlopen="dyld"
10346     lt_cv_dlopen_libs=
10347     lt_cv_dlopen_self=yes
10348
10349 fi
10350
10351    ;;
10352
10353   *)
10354     { echo "$as_me:$LINENO: checking for shl_load" >&5
10355 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10356 if test "${ac_cv_func_shl_load+set}" = set; then
10357   echo $ECHO_N "(cached) $ECHO_C" >&6
10358 else
10359   cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h.  */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h.  */
10365 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10366    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10367 #define shl_load innocuous_shl_load
10368
10369 /* System header to define __stub macros and hopefully few prototypes,
10370     which can conflict with char shl_load (); below.
10371     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10372     <limits.h> exists even on freestanding compilers.  */
10373
10374 #ifdef __STDC__
10375 # include <limits.h>
10376 #else
10377 # include <assert.h>
10378 #endif
10379
10380 #undef shl_load
10381
10382 /* Override any GCC internal prototype to avoid an error.
10383    Use char because int might match the return type of a GCC
10384    builtin and then its argument prototype would still apply.  */
10385 #ifdef __cplusplus
10386 extern "C"
10387 #endif
10388 char shl_load ();
10389 /* The GNU C library defines this for functions which it implements
10390     to always fail with ENOSYS.  Some functions are actually named
10391     something starting with __ and the normal name is an alias.  */
10392 #if defined __stub_shl_load || defined __stub___shl_load
10393 choke me
10394 #endif
10395
10396 int
10397 main ()
10398 {
10399 return shl_load ();
10400   ;
10401   return 0;
10402 }
10403 _ACEOF
10404 rm -f conftest.$ac_objext conftest$ac_exeext
10405 if { (ac_try="$ac_link"
10406 case "(($ac_try" in
10407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10408   *) ac_try_echo=$ac_try;;
10409 esac
10410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10411   (eval "$ac_link") 2>conftest.er1
10412   ac_status=$?
10413   grep -v '^ *+' conftest.er1 >conftest.err
10414   rm -f conftest.er1
10415   cat conftest.err >&5
10416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417   (exit $ac_status); } && {
10418          test -z "$ac_c_werror_flag" ||
10419          test ! -s conftest.err
10420        } && test -s conftest$ac_exeext &&
10421        $as_test_x conftest$ac_exeext; then
10422   ac_cv_func_shl_load=yes
10423 else
10424   echo "$as_me: failed program was:" >&5
10425 sed 's/^/| /' conftest.$ac_ext >&5
10426
10427         ac_cv_func_shl_load=no
10428 fi
10429
10430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10431       conftest$ac_exeext conftest.$ac_ext
10432 fi
10433 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10434 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10435 if test $ac_cv_func_shl_load = yes; then
10436   lt_cv_dlopen="shl_load"
10437 else
10438   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10439 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10440 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10441   echo $ECHO_N "(cached) $ECHO_C" >&6
10442 else
10443   ac_check_lib_save_LIBS=$LIBS
10444 LIBS="-ldld  $LIBS"
10445 cat >conftest.$ac_ext <<_ACEOF
10446 /* confdefs.h.  */
10447 _ACEOF
10448 cat confdefs.h >>conftest.$ac_ext
10449 cat >>conftest.$ac_ext <<_ACEOF
10450 /* end confdefs.h.  */
10451
10452 /* Override any GCC internal prototype to avoid an error.
10453    Use char because int might match the return type of a GCC
10454    builtin and then its argument prototype would still apply.  */
10455 #ifdef __cplusplus
10456 extern "C"
10457 #endif
10458 char shl_load ();
10459 int
10460 main ()
10461 {
10462 return shl_load ();
10463   ;
10464   return 0;
10465 }
10466 _ACEOF
10467 rm -f conftest.$ac_objext conftest$ac_exeext
10468 if { (ac_try="$ac_link"
10469 case "(($ac_try" in
10470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10471   *) ac_try_echo=$ac_try;;
10472 esac
10473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10474   (eval "$ac_link") 2>conftest.er1
10475   ac_status=$?
10476   grep -v '^ *+' conftest.er1 >conftest.err
10477   rm -f conftest.er1
10478   cat conftest.err >&5
10479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10480   (exit $ac_status); } && {
10481          test -z "$ac_c_werror_flag" ||
10482          test ! -s conftest.err
10483        } && test -s conftest$ac_exeext &&
10484        $as_test_x conftest$ac_exeext; then
10485   ac_cv_lib_dld_shl_load=yes
10486 else
10487   echo "$as_me: failed program was:" >&5
10488 sed 's/^/| /' conftest.$ac_ext >&5
10489
10490         ac_cv_lib_dld_shl_load=no
10491 fi
10492
10493 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10494       conftest$ac_exeext conftest.$ac_ext
10495 LIBS=$ac_check_lib_save_LIBS
10496 fi
10497 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10498 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10499 if test $ac_cv_lib_dld_shl_load = yes; then
10500   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10501 else
10502   { echo "$as_me:$LINENO: checking for dlopen" >&5
10503 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10504 if test "${ac_cv_func_dlopen+set}" = set; then
10505   echo $ECHO_N "(cached) $ECHO_C" >&6
10506 else
10507   cat >conftest.$ac_ext <<_ACEOF
10508 /* confdefs.h.  */
10509 _ACEOF
10510 cat confdefs.h >>conftest.$ac_ext
10511 cat >>conftest.$ac_ext <<_ACEOF
10512 /* end confdefs.h.  */
10513 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10515 #define dlopen innocuous_dlopen
10516
10517 /* System header to define __stub macros and hopefully few prototypes,
10518     which can conflict with char dlopen (); below.
10519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10520     <limits.h> exists even on freestanding compilers.  */
10521
10522 #ifdef __STDC__
10523 # include <limits.h>
10524 #else
10525 # include <assert.h>
10526 #endif
10527
10528 #undef dlopen
10529
10530 /* Override any GCC internal prototype to avoid an error.
10531    Use char because int might match the return type of a GCC
10532    builtin and then its argument prototype would still apply.  */
10533 #ifdef __cplusplus
10534 extern "C"
10535 #endif
10536 char dlopen ();
10537 /* The GNU C library defines this for functions which it implements
10538     to always fail with ENOSYS.  Some functions are actually named
10539     something starting with __ and the normal name is an alias.  */
10540 #if defined __stub_dlopen || defined __stub___dlopen
10541 choke me
10542 #endif
10543
10544 int
10545 main ()
10546 {
10547 return dlopen ();
10548   ;
10549   return 0;
10550 }
10551 _ACEOF
10552 rm -f conftest.$ac_objext conftest$ac_exeext
10553 if { (ac_try="$ac_link"
10554 case "(($ac_try" in
10555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10556   *) ac_try_echo=$ac_try;;
10557 esac
10558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10559   (eval "$ac_link") 2>conftest.er1
10560   ac_status=$?
10561   grep -v '^ *+' conftest.er1 >conftest.err
10562   rm -f conftest.er1
10563   cat conftest.err >&5
10564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565   (exit $ac_status); } && {
10566          test -z "$ac_c_werror_flag" ||
10567          test ! -s conftest.err
10568        } && test -s conftest$ac_exeext &&
10569        $as_test_x conftest$ac_exeext; then
10570   ac_cv_func_dlopen=yes
10571 else
10572   echo "$as_me: failed program was:" >&5
10573 sed 's/^/| /' conftest.$ac_ext >&5
10574
10575         ac_cv_func_dlopen=no
10576 fi
10577
10578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10579       conftest$ac_exeext conftest.$ac_ext
10580 fi
10581 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10582 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10583 if test $ac_cv_func_dlopen = yes; then
10584   lt_cv_dlopen="dlopen"
10585 else
10586   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10587 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10588 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10589   echo $ECHO_N "(cached) $ECHO_C" >&6
10590 else
10591   ac_check_lib_save_LIBS=$LIBS
10592 LIBS="-ldl  $LIBS"
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h.  */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h.  */
10599
10600 /* Override any GCC internal prototype to avoid an error.
10601    Use char because int might match the return type of a GCC
10602    builtin and then its argument prototype would still apply.  */
10603 #ifdef __cplusplus
10604 extern "C"
10605 #endif
10606 char dlopen ();
10607 int
10608 main ()
10609 {
10610 return dlopen ();
10611   ;
10612   return 0;
10613 }
10614 _ACEOF
10615 rm -f conftest.$ac_objext conftest$ac_exeext
10616 if { (ac_try="$ac_link"
10617 case "(($ac_try" in
10618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10619   *) ac_try_echo=$ac_try;;
10620 esac
10621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10622   (eval "$ac_link") 2>conftest.er1
10623   ac_status=$?
10624   grep -v '^ *+' conftest.er1 >conftest.err
10625   rm -f conftest.er1
10626   cat conftest.err >&5
10627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10628   (exit $ac_status); } && {
10629          test -z "$ac_c_werror_flag" ||
10630          test ! -s conftest.err
10631        } && test -s conftest$ac_exeext &&
10632        $as_test_x conftest$ac_exeext; then
10633   ac_cv_lib_dl_dlopen=yes
10634 else
10635   echo "$as_me: failed program was:" >&5
10636 sed 's/^/| /' conftest.$ac_ext >&5
10637
10638         ac_cv_lib_dl_dlopen=no
10639 fi
10640
10641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10642       conftest$ac_exeext conftest.$ac_ext
10643 LIBS=$ac_check_lib_save_LIBS
10644 fi
10645 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10646 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10647 if test $ac_cv_lib_dl_dlopen = yes; then
10648   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10649 else
10650   { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10651 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10652 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10653   echo $ECHO_N "(cached) $ECHO_C" >&6
10654 else
10655   ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-lsvld  $LIBS"
10657 cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663
10664 /* Override any GCC internal prototype to avoid an error.
10665    Use char because int might match the return type of a GCC
10666    builtin and then its argument prototype would still apply.  */
10667 #ifdef __cplusplus
10668 extern "C"
10669 #endif
10670 char dlopen ();
10671 int
10672 main ()
10673 {
10674 return dlopen ();
10675   ;
10676   return 0;
10677 }
10678 _ACEOF
10679 rm -f conftest.$ac_objext conftest$ac_exeext
10680 if { (ac_try="$ac_link"
10681 case "(($ac_try" in
10682   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10683   *) ac_try_echo=$ac_try;;
10684 esac
10685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10686   (eval "$ac_link") 2>conftest.er1
10687   ac_status=$?
10688   grep -v '^ *+' conftest.er1 >conftest.err
10689   rm -f conftest.er1
10690   cat conftest.err >&5
10691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10692   (exit $ac_status); } && {
10693          test -z "$ac_c_werror_flag" ||
10694          test ! -s conftest.err
10695        } && test -s conftest$ac_exeext &&
10696        $as_test_x conftest$ac_exeext; then
10697   ac_cv_lib_svld_dlopen=yes
10698 else
10699   echo "$as_me: failed program was:" >&5
10700 sed 's/^/| /' conftest.$ac_ext >&5
10701
10702         ac_cv_lib_svld_dlopen=no
10703 fi
10704
10705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10706       conftest$ac_exeext conftest.$ac_ext
10707 LIBS=$ac_check_lib_save_LIBS
10708 fi
10709 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10710 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10711 if test $ac_cv_lib_svld_dlopen = yes; then
10712   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10713 else
10714   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10715 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10716 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10717   echo $ECHO_N "(cached) $ECHO_C" >&6
10718 else
10719   ac_check_lib_save_LIBS=$LIBS
10720 LIBS="-ldld  $LIBS"
10721 cat >conftest.$ac_ext <<_ACEOF
10722 /* confdefs.h.  */
10723 _ACEOF
10724 cat confdefs.h >>conftest.$ac_ext
10725 cat >>conftest.$ac_ext <<_ACEOF
10726 /* end confdefs.h.  */
10727
10728 /* Override any GCC internal prototype to avoid an error.
10729    Use char because int might match the return type of a GCC
10730    builtin and then its argument prototype would still apply.  */
10731 #ifdef __cplusplus
10732 extern "C"
10733 #endif
10734 char dld_link ();
10735 int
10736 main ()
10737 {
10738 return dld_link ();
10739   ;
10740   return 0;
10741 }
10742 _ACEOF
10743 rm -f conftest.$ac_objext conftest$ac_exeext
10744 if { (ac_try="$ac_link"
10745 case "(($ac_try" in
10746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10747   *) ac_try_echo=$ac_try;;
10748 esac
10749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10750   (eval "$ac_link") 2>conftest.er1
10751   ac_status=$?
10752   grep -v '^ *+' conftest.er1 >conftest.err
10753   rm -f conftest.er1
10754   cat conftest.err >&5
10755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10756   (exit $ac_status); } && {
10757          test -z "$ac_c_werror_flag" ||
10758          test ! -s conftest.err
10759        } && test -s conftest$ac_exeext &&
10760        $as_test_x conftest$ac_exeext; then
10761   ac_cv_lib_dld_dld_link=yes
10762 else
10763   echo "$as_me: failed program was:" >&5
10764 sed 's/^/| /' conftest.$ac_ext >&5
10765
10766         ac_cv_lib_dld_dld_link=no
10767 fi
10768
10769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10770       conftest$ac_exeext conftest.$ac_ext
10771 LIBS=$ac_check_lib_save_LIBS
10772 fi
10773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10774 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10775 if test $ac_cv_lib_dld_dld_link = yes; then
10776   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10777 fi
10778
10779
10780 fi
10781
10782
10783 fi
10784
10785
10786 fi
10787
10788
10789 fi
10790
10791
10792 fi
10793
10794     ;;
10795   esac
10796
10797   if test "x$lt_cv_dlopen" != xno; then
10798     enable_dlopen=yes
10799   else
10800     enable_dlopen=no
10801   fi
10802
10803   case $lt_cv_dlopen in
10804   dlopen)
10805     save_CPPFLAGS="$CPPFLAGS"
10806     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10807
10808     save_LDFLAGS="$LDFLAGS"
10809     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10810
10811     save_LIBS="$LIBS"
10812     LIBS="$lt_cv_dlopen_libs $LIBS"
10813
10814     { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10815 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10816 if test "${lt_cv_dlopen_self+set}" = set; then
10817   echo $ECHO_N "(cached) $ECHO_C" >&6
10818 else
10819           if test "$cross_compiling" = yes; then :
10820   lt_cv_dlopen_self=cross
10821 else
10822   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10823   lt_status=$lt_dlunknown
10824   cat > conftest.$ac_ext <<EOF
10825 #line 10825 "configure"
10826 #include "confdefs.h"
10827
10828 #if HAVE_DLFCN_H
10829 #include <dlfcn.h>
10830 #endif
10831
10832 #include <stdio.h>
10833
10834 #ifdef RTLD_GLOBAL
10835 #  define LT_DLGLOBAL           RTLD_GLOBAL
10836 #else
10837 #  ifdef DL_GLOBAL
10838 #    define LT_DLGLOBAL         DL_GLOBAL
10839 #  else
10840 #    define LT_DLGLOBAL         0
10841 #  endif
10842 #endif
10843
10844 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10845    find out it does not work in some platform. */
10846 #ifndef LT_DLLAZY_OR_NOW
10847 #  ifdef RTLD_LAZY
10848 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10849 #  else
10850 #    ifdef DL_LAZY
10851 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10852 #    else
10853 #      ifdef RTLD_NOW
10854 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10855 #      else
10856 #        ifdef DL_NOW
10857 #          define LT_DLLAZY_OR_NOW      DL_NOW
10858 #        else
10859 #          define LT_DLLAZY_OR_NOW      0
10860 #        endif
10861 #      endif
10862 #    endif
10863 #  endif
10864 #endif
10865
10866 #ifdef __cplusplus
10867 extern "C" void exit (int);
10868 #endif
10869
10870 void fnord() { int i=42;}
10871 int main ()
10872 {
10873   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10874   int status = $lt_dlunknown;
10875
10876   if (self)
10877     {
10878       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10879       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10880       /* dlclose (self); */
10881     }
10882   else
10883     puts (dlerror ());
10884
10885     exit (status);
10886 }
10887 EOF
10888   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10889   (eval $ac_link) 2>&5
10890   ac_status=$?
10891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10893     (./conftest; exit; ) >&5 2>/dev/null
10894     lt_status=$?
10895     case x$lt_status in
10896       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10897       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10898       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10899     esac
10900   else :
10901     # compilation failed
10902     lt_cv_dlopen_self=no
10903   fi
10904 fi
10905 rm -fr conftest*
10906
10907
10908 fi
10909 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10910 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10911
10912     if test "x$lt_cv_dlopen_self" = xyes; then
10913       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10914       { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10915 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10916 if test "${lt_cv_dlopen_self_static+set}" = set; then
10917   echo $ECHO_N "(cached) $ECHO_C" >&6
10918 else
10919           if test "$cross_compiling" = yes; then :
10920   lt_cv_dlopen_self_static=cross
10921 else
10922   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10923   lt_status=$lt_dlunknown
10924   cat > conftest.$ac_ext <<EOF
10925 #line 10925 "configure"
10926 #include "confdefs.h"
10927
10928 #if HAVE_DLFCN_H
10929 #include <dlfcn.h>
10930 #endif
10931
10932 #include <stdio.h>
10933
10934 #ifdef RTLD_GLOBAL
10935 #  define LT_DLGLOBAL           RTLD_GLOBAL
10936 #else
10937 #  ifdef DL_GLOBAL
10938 #    define LT_DLGLOBAL         DL_GLOBAL
10939 #  else
10940 #    define LT_DLGLOBAL         0
10941 #  endif
10942 #endif
10943
10944 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10945    find out it does not work in some platform. */
10946 #ifndef LT_DLLAZY_OR_NOW
10947 #  ifdef RTLD_LAZY
10948 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10949 #  else
10950 #    ifdef DL_LAZY
10951 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10952 #    else
10953 #      ifdef RTLD_NOW
10954 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10955 #      else
10956 #        ifdef DL_NOW
10957 #          define LT_DLLAZY_OR_NOW      DL_NOW
10958 #        else
10959 #          define LT_DLLAZY_OR_NOW      0
10960 #        endif
10961 #      endif
10962 #    endif
10963 #  endif
10964 #endif
10965
10966 #ifdef __cplusplus
10967 extern "C" void exit (int);
10968 #endif
10969
10970 void fnord() { int i=42;}
10971 int main ()
10972 {
10973   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10974   int status = $lt_dlunknown;
10975
10976   if (self)
10977     {
10978       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10979       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10980       /* dlclose (self); */
10981     }
10982   else
10983     puts (dlerror ());
10984
10985     exit (status);
10986 }
10987 EOF
10988   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10989   (eval $ac_link) 2>&5
10990   ac_status=$?
10991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10993     (./conftest; exit; ) >&5 2>/dev/null
10994     lt_status=$?
10995     case x$lt_status in
10996       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10997       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10998       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10999     esac
11000   else :
11001     # compilation failed
11002     lt_cv_dlopen_self_static=no
11003   fi
11004 fi
11005 rm -fr conftest*
11006
11007
11008 fi
11009 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11010 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11011     fi
11012
11013     CPPFLAGS="$save_CPPFLAGS"
11014     LDFLAGS="$save_LDFLAGS"
11015     LIBS="$save_LIBS"
11016     ;;
11017   esac
11018
11019   case $lt_cv_dlopen_self in
11020   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11021   *) enable_dlopen_self=unknown ;;
11022   esac
11023
11024   case $lt_cv_dlopen_self_static in
11025   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11026   *) enable_dlopen_self_static=unknown ;;
11027   esac
11028 fi
11029
11030
11031 # Report which library types will actually be built
11032 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11033 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11034 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
11035 echo "${ECHO_T}$can_build_shared" >&6; }
11036
11037 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11038 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11039 test "$can_build_shared" = "no" && enable_shared=no
11040
11041 # On AIX, shared libraries and static libraries use the same namespace, and
11042 # are all built from PIC.
11043 case $host_os in
11044 aix3*)
11045   test "$enable_shared" = yes && enable_static=no
11046   if test -n "$RANLIB"; then
11047     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11048     postinstall_cmds='$RANLIB $lib'
11049   fi
11050   ;;
11051
11052 aix[4-9]*)
11053   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11054     test "$enable_shared" = yes && enable_static=no
11055   fi
11056     ;;
11057 esac
11058 { echo "$as_me:$LINENO: result: $enable_shared" >&5
11059 echo "${ECHO_T}$enable_shared" >&6; }
11060
11061 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11062 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11063 # Make sure either enable_shared or enable_static is yes.
11064 test "$enable_shared" = yes || enable_static=yes
11065 { echo "$as_me:$LINENO: result: $enable_static" >&5
11066 echo "${ECHO_T}$enable_static" >&6; }
11067
11068 # The else clause should only fire when bootstrapping the
11069 # libtool distribution, otherwise you forgot to ship ltmain.sh
11070 # with your package, and you will get complaints that there are
11071 # no rules to generate ltmain.sh.
11072 if test -f "$ltmain"; then
11073   # See if we are running on zsh, and set the options which allow our commands through
11074   # without removal of \ escapes.
11075   if test -n "${ZSH_VERSION+set}" ; then
11076     setopt NO_GLOB_SUBST
11077   fi
11078   # Now quote all the things that may contain metacharacters while being
11079   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11080   # variables and quote the copies for generation of the libtool script.
11081   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11082     SED SHELL STRIP \
11083     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11084     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11085     deplibs_check_method reload_flag reload_cmds need_locks \
11086     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11087     lt_cv_sys_global_symbol_to_c_name_address \
11088     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11089     old_postinstall_cmds old_postuninstall_cmds \
11090     compiler \
11091     CC \
11092     LD \
11093     lt_prog_compiler_wl \
11094     lt_prog_compiler_pic \
11095     lt_prog_compiler_static \
11096     lt_prog_compiler_no_builtin_flag \
11097     export_dynamic_flag_spec \
11098     thread_safe_flag_spec \
11099     whole_archive_flag_spec \
11100     enable_shared_with_static_runtimes \
11101     old_archive_cmds \
11102     old_archive_from_new_cmds \
11103     predep_objects \
11104     postdep_objects \
11105     predeps \
11106     postdeps \
11107     compiler_lib_search_path \
11108     compiler_lib_search_dirs \
11109     archive_cmds \
11110     archive_expsym_cmds \
11111     postinstall_cmds \
11112     postuninstall_cmds \
11113     old_archive_from_expsyms_cmds \
11114     allow_undefined_flag \
11115     no_undefined_flag \
11116     export_symbols_cmds \
11117     hardcode_libdir_flag_spec \
11118     hardcode_libdir_flag_spec_ld \
11119     hardcode_libdir_separator \
11120     hardcode_automatic \
11121     module_cmds \
11122     module_expsym_cmds \
11123     lt_cv_prog_compiler_c_o \
11124     fix_srcfile_path \
11125     exclude_expsyms \
11126     include_expsyms; do
11127
11128     case $var in
11129     old_archive_cmds | \
11130     old_archive_from_new_cmds | \
11131     archive_cmds | \
11132     archive_expsym_cmds | \
11133     module_cmds | \
11134     module_expsym_cmds | \
11135     old_archive_from_expsyms_cmds | \
11136     export_symbols_cmds | \
11137     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11138     postinstall_cmds | postuninstall_cmds | \
11139     old_postinstall_cmds | old_postuninstall_cmds | \
11140     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11141       # Double-quote double-evaled strings.
11142       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11143       ;;
11144     *)
11145       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11146       ;;
11147     esac
11148   done
11149
11150   case $lt_echo in
11151   *'\$0 --fallback-echo"')
11152     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11153     ;;
11154   esac
11155
11156 cfgfile="${ofile}T"
11157   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11158   $rm -f "$cfgfile"
11159   { echo "$as_me:$LINENO: creating $ofile" >&5
11160 echo "$as_me: creating $ofile" >&6;}
11161
11162   cat <<__EOF__ >> "$cfgfile"
11163 #! $SHELL
11164
11165 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11166 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11167 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11168 #
11169 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
11170 # Free Software Foundation, Inc.
11171 #
11172 # This file is part of GNU Libtool:
11173 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11174 #
11175 # This program is free software; you can redistribute it and/or modify
11176 # it under the terms of the GNU General Public License as published by
11177 # the Free Software Foundation; either version 2 of the License, or
11178 # (at your option) any later version.
11179 #
11180 # This program is distributed in the hope that it will be useful, but
11181 # WITHOUT ANY WARRANTY; without even the implied warranty of
11182 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11183 # General Public License for more details.
11184 #
11185 # You should have received a copy of the GNU General Public License
11186 # along with this program; if not, write to the Free Software
11187 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11188 #
11189 # As a special exception to the GNU General Public License, if you
11190 # distribute this file as part of a program that contains a
11191 # configuration script generated by Autoconf, you may include it under
11192 # the same distribution terms that you use for the rest of that program.
11193
11194 # A sed program that does not truncate output.
11195 SED=$lt_SED
11196
11197 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11198 Xsed="$SED -e 1s/^X//"
11199
11200 # The HP-UX ksh and POSIX shell print the target directory to stdout
11201 # if CDPATH is set.
11202 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11203
11204 # The names of the tagged configurations supported by this script.
11205 available_tags=
11206
11207 # ### BEGIN LIBTOOL CONFIG
11208
11209 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11210
11211 # Shell to use when invoking shell scripts.
11212 SHELL=$lt_SHELL
11213
11214 # Whether or not to build shared libraries.
11215 build_libtool_libs=$enable_shared
11216
11217 # Whether or not to build static libraries.
11218 build_old_libs=$enable_static
11219
11220 # Whether or not to add -lc for building shared libraries.
11221 build_libtool_need_lc=$archive_cmds_need_lc
11222
11223 # Whether or not to disallow shared libs when runtime libs are static
11224 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11225
11226 # Whether or not to optimize for fast installation.
11227 fast_install=$enable_fast_install
11228
11229 # The host system.
11230 host_alias=$host_alias
11231 host=$host
11232 host_os=$host_os
11233
11234 # The build system.
11235 build_alias=$build_alias
11236 build=$build
11237 build_os=$build_os
11238
11239 # An echo program that does not interpret backslashes.
11240 echo=$lt_echo
11241
11242 # The archiver.
11243 AR=$lt_AR
11244 AR_FLAGS=$lt_AR_FLAGS
11245
11246 # A C compiler.
11247 LTCC=$lt_LTCC
11248
11249 # LTCC compiler flags.
11250 LTCFLAGS=$lt_LTCFLAGS
11251
11252 # A language-specific compiler.
11253 CC=$lt_compiler
11254
11255 # Is the compiler the GNU C compiler?
11256 with_gcc=$GCC
11257
11258 # An ERE matcher.
11259 EGREP=$lt_EGREP
11260
11261 # The linker used to build libraries.
11262 LD=$lt_LD
11263
11264 # Whether we need hard or soft links.
11265 LN_S=$lt_LN_S
11266
11267 # A BSD-compatible nm program.
11268 NM=$lt_NM
11269
11270 # A symbol stripping program
11271 STRIP=$lt_STRIP
11272
11273 # Used to examine libraries when file_magic_cmd begins "file"
11274 MAGIC_CMD=$MAGIC_CMD
11275
11276 # Used on cygwin: DLL creation program.
11277 DLLTOOL="$DLLTOOL"
11278
11279 # Used on cygwin: object dumper.
11280 OBJDUMP="$OBJDUMP"
11281
11282 # Used on cygwin: assembler.
11283 AS="$AS"
11284
11285 # The name of the directory that contains temporary libtool files.
11286 objdir=$objdir
11287
11288 # How to create reloadable object files.
11289 reload_flag=$lt_reload_flag
11290 reload_cmds=$lt_reload_cmds
11291
11292 # How to pass a linker flag through the compiler.
11293 wl=$lt_lt_prog_compiler_wl
11294
11295 # Object file suffix (normally "o").
11296 objext="$ac_objext"
11297
11298 # Old archive suffix (normally "a").
11299 libext="$libext"
11300
11301 # Shared library suffix (normally ".so").
11302 shrext_cmds='$shrext_cmds'
11303
11304 # Executable file suffix (normally "").
11305 exeext="$exeext"
11306
11307 # Additional compiler flags for building library objects.
11308 pic_flag=$lt_lt_prog_compiler_pic
11309 pic_mode=$pic_mode
11310
11311 # What is the maximum length of a command?
11312 max_cmd_len=$lt_cv_sys_max_cmd_len
11313
11314 # Does compiler simultaneously support -c and -o options?
11315 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11316
11317 # Must we lock files when doing compilation?
11318 need_locks=$lt_need_locks
11319
11320 # Do we need the lib prefix for modules?
11321 need_lib_prefix=$need_lib_prefix
11322
11323 # Do we need a version for libraries?
11324 need_version=$need_version
11325
11326 # Whether dlopen is supported.
11327 dlopen_support=$enable_dlopen
11328
11329 # Whether dlopen of programs is supported.
11330 dlopen_self=$enable_dlopen_self
11331
11332 # Whether dlopen of statically linked programs is supported.
11333 dlopen_self_static=$enable_dlopen_self_static
11334
11335 # Compiler flag to prevent dynamic linking.
11336 link_static_flag=$lt_lt_prog_compiler_static
11337
11338 # Compiler flag to turn off builtin functions.
11339 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11340
11341 # Compiler flag to allow reflexive dlopens.
11342 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11343
11344 # Compiler flag to generate shared objects directly from archives.
11345 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11346
11347 # Compiler flag to generate thread-safe objects.
11348 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11349
11350 # Library versioning type.
11351 version_type=$version_type
11352
11353 # Format of library name prefix.
11354 libname_spec=$lt_libname_spec
11355
11356 # List of archive names.  First name is the real one, the rest are links.
11357 # The last name is the one that the linker finds with -lNAME.
11358 library_names_spec=$lt_library_names_spec
11359
11360 # The coded name of the library, if different from the real name.
11361 soname_spec=$lt_soname_spec
11362
11363 # Commands used to build and install an old-style archive.
11364 RANLIB=$lt_RANLIB
11365 old_archive_cmds=$lt_old_archive_cmds
11366 old_postinstall_cmds=$lt_old_postinstall_cmds
11367 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11368
11369 # Create an old-style archive from a shared archive.
11370 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11371
11372 # Create a temporary old-style archive to link instead of a shared archive.
11373 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11374
11375 # Commands used to build and install a shared archive.
11376 archive_cmds=$lt_archive_cmds
11377 archive_expsym_cmds=$lt_archive_expsym_cmds
11378 postinstall_cmds=$lt_postinstall_cmds
11379 postuninstall_cmds=$lt_postuninstall_cmds
11380
11381 # Commands used to build a loadable module (assumed same as above if empty)
11382 module_cmds=$lt_module_cmds
11383 module_expsym_cmds=$lt_module_expsym_cmds
11384
11385 # Commands to strip libraries.
11386 old_striplib=$lt_old_striplib
11387 striplib=$lt_striplib
11388
11389 # Dependencies to place before the objects being linked to create a
11390 # shared library.
11391 predep_objects=$lt_predep_objects
11392
11393 # Dependencies to place after the objects being linked to create a
11394 # shared library.
11395 postdep_objects=$lt_postdep_objects
11396
11397 # Dependencies to place before the objects being linked to create a
11398 # shared library.
11399 predeps=$lt_predeps
11400
11401 # Dependencies to place after the objects being linked to create a
11402 # shared library.
11403 postdeps=$lt_postdeps
11404
11405 # The directories searched by this compiler when creating a shared
11406 # library
11407 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
11408
11409 # The library search path used internally by the compiler when linking
11410 # a shared library.
11411 compiler_lib_search_path=$lt_compiler_lib_search_path
11412
11413 # Method to check whether dependent libraries are shared objects.
11414 deplibs_check_method=$lt_deplibs_check_method
11415
11416 # Command to use when deplibs_check_method == file_magic.
11417 file_magic_cmd=$lt_file_magic_cmd
11418
11419 # Flag that allows shared libraries with undefined symbols to be built.
11420 allow_undefined_flag=$lt_allow_undefined_flag
11421
11422 # Flag that forces no undefined symbols.
11423 no_undefined_flag=$lt_no_undefined_flag
11424
11425 # Commands used to finish a libtool library installation in a directory.
11426 finish_cmds=$lt_finish_cmds
11427
11428 # Same as above, but a single script fragment to be evaled but not shown.
11429 finish_eval=$lt_finish_eval
11430
11431 # Take the output of nm and produce a listing of raw symbols and C names.
11432 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11433
11434 # Transform the output of nm in a proper C declaration
11435 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11436
11437 # Transform the output of nm in a C name address pair
11438 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11439
11440 # This is the shared library runtime path variable.
11441 runpath_var=$runpath_var
11442
11443 # This is the shared library path variable.
11444 shlibpath_var=$shlibpath_var
11445
11446 # Is shlibpath searched before the hard-coded library search path?
11447 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11448
11449 # How to hardcode a shared library path into an executable.
11450 hardcode_action=$hardcode_action
11451
11452 # Whether we should hardcode library paths into libraries.
11453 hardcode_into_libs=$hardcode_into_libs
11454
11455 # Flag to hardcode \$libdir into a binary during linking.
11456 # This must work even if \$libdir does not exist.
11457 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11458
11459 # If ld is used when linking, flag to hardcode \$libdir into
11460 # a binary during linking. This must work even if \$libdir does
11461 # not exist.
11462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11463
11464 # Whether we need a single -rpath flag with a separated argument.
11465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11466
11467 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11468 # resulting binary.
11469 hardcode_direct=$hardcode_direct
11470
11471 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11472 # resulting binary.
11473 hardcode_minus_L=$hardcode_minus_L
11474
11475 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11476 # the resulting binary.
11477 hardcode_shlibpath_var=$hardcode_shlibpath_var
11478
11479 # Set to yes if building a shared library automatically hardcodes DIR into the library
11480 # and all subsequent libraries and executables linked against it.
11481 hardcode_automatic=$hardcode_automatic
11482
11483 # Variables whose values should be saved in libtool wrapper scripts and
11484 # restored at relink time.
11485 variables_saved_for_relink="$variables_saved_for_relink"
11486
11487 # Whether libtool must link a program against all its dependency libraries.
11488 link_all_deplibs=$link_all_deplibs
11489
11490 # Compile-time system search path for libraries
11491 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11492
11493 # Run-time system search path for libraries
11494 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11495
11496 # Fix the shell variable \$srcfile for the compiler.
11497 fix_srcfile_path=$lt_fix_srcfile_path
11498
11499 # Set to yes if exported symbols are required.
11500 always_export_symbols=$always_export_symbols
11501
11502 # The commands to list exported symbols.
11503 export_symbols_cmds=$lt_export_symbols_cmds
11504
11505 # The commands to extract the exported symbol list from a shared archive.
11506 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11507
11508 # Symbols that should not be listed in the preloaded symbols.
11509 exclude_expsyms=$lt_exclude_expsyms
11510
11511 # Symbols that must always be exported.
11512 include_expsyms=$lt_include_expsyms
11513
11514 # ### END LIBTOOL CONFIG
11515
11516 __EOF__
11517
11518
11519   case $host_os in
11520   aix3*)
11521     cat <<\EOF >> "$cfgfile"
11522
11523 # AIX sometimes has problems with the GCC collect2 program.  For some
11524 # reason, if we set the COLLECT_NAMES environment variable, the problems
11525 # vanish in a puff of smoke.
11526 if test "X${COLLECT_NAMES+set}" != Xset; then
11527   COLLECT_NAMES=
11528   export COLLECT_NAMES
11529 fi
11530 EOF
11531     ;;
11532   esac
11533
11534   # We use sed instead of cat because bash on DJGPP gets confused if
11535   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11536   # text mode, it properly converts lines to CR/LF.  This bash problem
11537   # is reportedly fixed, but why not run on old versions too?
11538   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11539
11540   mv -f "$cfgfile" "$ofile" || \
11541     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11542   chmod +x "$ofile"
11543
11544 else
11545   # If there is no Makefile yet, we rely on a make rule to execute
11546   # `config.status --recheck' to rerun these tests and create the
11547   # libtool script then.
11548   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11549   if test -f "$ltmain_in"; then
11550     test -f Makefile && make "$ltmain"
11551   fi
11552 fi
11553
11554
11555 ac_ext=c
11556 ac_cpp='$CPP $CPPFLAGS'
11557 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11558 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11559 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11560
11561 CC="$lt_save_CC"
11562
11563
11564
11565 # This can be used to rebuild libtool when needed
11566 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
11567
11568 # Always use our own libtool.
11569 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11570
11571 # Prevent multiple expansion
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582 if test "$enable_shared" = "no"; then
11583     with_noexec=no
11584 else
11585     eval _shrext="$shrext_cmds"
11586 fi
11587 { echo "$as_me:$LINENO: checking path to sudo_noexec.so" >&5
11588 echo $ECHO_N "checking path to sudo_noexec.so... $ECHO_C" >&6; }
11589
11590 # Check whether --with-noexec was given.
11591 if test "${with_noexec+set}" = set; then
11592   withval=$with_noexec; case $with_noexec in
11593     yes)        with_noexec="$libexecdir/sudo_noexec$_shrext"
11594                 ;;
11595     no)         ;;
11596     *)          ;;
11597 esac
11598 else
11599   with_noexec="$libexecdir/sudo_noexec$_shrext"
11600 fi
11601
11602 { echo "$as_me:$LINENO: result: $with_noexec" >&5
11603 echo "${ECHO_T}$with_noexec" >&6; }
11604 NOEXECFILE="sudo_noexec$_shrext"
11605 NOEXECDIR="`echo $with_noexec|sed 's:^\(.*\)/[^/]*:\1:'`"
11606
11607 if test "$with_devel" = "yes" -a -n "$GCC"; then
11608     CFLAGS="${CFLAGS} -Wall"
11609 fi
11610
11611 # Extract the first word of "uname", so it can be a program name with args.
11612 set dummy uname; ac_word=$2
11613 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11614 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11615 if test "${ac_cv_prog_UNAMEPROG+set}" = set; then
11616   echo $ECHO_N "(cached) $ECHO_C" >&6
11617 else
11618   if test -n "$UNAMEPROG"; then
11619   ac_cv_prog_UNAMEPROG="$UNAMEPROG" # Let the user override the test.
11620 else
11621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11622 for as_dir in $PATH
11623 do
11624   IFS=$as_save_IFS
11625   test -z "$as_dir" && as_dir=.
11626   for ac_exec_ext in '' $ac_executable_extensions; do
11627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11628     ac_cv_prog_UNAMEPROG="uname"
11629     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11630     break 2
11631   fi
11632 done
11633 done
11634 IFS=$as_save_IFS
11635
11636 fi
11637 fi
11638 UNAMEPROG=$ac_cv_prog_UNAMEPROG
11639 if test -n "$UNAMEPROG"; then
11640   { echo "$as_me:$LINENO: result: $UNAMEPROG" >&5
11641 echo "${ECHO_T}$UNAMEPROG" >&6; }
11642 else
11643   { echo "$as_me:$LINENO: result: no" >&5
11644 echo "${ECHO_T}no" >&6; }
11645 fi
11646
11647
11648 # Extract the first word of "tr", so it can be a program name with args.
11649 set dummy tr; ac_word=$2
11650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11652 if test "${ac_cv_prog_TRPROG+set}" = set; then
11653   echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655   if test -n "$TRPROG"; then
11656   ac_cv_prog_TRPROG="$TRPROG" # Let the user override the test.
11657 else
11658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11659 for as_dir in $PATH
11660 do
11661   IFS=$as_save_IFS
11662   test -z "$as_dir" && as_dir=.
11663   for ac_exec_ext in '' $ac_executable_extensions; do
11664   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11665     ac_cv_prog_TRPROG="tr"
11666     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11667     break 2
11668   fi
11669 done
11670 done
11671 IFS=$as_save_IFS
11672
11673 fi
11674 fi
11675 TRPROG=$ac_cv_prog_TRPROG
11676 if test -n "$TRPROG"; then
11677   { echo "$as_me:$LINENO: result: $TRPROG" >&5
11678 echo "${ECHO_T}$TRPROG" >&6; }
11679 else
11680   { echo "$as_me:$LINENO: result: no" >&5
11681 echo "${ECHO_T}no" >&6; }
11682 fi
11683
11684
11685 # Extract the first word of "nroff", so it can be a program name with args.
11686 set dummy nroff; ac_word=$2
11687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11689 if test "${ac_cv_prog_NROFFPROG+set}" = set; then
11690   echo $ECHO_N "(cached) $ECHO_C" >&6
11691 else
11692   if test -n "$NROFFPROG"; then
11693   ac_cv_prog_NROFFPROG="$NROFFPROG" # Let the user override the test.
11694 else
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11697 do
11698   IFS=$as_save_IFS
11699   test -z "$as_dir" && as_dir=.
11700   for ac_exec_ext in '' $ac_executable_extensions; do
11701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11702     ac_cv_prog_NROFFPROG="nroff"
11703     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11704     break 2
11705   fi
11706 done
11707 done
11708 IFS=$as_save_IFS
11709
11710 fi
11711 fi
11712 NROFFPROG=$ac_cv_prog_NROFFPROG
11713 if test -n "$NROFFPROG"; then
11714   { echo "$as_me:$LINENO: result: $NROFFPROG" >&5
11715 echo "${ECHO_T}$NROFFPROG" >&6; }
11716 else
11717   { echo "$as_me:$LINENO: result: no" >&5
11718 echo "${ECHO_T}no" >&6; }
11719 fi
11720
11721
11722 if test -z "$NROFFPROG"; then
11723     MANTYPE="cat"
11724     mansrcdir='$(srcdir)'
11725 fi
11726
11727 if test -n "$sudo_cv_prev_host"; then
11728     if test "$sudo_cv_prev_host" != "$host"; then
11729         { { echo "$as_me:$LINENO: error: config.cache was created on a different host; remove it and re-run configure." >&5
11730 echo "$as_me: error: config.cache was created on a different host; remove it and re-run configure." >&2;}
11731    { (exit 1); exit 1; }; }
11732     else
11733         { echo "$as_me:$LINENO: checking previous host type" >&5
11734 echo $ECHO_N "checking previous host type... $ECHO_C" >&6; }
11735         if test "${sudo_cv_prev_host+set}" = set; then
11736   echo $ECHO_N "(cached) $ECHO_C" >&6
11737 else
11738   sudo_cv_prev_host="$host"
11739 fi
11740
11741         { echo "$as_me:$LINENO: result: $sudo_cv_prev_host" >&5
11742 echo "${ECHO_T}$sudo_cv_prev_host" >&6; }
11743     fi
11744 else
11745     # this will produce no output since there is no cached value
11746     if test "${sudo_cv_prev_host+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   sudo_cv_prev_host="$host"
11750 fi
11751
11752 fi
11753
11754 if test -n "$host_os"; then
11755     OS=`echo $host_os | sed 's/[0-9].*//'`
11756     OSREV=`echo $host_os | sed 's/^[^0-9\.]*\([0-9\.]*\).*$/\1/'`
11757     OSMAJOR=`echo $OSREV | sed 's/\..*$//'`
11758 else
11759     OS="unknown"
11760     OSREV=0
11761     OSMAJOR=0
11762 fi
11763
11764 case "$host" in
11765     *-*-sunos4*)
11766                 # getcwd(3) opens a pipe to getpwd(1)!?!
11767                 BROKEN_GETCWD=1
11768
11769                 # system headers lack prototypes but gcc helps...
11770                 if test -n "$GCC"; then
11771                     OSDEFS="${OSDEFS} -D__USE_FIXED_PROTOTYPES__"
11772                 fi
11773
11774                 shadow_funcs="getpwanam issecure"
11775                 ;;
11776     *-*-solaris2*)
11777                 # To get the crypt(3) prototype (so we pass -Wall)
11778                 OSDEFS="${OSDEFS} -D__EXTENSIONS__"
11779                 # AFS support needs -lucb
11780                 if test "$with_AFS" = "yes"; then
11781                     AFS_LIBS="-lc -lucb"
11782                 fi
11783                 : ${mansectsu='1m'}
11784                 : ${mansectform='4'}
11785                 : ${with_rpath='yes'}
11786                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
11787                 ;;
11788     *-*-aix*)
11789                 # To get all prototypes (so we pass -Wall)
11790                 OSDEFS="${OSDEFS} -D_XOPEN_EXTENDED_SOURCE -D_ALL_SOURCE"
11791                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-bI:\$(srcdir)/aixcrypt.exp"
11792                 if test X"$with_blibpath" != X"no"; then
11793                     { echo "$as_me:$LINENO: checking if linker accepts -Wl,-blibpath" >&5
11794 echo $ECHO_N "checking if linker accepts -Wl,-blibpath... $ECHO_C" >&6; }
11795                     O_LDFLAGS="$LDFLAGS"
11796                     LDFLAGS="$O_LDFLAGS -Wl,-blibpath:/usr/lib:/lib"
11797                     cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h.  */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h.  */
11803
11804 int
11805 main ()
11806 {
11807
11808   ;
11809   return 0;
11810 }
11811 _ACEOF
11812 rm -f conftest.$ac_objext conftest$ac_exeext
11813 if { (ac_try="$ac_link"
11814 case "(($ac_try" in
11815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11816   *) ac_try_echo=$ac_try;;
11817 esac
11818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11819   (eval "$ac_link") 2>conftest.er1
11820   ac_status=$?
11821   grep -v '^ *+' conftest.er1 >conftest.err
11822   rm -f conftest.er1
11823   cat conftest.err >&5
11824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825   (exit $ac_status); } && {
11826          test -z "$ac_c_werror_flag" ||
11827          test ! -s conftest.err
11828        } && test -s conftest$ac_exeext &&
11829        $as_test_x conftest$ac_exeext; then
11830
11831                         if test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
11832                             blibpath="$with_blibpath"
11833                         elif test -n "$GCC"; then
11834                             blibpath="/usr/lib:/lib:/usr/local/lib"
11835                         else
11836                             blibpath="/usr/lib:/lib"
11837                         fi
11838                         { echo "$as_me:$LINENO: result: yes" >&5
11839 echo "${ECHO_T}yes" >&6; }
11840
11841 else
11842   echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845         { echo "$as_me:$LINENO: result: no" >&5
11846 echo "${ECHO_T}no" >&6; }
11847 fi
11848
11849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850       conftest$ac_exeext conftest.$ac_ext
11851                 fi
11852                 LDFLAGS="$O_LDFLAGS"
11853
11854                 # Use authenticate(3) as the default authentication method
11855                 if test X"$with_aixauth" = X""; then
11856
11857 for ac_func in authenticate
11858 do
11859 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11860 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11861 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11862 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11863   echo $ECHO_N "(cached) $ECHO_C" >&6
11864 else
11865   cat >conftest.$ac_ext <<_ACEOF
11866 /* confdefs.h.  */
11867 _ACEOF
11868 cat confdefs.h >>conftest.$ac_ext
11869 cat >>conftest.$ac_ext <<_ACEOF
11870 /* end confdefs.h.  */
11871 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11872    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11873 #define $ac_func innocuous_$ac_func
11874
11875 /* System header to define __stub macros and hopefully few prototypes,
11876     which can conflict with char $ac_func (); below.
11877     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11878     <limits.h> exists even on freestanding compilers.  */
11879
11880 #ifdef __STDC__
11881 # include <limits.h>
11882 #else
11883 # include <assert.h>
11884 #endif
11885
11886 #undef $ac_func
11887
11888 /* Override any GCC internal prototype to avoid an error.
11889    Use char because int might match the return type of a GCC
11890    builtin and then its argument prototype would still apply.  */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char $ac_func ();
11895 /* The GNU C library defines this for functions which it implements
11896     to always fail with ENOSYS.  Some functions are actually named
11897     something starting with __ and the normal name is an alias.  */
11898 #if defined __stub_$ac_func || defined __stub___$ac_func
11899 choke me
11900 #endif
11901
11902 int
11903 main ()
11904 {
11905 return $ac_func ();
11906   ;
11907   return 0;
11908 }
11909 _ACEOF
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (ac_try="$ac_link"
11912 case "(($ac_try" in
11913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11914   *) ac_try_echo=$ac_try;;
11915 esac
11916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11917   (eval "$ac_link") 2>conftest.er1
11918   ac_status=$?
11919   grep -v '^ *+' conftest.er1 >conftest.err
11920   rm -f conftest.er1
11921   cat conftest.err >&5
11922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923   (exit $ac_status); } && {
11924          test -z "$ac_c_werror_flag" ||
11925          test ! -s conftest.err
11926        } && test -s conftest$ac_exeext &&
11927        $as_test_x conftest$ac_exeext; then
11928   eval "$as_ac_var=yes"
11929 else
11930   echo "$as_me: failed program was:" >&5
11931 sed 's/^/| /' conftest.$ac_ext >&5
11932
11933         eval "$as_ac_var=no"
11934 fi
11935
11936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11937       conftest$ac_exeext conftest.$ac_ext
11938 fi
11939 ac_res=`eval echo '${'$as_ac_var'}'`
11940                { echo "$as_me:$LINENO: result: $ac_res" >&5
11941 echo "${ECHO_T}$ac_res" >&6; }
11942 if test `eval echo '${'$as_ac_var'}'` = yes; then
11943   cat >>confdefs.h <<_ACEOF
11944 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11945 _ACEOF
11946  AUTH_EXCL_DEF="AIX_AUTH"
11947 fi
11948 done
11949
11950                 fi
11951
11952                 # AIX-specific functions
11953
11954 for ac_func in getuserattr
11955 do
11956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960   echo $ECHO_N "(cached) $ECHO_C" >&6
11961 else
11962   cat >conftest.$ac_ext <<_ACEOF
11963 /* confdefs.h.  */
11964 _ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h.  */
11968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11970 #define $ac_func innocuous_$ac_func
11971
11972 /* System header to define __stub macros and hopefully few prototypes,
11973     which can conflict with char $ac_func (); below.
11974     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975     <limits.h> exists even on freestanding compilers.  */
11976
11977 #ifdef __STDC__
11978 # include <limits.h>
11979 #else
11980 # include <assert.h>
11981 #endif
11982
11983 #undef $ac_func
11984
11985 /* Override any GCC internal prototype to avoid an error.
11986    Use char because int might match the return type of a GCC
11987    builtin and then its argument prototype would still apply.  */
11988 #ifdef __cplusplus
11989 extern "C"
11990 #endif
11991 char $ac_func ();
11992 /* The GNU C library defines this for functions which it implements
11993     to always fail with ENOSYS.  Some functions are actually named
11994     something starting with __ and the normal name is an alias.  */
11995 #if defined __stub_$ac_func || defined __stub___$ac_func
11996 choke me
11997 #endif
11998
11999 int
12000 main ()
12001 {
12002 return $ac_func ();
12003   ;
12004   return 0;
12005 }
12006 _ACEOF
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (ac_try="$ac_link"
12009 case "(($ac_try" in
12010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011   *) ac_try_echo=$ac_try;;
12012 esac
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014   (eval "$ac_link") 2>conftest.er1
12015   ac_status=$?
12016   grep -v '^ *+' conftest.er1 >conftest.err
12017   rm -f conftest.er1
12018   cat conftest.err >&5
12019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020   (exit $ac_status); } && {
12021          test -z "$ac_c_werror_flag" ||
12022          test ! -s conftest.err
12023        } && test -s conftest$ac_exeext &&
12024        $as_test_x conftest$ac_exeext; then
12025   eval "$as_ac_var=yes"
12026 else
12027   echo "$as_me: failed program was:" >&5
12028 sed 's/^/| /' conftest.$ac_ext >&5
12029
12030         eval "$as_ac_var=no"
12031 fi
12032
12033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12034       conftest$ac_exeext conftest.$ac_ext
12035 fi
12036 ac_res=`eval echo '${'$as_ac_var'}'`
12037                { echo "$as_me:$LINENO: result: $ac_res" >&5
12038 echo "${ECHO_T}$ac_res" >&6; }
12039 if test `eval echo '${'$as_ac_var'}'` = yes; then
12040   cat >>confdefs.h <<_ACEOF
12041 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12042 _ACEOF
12043
12044 fi
12045 done
12046
12047                 SUDO_OBJS="$SUDO_OBJS aix.o"
12048                 ;;
12049     *-*-hiuxmpp*)
12050                 : ${mansectsu='1m'}
12051                 : ${mansectform='4'}
12052                 ;;
12053     *-*-hpux*)
12054                 # AFS support needs -lBSD
12055                 if test "$with_AFS" = "yes"; then
12056                     AFS_LIBS="-lc -lBSD"
12057                 fi
12058                 : ${mansectsu='1m'}
12059                 : ${mansectform='4'}
12060
12061                 # HP-UX bundled compiler can't generate shared objects
12062                 if test "x$ac_cv_prog_cc_c89" = "xno"; then
12063                     with_noexec=no
12064                 fi
12065                 case "$host" in
12066                         *-*-hpux1-8.*)
12067                             cat >>confdefs.h <<\_ACEOF
12068 #define BROKEN_SYSLOG 1
12069 _ACEOF
12070
12071
12072                             # Not sure if setuid binaries are safe in < 9.x
12073                             if test -n "$GCC"; then
12074                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -static"
12075                             else
12076                                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-a,archive"
12077                             fi
12078                         ;;
12079                         *-*-hpux9.*)
12080                             cat >>confdefs.h <<\_ACEOF
12081 #define BROKEN_SYSLOG 1
12082 _ACEOF
12083
12084
12085                             shadow_funcs="getspwuid"
12086
12087                             # DCE support (requires ANSI C compiler)
12088                             if test "$with_DCE" = "yes"; then
12089                                 # order of libs in 9.X is important. -lc_r must be last
12090                                 SUDO_LIBS="${SUDO_LIBS} -ldce -lM -lc_r"
12091                                 LIBS="${LIBS} -ldce -lM -lc_r"
12092                                 CPPFLAGS="${CPPFLAGS} -D_REENTRANT -I/usr/include/reentrant"
12093                             fi
12094                         ;;
12095                         *-*-hpux10.*)
12096                             shadow_funcs="getprpwnam iscomsec"
12097                             shadow_libs="-lsec"
12098                         ;;
12099                         *)
12100                             shadow_funcs="getspnam iscomsec"
12101                             shadow_libs="-lsec"
12102                             test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12103                         ;;
12104                 esac
12105                 ;;
12106     *-dec-osf*)
12107                 # ignore envariables wrt dynamic lib path
12108                 SUDO_LDFLAGS="${SUDO_LDFLAGS} -Wl,-no_library_replacement"
12109
12110                 : ${CHECKSIA='true'}
12111                 { echo "$as_me:$LINENO: checking whether to disable sia support on Digital UNIX" >&5
12112 echo $ECHO_N "checking whether to disable sia support on Digital UNIX... $ECHO_C" >&6; }
12113                 # Check whether --enable-sia was given.
12114 if test "${enable_sia+set}" = set; then
12115   enableval=$enable_sia;  case "$enableval" in
12116                     yes)        { echo "$as_me:$LINENO: result: no" >&5
12117 echo "${ECHO_T}no" >&6; }
12118                                 CHECKSIA=true
12119                                 ;;
12120                     no)         { echo "$as_me:$LINENO: result: yes" >&5
12121 echo "${ECHO_T}yes" >&6; }
12122                                 CHECKSIA=false
12123                                 ;;
12124                     *)          { echo "$as_me:$LINENO: result: no" >&5
12125 echo "${ECHO_T}no" >&6; }
12126                                 { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&5
12127 echo "$as_me: WARNING: Ignoring unknown argument to --enable-sia: $enableval" >&2;}
12128                                 ;;
12129                   esac
12130
12131 else
12132   { echo "$as_me:$LINENO: result: no" >&5
12133 echo "${ECHO_T}no" >&6; }
12134 fi
12135
12136
12137                 shadow_funcs="getprpwnam dispcrypt"
12138                 # OSF/1 4.x and higher need -ldb too
12139                 if test $OSMAJOR -lt 4; then
12140                     shadow_libs="-lsecurity -laud -lm"
12141                 else
12142                     shadow_libs="-lsecurity -ldb -laud -lm"
12143                 fi
12144
12145                 # use SIA by default, if we have it
12146                 test "$CHECKSIA" = "true" && AUTH_EXCL_DEF="SIA"
12147
12148                 #
12149                 # Some versions of Digital Unix ship with a broken
12150                 # copy of prot.h, which we need for shadow passwords.
12151                 # XXX - make should remove this as part of distclean
12152                 #
12153                 { echo "$as_me:$LINENO: checking for broken prot.h" >&5
12154 echo $ECHO_N "checking for broken prot.h... $ECHO_C" >&6; }
12155                 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h.  */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h.  */
12161
12162 #include <sys/types.h>
12163 #include <sys/security.h>
12164 #include <prot.h>
12165
12166 int
12167 main ()
12168 {
12169 exit(0);
12170   ;
12171   return 0;
12172 }
12173 _ACEOF
12174 rm -f conftest.$ac_objext
12175 if { (ac_try="$ac_compile"
12176 case "(($ac_try" in
12177   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12178   *) ac_try_echo=$ac_try;;
12179 esac
12180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12181   (eval "$ac_compile") 2>conftest.er1
12182   ac_status=$?
12183   grep -v '^ *+' conftest.er1 >conftest.err
12184   rm -f conftest.er1
12185   cat conftest.err >&5
12186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12187   (exit $ac_status); } && {
12188          test -z "$ac_c_werror_flag" ||
12189          test ! -s conftest.err
12190        } && test -s conftest.$ac_objext; then
12191   { echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6; }
12193 else
12194   echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12196
12197         { echo "$as_me:$LINENO: result: yes, fixing locally" >&5
12198 echo "${ECHO_T}yes, fixing locally" >&6; }
12199                 sed 's:<acl.h>:<sys/acl.h>:g' < /usr/include/prot.h > prot.h
12200
12201 fi
12202
12203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12204                 : ${mansectsu='8'}
12205                 : ${mansectform='4'}
12206                 ;;
12207     *-*-irix*)
12208                 OSDEFS="${OSDEFS} -D_BSD_TYPES"
12209                 if test -z "$NROFFPROG"; then
12210                     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)'
12211                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12212                         if test -d /usr/share/catman/local; then
12213                             mandir="/usr/share/catman/local"
12214                         else
12215                             mandir="/usr/catman/local"
12216                         fi
12217                     fi
12218                 else
12219                     if test "$prefix" = "/usr/local" -a "$mandir" = '$(prefix)/man'; then
12220                         if test -d "/usr/share/man/local"; then
12221                             mandir="/usr/share/man/local"
12222                         else
12223                             mandir="/usr/man/local"
12224                         fi
12225                     fi
12226                 fi
12227                 # IRIX <= 4 needs -lsun
12228                 if test "$OSMAJOR" -le 4; then
12229                     { echo "$as_me:$LINENO: checking for getpwnam in -lsun" >&5
12230 echo $ECHO_N "checking for getpwnam in -lsun... $ECHO_C" >&6; }
12231 if test "${ac_cv_lib_sun_getpwnam+set}" = set; then
12232   echo $ECHO_N "(cached) $ECHO_C" >&6
12233 else
12234   ac_check_lib_save_LIBS=$LIBS
12235 LIBS="-lsun  $LIBS"
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h.  */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h.  */
12242
12243 /* Override any GCC internal prototype to avoid an error.
12244    Use char because int might match the return type of a GCC
12245    builtin and then its argument prototype would still apply.  */
12246 #ifdef __cplusplus
12247 extern "C"
12248 #endif
12249 char getpwnam ();
12250 int
12251 main ()
12252 {
12253 return getpwnam ();
12254   ;
12255   return 0;
12256 }
12257 _ACEOF
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_link") 2>conftest.er1
12266   ac_status=$?
12267   grep -v '^ *+' conftest.er1 >conftest.err
12268   rm -f conftest.er1
12269   cat conftest.err >&5
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); } && {
12272          test -z "$ac_c_werror_flag" ||
12273          test ! -s conftest.err
12274        } && test -s conftest$ac_exeext &&
12275        $as_test_x conftest$ac_exeext; then
12276   ac_cv_lib_sun_getpwnam=yes
12277 else
12278   echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.$ac_ext >&5
12280
12281         ac_cv_lib_sun_getpwnam=no
12282 fi
12283
12284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12285       conftest$ac_exeext conftest.$ac_ext
12286 LIBS=$ac_check_lib_save_LIBS
12287 fi
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_sun_getpwnam" >&5
12289 echo "${ECHO_T}$ac_cv_lib_sun_getpwnam" >&6; }
12290 if test $ac_cv_lib_sun_getpwnam = yes; then
12291   LIBS="${LIBS} -lsun"
12292 fi
12293
12294                 fi
12295                 : ${mansectsu='1m'}
12296                 : ${mansectform='4'}
12297                 ;;
12298     *-*-linux*|*-*-k*bsd*-gnu)
12299                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12300                 # Some Linux versions need to link with -lshadow
12301                 shadow_funcs="getspnam"
12302                 shadow_libs_optional="-lshadow"
12303                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12304                 ;;
12305     *-convex-bsd*)
12306                 OSDEFS="${OSDEFS} -D_CONVEX_SOURCE"
12307                 if test -z "$GCC"; then
12308                     CFLAGS="${CFLAGS} -D__STDC__"
12309                 fi
12310
12311                 shadow_defs="-D_AUDIT -D_ACL -DSecureWare"
12312                 shadow_funcs="getprpwnam"
12313                 shadow_libs="-lprot"
12314                 ;;
12315     *-*-ultrix*)
12316                 OS="ultrix"
12317                 shadow_funcs="getauthuid"
12318                 shadow_libs="-lauth"
12319                 ;;
12320     *-*-riscos*)
12321                 LIBS="${LIBS} -lsun -lbsd"
12322                 CPPFLAGS="${CPPFLAGS} -I/usr/include -I/usr/include/bsd"
12323                 OSDEFS="${OSDEFS} -D_MIPS"
12324                 : ${mansectsu='1m'}
12325                 : ${mansectform='4'}
12326                 ;;
12327     *-*-isc*)
12328                 OSDEFS="${OSDEFS} -D_ISC"
12329                 LIB_CRYPT=1
12330                 SUDO_LIBS="${SUDO_LIBS} -lcrypt"
12331                 LIBS="${LIBS} -lcrypt"
12332
12333                 shadow_funcs="getspnam"
12334                 shadow_libs="-lsec"
12335
12336                 : ${mansectsu='1m'}
12337                 : ${mansectform='4'}
12338                 ;;
12339     *-*-sco*|*-sco-*)
12340                 shadow_funcs="getprpwnam"
12341                 shadow_libs="-lprot -lx"
12342                 : ${mansectsu='1m'}
12343                 : ${mansectform='4'}
12344                 ;;
12345     m88k-motorola-sysv*)
12346                 # motorolla's cc (a variant of gcc) does -O but not -O2
12347                 CFLAGS=`echo $CFLAGS | sed 's/-O2/-O/g'`
12348                 : ${mansectsu='1m'}
12349                 : ${mansectform='4'}
12350                 ;;
12351     *-sequent-sysv*)
12352                 shadow_funcs="getspnam"
12353                 shadow_libs="-lsec"
12354                 : ${mansectsu='1m'}
12355                 : ${mansectform='4'}
12356                 : ${with_rpath='yes'}
12357                 ;;
12358     *-ncr-sysv4*|*-ncr-sysvr4*)
12359                 { echo "$as_me:$LINENO: checking for strcasecmp in -lc89" >&5
12360 echo $ECHO_N "checking for strcasecmp in -lc89... $ECHO_C" >&6; }
12361 if test "${ac_cv_lib_c89_strcasecmp+set}" = set; then
12362   echo $ECHO_N "(cached) $ECHO_C" >&6
12363 else
12364   ac_check_lib_save_LIBS=$LIBS
12365 LIBS="-lc89  $LIBS"
12366 cat >conftest.$ac_ext <<_ACEOF
12367 /* confdefs.h.  */
12368 _ACEOF
12369 cat confdefs.h >>conftest.$ac_ext
12370 cat >>conftest.$ac_ext <<_ACEOF
12371 /* end confdefs.h.  */
12372
12373 /* Override any GCC internal prototype to avoid an error.
12374    Use char because int might match the return type of a GCC
12375    builtin and then its argument prototype would still apply.  */
12376 #ifdef __cplusplus
12377 extern "C"
12378 #endif
12379 char strcasecmp ();
12380 int
12381 main ()
12382 {
12383 return strcasecmp ();
12384   ;
12385   return 0;
12386 }
12387 _ACEOF
12388 rm -f conftest.$ac_objext conftest$ac_exeext
12389 if { (ac_try="$ac_link"
12390 case "(($ac_try" in
12391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12392   *) ac_try_echo=$ac_try;;
12393 esac
12394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12395   (eval "$ac_link") 2>conftest.er1
12396   ac_status=$?
12397   grep -v '^ *+' conftest.er1 >conftest.err
12398   rm -f conftest.er1
12399   cat conftest.err >&5
12400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); } && {
12402          test -z "$ac_c_werror_flag" ||
12403          test ! -s conftest.err
12404        } && test -s conftest$ac_exeext &&
12405        $as_test_x conftest$ac_exeext; then
12406   ac_cv_lib_c89_strcasecmp=yes
12407 else
12408   echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411         ac_cv_lib_c89_strcasecmp=no
12412 fi
12413
12414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12415       conftest$ac_exeext conftest.$ac_ext
12416 LIBS=$ac_check_lib_save_LIBS
12417 fi
12418 { echo "$as_me:$LINENO: result: $ac_cv_lib_c89_strcasecmp" >&5
12419 echo "${ECHO_T}$ac_cv_lib_c89_strcasecmp" >&6; }
12420 if test $ac_cv_lib_c89_strcasecmp = yes; then
12421   cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_STRCASECMP 1
12423 _ACEOF
12424  LIBS="${LIBS} -lc89"; ac_cv_func_strcasecmp=yes
12425 fi
12426
12427                 : ${mansectsu='1m'}
12428                 : ${mansectform='4'}
12429                 : ${with_rpath='yes'}
12430                 ;;
12431     *-ccur-sysv4*|*-ccur-sysvr4*)
12432                 LIBS="${LIBS} -lgen"
12433                 SUDO_LIBS="${SUDO_LIBS} -lgen"
12434                 : ${mansectsu='1m'}
12435                 : ${mansectform='4'}
12436                 : ${with_rpath='yes'}
12437                 ;;
12438     *-*-bsdi*)
12439                 SKIP_SETREUID=yes
12440                 # Use shlicc for BSD/OS [23].x unless asked to do otherwise
12441                 if test "${with_CC+set}" != set -a "$ac_cv_prog_CC" = gcc; then
12442                     case "$OSMAJOR" in
12443                         2|3)    { echo "$as_me:$LINENO: using shlicc as CC" >&5
12444 echo "$as_me: using shlicc as CC" >&6;}
12445                                 ac_cv_prog_CC=shlicc
12446                                 CC="$ac_cv_prog_CC"
12447                                 ;;
12448                     esac
12449                 fi
12450                 # Check for newer BSD auth API (just check for >= 3.0?)
12451                 if test -z "$with_bsdauth"; then
12452
12453 for ac_func in auth_challenge
12454 do
12455 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12456 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12457 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12458 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12459   echo $ECHO_N "(cached) $ECHO_C" >&6
12460 else
12461   cat >conftest.$ac_ext <<_ACEOF
12462 /* confdefs.h.  */
12463 _ACEOF
12464 cat confdefs.h >>conftest.$ac_ext
12465 cat >>conftest.$ac_ext <<_ACEOF
12466 /* end confdefs.h.  */
12467 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12468    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12469 #define $ac_func innocuous_$ac_func
12470
12471 /* System header to define __stub macros and hopefully few prototypes,
12472     which can conflict with char $ac_func (); below.
12473     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12474     <limits.h> exists even on freestanding compilers.  */
12475
12476 #ifdef __STDC__
12477 # include <limits.h>
12478 #else
12479 # include <assert.h>
12480 #endif
12481
12482 #undef $ac_func
12483
12484 /* Override any GCC internal prototype to avoid an error.
12485    Use char because int might match the return type of a GCC
12486    builtin and then its argument prototype would still apply.  */
12487 #ifdef __cplusplus
12488 extern "C"
12489 #endif
12490 char $ac_func ();
12491 /* The GNU C library defines this for functions which it implements
12492     to always fail with ENOSYS.  Some functions are actually named
12493     something starting with __ and the normal name is an alias.  */
12494 #if defined __stub_$ac_func || defined __stub___$ac_func
12495 choke me
12496 #endif
12497
12498 int
12499 main ()
12500 {
12501 return $ac_func ();
12502   ;
12503   return 0;
12504 }
12505 _ACEOF
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510   *) ac_try_echo=$ac_try;;
12511 esac
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513   (eval "$ac_link") 2>conftest.er1
12514   ac_status=$?
12515   grep -v '^ *+' conftest.er1 >conftest.err
12516   rm -f conftest.er1
12517   cat conftest.err >&5
12518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519   (exit $ac_status); } && {
12520          test -z "$ac_c_werror_flag" ||
12521          test ! -s conftest.err
12522        } && test -s conftest$ac_exeext &&
12523        $as_test_x conftest$ac_exeext; then
12524   eval "$as_ac_var=yes"
12525 else
12526   echo "$as_me: failed program was:" >&5
12527 sed 's/^/| /' conftest.$ac_ext >&5
12528
12529         eval "$as_ac_var=no"
12530 fi
12531
12532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12533       conftest$ac_exeext conftest.$ac_ext
12534 fi
12535 ac_res=`eval echo '${'$as_ac_var'}'`
12536                { echo "$as_me:$LINENO: result: $ac_res" >&5
12537 echo "${ECHO_T}$ac_res" >&6; }
12538 if test `eval echo '${'$as_ac_var'}'` = yes; then
12539   cat >>confdefs.h <<_ACEOF
12540 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12541 _ACEOF
12542  AUTH_EXCL_DEF="BSD_AUTH"
12543 fi
12544 done
12545
12546                 fi
12547                 ;;
12548     *-*-freebsd*)
12549                 # FreeBSD has a real setreuid(2) starting with 2.1 and
12550                 # backported to 2.0.5.  We just take 2.1 and above...
12551                 case "$OSREV" in
12552                 0.*|1.*|2.0*)
12553                     SKIP_SETREUID=yes
12554                     ;;
12555                 esac
12556                 if test "$with_skey" = "yes"; then
12557                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12558                 fi
12559                 CHECKSHADOW="false"
12560                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12561                 : ${with_logincap='maybe'}
12562                 ;;
12563     *-*-*openbsd*)
12564                 # OpenBSD has a real setreuid(2) starting with 3.3 but
12565                 # we will use setreuid(2) instead.
12566                 SKIP_SETREUID=yes
12567                 CHECKSHADOW="false"
12568                 # OpenBSD >= 3.0 supports BSD auth
12569                 if test -z "$with_bsdauth"; then
12570                     case "$OSREV" in
12571                     0-2.*)
12572                         ;;
12573                     *)
12574                         AUTH_EXCL_DEF="BSD_AUTH"
12575                         ;;
12576                     esac
12577                 fi
12578                 : ${with_logincap='maybe'}
12579                 ;;
12580     *-*-*netbsd*)
12581                 # NetBSD has a real setreuid(2) starting with 1.3.2
12582                 case "$OSREV" in
12583                 0.9*|1.012*|1.3|1.3.1)
12584                     SKIP_SETREUID=yes
12585                     ;;
12586                 esac
12587                 CHECKSHADOW="false"
12588                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12589                 : ${with_logincap='maybe'}
12590                 ;;
12591     *-*-dragonfly*)
12592                 if test "$with_skey" = "yes"; then
12593                      SUDO_LIBS="${SUDO_LIBS} -lmd"
12594                 fi
12595                 CHECKSHADOW="false"
12596                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12597                 : ${with_logincap='yes'}
12598                 ;;
12599     *-*-*bsd*)
12600                 CHECKSHADOW="false"
12601                 ;;
12602     *-*-darwin*)
12603                 SKIP_SETREUID=yes
12604                 CHECKSHADOW="false"
12605                 test -z "$with_pam" && AUTH_EXCL_DEF="PAM"
12606                 : ${with_logincap='yes'}
12607                 ;;
12608     *-*-nextstep*)
12609                 # lockf() on is broken on the NeXT -- use flock instead
12610                 ac_cv_func_lockf=no
12611                 ac_cv_func_flock=yes
12612                 ;;
12613     *-*-*sysv4*)
12614                 : ${mansectsu='1m'}
12615                 : ${mansectform='4'}
12616                 : ${with_rpath='yes'}
12617                 ;;
12618     *-*-sysv*)
12619                 : ${mansectsu='1m'}
12620                 : ${mansectform='4'}
12621                 ;;
12622     *-gnu*)
12623                 OSDEFS="${OSDEFS} -D_GNU_SOURCE"
12624                 ;;
12625 esac
12626
12627 AUTH_REG=${AUTH_REG# }
12628 AUTH_EXCL=${AUTH_EXCL# }
12629 if test -n "$AUTH_EXCL"; then
12630     set -- $AUTH_EXCL
12631     if test $# != 1; then
12632         { { echo "$as_me:$LINENO: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&5
12633 echo "$as_me: error: More than one mutually exclusive authentication method specified: $AUTH_EXCL" >&2;}
12634    { (exit 1); exit 1; }; }
12635     fi
12636     if test -n "$AUTH_REG"; then
12637         { { echo "$as_me:$LINENO: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&5
12638 echo "$as_me: error: Cannot mix mutually exclusive ($AUTH_EXCL) and regular ($AUTH_REG) authentication methods" >&2;}
12639    { (exit 1); exit 1; }; }
12640     fi
12641 fi
12642 if test X"${with_skey}${with_opie}" = X"yesyes"; then
12643     { { echo "$as_me:$LINENO: error: \"cannot use both S/Key and OPIE\"" >&5
12644 echo "$as_me: error: \"cannot use both S/Key and OPIE\"" >&2;}
12645    { (exit 1); exit 1; }; }
12646 fi
12647
12648 : ${mansectsu='8'}
12649 : ${mansectform='5'}
12650
12651 if test -n "$with_libpath"; then
12652     for i in ${with_libpath}; do
12653
12654     if test X"$with_rpath" = X"yes"; then
12655         LDFLAGS="${LDFLAGS} -L$i -R$i"
12656     else
12657         LDFLAGS="${LDFLAGS} -L$i"
12658     fi
12659     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
12660         blibpath_add="${blibpath_add}:$i"
12661     fi
12662
12663     done
12664 fi
12665 if test -n "$with_libraries"; then
12666     for i in ${with_libraries}; do
12667         case $i in
12668             -l*)        ;;
12669             *.a)        ;;
12670             *.o)        ;;
12671             *)  i="-l${i}";;
12672         esac
12673         LIBS="${LIBS} ${i}"
12674     done
12675 fi
12676
12677 if test $ac_cv_c_compiler_gnu = yes; then
12678     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
12679 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
12680 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
12681   echo $ECHO_N "(cached) $ECHO_C" >&6
12682 else
12683     ac_pattern="Autoconf.*'x'"
12684   cat >conftest.$ac_ext <<_ACEOF
12685 /* confdefs.h.  */
12686 _ACEOF
12687 cat confdefs.h >>conftest.$ac_ext
12688 cat >>conftest.$ac_ext <<_ACEOF
12689 /* end confdefs.h.  */
12690 #include <sgtty.h>
12691 Autoconf TIOCGETP
12692 _ACEOF
12693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12694   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12695   ac_cv_prog_gcc_traditional=yes
12696 else
12697   ac_cv_prog_gcc_traditional=no
12698 fi
12699 rm -f conftest*
12700
12701
12702   if test $ac_cv_prog_gcc_traditional = no; then
12703     cat >conftest.$ac_ext <<_ACEOF
12704 /* confdefs.h.  */
12705 _ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h.  */
12709 #include <termio.h>
12710 Autoconf TCGETA
12711 _ACEOF
12712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12713   $EGREP "$ac_pattern" >/dev/null 2>&1; then
12714   ac_cv_prog_gcc_traditional=yes
12715 fi
12716 rm -f conftest*
12717
12718   fi
12719 fi
12720 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
12721 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
12722   if test $ac_cv_prog_gcc_traditional = yes; then
12723     CC="$CC -traditional"
12724   fi
12725 fi
12726
12727 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
12728 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
12729 if test "${ac_cv_c_const+set}" = set; then
12730   echo $ECHO_N "(cached) $ECHO_C" >&6
12731 else
12732   cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h.  */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h.  */
12738
12739 int
12740 main ()
12741 {
12742 /* FIXME: Include the comments suggested by Paul. */
12743 #ifndef __cplusplus
12744   /* Ultrix mips cc rejects this.  */
12745   typedef int charset[2];
12746   const charset cs;
12747   /* SunOS 4.1.1 cc rejects this.  */
12748   char const *const *pcpcc;
12749   char **ppc;
12750   /* NEC SVR4.0.2 mips cc rejects this.  */
12751   struct point {int x, y;};
12752   static struct point const zero = {0,0};
12753   /* AIX XL C 1.02.0.0 rejects this.
12754      It does not let you subtract one const X* pointer from another in
12755      an arm of an if-expression whose if-part is not a constant
12756      expression */
12757   const char *g = "string";
12758   pcpcc = &g + (g ? g-g : 0);
12759   /* HPUX 7.0 cc rejects these. */
12760   ++pcpcc;
12761   ppc = (char**) pcpcc;
12762   pcpcc = (char const *const *) ppc;
12763   { /* SCO 3.2v4 cc rejects this.  */
12764     char *t;
12765     char const *s = 0 ? (char *) 0 : (char const *) 0;
12766
12767     *t++ = 0;
12768     if (s) return 0;
12769   }
12770   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
12771     int x[] = {25, 17};
12772     const int *foo = &x[0];
12773     ++foo;
12774   }
12775   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12776     typedef const int *iptr;
12777     iptr p = 0;
12778     ++p;
12779   }
12780   { /* AIX XL C 1.02.0.0 rejects this saying
12781        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12782     struct s { int j; const int *ap[3]; };
12783     struct s *b; b->j = 5;
12784   }
12785   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12786     const int foo = 10;
12787     if (!foo) return 0;
12788   }
12789   return !cs[0] && !zero.x;
12790 #endif
12791
12792   ;
12793   return 0;
12794 }
12795 _ACEOF
12796 rm -f conftest.$ac_objext
12797 if { (ac_try="$ac_compile"
12798 case "(($ac_try" in
12799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12800   *) ac_try_echo=$ac_try;;
12801 esac
12802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12803   (eval "$ac_compile") 2>conftest.er1
12804   ac_status=$?
12805   grep -v '^ *+' conftest.er1 >conftest.err
12806   rm -f conftest.er1
12807   cat conftest.err >&5
12808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12809   (exit $ac_status); } && {
12810          test -z "$ac_c_werror_flag" ||
12811          test ! -s conftest.err
12812        } && test -s conftest.$ac_objext; then
12813   ac_cv_c_const=yes
12814 else
12815   echo "$as_me: failed program was:" >&5
12816 sed 's/^/| /' conftest.$ac_ext >&5
12817
12818         ac_cv_c_const=no
12819 fi
12820
12821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12822 fi
12823 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
12824 echo "${ECHO_T}$ac_cv_c_const" >&6; }
12825 if test $ac_cv_c_const = no; then
12826
12827 cat >>confdefs.h <<\_ACEOF
12828 #define const
12829 _ACEOF
12830
12831 fi
12832
12833 { echo "$as_me:$LINENO: checking for working volatile" >&5
12834 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
12835 if test "${ac_cv_c_volatile+set}" = set; then
12836   echo $ECHO_N "(cached) $ECHO_C" >&6
12837 else
12838   cat >conftest.$ac_ext <<_ACEOF
12839 /* confdefs.h.  */
12840 _ACEOF
12841 cat confdefs.h >>conftest.$ac_ext
12842 cat >>conftest.$ac_ext <<_ACEOF
12843 /* end confdefs.h.  */
12844
12845 int
12846 main ()
12847 {
12848
12849 volatile int x;
12850 int * volatile y = (int *) 0;
12851 return !x && !y;
12852   ;
12853   return 0;
12854 }
12855 _ACEOF
12856 rm -f conftest.$ac_objext
12857 if { (ac_try="$ac_compile"
12858 case "(($ac_try" in
12859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860   *) ac_try_echo=$ac_try;;
12861 esac
12862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863   (eval "$ac_compile") 2>conftest.er1
12864   ac_status=$?
12865   grep -v '^ *+' conftest.er1 >conftest.err
12866   rm -f conftest.er1
12867   cat conftest.err >&5
12868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12869   (exit $ac_status); } && {
12870          test -z "$ac_c_werror_flag" ||
12871          test ! -s conftest.err
12872        } && test -s conftest.$ac_objext; then
12873   ac_cv_c_volatile=yes
12874 else
12875   echo "$as_me: failed program was:" >&5
12876 sed 's/^/| /' conftest.$ac_ext >&5
12877
12878         ac_cv_c_volatile=no
12879 fi
12880
12881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12882 fi
12883 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
12884 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
12885 if test $ac_cv_c_volatile = no; then
12886
12887 cat >>confdefs.h <<\_ACEOF
12888 #define volatile
12889 _ACEOF
12890
12891 fi
12892
12893 for ac_prog in 'bison -y' byacc
12894 do
12895   # Extract the first word of "$ac_prog", so it can be a program name with args.
12896 set dummy $ac_prog; ac_word=$2
12897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12899 if test "${ac_cv_prog_YACC+set}" = set; then
12900   echo $ECHO_N "(cached) $ECHO_C" >&6
12901 else
12902   if test -n "$YACC"; then
12903   ac_cv_prog_YACC="$YACC" # Let the user override the test.
12904 else
12905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12906 for as_dir in $PATH
12907 do
12908   IFS=$as_save_IFS
12909   test -z "$as_dir" && as_dir=.
12910   for ac_exec_ext in '' $ac_executable_extensions; do
12911   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12912     ac_cv_prog_YACC="$ac_prog"
12913     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12914     break 2
12915   fi
12916 done
12917 done
12918 IFS=$as_save_IFS
12919
12920 fi
12921 fi
12922 YACC=$ac_cv_prog_YACC
12923 if test -n "$YACC"; then
12924   { echo "$as_me:$LINENO: result: $YACC" >&5
12925 echo "${ECHO_T}$YACC" >&6; }
12926 else
12927   { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12929 fi
12930
12931
12932   test -n "$YACC" && break
12933 done
12934 test -n "$YACC" || YACC="yacc"
12935
12936 { echo "$as_me:$LINENO: checking for mv" >&5
12937 echo $ECHO_N "checking for mv... $ECHO_C" >&6; }
12938 if test -f "/usr/bin/mv"; then
12939     { echo "$as_me:$LINENO: result: /usr/bin/mv" >&5
12940 echo "${ECHO_T}/usr/bin/mv" >&6; }
12941     cat >>confdefs.h <<\EOF
12942 #define _PATH_MV "/usr/bin/mv"
12943 EOF
12944
12945 elif test -f "/bin/mv"; then
12946     { echo "$as_me:$LINENO: result: /bin/mv" >&5
12947 echo "${ECHO_T}/bin/mv" >&6; }
12948     cat >>confdefs.h <<\EOF
12949 #define _PATH_MV "/bin/mv"
12950 EOF
12951
12952 elif test -f "/usr/ucb/mv"; then
12953     { echo "$as_me:$LINENO: result: /usr/ucb/mv" >&5
12954 echo "${ECHO_T}/usr/ucb/mv" >&6; }
12955     cat >>confdefs.h <<\EOF
12956 #define _PATH_MV "/usr/ucb/mv"
12957 EOF
12958
12959 elif test -f "/usr/sbin/mv"; then
12960     { echo "$as_me:$LINENO: result: /usr/sbin/mv" >&5
12961 echo "${ECHO_T}/usr/sbin/mv" >&6; }
12962     cat >>confdefs.h <<\EOF
12963 #define _PATH_MV "/usr/sbin/mv"
12964 EOF
12965
12966 else
12967     { echo "$as_me:$LINENO: result: not found" >&5
12968 echo "${ECHO_T}not found" >&6; }
12969 fi
12970
12971 { echo "$as_me:$LINENO: checking for bourne shell" >&5
12972 echo $ECHO_N "checking for bourne shell... $ECHO_C" >&6; }
12973 if test -f "/bin/sh"; then
12974     { echo "$as_me:$LINENO: result: /bin/sh" >&5
12975 echo "${ECHO_T}/bin/sh" >&6; }
12976     cat >>confdefs.h <<\EOF
12977 #define _PATH_BSHELL "/bin/sh"
12978 EOF
12979
12980 elif test -f "/usr/bin/sh"; then
12981     { echo "$as_me:$LINENO: result: /usr/bin/sh" >&5
12982 echo "${ECHO_T}/usr/bin/sh" >&6; }
12983     cat >>confdefs.h <<\EOF
12984 #define _PATH_BSHELL "/usr/bin/sh"
12985 EOF
12986
12987 elif test -f "/sbin/sh"; then
12988     { echo "$as_me:$LINENO: result: /sbin/sh" >&5
12989 echo "${ECHO_T}/sbin/sh" >&6; }
12990     cat >>confdefs.h <<\EOF
12991 #define _PATH_BSHELL "/sbin/sh"
12992 EOF
12993
12994 elif test -f "/usr/sbin/sh"; then
12995     { echo "$as_me:$LINENO: result: /usr/sbin/sh" >&5
12996 echo "${ECHO_T}/usr/sbin/sh" >&6; }
12997     cat >>confdefs.h <<\EOF
12998 #define _PATH_BSHELL "/usr/sbin/sh"
12999 EOF
13000
13001 elif test -f "/bin/ksh"; then
13002     { echo "$as_me:$LINENO: result: /bin/ksh" >&5
13003 echo "${ECHO_T}/bin/ksh" >&6; }
13004     cat >>confdefs.h <<\EOF
13005 #define _PATH_BSHELL "/bin/ksh"
13006 EOF
13007
13008 elif test -f "/usr/bin/ksh"; then
13009     { echo "$as_me:$LINENO: result: /usr/bin/ksh" >&5
13010 echo "${ECHO_T}/usr/bin/ksh" >&6; }
13011     cat >>confdefs.h <<\EOF
13012 #define _PATH_BSHELL "/usr/bin/ksh"
13013 EOF
13014
13015 elif test -f "/bin/bash"; then
13016     { echo "$as_me:$LINENO: result: /bin/bash" >&5
13017 echo "${ECHO_T}/bin/bash" >&6; }
13018     cat >>confdefs.h <<\EOF
13019 #define _PATH_BSHELL "/bin/bash"
13020 EOF
13021
13022 elif test -f "/usr/bin/bash"; then
13023     { echo "$as_me:$LINENO: result: /usr/bin/bash" >&5
13024 echo "${ECHO_T}/usr/bin/bash" >&6; }
13025     cat >>confdefs.h <<\EOF
13026 #define _PATH_BSHELL "/usr/bin/bash"
13027 EOF
13028
13029 else
13030     { echo "$as_me:$LINENO: result: not found" >&5
13031 echo "${ECHO_T}not found" >&6; }
13032 fi
13033
13034 if test -z "$with_sendmail"; then
13035     { echo "$as_me:$LINENO: checking for sendmail" >&5
13036 echo $ECHO_N "checking for sendmail... $ECHO_C" >&6; }
13037 if test -f "/usr/sbin/sendmail"; then
13038     { echo "$as_me:$LINENO: result: /usr/sbin/sendmail" >&5
13039 echo "${ECHO_T}/usr/sbin/sendmail" >&6; }
13040     cat >>confdefs.h <<\EOF
13041 #define _PATH_SUDO_SENDMAIL "/usr/sbin/sendmail"
13042 EOF
13043
13044 elif test -f "/usr/lib/sendmail"; then
13045     { echo "$as_me:$LINENO: result: /usr/lib/sendmail" >&5
13046 echo "${ECHO_T}/usr/lib/sendmail" >&6; }
13047     cat >>confdefs.h <<\EOF
13048 #define _PATH_SUDO_SENDMAIL "/usr/lib/sendmail"
13049 EOF
13050
13051 elif test -f "/usr/etc/sendmail"; then
13052     { echo "$as_me:$LINENO: result: /usr/etc/sendmail" >&5
13053 echo "${ECHO_T}/usr/etc/sendmail" >&6; }
13054     cat >>confdefs.h <<\EOF
13055 #define _PATH_SUDO_SENDMAIL "/usr/etc/sendmail"
13056 EOF
13057
13058 elif test -f "/usr/ucblib/sendmail"; then
13059     { echo "$as_me:$LINENO: result: /usr/ucblib/sendmail" >&5
13060 echo "${ECHO_T}/usr/ucblib/sendmail" >&6; }
13061     cat >>confdefs.h <<\EOF
13062 #define _PATH_SUDO_SENDMAIL "/usr/ucblib/sendmail"
13063 EOF
13064
13065 elif test -f "/usr/local/lib/sendmail"; then
13066     { echo "$as_me:$LINENO: result: /usr/local/lib/sendmail" >&5
13067 echo "${ECHO_T}/usr/local/lib/sendmail" >&6; }
13068     cat >>confdefs.h <<\EOF
13069 #define _PATH_SUDO_SENDMAIL "/usr/local/lib/sendmail"
13070 EOF
13071
13072 elif test -f "/usr/local/bin/sendmail"; then
13073     { echo "$as_me:$LINENO: result: /usr/local/bin/sendmail" >&5
13074 echo "${ECHO_T}/usr/local/bin/sendmail" >&6; }
13075     cat >>confdefs.h <<\EOF
13076 #define _PATH_SUDO_SENDMAIL "/usr/local/bin/sendmail"
13077 EOF
13078
13079 else
13080     { echo "$as_me:$LINENO: result: not found" >&5
13081 echo "${ECHO_T}not found" >&6; }
13082 fi
13083
13084 fi
13085 if test -z "$with_editor"; then
13086     { echo "$as_me:$LINENO: checking for vi" >&5
13087 echo $ECHO_N "checking for vi... $ECHO_C" >&6; }
13088 if test -f "/usr/bin/vi"; then
13089     { echo "$as_me:$LINENO: result: /usr/bin/vi" >&5
13090 echo "${ECHO_T}/usr/bin/vi" >&6; }
13091     cat >>confdefs.h <<\EOF
13092 #define _PATH_VI "/usr/bin/vi"
13093 EOF
13094
13095 elif test -f "/usr/ucb/vi"; then
13096     { echo "$as_me:$LINENO: result: /usr/ucb/vi" >&5
13097 echo "${ECHO_T}/usr/ucb/vi" >&6; }
13098     cat >>confdefs.h <<\EOF
13099 #define _PATH_VI "/usr/ucb/vi"
13100 EOF
13101
13102 elif test -f "/usr/bsd/vi"; then
13103     { echo "$as_me:$LINENO: result: /usr/bsd/vi" >&5
13104 echo "${ECHO_T}/usr/bsd/vi" >&6; }
13105     cat >>confdefs.h <<\EOF
13106 #define _PATH_VI "/usr/bsd/vi"
13107 EOF
13108
13109 elif test -f "/bin/vi"; then
13110     { echo "$as_me:$LINENO: result: /bin/vi" >&5
13111 echo "${ECHO_T}/bin/vi" >&6; }
13112     cat >>confdefs.h <<\EOF
13113 #define _PATH_VI "/bin/vi"
13114 EOF
13115
13116 elif test -f "/usr/local/bin/vi"; then
13117     { echo "$as_me:$LINENO: result: /usr/local/bin/vi" >&5
13118 echo "${ECHO_T}/usr/local/bin/vi" >&6; }
13119     cat >>confdefs.h <<\EOF
13120 #define _PATH_VI "/usr/local/bin/vi"
13121 EOF
13122
13123 else
13124     { echo "$as_me:$LINENO: result: not found" >&5
13125 echo "${ECHO_T}not found" >&6; }
13126 fi
13127
13128 fi
13129 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
13130 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
13131 if test "${ac_cv_header_stdc+set}" = set; then
13132   echo $ECHO_N "(cached) $ECHO_C" >&6
13133 else
13134   cat >conftest.$ac_ext <<_ACEOF
13135 /* confdefs.h.  */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h.  */
13140 #include <stdlib.h>
13141 #include <stdarg.h>
13142 #include <string.h>
13143 #include <float.h>
13144
13145 int
13146 main ()
13147 {
13148
13149   ;
13150   return 0;
13151 }
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (ac_try="$ac_compile"
13155 case "(($ac_try" in
13156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157   *) ac_try_echo=$ac_try;;
13158 esac
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160   (eval "$ac_compile") 2>conftest.er1
13161   ac_status=$?
13162   grep -v '^ *+' conftest.er1 >conftest.err
13163   rm -f conftest.er1
13164   cat conftest.err >&5
13165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166   (exit $ac_status); } && {
13167          test -z "$ac_c_werror_flag" ||
13168          test ! -s conftest.err
13169        } && test -s conftest.$ac_objext; then
13170   ac_cv_header_stdc=yes
13171 else
13172   echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175         ac_cv_header_stdc=no
13176 fi
13177
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179
13180 if test $ac_cv_header_stdc = yes; then
13181   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13182   cat >conftest.$ac_ext <<_ACEOF
13183 /* confdefs.h.  */
13184 _ACEOF
13185 cat confdefs.h >>conftest.$ac_ext
13186 cat >>conftest.$ac_ext <<_ACEOF
13187 /* end confdefs.h.  */
13188 #include <string.h>
13189
13190 _ACEOF
13191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13192   $EGREP "memchr" >/dev/null 2>&1; then
13193   :
13194 else
13195   ac_cv_header_stdc=no
13196 fi
13197 rm -f conftest*
13198
13199 fi
13200
13201 if test $ac_cv_header_stdc = yes; then
13202   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13203   cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h.  */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h.  */
13209 #include <stdlib.h>
13210
13211 _ACEOF
13212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13213   $EGREP "free" >/dev/null 2>&1; then
13214   :
13215 else
13216   ac_cv_header_stdc=no
13217 fi
13218 rm -f conftest*
13219
13220 fi
13221
13222 if test $ac_cv_header_stdc = yes; then
13223   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13224   if test "$cross_compiling" = yes; then
13225   :
13226 else
13227   cat >conftest.$ac_ext <<_ACEOF
13228 /* confdefs.h.  */
13229 _ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h.  */
13233 #include <ctype.h>
13234 #include <stdlib.h>
13235 #if ((' ' & 0x0FF) == 0x020)
13236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13238 #else
13239 # define ISLOWER(c) \
13240                    (('a' <= (c) && (c) <= 'i') \
13241                      || ('j' <= (c) && (c) <= 'r') \
13242                      || ('s' <= (c) && (c) <= 'z'))
13243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13244 #endif
13245
13246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13247 int
13248 main ()
13249 {
13250   int i;
13251   for (i = 0; i < 256; i++)
13252     if (XOR (islower (i), ISLOWER (i))
13253         || toupper (i) != TOUPPER (i))
13254       return 2;
13255   return 0;
13256 }
13257 _ACEOF
13258 rm -f conftest$ac_exeext
13259 if { (ac_try="$ac_link"
13260 case "(($ac_try" in
13261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262   *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265   (eval "$ac_link") 2>&5
13266   ac_status=$?
13267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13269   { (case "(($ac_try" in
13270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13271   *) ac_try_echo=$ac_try;;
13272 esac
13273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13274   (eval "$ac_try") 2>&5
13275   ac_status=$?
13276   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277   (exit $ac_status); }; }; then
13278   :
13279 else
13280   echo "$as_me: program exited with status $ac_status" >&5
13281 echo "$as_me: failed program was:" >&5
13282 sed 's/^/| /' conftest.$ac_ext >&5
13283
13284 ( exit $ac_status )
13285 ac_cv_header_stdc=no
13286 fi
13287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13288 fi
13289
13290
13291 fi
13292 fi
13293 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
13294 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
13295 if test $ac_cv_header_stdc = yes; then
13296
13297 cat >>confdefs.h <<\_ACEOF
13298 #define STDC_HEADERS 1
13299 _ACEOF
13300
13301 fi
13302
13303
13304
13305
13306
13307
13308 ac_header_dirent=no
13309 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13310   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13311 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13312 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13314   echo $ECHO_N "(cached) $ECHO_C" >&6
13315 else
13316   cat >conftest.$ac_ext <<_ACEOF
13317 /* confdefs.h.  */
13318 _ACEOF
13319 cat confdefs.h >>conftest.$ac_ext
13320 cat >>conftest.$ac_ext <<_ACEOF
13321 /* end confdefs.h.  */
13322 #include <sys/types.h>
13323 #include <$ac_hdr>
13324
13325 int
13326 main ()
13327 {
13328 if ((DIR *) 0)
13329 return 0;
13330   ;
13331   return 0;
13332 }
13333 _ACEOF
13334 rm -f conftest.$ac_objext
13335 if { (ac_try="$ac_compile"
13336 case "(($ac_try" in
13337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13338   *) ac_try_echo=$ac_try;;
13339 esac
13340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13341   (eval "$ac_compile") 2>conftest.er1
13342   ac_status=$?
13343   grep -v '^ *+' conftest.er1 >conftest.err
13344   rm -f conftest.er1
13345   cat conftest.err >&5
13346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347   (exit $ac_status); } && {
13348          test -z "$ac_c_werror_flag" ||
13349          test ! -s conftest.err
13350        } && test -s conftest.$ac_objext; then
13351   eval "$as_ac_Header=yes"
13352 else
13353   echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356         eval "$as_ac_Header=no"
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13360 fi
13361 ac_res=`eval echo '${'$as_ac_Header'}'`
13362                { echo "$as_me:$LINENO: result: $ac_res" >&5
13363 echo "${ECHO_T}$ac_res" >&6; }
13364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13365   cat >>confdefs.h <<_ACEOF
13366 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13367 _ACEOF
13368
13369 ac_header_dirent=$ac_hdr; break
13370 fi
13371
13372 done
13373 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13374 if test $ac_header_dirent = dirent.h; then
13375   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13376 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13377 if test "${ac_cv_search_opendir+set}" = set; then
13378   echo $ECHO_N "(cached) $ECHO_C" >&6
13379 else
13380   ac_func_search_save_LIBS=$LIBS
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387
13388 /* Override any GCC internal prototype to avoid an error.
13389    Use char because int might match the return type of a GCC
13390    builtin and then its argument prototype would still apply.  */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char opendir ();
13395 int
13396 main ()
13397 {
13398 return opendir ();
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 for ac_lib in '' dir; do
13404   if test -z "$ac_lib"; then
13405     ac_res="none required"
13406   else
13407     ac_res=-l$ac_lib
13408     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13409   fi
13410   rm -f conftest.$ac_objext conftest$ac_exeext
13411 if { (ac_try="$ac_link"
13412 case "(($ac_try" in
13413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414   *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417   (eval "$ac_link") 2>conftest.er1
13418   ac_status=$?
13419   grep -v '^ *+' conftest.er1 >conftest.err
13420   rm -f conftest.er1
13421   cat conftest.err >&5
13422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423   (exit $ac_status); } && {
13424          test -z "$ac_c_werror_flag" ||
13425          test ! -s conftest.err
13426        } && test -s conftest$ac_exeext &&
13427        $as_test_x conftest$ac_exeext; then
13428   ac_cv_search_opendir=$ac_res
13429 else
13430   echo "$as_me: failed program was:" >&5
13431 sed 's/^/| /' conftest.$ac_ext >&5
13432
13433
13434 fi
13435
13436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13437       conftest$ac_exeext
13438   if test "${ac_cv_search_opendir+set}" = set; then
13439   break
13440 fi
13441 done
13442 if test "${ac_cv_search_opendir+set}" = set; then
13443   :
13444 else
13445   ac_cv_search_opendir=no
13446 fi
13447 rm conftest.$ac_ext
13448 LIBS=$ac_func_search_save_LIBS
13449 fi
13450 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13451 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13452 ac_res=$ac_cv_search_opendir
13453 if test "$ac_res" != no; then
13454   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13455
13456 fi
13457
13458 else
13459   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13460 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13461 if test "${ac_cv_search_opendir+set}" = set; then
13462   echo $ECHO_N "(cached) $ECHO_C" >&6
13463 else
13464   ac_func_search_save_LIBS=$LIBS
13465 cat >conftest.$ac_ext <<_ACEOF
13466 /* confdefs.h.  */
13467 _ACEOF
13468 cat confdefs.h >>conftest.$ac_ext
13469 cat >>conftest.$ac_ext <<_ACEOF
13470 /* end confdefs.h.  */
13471
13472 /* Override any GCC internal prototype to avoid an error.
13473    Use char because int might match the return type of a GCC
13474    builtin and then its argument prototype would still apply.  */
13475 #ifdef __cplusplus
13476 extern "C"
13477 #endif
13478 char opendir ();
13479 int
13480 main ()
13481 {
13482 return opendir ();
13483   ;
13484   return 0;
13485 }
13486 _ACEOF
13487 for ac_lib in '' x; do
13488   if test -z "$ac_lib"; then
13489     ac_res="none required"
13490   else
13491     ac_res=-l$ac_lib
13492     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13493   fi
13494   rm -f conftest.$ac_objext conftest$ac_exeext
13495 if { (ac_try="$ac_link"
13496 case "(($ac_try" in
13497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498   *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501   (eval "$ac_link") 2>conftest.er1
13502   ac_status=$?
13503   grep -v '^ *+' conftest.er1 >conftest.err
13504   rm -f conftest.er1
13505   cat conftest.err >&5
13506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507   (exit $ac_status); } && {
13508          test -z "$ac_c_werror_flag" ||
13509          test ! -s conftest.err
13510        } && test -s conftest$ac_exeext &&
13511        $as_test_x conftest$ac_exeext; then
13512   ac_cv_search_opendir=$ac_res
13513 else
13514   echo "$as_me: failed program was:" >&5
13515 sed 's/^/| /' conftest.$ac_ext >&5
13516
13517
13518 fi
13519
13520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13521       conftest$ac_exeext
13522   if test "${ac_cv_search_opendir+set}" = set; then
13523   break
13524 fi
13525 done
13526 if test "${ac_cv_search_opendir+set}" = set; then
13527   :
13528 else
13529   ac_cv_search_opendir=no
13530 fi
13531 rm conftest.$ac_ext
13532 LIBS=$ac_func_search_save_LIBS
13533 fi
13534 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
13535 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
13536 ac_res=$ac_cv_search_opendir
13537 if test "$ac_res" != no; then
13538   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13539
13540 fi
13541
13542 fi
13543
13544 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
13545 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
13546 if test "${ac_cv_header_time+set}" = set; then
13547   echo $ECHO_N "(cached) $ECHO_C" >&6
13548 else
13549   cat >conftest.$ac_ext <<_ACEOF
13550 /* confdefs.h.  */
13551 _ACEOF
13552 cat confdefs.h >>conftest.$ac_ext
13553 cat >>conftest.$ac_ext <<_ACEOF
13554 /* end confdefs.h.  */
13555 #include <sys/types.h>
13556 #include <sys/time.h>
13557 #include <time.h>
13558
13559 int
13560 main ()
13561 {
13562 if ((struct tm *) 0)
13563 return 0;
13564   ;
13565   return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext
13569 if { (ac_try="$ac_compile"
13570 case "(($ac_try" in
13571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572   *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575   (eval "$ac_compile") 2>conftest.er1
13576   ac_status=$?
13577   grep -v '^ *+' conftest.er1 >conftest.err
13578   rm -f conftest.er1
13579   cat conftest.err >&5
13580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581   (exit $ac_status); } && {
13582          test -z "$ac_c_werror_flag" ||
13583          test ! -s conftest.err
13584        } && test -s conftest.$ac_objext; then
13585   ac_cv_header_time=yes
13586 else
13587   echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13589
13590         ac_cv_header_time=no
13591 fi
13592
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 fi
13595 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
13596 echo "${ECHO_T}$ac_cv_header_time" >&6; }
13597 if test $ac_cv_header_time = yes; then
13598
13599 cat >>confdefs.h <<\_ACEOF
13600 #define TIME_WITH_SYS_TIME 1
13601 _ACEOF
13602
13603 fi
13604
13605
13606
13607
13608
13609
13610
13611
13612 for ac_header in malloc.h paths.h utime.h netgroup.h sys/sockio.h sys/bsdtypes.h sys/select.h
13613 do
13614 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13616   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13617 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13619   echo $ECHO_N "(cached) $ECHO_C" >&6
13620 fi
13621 ac_res=`eval echo '${'$as_ac_Header'}'`
13622                { echo "$as_me:$LINENO: result: $ac_res" >&5
13623 echo "${ECHO_T}$ac_res" >&6; }
13624 else
13625   # Is the header compilable?
13626 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13627 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13628 cat >conftest.$ac_ext <<_ACEOF
13629 /* confdefs.h.  */
13630 _ACEOF
13631 cat confdefs.h >>conftest.$ac_ext
13632 cat >>conftest.$ac_ext <<_ACEOF
13633 /* end confdefs.h.  */
13634 $ac_includes_default
13635 #include <$ac_header>
13636 _ACEOF
13637 rm -f conftest.$ac_objext
13638 if { (ac_try="$ac_compile"
13639 case "(($ac_try" in
13640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13641   *) ac_try_echo=$ac_try;;
13642 esac
13643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13644   (eval "$ac_compile") 2>conftest.er1
13645   ac_status=$?
13646   grep -v '^ *+' conftest.er1 >conftest.err
13647   rm -f conftest.er1
13648   cat conftest.err >&5
13649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13650   (exit $ac_status); } && {
13651          test -z "$ac_c_werror_flag" ||
13652          test ! -s conftest.err
13653        } && test -s conftest.$ac_objext; then
13654   ac_header_compiler=yes
13655 else
13656   echo "$as_me: failed program was:" >&5
13657 sed 's/^/| /' conftest.$ac_ext >&5
13658
13659         ac_header_compiler=no
13660 fi
13661
13662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13663 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13664 echo "${ECHO_T}$ac_header_compiler" >&6; }
13665
13666 # Is the header present?
13667 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13668 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13669 cat >conftest.$ac_ext <<_ACEOF
13670 /* confdefs.h.  */
13671 _ACEOF
13672 cat confdefs.h >>conftest.$ac_ext
13673 cat >>conftest.$ac_ext <<_ACEOF
13674 /* end confdefs.h.  */
13675 #include <$ac_header>
13676 _ACEOF
13677 if { (ac_try="$ac_cpp conftest.$ac_ext"
13678 case "(($ac_try" in
13679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13680   *) ac_try_echo=$ac_try;;
13681 esac
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13684   ac_status=$?
13685   grep -v '^ *+' conftest.er1 >conftest.err
13686   rm -f conftest.er1
13687   cat conftest.err >&5
13688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689   (exit $ac_status); } >/dev/null && {
13690          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13691          test ! -s conftest.err
13692        }; then
13693   ac_header_preproc=yes
13694 else
13695   echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13697
13698   ac_header_preproc=no
13699 fi
13700
13701 rm -f conftest.err conftest.$ac_ext
13702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13703 echo "${ECHO_T}$ac_header_preproc" >&6; }
13704
13705 # So?  What about this header?
13706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13707   yes:no: )
13708     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13710     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13712     ac_header_preproc=yes
13713     ;;
13714   no:yes:* )
13715     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13717     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13718 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13719     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13721     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13722 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13723     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13725     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13727
13728     ;;
13729 esac
13730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733   echo $ECHO_N "(cached) $ECHO_C" >&6
13734 else
13735   eval "$as_ac_Header=\$ac_header_preproc"
13736 fi
13737 ac_res=`eval echo '${'$as_ac_Header'}'`
13738                { echo "$as_me:$LINENO: result: $ac_res" >&5
13739 echo "${ECHO_T}$ac_res" >&6; }
13740
13741 fi
13742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13743   cat >>confdefs.h <<_ACEOF
13744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13745 _ACEOF
13746
13747 fi
13748
13749 done
13750
13751 if test "$OS" != "ultrix"; then
13752     { echo "$as_me:$LINENO: checking POSIX termios" >&5
13753 echo $ECHO_N "checking POSIX termios... $ECHO_C" >&6; }
13754 if test "${ac_cv_sys_posix_termios+set}" = set; then
13755   echo $ECHO_N "(cached) $ECHO_C" >&6
13756 else
13757   cat >conftest.$ac_ext <<_ACEOF
13758 /* confdefs.h.  */
13759 _ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h.  */
13763 #include <sys/types.h>
13764 #include <unistd.h>
13765 #include <termios.h>
13766
13767 int
13768 main ()
13769 {
13770 /* SunOS 4.0.3 has termios.h but not the library calls.  */
13771    tcgetattr(0, 0);
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780   *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783   (eval "$ac_link") 2>conftest.er1
13784   ac_status=$?
13785   grep -v '^ *+' conftest.er1 >conftest.err
13786   rm -f conftest.er1
13787   cat conftest.err >&5
13788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789   (exit $ac_status); } && {
13790          test -z "$ac_c_werror_flag" ||
13791          test ! -s conftest.err
13792        } && test -s conftest$ac_exeext &&
13793        $as_test_x conftest$ac_exeext; then
13794   ac_cv_sys_posix_termios=yes
13795 else
13796   echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799         ac_cv_sys_posix_termios=no
13800 fi
13801
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803       conftest$ac_exeext conftest.$ac_ext
13804 fi
13805 { echo "$as_me:$LINENO: result: $ac_cv_sys_posix_termios" >&5
13806 echo "${ECHO_T}$ac_cv_sys_posix_termios" >&6; }
13807
13808     if test "$ac_cv_sys_posix_termios" = "yes"; then
13809         cat >>confdefs.h <<\_ACEOF
13810 #define HAVE_TERMIOS_H 1
13811 _ACEOF
13812
13813     else
13814
13815 for ac_header in termio.h
13816 do
13817 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13819   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13820 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13821 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13822   echo $ECHO_N "(cached) $ECHO_C" >&6
13823 fi
13824 ac_res=`eval echo '${'$as_ac_Header'}'`
13825                { echo "$as_me:$LINENO: result: $ac_res" >&5
13826 echo "${ECHO_T}$ac_res" >&6; }
13827 else
13828   # Is the header compilable?
13829 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13830 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837 $ac_includes_default
13838 #include <$ac_header>
13839 _ACEOF
13840 rm -f conftest.$ac_objext
13841 if { (ac_try="$ac_compile"
13842 case "(($ac_try" in
13843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13844   *) ac_try_echo=$ac_try;;
13845 esac
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847   (eval "$ac_compile") 2>conftest.er1
13848   ac_status=$?
13849   grep -v '^ *+' conftest.er1 >conftest.err
13850   rm -f conftest.er1
13851   cat conftest.err >&5
13852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853   (exit $ac_status); } && {
13854          test -z "$ac_c_werror_flag" ||
13855          test ! -s conftest.err
13856        } && test -s conftest.$ac_objext; then
13857   ac_header_compiler=yes
13858 else
13859   echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13861
13862         ac_header_compiler=no
13863 fi
13864
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867 echo "${ECHO_T}$ac_header_compiler" >&6; }
13868
13869 # Is the header present?
13870 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13871 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
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 #include <$ac_header>
13879 _ACEOF
13880 if { (ac_try="$ac_cpp conftest.$ac_ext"
13881 case "(($ac_try" in
13882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883   *) ac_try_echo=$ac_try;;
13884 esac
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13887   ac_status=$?
13888   grep -v '^ *+' conftest.er1 >conftest.err
13889   rm -f conftest.er1
13890   cat conftest.err >&5
13891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892   (exit $ac_status); } >/dev/null && {
13893          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13894          test ! -s conftest.err
13895        }; then
13896   ac_header_preproc=yes
13897 else
13898   echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13900
13901   ac_header_preproc=no
13902 fi
13903
13904 rm -f conftest.err conftest.$ac_ext
13905 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13906 echo "${ECHO_T}$ac_header_preproc" >&6; }
13907
13908 # So?  What about this header?
13909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13910   yes:no: )
13911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13915     ac_header_preproc=yes
13916     ;;
13917   no:yes:* )
13918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
13921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
13922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
13925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
13926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13930
13931     ;;
13932 esac
13933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13936   echo $ECHO_N "(cached) $ECHO_C" >&6
13937 else
13938   eval "$as_ac_Header=\$ac_header_preproc"
13939 fi
13940 ac_res=`eval echo '${'$as_ac_Header'}'`
13941                { echo "$as_me:$LINENO: result: $ac_res" >&5
13942 echo "${ECHO_T}$ac_res" >&6; }
13943
13944 fi
13945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13946   cat >>confdefs.h <<_ACEOF
13947 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13948 _ACEOF
13949
13950 fi
13951
13952 done
13953
13954     fi
13955 fi
13956 if test ${with_logincap-'no'} != "no"; then
13957
13958 for ac_header in login_cap.h
13959 do
13960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13962   { echo "$as_me:$LINENO: checking for $ac_header" >&5
13963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13965   echo $ECHO_N "(cached) $ECHO_C" >&6
13966 fi
13967 ac_res=`eval echo '${'$as_ac_Header'}'`
13968                { echo "$as_me:$LINENO: result: $ac_res" >&5
13969 echo "${ECHO_T}$ac_res" >&6; }
13970 else
13971   # Is the header compilable?
13972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13975 /* confdefs.h.  */
13976 _ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h.  */
13980 $ac_includes_default
13981 #include <$ac_header>
13982 _ACEOF
13983 rm -f conftest.$ac_objext
13984 if { (ac_try="$ac_compile"
13985 case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990   (eval "$ac_compile") 2>conftest.er1
13991   ac_status=$?
13992   grep -v '^ *+' conftest.er1 >conftest.err
13993   rm -f conftest.er1
13994   cat conftest.err >&5
13995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13996   (exit $ac_status); } && {
13997          test -z "$ac_c_werror_flag" ||
13998          test ! -s conftest.err
13999        } && test -s conftest.$ac_objext; then
14000   ac_header_compiler=yes
14001 else
14002   echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14004
14005         ac_header_compiler=no
14006 fi
14007
14008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14009 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14010 echo "${ECHO_T}$ac_header_compiler" >&6; }
14011
14012 # Is the header present?
14013 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14014 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14015 cat >conftest.$ac_ext <<_ACEOF
14016 /* confdefs.h.  */
14017 _ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h.  */
14021 #include <$ac_header>
14022 _ACEOF
14023 if { (ac_try="$ac_cpp conftest.$ac_ext"
14024 case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14029   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14030   ac_status=$?
14031   grep -v '^ *+' conftest.er1 >conftest.err
14032   rm -f conftest.er1
14033   cat conftest.err >&5
14034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035   (exit $ac_status); } >/dev/null && {
14036          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14037          test ! -s conftest.err
14038        }; then
14039   ac_header_preproc=yes
14040 else
14041   echo "$as_me: failed program was:" >&5
14042 sed 's/^/| /' conftest.$ac_ext >&5
14043
14044   ac_header_preproc=no
14045 fi
14046
14047 rm -f conftest.err conftest.$ac_ext
14048 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14049 echo "${ECHO_T}$ac_header_preproc" >&6; }
14050
14051 # So?  What about this header?
14052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14053   yes:no: )
14054     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14055 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14056     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14057 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14058     ac_header_preproc=yes
14059     ;;
14060   no:yes:* )
14061     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14062 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14063     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
14064 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
14065     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14066 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14067     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
14068 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
14069     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14070 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14071     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14072 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14073
14074     ;;
14075 esac
14076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14079   echo $ECHO_N "(cached) $ECHO_C" >&6
14080 else
14081   eval "$as_ac_Header=\$ac_header_preproc"
14082 fi
14083 ac_res=`eval echo '${'$as_ac_Header'}'`
14084                { echo "$as_me:$LINENO: result: $ac_res" >&5
14085 echo "${ECHO_T}$ac_res" >&6; }
14086
14087 fi
14088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14089   cat >>confdefs.h <<_ACEOF
14090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14091 _ACEOF
14092  LOGINCAP_USAGE='[-c class|-] '; LCMAN=""
14093         case "$OS" in
14094             freebsd|netbsd)     SUDO_LIBS="${SUDO_LIBS} -lutil"
14095             ;;
14096         esac
14097
14098 fi
14099
14100 done
14101
14102 fi
14103 if test ${with_project-'no'} != "no"; then
14104     if test "${ac_cv_header_project_h+set}" = set; then
14105   { echo "$as_me:$LINENO: checking for project.h" >&5
14106 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14107 if test "${ac_cv_header_project_h+set}" = set; then
14108   echo $ECHO_N "(cached) $ECHO_C" >&6
14109 fi
14110 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14111 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14112 else
14113   # Is the header compilable?
14114 { echo "$as_me:$LINENO: checking project.h usability" >&5
14115 echo $ECHO_N "checking project.h usability... $ECHO_C" >&6; }
14116 cat >conftest.$ac_ext <<_ACEOF
14117 /* confdefs.h.  */
14118 _ACEOF
14119 cat confdefs.h >>conftest.$ac_ext
14120 cat >>conftest.$ac_ext <<_ACEOF
14121 /* end confdefs.h.  */
14122 $ac_includes_default
14123 #include <project.h>
14124 _ACEOF
14125 rm -f conftest.$ac_objext
14126 if { (ac_try="$ac_compile"
14127 case "(($ac_try" in
14128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14129   *) ac_try_echo=$ac_try;;
14130 esac
14131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14132   (eval "$ac_compile") 2>conftest.er1
14133   ac_status=$?
14134   grep -v '^ *+' conftest.er1 >conftest.err
14135   rm -f conftest.er1
14136   cat conftest.err >&5
14137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14138   (exit $ac_status); } && {
14139          test -z "$ac_c_werror_flag" ||
14140          test ! -s conftest.err
14141        } && test -s conftest.$ac_objext; then
14142   ac_header_compiler=yes
14143 else
14144   echo "$as_me: failed program was:" >&5
14145 sed 's/^/| /' conftest.$ac_ext >&5
14146
14147         ac_header_compiler=no
14148 fi
14149
14150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14151 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14152 echo "${ECHO_T}$ac_header_compiler" >&6; }
14153
14154 # Is the header present?
14155 { echo "$as_me:$LINENO: checking project.h presence" >&5
14156 echo $ECHO_N "checking project.h presence... $ECHO_C" >&6; }
14157 cat >conftest.$ac_ext <<_ACEOF
14158 /* confdefs.h.  */
14159 _ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h.  */
14163 #include <project.h>
14164 _ACEOF
14165 if { (ac_try="$ac_cpp conftest.$ac_ext"
14166 case "(($ac_try" in
14167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14168   *) ac_try_echo=$ac_try;;
14169 esac
14170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14172   ac_status=$?
14173   grep -v '^ *+' conftest.er1 >conftest.err
14174   rm -f conftest.er1
14175   cat conftest.err >&5
14176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14177   (exit $ac_status); } >/dev/null && {
14178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14179          test ! -s conftest.err
14180        }; then
14181   ac_header_preproc=yes
14182 else
14183   echo "$as_me: failed program was:" >&5
14184 sed 's/^/| /' conftest.$ac_ext >&5
14185
14186   ac_header_preproc=no
14187 fi
14188
14189 rm -f conftest.err conftest.$ac_ext
14190 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14191 echo "${ECHO_T}$ac_header_preproc" >&6; }
14192
14193 # So?  What about this header?
14194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14195   yes:no: )
14196     { echo "$as_me:$LINENO: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&5
14197 echo "$as_me: WARNING: project.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14198     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the compiler's result" >&5
14199 echo "$as_me: WARNING: project.h: proceeding with the compiler's result" >&2;}
14200     ac_header_preproc=yes
14201     ;;
14202   no:yes:* )
14203     { echo "$as_me:$LINENO: WARNING: project.h: present but cannot be compiled" >&5
14204 echo "$as_me: WARNING: project.h: present but cannot be compiled" >&2;}
14205     { echo "$as_me:$LINENO: WARNING: project.h:     check for missing prerequisite headers?" >&5
14206 echo "$as_me: WARNING: project.h:     check for missing prerequisite headers?" >&2;}
14207     { echo "$as_me:$LINENO: WARNING: project.h: see the Autoconf documentation" >&5
14208 echo "$as_me: WARNING: project.h: see the Autoconf documentation" >&2;}
14209     { echo "$as_me:$LINENO: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&5
14210 echo "$as_me: WARNING: project.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14211     { echo "$as_me:$LINENO: WARNING: project.h: proceeding with the preprocessor's result" >&5
14212 echo "$as_me: WARNING: project.h: proceeding with the preprocessor's result" >&2;}
14213     { echo "$as_me:$LINENO: WARNING: project.h: in the future, the compiler will take precedence" >&5
14214 echo "$as_me: WARNING: project.h: in the future, the compiler will take precedence" >&2;}
14215
14216     ;;
14217 esac
14218 { echo "$as_me:$LINENO: checking for project.h" >&5
14219 echo $ECHO_N "checking for project.h... $ECHO_C" >&6; }
14220 if test "${ac_cv_header_project_h+set}" = set; then
14221   echo $ECHO_N "(cached) $ECHO_C" >&6
14222 else
14223   ac_cv_header_project_h=$ac_header_preproc
14224 fi
14225 { echo "$as_me:$LINENO: result: $ac_cv_header_project_h" >&5
14226 echo "${ECHO_T}$ac_cv_header_project_h" >&6; }
14227
14228 fi
14229 if test $ac_cv_header_project_h = yes; then
14230   cat >>confdefs.h <<\_ACEOF
14231 #define HAVE_PROJECT_H 1
14232 _ACEOF
14233
14234         SUDO_LIBS="${SUDO_LIBS} -lproject"
14235 else
14236   -
14237 fi
14238
14239
14240 fi
14241 { echo "$as_me:$LINENO: checking for mode_t" >&5
14242 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
14243 if test "${ac_cv_type_mode_t+set}" = set; then
14244   echo $ECHO_N "(cached) $ECHO_C" >&6
14245 else
14246   cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h.  */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h.  */
14252 $ac_includes_default
14253 typedef mode_t ac__type_new_;
14254 int
14255 main ()
14256 {
14257 if ((ac__type_new_ *) 0)
14258   return 0;
14259 if (sizeof (ac__type_new_))
14260   return 0;
14261   ;
14262   return 0;
14263 }
14264 _ACEOF
14265 rm -f conftest.$ac_objext
14266 if { (ac_try="$ac_compile"
14267 case "(($ac_try" in
14268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14269   *) ac_try_echo=$ac_try;;
14270 esac
14271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14272   (eval "$ac_compile") 2>conftest.er1
14273   ac_status=$?
14274   grep -v '^ *+' conftest.er1 >conftest.err
14275   rm -f conftest.er1
14276   cat conftest.err >&5
14277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14278   (exit $ac_status); } && {
14279          test -z "$ac_c_werror_flag" ||
14280          test ! -s conftest.err
14281        } && test -s conftest.$ac_objext; then
14282   ac_cv_type_mode_t=yes
14283 else
14284   echo "$as_me: failed program was:" >&5
14285 sed 's/^/| /' conftest.$ac_ext >&5
14286
14287         ac_cv_type_mode_t=no
14288 fi
14289
14290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14291 fi
14292 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
14293 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
14294 if test $ac_cv_type_mode_t = yes; then
14295   :
14296 else
14297
14298 cat >>confdefs.h <<_ACEOF
14299 #define mode_t int
14300 _ACEOF
14301
14302 fi
14303
14304 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
14305 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
14306 if test "${ac_cv_type_uid_t+set}" = set; then
14307   echo $ECHO_N "(cached) $ECHO_C" >&6
14308 else
14309   cat >conftest.$ac_ext <<_ACEOF
14310 /* confdefs.h.  */
14311 _ACEOF
14312 cat confdefs.h >>conftest.$ac_ext
14313 cat >>conftest.$ac_ext <<_ACEOF
14314 /* end confdefs.h.  */
14315 #include <sys/types.h>
14316
14317 _ACEOF
14318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14319   $EGREP "uid_t" >/dev/null 2>&1; then
14320   ac_cv_type_uid_t=yes
14321 else
14322   ac_cv_type_uid_t=no
14323 fi
14324 rm -f conftest*
14325
14326 fi
14327 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
14328 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
14329 if test $ac_cv_type_uid_t = no; then
14330
14331 cat >>confdefs.h <<\_ACEOF
14332 #define uid_t int
14333 _ACEOF
14334
14335
14336 cat >>confdefs.h <<\_ACEOF
14337 #define gid_t int
14338 _ACEOF
14339
14340 fi
14341
14342 { echo "$as_me:$LINENO: checking for __signed char" >&5
14343 echo $ECHO_N "checking for __signed char... $ECHO_C" >&6; }
14344 if test "${ac_cv_type___signed_char+set}" = set; then
14345   echo $ECHO_N "(cached) $ECHO_C" >&6
14346 else
14347   cat >conftest.$ac_ext <<_ACEOF
14348 /* confdefs.h.  */
14349 _ACEOF
14350 cat confdefs.h >>conftest.$ac_ext
14351 cat >>conftest.$ac_ext <<_ACEOF
14352 /* end confdefs.h.  */
14353 $ac_includes_default
14354 typedef __signed char ac__type_new_;
14355 int
14356 main ()
14357 {
14358 if ((ac__type_new_ *) 0)
14359   return 0;
14360 if (sizeof (ac__type_new_))
14361   return 0;
14362   ;
14363   return 0;
14364 }
14365 _ACEOF
14366 rm -f conftest.$ac_objext
14367 if { (ac_try="$ac_compile"
14368 case "(($ac_try" in
14369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370   *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373   (eval "$ac_compile") 2>conftest.er1
14374   ac_status=$?
14375   grep -v '^ *+' conftest.er1 >conftest.err
14376   rm -f conftest.er1
14377   cat conftest.err >&5
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); } && {
14380          test -z "$ac_c_werror_flag" ||
14381          test ! -s conftest.err
14382        } && test -s conftest.$ac_objext; then
14383   ac_cv_type___signed_char=yes
14384 else
14385   echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388         ac_cv_type___signed_char=no
14389 fi
14390
14391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14392 fi
14393 { echo "$as_me:$LINENO: result: $ac_cv_type___signed_char" >&5
14394 echo "${ECHO_T}$ac_cv_type___signed_char" >&6; }
14395 if test $ac_cv_type___signed_char = yes; then
14396   :
14397 else
14398   { echo "$as_me:$LINENO: checking for signed char" >&5
14399 echo $ECHO_N "checking for signed char... $ECHO_C" >&6; }
14400 if test "${ac_cv_type_signed_char+set}" = set; then
14401   echo $ECHO_N "(cached) $ECHO_C" >&6
14402 else
14403   cat >conftest.$ac_ext <<_ACEOF
14404 /* confdefs.h.  */
14405 _ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h.  */
14409 $ac_includes_default
14410 typedef signed char ac__type_new_;
14411 int
14412 main ()
14413 {
14414 if ((ac__type_new_ *) 0)
14415   return 0;
14416 if (sizeof (ac__type_new_))
14417   return 0;
14418   ;
14419   return 0;
14420 }
14421 _ACEOF
14422 rm -f conftest.$ac_objext
14423 if { (ac_try="$ac_compile"
14424 case "(($ac_try" in
14425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426   *) ac_try_echo=$ac_try;;
14427 esac
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429   (eval "$ac_compile") 2>conftest.er1
14430   ac_status=$?
14431   grep -v '^ *+' conftest.er1 >conftest.err
14432   rm -f conftest.er1
14433   cat conftest.err >&5
14434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435   (exit $ac_status); } && {
14436          test -z "$ac_c_werror_flag" ||
14437          test ! -s conftest.err
14438        } && test -s conftest.$ac_objext; then
14439   ac_cv_type_signed_char=yes
14440 else
14441   echo "$as_me: failed program was:" >&5
14442 sed 's/^/| /' conftest.$ac_ext >&5
14443
14444         ac_cv_type_signed_char=no
14445 fi
14446
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14448 fi
14449 { echo "$as_me:$LINENO: result: $ac_cv_type_signed_char" >&5
14450 echo "${ECHO_T}$ac_cv_type_signed_char" >&6; }
14451 if test $ac_cv_type_signed_char = yes; then
14452   cat >>confdefs.h <<\_ACEOF
14453 #define __signed signed
14454 _ACEOF
14455
14456 else
14457   cat >>confdefs.h <<\_ACEOF
14458 #define __signed
14459 _ACEOF
14460
14461 fi
14462
14463 fi
14464
14465 { echo "$as_me:$LINENO: checking for sig_atomic_t" >&5
14466 echo $ECHO_N "checking for sig_atomic_t... $ECHO_C" >&6; }
14467 if test "${ac_cv_type_sig_atomic_t+set}" = set; then
14468   echo $ECHO_N "(cached) $ECHO_C" >&6
14469 else
14470   cat >conftest.$ac_ext <<_ACEOF
14471 /* confdefs.h.  */
14472 _ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h.  */
14476 #include <sys/types.h>
14477 #include <signal.h>
14478
14479 typedef sig_atomic_t ac__type_new_;
14480 int
14481 main ()
14482 {
14483 if ((ac__type_new_ *) 0)
14484   return 0;
14485 if (sizeof (ac__type_new_))
14486   return 0;
14487   ;
14488   return 0;
14489 }
14490 _ACEOF
14491 rm -f conftest.$ac_objext
14492 if { (ac_try="$ac_compile"
14493 case "(($ac_try" in
14494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14495   *) ac_try_echo=$ac_try;;
14496 esac
14497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14498   (eval "$ac_compile") 2>conftest.er1
14499   ac_status=$?
14500   grep -v '^ *+' conftest.er1 >conftest.err
14501   rm -f conftest.er1
14502   cat conftest.err >&5
14503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14504   (exit $ac_status); } && {
14505          test -z "$ac_c_werror_flag" ||
14506          test ! -s conftest.err
14507        } && test -s conftest.$ac_objext; then
14508   ac_cv_type_sig_atomic_t=yes
14509 else
14510   echo "$as_me: failed program was:" >&5
14511 sed 's/^/| /' conftest.$ac_ext >&5
14512
14513         ac_cv_type_sig_atomic_t=no
14514 fi
14515
14516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14517 fi
14518 { echo "$as_me:$LINENO: result: $ac_cv_type_sig_atomic_t" >&5
14519 echo "${ECHO_T}$ac_cv_type_sig_atomic_t" >&6; }
14520 if test $ac_cv_type_sig_atomic_t = yes; then
14521   :
14522 else
14523   cat >>confdefs.h <<\_ACEOF
14524 #define sig_atomic_t int
14525 _ACEOF
14526
14527 fi
14528
14529 { echo "$as_me:$LINENO: checking for sigaction_t" >&5
14530 echo $ECHO_N "checking for sigaction_t... $ECHO_C" >&6; }
14531 if test "${ac_cv_type_sigaction_t+set}" = set; then
14532   echo $ECHO_N "(cached) $ECHO_C" >&6
14533 else
14534   cat >conftest.$ac_ext <<_ACEOF
14535 /* confdefs.h.  */
14536 _ACEOF
14537 cat confdefs.h >>conftest.$ac_ext
14538 cat >>conftest.$ac_ext <<_ACEOF
14539 /* end confdefs.h.  */
14540 #include <sys/types.h>
14541 #include <signal.h>
14542
14543 typedef sigaction_t 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_sigaction_t=yes
14573 else
14574   echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14576
14577         ac_cv_type_sigaction_t=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_sigaction_t" >&5
14583 echo "${ECHO_T}$ac_cv_type_sigaction_t" >&6; }
14584 if test $ac_cv_type_sigaction_t = yes; then
14585
14586 cat >>confdefs.h <<_ACEOF
14587 #define HAVE_SIGACTION_T 1
14588 _ACEOF
14589
14590 cat >>confdefs.h <<\_ACEOF
14591 #define HAVE_SIGACTION_T 1
14592 _ACEOF
14593
14594 fi
14595
14596 { echo "$as_me:$LINENO: checking for struct timespec" >&5
14597 echo $ECHO_N "checking for struct timespec... $ECHO_C" >&6; }
14598 if test "${ac_cv_type_struct_timespec+set}" = set; then
14599   echo $ECHO_N "(cached) $ECHO_C" >&6
14600 else
14601   cat >conftest.$ac_ext <<_ACEOF
14602 /* confdefs.h.  */
14603 _ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h.  */
14607 #include <sys/types.h>
14608 #if TIME_WITH_SYS_TIME
14609 # include <sys/time.h>
14610 #endif
14611 #include <time.h>
14612
14613 typedef struct timespec ac__type_new_;
14614 int
14615 main ()
14616 {
14617 if ((ac__type_new_ *) 0)
14618   return 0;
14619 if (sizeof (ac__type_new_))
14620   return 0;
14621   ;
14622   return 0;
14623 }
14624 _ACEOF
14625 rm -f conftest.$ac_objext
14626 if { (ac_try="$ac_compile"
14627 case "(($ac_try" in
14628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629   *) ac_try_echo=$ac_try;;
14630 esac
14631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632   (eval "$ac_compile") 2>conftest.er1
14633   ac_status=$?
14634   grep -v '^ *+' conftest.er1 >conftest.err
14635   rm -f conftest.er1
14636   cat conftest.err >&5
14637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638   (exit $ac_status); } && {
14639          test -z "$ac_c_werror_flag" ||
14640          test ! -s conftest.err
14641        } && test -s conftest.$ac_objext; then
14642   ac_cv_type_struct_timespec=yes
14643 else
14644   echo "$as_me: failed program was:" >&5
14645 sed 's/^/| /' conftest.$ac_ext >&5
14646
14647         ac_cv_type_struct_timespec=no
14648 fi
14649
14650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14651 fi
14652 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_timespec" >&5
14653 echo "${ECHO_T}$ac_cv_type_struct_timespec" >&6; }
14654 if test $ac_cv_type_struct_timespec = yes; then
14655   cat >>confdefs.h <<\_ACEOF
14656 #define HAVE_TIMESPEC 1
14657 _ACEOF
14658
14659 fi
14660
14661 { echo "$as_me:$LINENO: checking for struct in6_addr" >&5
14662 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6; }
14663 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
14664   echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666   cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h.  */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h.  */
14672 #include <sys/types.h>
14673 #include <netinet/in.h>
14674
14675 typedef struct in6_addr ac__type_new_;
14676 int
14677 main ()
14678 {
14679 if ((ac__type_new_ *) 0)
14680   return 0;
14681 if (sizeof (ac__type_new_))
14682   return 0;
14683   ;
14684   return 0;
14685 }
14686 _ACEOF
14687 rm -f conftest.$ac_objext
14688 if { (ac_try="$ac_compile"
14689 case "(($ac_try" in
14690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14691   *) ac_try_echo=$ac_try;;
14692 esac
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694   (eval "$ac_compile") 2>conftest.er1
14695   ac_status=$?
14696   grep -v '^ *+' conftest.er1 >conftest.err
14697   rm -f conftest.er1
14698   cat conftest.err >&5
14699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700   (exit $ac_status); } && {
14701          test -z "$ac_c_werror_flag" ||
14702          test ! -s conftest.err
14703        } && test -s conftest.$ac_objext; then
14704   ac_cv_type_struct_in6_addr=yes
14705 else
14706   echo "$as_me: failed program was:" >&5
14707 sed 's/^/| /' conftest.$ac_ext >&5
14708
14709         ac_cv_type_struct_in6_addr=no
14710 fi
14711
14712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14713 fi
14714 { echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
14715 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6; }
14716 if test $ac_cv_type_struct_in6_addr = yes; then
14717
14718 cat >>confdefs.h <<_ACEOF
14719 #define HAVE_STRUCT_IN6_ADDR 1
14720 _ACEOF
14721
14722 cat >>confdefs.h <<\_ACEOF
14723 #define HAVE_IN6_ADDR 1
14724 _ACEOF
14725
14726 fi
14727
14728 { echo "$as_me:$LINENO: checking for size_t" >&5
14729 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
14730 if test "${sudo_cv_type_size_t+set}" = set; then
14731   echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733   cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h.  */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h.  */
14739 #include <sys/types.h>
14740 #include <stdio.h>
14741 #if STDC_HEADERS
14742 #include <stdlib.h>
14743 #endif
14744 #if HAVE_UNISTD_H
14745 #include <unistd.h>
14746 #endif
14747 _ACEOF
14748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749   $EGREP "size_t" >/dev/null 2>&1; then
14750   sudo_cv_type_size_t=yes
14751 else
14752   sudo_cv_type_size_t=no
14753 fi
14754 rm -f conftest*
14755
14756 fi
14757 { echo "$as_me:$LINENO: result: $sudo_cv_type_size_t" >&5
14758 echo "${ECHO_T}$sudo_cv_type_size_t" >&6; }
14759 if test $sudo_cv_type_size_t = no; then
14760
14761 cat >>confdefs.h <<\_ACEOF
14762 #define size_t int
14763 _ACEOF
14764
14765 fi
14766
14767 { echo "$as_me:$LINENO: checking for ssize_t" >&5
14768 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
14769 if test "${sudo_cv_type_ssize_t+set}" = set; then
14770   echo $ECHO_N "(cached) $ECHO_C" >&6
14771 else
14772   cat >conftest.$ac_ext <<_ACEOF
14773 /* confdefs.h.  */
14774 _ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h.  */
14778 #include <sys/types.h>
14779 #include <stdio.h>
14780 #if STDC_HEADERS
14781 #include <stdlib.h>
14782 #endif
14783 #if HAVE_UNISTD_H
14784 #include <unistd.h>
14785 #endif
14786 _ACEOF
14787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14788   $EGREP "ssize_t" >/dev/null 2>&1; then
14789   sudo_cv_type_ssize_t=yes
14790 else
14791   sudo_cv_type_ssize_t=no
14792 fi
14793 rm -f conftest*
14794
14795 fi
14796 { echo "$as_me:$LINENO: result: $sudo_cv_type_ssize_t" >&5
14797 echo "${ECHO_T}$sudo_cv_type_ssize_t" >&6; }
14798 if test $sudo_cv_type_ssize_t = no; then
14799
14800 cat >>confdefs.h <<\_ACEOF
14801 #define ssize_t int
14802 _ACEOF
14803
14804 fi
14805
14806 { echo "$as_me:$LINENO: checking for dev_t" >&5
14807 echo $ECHO_N "checking for dev_t... $ECHO_C" >&6; }
14808 if test "${sudo_cv_type_dev_t+set}" = set; then
14809   echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811   cat >conftest.$ac_ext <<_ACEOF
14812 /* confdefs.h.  */
14813 _ACEOF
14814 cat confdefs.h >>conftest.$ac_ext
14815 cat >>conftest.$ac_ext <<_ACEOF
14816 /* end confdefs.h.  */
14817 #include <sys/types.h>
14818 #include <stdio.h>
14819 #if STDC_HEADERS
14820 #include <stdlib.h>
14821 #endif
14822 #if HAVE_UNISTD_H
14823 #include <unistd.h>
14824 #endif
14825 _ACEOF
14826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14827   $EGREP "dev_t" >/dev/null 2>&1; then
14828   sudo_cv_type_dev_t=yes
14829 else
14830   sudo_cv_type_dev_t=no
14831 fi
14832 rm -f conftest*
14833
14834 fi
14835 { echo "$as_me:$LINENO: result: $sudo_cv_type_dev_t" >&5
14836 echo "${ECHO_T}$sudo_cv_type_dev_t" >&6; }
14837 if test $sudo_cv_type_dev_t = no; then
14838
14839 cat >>confdefs.h <<\_ACEOF
14840 #define dev_t int
14841 _ACEOF
14842
14843 fi
14844
14845 { echo "$as_me:$LINENO: checking for ino_t" >&5
14846 echo $ECHO_N "checking for ino_t... $ECHO_C" >&6; }
14847 if test "${sudo_cv_type_ino_t+set}" = set; then
14848   echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850   cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h.  */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h.  */
14856 #include <sys/types.h>
14857 #include <stdio.h>
14858 #if STDC_HEADERS
14859 #include <stdlib.h>
14860 #endif
14861 #if HAVE_UNISTD_H
14862 #include <unistd.h>
14863 #endif
14864 _ACEOF
14865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14866   $EGREP "ino_t" >/dev/null 2>&1; then
14867   sudo_cv_type_ino_t=yes
14868 else
14869   sudo_cv_type_ino_t=no
14870 fi
14871 rm -f conftest*
14872
14873 fi
14874 { echo "$as_me:$LINENO: result: $sudo_cv_type_ino_t" >&5
14875 echo "${ECHO_T}$sudo_cv_type_ino_t" >&6; }
14876 if test $sudo_cv_type_ino_t = no; then
14877
14878 cat >>confdefs.h <<\_ACEOF
14879 #define ino_t unsigned int
14880 _ACEOF
14881
14882 fi
14883
14884
14885 { echo "$as_me:$LINENO: checking max length of uid_t" >&5
14886 echo $ECHO_N "checking max length of uid_t... $ECHO_C" >&6; }
14887 if test "${sudo_cv_uid_t_len+set}" = set; then
14888   echo $ECHO_N "(cached) $ECHO_C" >&6
14889 else
14890   rm -f conftestdata
14891 if test "$cross_compiling" = yes; then
14892   { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14893 See \`config.log' for more details." >&5
14894 echo "$as_me: error: cannot run test program while cross compiling
14895 See \`config.log' for more details." >&2;}
14896    { (exit 1); exit 1; }; }
14897 else
14898   cat >conftest.$ac_ext <<_ACEOF
14899 /* confdefs.h.  */
14900 _ACEOF
14901 cat confdefs.h >>conftest.$ac_ext
14902 cat >>conftest.$ac_ext <<_ACEOF
14903 /* end confdefs.h.  */
14904 #include <stdio.h>
14905 #include <pwd.h>
14906 #include <limits.h>
14907 #include <sys/types.h>
14908 #include <sys/param.h>
14909 main() {
14910   FILE *f;
14911   char b[1024];
14912   uid_t u = (uid_t) -1;
14913
14914   if ((f = fopen("conftestdata", "w")) == NULL)
14915     exit(1);
14916
14917   (void) sprintf(b, "%lu", (unsigned long) u);
14918   (void) fprintf(f, "%d\n", strlen(b));
14919   (void) fclose(f);
14920   exit(0);
14921 }
14922 _ACEOF
14923 rm -f conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927   *) ac_try_echo=$ac_try;;
14928 esac
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930   (eval "$ac_link") 2>&5
14931   ac_status=$?
14932   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934   { (case "(($ac_try" in
14935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936   *) ac_try_echo=$ac_try;;
14937 esac
14938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14939   (eval "$ac_try") 2>&5
14940   ac_status=$?
14941   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14942   (exit $ac_status); }; }; then
14943   sudo_cv_uid_t_len=`cat conftestdata`
14944 else
14945   echo "$as_me: program exited with status $ac_status" >&5
14946 echo "$as_me: failed program was:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14948
14949 ( exit $ac_status )
14950 sudo_cv_uid_t_len=10
14951 fi
14952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14953 fi
14954
14955
14956
14957 fi
14958
14959 rm -f conftestdata
14960 { echo "$as_me:$LINENO: result: $sudo_cv_uid_t_len" >&5
14961 echo "${ECHO_T}$sudo_cv_uid_t_len" >&6; }
14962
14963 cat >>confdefs.h <<_ACEOF
14964 #define MAX_UID_T_LEN $sudo_cv_uid_t_len
14965 _ACEOF
14966
14967
14968 { echo "$as_me:$LINENO: checking for long long" >&5
14969 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
14970 if test "${ac_cv_type_long_long+set}" = set; then
14971   echo $ECHO_N "(cached) $ECHO_C" >&6
14972 else
14973   cat >conftest.$ac_ext <<_ACEOF
14974 /* confdefs.h.  */
14975 _ACEOF
14976 cat confdefs.h >>conftest.$ac_ext
14977 cat >>conftest.$ac_ext <<_ACEOF
14978 /* end confdefs.h.  */
14979 $ac_includes_default
14980 typedef long long ac__type_new_;
14981 int
14982 main ()
14983 {
14984 if ((ac__type_new_ *) 0)
14985   return 0;
14986 if (sizeof (ac__type_new_))
14987   return 0;
14988   ;
14989   return 0;
14990 }
14991 _ACEOF
14992 rm -f conftest.$ac_objext
14993 if { (ac_try="$ac_compile"
14994 case "(($ac_try" in
14995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14996   *) ac_try_echo=$ac_try;;
14997 esac
14998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14999   (eval "$ac_compile") 2>conftest.er1
15000   ac_status=$?
15001   grep -v '^ *+' conftest.er1 >conftest.err
15002   rm -f conftest.er1
15003   cat conftest.err >&5
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); } && {
15006          test -z "$ac_c_werror_flag" ||
15007          test ! -s conftest.err
15008        } && test -s conftest.$ac_objext; then
15009   ac_cv_type_long_long=yes
15010 else
15011   echo "$as_me: failed program was:" >&5
15012 sed 's/^/| /' conftest.$ac_ext >&5
15013
15014         ac_cv_type_long_long=no
15015 fi
15016
15017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15018 fi
15019 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
15020 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
15021 if test $ac_cv_type_long_long = yes; then
15022
15023 cat >>confdefs.h <<_ACEOF
15024 #define HAVE_LONG_LONG 1
15025 _ACEOF
15026
15027
15028 cat >>confdefs.h <<\_ACEOF
15029 #define HAVE_LONG_LONG 1
15030 _ACEOF
15031
15032 { echo "$as_me:$LINENO: checking for long and long long equivalence" >&5
15033 echo $ECHO_N "checking for long and long long equivalence... $ECHO_C" >&6; }
15034 if test "${sudo_cv_type_long_is_quad+set}" = set; then
15035   echo $ECHO_N "(cached) $ECHO_C" >&6
15036 else
15037   if test "$cross_compiling" = yes; then
15038   sudo_cv_type_long_is_quad=no
15039 else
15040   cat >conftest.$ac_ext <<_ACEOF
15041 /* confdefs.h.  */
15042 _ACEOF
15043 cat confdefs.h >>conftest.$ac_ext
15044 cat >>conftest.$ac_ext <<_ACEOF
15045 /* end confdefs.h.  */
15046
15047 main() {
15048 if (sizeof(long long) == sizeof(long)) exit(0);
15049 else exit(1);
15050 }
15051 _ACEOF
15052 rm -f conftest$ac_exeext
15053 if { (ac_try="$ac_link"
15054 case "(($ac_try" in
15055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15056   *) ac_try_echo=$ac_try;;
15057 esac
15058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15059   (eval "$ac_link") 2>&5
15060   ac_status=$?
15061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15062   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15063   { (case "(($ac_try" in
15064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065   *) ac_try_echo=$ac_try;;
15066 esac
15067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15068   (eval "$ac_try") 2>&5
15069   ac_status=$?
15070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15071   (exit $ac_status); }; }; then
15072   sudo_cv_type_long_is_quad=yes
15073 else
15074   echo "$as_me: program exited with status $ac_status" >&5
15075 echo "$as_me: failed program was:" >&5
15076 sed 's/^/| /' conftest.$ac_ext >&5
15077
15078 ( exit $ac_status )
15079 sudo_cv_type_long_is_quad=no
15080 fi
15081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15082 fi
15083
15084
15085 rm -f core core.* *.core
15086 fi
15087 { echo "$as_me:$LINENO: result: $sudo_cv_type_long_is_quad" >&5
15088 echo "${ECHO_T}$sudo_cv_type_long_is_quad" >&6; }
15089 if test $sudo_cv_type_long_is_quad = yes; then
15090
15091 cat >>confdefs.h <<\_ACEOF
15092 #define LONG_IS_QUAD 1
15093 _ACEOF
15094
15095 fi
15096
15097 fi
15098
15099 { echo "$as_me:$LINENO: checking for sa_len field in struct sockaddr" >&5
15100 echo $ECHO_N "checking for sa_len field in struct sockaddr... $ECHO_C" >&6; }
15101 if test "${sudo_cv_sock_sa_len+set}" = set; then
15102   echo $ECHO_N "(cached) $ECHO_C" >&6
15103 else
15104   if test "$cross_compiling" = yes; then
15105   sudo_cv_sock_sa_len=no
15106 else
15107   cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h.  */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h.  */
15113 #include <sys/types.h>
15114 #include <sys/socket.h>
15115 main() {
15116 struct sockaddr s;
15117 s.sa_len = 0;
15118 exit(0);
15119 }
15120 _ACEOF
15121 rm -f conftest$ac_exeext
15122 if { (ac_try="$ac_link"
15123 case "(($ac_try" in
15124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15125   *) ac_try_echo=$ac_try;;
15126 esac
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128   (eval "$ac_link") 2>&5
15129   ac_status=$?
15130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15132   { (case "(($ac_try" in
15133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134   *) ac_try_echo=$ac_try;;
15135 esac
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137   (eval "$ac_try") 2>&5
15138   ac_status=$?
15139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15140   (exit $ac_status); }; }; then
15141   sudo_cv_sock_sa_len=yes
15142 else
15143   echo "$as_me: program exited with status $ac_status" >&5
15144 echo "$as_me: failed program was:" >&5
15145 sed 's/^/| /' conftest.$ac_ext >&5
15146
15147 ( exit $ac_status )
15148 sudo_cv_sock_sa_len=no
15149 fi
15150 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15151 fi
15152
15153
15154 rm -f core core.* *.core
15155 fi
15156 { echo "$as_me:$LINENO: result: $sudo_cv_sock_sa_len" >&5
15157 echo "${ECHO_T}$sudo_cv_sock_sa_len" >&6; }
15158 if test $sudo_cv_sock_sa_len = yes; then
15159
15160 cat >>confdefs.h <<\_ACEOF
15161 #define HAVE_SA_LEN 1
15162 _ACEOF
15163
15164 fi
15165
15166 case "$DEFS" in
15167     *"RETSIGTYPE"*)     ;;
15168     *)                  { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
15169 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
15170 if test "${ac_cv_type_signal+set}" = set; then
15171   echo $ECHO_N "(cached) $ECHO_C" >&6
15172 else
15173   cat >conftest.$ac_ext <<_ACEOF
15174 /* confdefs.h.  */
15175 _ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h.  */
15179 #include <sys/types.h>
15180 #include <signal.h>
15181
15182 int
15183 main ()
15184 {
15185 return *(signal (0, 0)) (0) == 1;
15186   ;
15187   return 0;
15188 }
15189 _ACEOF
15190 rm -f conftest.$ac_objext
15191 if { (ac_try="$ac_compile"
15192 case "(($ac_try" in
15193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194   *) ac_try_echo=$ac_try;;
15195 esac
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197   (eval "$ac_compile") 2>conftest.er1
15198   ac_status=$?
15199   grep -v '^ *+' conftest.er1 >conftest.err
15200   rm -f conftest.er1
15201   cat conftest.err >&5
15202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203   (exit $ac_status); } && {
15204          test -z "$ac_c_werror_flag" ||
15205          test ! -s conftest.err
15206        } && test -s conftest.$ac_objext; then
15207   ac_cv_type_signal=int
15208 else
15209   echo "$as_me: failed program was:" >&5
15210 sed 's/^/| /' conftest.$ac_ext >&5
15211
15212         ac_cv_type_signal=void
15213 fi
15214
15215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15216 fi
15217 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
15218 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
15219
15220 cat >>confdefs.h <<_ACEOF
15221 #define RETSIGTYPE $ac_cv_type_signal
15222 _ACEOF
15223
15224 ;;
15225 esac
15226 { echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5
15227 echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6; }
15228 if test "${ac_cv_type_getgroups+set}" = set; then
15229   echo $ECHO_N "(cached) $ECHO_C" >&6
15230 else
15231   if test "$cross_compiling" = yes; then
15232   ac_cv_type_getgroups=cross
15233 else
15234   cat >conftest.$ac_ext <<_ACEOF
15235 /* confdefs.h.  */
15236 _ACEOF
15237 cat confdefs.h >>conftest.$ac_ext
15238 cat >>conftest.$ac_ext <<_ACEOF
15239 /* end confdefs.h.  */
15240 /* Thanks to Mike Rendell for this test.  */
15241 $ac_includes_default
15242 #define NGID 256
15243 #undef MAX
15244 #define MAX(x, y) ((x) > (y) ? (x) : (y))
15245
15246 int
15247 main ()
15248 {
15249   gid_t gidset[NGID];
15250   int i, n;
15251   union { gid_t gval; long int lval; }  val;
15252
15253   val.lval = -1;
15254   for (i = 0; i < NGID; i++)
15255     gidset[i] = val.gval;
15256   n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1,
15257                  gidset);
15258   /* Exit non-zero if getgroups seems to require an array of ints.  This
15259      happens when gid_t is short int but getgroups modifies an array
15260      of ints.  */
15261   return n > 0 && gidset[n] != val.gval;
15262 }
15263 _ACEOF
15264 rm -f conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268   *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271   (eval "$ac_link") 2>&5
15272   ac_status=$?
15273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15275   { (case "(($ac_try" in
15276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15277   *) ac_try_echo=$ac_try;;
15278 esac
15279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15280   (eval "$ac_try") 2>&5
15281   ac_status=$?
15282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283   (exit $ac_status); }; }; then
15284   ac_cv_type_getgroups=gid_t
15285 else
15286   echo "$as_me: program exited with status $ac_status" >&5
15287 echo "$as_me: failed program was:" >&5
15288 sed 's/^/| /' conftest.$ac_ext >&5
15289
15290 ( exit $ac_status )
15291 ac_cv_type_getgroups=int
15292 fi
15293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15294 fi
15295
15296
15297 if test $ac_cv_type_getgroups = cross; then
15298         cat >conftest.$ac_ext <<_ACEOF
15299 /* confdefs.h.  */
15300 _ACEOF
15301 cat confdefs.h >>conftest.$ac_ext
15302 cat >>conftest.$ac_ext <<_ACEOF
15303 /* end confdefs.h.  */
15304 #include <unistd.h>
15305
15306 _ACEOF
15307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15308   $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then
15309   ac_cv_type_getgroups=gid_t
15310 else
15311   ac_cv_type_getgroups=int
15312 fi
15313 rm -f conftest*
15314
15315 fi
15316 fi
15317 { echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5
15318 echo "${ECHO_T}$ac_cv_type_getgroups" >&6; }
15319
15320 cat >>confdefs.h <<_ACEOF
15321 #define GETGROUPS_T $ac_cv_type_getgroups
15322 _ACEOF
15323
15324
15325 { echo "$as_me:$LINENO: checking for size_t" >&5
15326 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
15327 if test "${ac_cv_type_size_t+set}" = set; then
15328   echo $ECHO_N "(cached) $ECHO_C" >&6
15329 else
15330   cat >conftest.$ac_ext <<_ACEOF
15331 /* confdefs.h.  */
15332 _ACEOF
15333 cat confdefs.h >>conftest.$ac_ext
15334 cat >>conftest.$ac_ext <<_ACEOF
15335 /* end confdefs.h.  */
15336 $ac_includes_default
15337 typedef size_t ac__type_new_;
15338 int
15339 main ()
15340 {
15341 if ((ac__type_new_ *) 0)
15342   return 0;
15343 if (sizeof (ac__type_new_))
15344   return 0;
15345   ;
15346   return 0;
15347 }
15348 _ACEOF
15349 rm -f conftest.$ac_objext
15350 if { (ac_try="$ac_compile"
15351 case "(($ac_try" in
15352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15353   *) ac_try_echo=$ac_try;;
15354 esac
15355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15356   (eval "$ac_compile") 2>conftest.er1
15357   ac_status=$?
15358   grep -v '^ *+' conftest.er1 >conftest.err
15359   rm -f conftest.er1
15360   cat conftest.err >&5
15361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362   (exit $ac_status); } && {
15363          test -z "$ac_c_werror_flag" ||
15364          test ! -s conftest.err
15365        } && test -s conftest.$ac_objext; then
15366   ac_cv_type_size_t=yes
15367 else
15368   echo "$as_me: failed program was:" >&5
15369 sed 's/^/| /' conftest.$ac_ext >&5
15370
15371         ac_cv_type_size_t=no
15372 fi
15373
15374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15375 fi
15376 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
15377 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
15378 if test $ac_cv_type_size_t = yes; then
15379   :
15380 else
15381
15382 cat >>confdefs.h <<_ACEOF
15383 #define size_t unsigned int
15384 _ACEOF
15385
15386 fi
15387
15388 { echo "$as_me:$LINENO: checking for getgroups" >&5
15389 echo $ECHO_N "checking for getgroups... $ECHO_C" >&6; }
15390 if test "${ac_cv_func_getgroups+set}" = set; then
15391   echo $ECHO_N "(cached) $ECHO_C" >&6
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399 /* Define getgroups to an innocuous variant, in case <limits.h> declares getgroups.
15400    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15401 #define getgroups innocuous_getgroups
15402
15403 /* System header to define __stub macros and hopefully few prototypes,
15404     which can conflict with char getgroups (); below.
15405     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15406     <limits.h> exists even on freestanding compilers.  */
15407
15408 #ifdef __STDC__
15409 # include <limits.h>
15410 #else
15411 # include <assert.h>
15412 #endif
15413
15414 #undef getgroups
15415
15416 /* Override any GCC internal prototype to avoid an error.
15417    Use char because int might match the return type of a GCC
15418    builtin and then its argument prototype would still apply.  */
15419 #ifdef __cplusplus
15420 extern "C"
15421 #endif
15422 char getgroups ();
15423 /* The GNU C library defines this for functions which it implements
15424     to always fail with ENOSYS.  Some functions are actually named
15425     something starting with __ and the normal name is an alias.  */
15426 #if defined __stub_getgroups || defined __stub___getgroups
15427 choke me
15428 #endif
15429
15430 int
15431 main ()
15432 {
15433 return getgroups ();
15434   ;
15435   return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442   *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445   (eval "$ac_link") 2>conftest.er1
15446   ac_status=$?
15447   grep -v '^ *+' conftest.er1 >conftest.err
15448   rm -f conftest.er1
15449   cat conftest.err >&5
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); } && {
15452          test -z "$ac_c_werror_flag" ||
15453          test ! -s conftest.err
15454        } && test -s conftest$ac_exeext &&
15455        $as_test_x conftest$ac_exeext; then
15456   ac_cv_func_getgroups=yes
15457 else
15458   echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461         ac_cv_func_getgroups=no
15462 fi
15463
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465       conftest$ac_exeext conftest.$ac_ext
15466 fi
15467 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups" >&5
15468 echo "${ECHO_T}$ac_cv_func_getgroups" >&6; }
15469
15470
15471 # If we don't yet have getgroups, see if it's in -lbsd.
15472 # This is reported to be necessary on an ITOS 3000WS running SEIUX 3.1.
15473 ac_save_LIBS=$LIBS
15474 if test $ac_cv_func_getgroups = no; then
15475   { echo "$as_me:$LINENO: checking for getgroups in -lbsd" >&5
15476 echo $ECHO_N "checking for getgroups in -lbsd... $ECHO_C" >&6; }
15477 if test "${ac_cv_lib_bsd_getgroups+set}" = set; then
15478   echo $ECHO_N "(cached) $ECHO_C" >&6
15479 else
15480   ac_check_lib_save_LIBS=$LIBS
15481 LIBS="-lbsd  $LIBS"
15482 cat >conftest.$ac_ext <<_ACEOF
15483 /* confdefs.h.  */
15484 _ACEOF
15485 cat confdefs.h >>conftest.$ac_ext
15486 cat >>conftest.$ac_ext <<_ACEOF
15487 /* end confdefs.h.  */
15488
15489 /* Override any GCC internal prototype to avoid an error.
15490    Use char because int might match the return type of a GCC
15491    builtin and then its argument prototype would still apply.  */
15492 #ifdef __cplusplus
15493 extern "C"
15494 #endif
15495 char getgroups ();
15496 int
15497 main ()
15498 {
15499 return getgroups ();
15500   ;
15501   return 0;
15502 }
15503 _ACEOF
15504 rm -f conftest.$ac_objext conftest$ac_exeext
15505 if { (ac_try="$ac_link"
15506 case "(($ac_try" in
15507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508   *) ac_try_echo=$ac_try;;
15509 esac
15510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15511   (eval "$ac_link") 2>conftest.er1
15512   ac_status=$?
15513   grep -v '^ *+' conftest.er1 >conftest.err
15514   rm -f conftest.er1
15515   cat conftest.err >&5
15516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15517   (exit $ac_status); } && {
15518          test -z "$ac_c_werror_flag" ||
15519          test ! -s conftest.err
15520        } && test -s conftest$ac_exeext &&
15521        $as_test_x conftest$ac_exeext; then
15522   ac_cv_lib_bsd_getgroups=yes
15523 else
15524   echo "$as_me: failed program was:" >&5
15525 sed 's/^/| /' conftest.$ac_ext >&5
15526
15527         ac_cv_lib_bsd_getgroups=no
15528 fi
15529
15530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15531       conftest$ac_exeext conftest.$ac_ext
15532 LIBS=$ac_check_lib_save_LIBS
15533 fi
15534 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_getgroups" >&5
15535 echo "${ECHO_T}$ac_cv_lib_bsd_getgroups" >&6; }
15536 if test $ac_cv_lib_bsd_getgroups = yes; then
15537   GETGROUPS_LIB=-lbsd
15538 fi
15539
15540 fi
15541
15542 # Run the program to test the functionality of the system-supplied
15543 # getgroups function only if there is such a function.
15544 if test $ac_cv_func_getgroups = yes; then
15545   { echo "$as_me:$LINENO: checking for working getgroups" >&5
15546 echo $ECHO_N "checking for working getgroups... $ECHO_C" >&6; }
15547 if test "${ac_cv_func_getgroups_works+set}" = set; then
15548   echo $ECHO_N "(cached) $ECHO_C" >&6
15549 else
15550   if test "$cross_compiling" = yes; then
15551   ac_cv_func_getgroups_works=no
15552 else
15553   cat >conftest.$ac_ext <<_ACEOF
15554 /* confdefs.h.  */
15555 _ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h.  */
15559 $ac_includes_default
15560 int
15561 main ()
15562 {
15563 /* On Ultrix 4.3, getgroups (0, 0) always fails.  */
15564        return getgroups (0, 0) == -1;
15565   ;
15566   return 0;
15567 }
15568 _ACEOF
15569 rm -f conftest$ac_exeext
15570 if { (ac_try="$ac_link"
15571 case "(($ac_try" in
15572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15573   *) ac_try_echo=$ac_try;;
15574 esac
15575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15576   (eval "$ac_link") 2>&5
15577   ac_status=$?
15578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15580   { (case "(($ac_try" in
15581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582   *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585   (eval "$ac_try") 2>&5
15586   ac_status=$?
15587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15588   (exit $ac_status); }; }; then
15589   ac_cv_func_getgroups_works=yes
15590 else
15591   echo "$as_me: program exited with status $ac_status" >&5
15592 echo "$as_me: failed program was:" >&5
15593 sed 's/^/| /' conftest.$ac_ext >&5
15594
15595 ( exit $ac_status )
15596 ac_cv_func_getgroups_works=no
15597 fi
15598 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15599 fi
15600
15601
15602
15603 fi
15604 { echo "$as_me:$LINENO: result: $ac_cv_func_getgroups_works" >&5
15605 echo "${ECHO_T}$ac_cv_func_getgroups_works" >&6; }
15606   if test $ac_cv_func_getgroups_works = yes; then
15607
15608 cat >>confdefs.h <<\_ACEOF
15609 #define HAVE_GETGROUPS 1
15610 _ACEOF
15611
15612   fi
15613 fi
15614 LIBS=$ac_save_LIBS
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632 for ac_func in strchr strrchr memchr memcpy memset sysconf tzset \
15633                strftime setrlimit initgroups getgroups fstat gettimeofday \
15634                setlocale getaddrinfo setsid
15635 do
15636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15640   echo $ECHO_N "(cached) $ECHO_C" >&6
15641 else
15642   cat >conftest.$ac_ext <<_ACEOF
15643 /* confdefs.h.  */
15644 _ACEOF
15645 cat confdefs.h >>conftest.$ac_ext
15646 cat >>conftest.$ac_ext <<_ACEOF
15647 /* end confdefs.h.  */
15648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15650 #define $ac_func innocuous_$ac_func
15651
15652 /* System header to define __stub macros and hopefully few prototypes,
15653     which can conflict with char $ac_func (); below.
15654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15655     <limits.h> exists even on freestanding compilers.  */
15656
15657 #ifdef __STDC__
15658 # include <limits.h>
15659 #else
15660 # include <assert.h>
15661 #endif
15662
15663 #undef $ac_func
15664
15665 /* Override any GCC internal prototype to avoid an error.
15666    Use char because int might match the return type of a GCC
15667    builtin and then its argument prototype would still apply.  */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char $ac_func ();
15672 /* The GNU C library defines this for functions which it implements
15673     to always fail with ENOSYS.  Some functions are actually named
15674     something starting with __ and the normal name is an alias.  */
15675 #if defined __stub_$ac_func || defined __stub___$ac_func
15676 choke me
15677 #endif
15678
15679 int
15680 main ()
15681 {
15682 return $ac_func ();
15683   ;
15684   return 0;
15685 }
15686 _ACEOF
15687 rm -f conftest.$ac_objext conftest$ac_exeext
15688 if { (ac_try="$ac_link"
15689 case "(($ac_try" in
15690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15691   *) ac_try_echo=$ac_try;;
15692 esac
15693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15694   (eval "$ac_link") 2>conftest.er1
15695   ac_status=$?
15696   grep -v '^ *+' conftest.er1 >conftest.err
15697   rm -f conftest.er1
15698   cat conftest.err >&5
15699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15700   (exit $ac_status); } && {
15701          test -z "$ac_c_werror_flag" ||
15702          test ! -s conftest.err
15703        } && test -s conftest$ac_exeext &&
15704        $as_test_x conftest$ac_exeext; then
15705   eval "$as_ac_var=yes"
15706 else
15707   echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15709
15710         eval "$as_ac_var=no"
15711 fi
15712
15713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15714       conftest$ac_exeext conftest.$ac_ext
15715 fi
15716 ac_res=`eval echo '${'$as_ac_var'}'`
15717                { echo "$as_me:$LINENO: result: $ac_res" >&5
15718 echo "${ECHO_T}$ac_res" >&6; }
15719 if test `eval echo '${'$as_ac_var'}'` = yes; then
15720   cat >>confdefs.h <<_ACEOF
15721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15722 _ACEOF
15723
15724 fi
15725 done
15726
15727 if test -z "$SKIP_SETRESUID"; then
15728
15729 for ac_func in setresuid
15730 do
15731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15735   echo $ECHO_N "(cached) $ECHO_C" >&6
15736 else
15737   cat >conftest.$ac_ext <<_ACEOF
15738 /* confdefs.h.  */
15739 _ACEOF
15740 cat confdefs.h >>conftest.$ac_ext
15741 cat >>conftest.$ac_ext <<_ACEOF
15742 /* end confdefs.h.  */
15743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15744    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15745 #define $ac_func innocuous_$ac_func
15746
15747 /* System header to define __stub macros and hopefully few prototypes,
15748     which can conflict with char $ac_func (); below.
15749     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15750     <limits.h> exists even on freestanding compilers.  */
15751
15752 #ifdef __STDC__
15753 # include <limits.h>
15754 #else
15755 # include <assert.h>
15756 #endif
15757
15758 #undef $ac_func
15759
15760 /* Override any GCC internal prototype to avoid an error.
15761    Use char because int might match the return type of a GCC
15762    builtin and then its argument prototype would still apply.  */
15763 #ifdef __cplusplus
15764 extern "C"
15765 #endif
15766 char $ac_func ();
15767 /* The GNU C library defines this for functions which it implements
15768     to always fail with ENOSYS.  Some functions are actually named
15769     something starting with __ and the normal name is an alias.  */
15770 #if defined __stub_$ac_func || defined __stub___$ac_func
15771 choke me
15772 #endif
15773
15774 int
15775 main ()
15776 {
15777 return $ac_func ();
15778   ;
15779   return 0;
15780 }
15781 _ACEOF
15782 rm -f conftest.$ac_objext conftest$ac_exeext
15783 if { (ac_try="$ac_link"
15784 case "(($ac_try" in
15785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15786   *) ac_try_echo=$ac_try;;
15787 esac
15788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15789   (eval "$ac_link") 2>conftest.er1
15790   ac_status=$?
15791   grep -v '^ *+' conftest.er1 >conftest.err
15792   rm -f conftest.er1
15793   cat conftest.err >&5
15794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15795   (exit $ac_status); } && {
15796          test -z "$ac_c_werror_flag" ||
15797          test ! -s conftest.err
15798        } && test -s conftest$ac_exeext &&
15799        $as_test_x conftest$ac_exeext; then
15800   eval "$as_ac_var=yes"
15801 else
15802   echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15804
15805         eval "$as_ac_var=no"
15806 fi
15807
15808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15809       conftest$ac_exeext conftest.$ac_ext
15810 fi
15811 ac_res=`eval echo '${'$as_ac_var'}'`
15812                { echo "$as_me:$LINENO: result: $ac_res" >&5
15813 echo "${ECHO_T}$ac_res" >&6; }
15814 if test `eval echo '${'$as_ac_var'}'` = yes; then
15815   cat >>confdefs.h <<_ACEOF
15816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15817 _ACEOF
15818  SKIP_SETREUID=yes
15819 fi
15820 done
15821
15822 fi
15823 if test -z "$SKIP_SETREUID"; then
15824
15825 for ac_func in setreuid
15826 do
15827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15831   echo $ECHO_N "(cached) $ECHO_C" >&6
15832 else
15833   cat >conftest.$ac_ext <<_ACEOF
15834 /* confdefs.h.  */
15835 _ACEOF
15836 cat confdefs.h >>conftest.$ac_ext
15837 cat >>conftest.$ac_ext <<_ACEOF
15838 /* end confdefs.h.  */
15839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15840    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15841 #define $ac_func innocuous_$ac_func
15842
15843 /* System header to define __stub macros and hopefully few prototypes,
15844     which can conflict with char $ac_func (); below.
15845     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15846     <limits.h> exists even on freestanding compilers.  */
15847
15848 #ifdef __STDC__
15849 # include <limits.h>
15850 #else
15851 # include <assert.h>
15852 #endif
15853
15854 #undef $ac_func
15855
15856 /* Override any GCC internal prototype to avoid an error.
15857    Use char because int might match the return type of a GCC
15858    builtin and then its argument prototype would still apply.  */
15859 #ifdef __cplusplus
15860 extern "C"
15861 #endif
15862 char $ac_func ();
15863 /* The GNU C library defines this for functions which it implements
15864     to always fail with ENOSYS.  Some functions are actually named
15865     something starting with __ and the normal name is an alias.  */
15866 #if defined __stub_$ac_func || defined __stub___$ac_func
15867 choke me
15868 #endif
15869
15870 int
15871 main ()
15872 {
15873 return $ac_func ();
15874   ;
15875   return 0;
15876 }
15877 _ACEOF
15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (ac_try="$ac_link"
15880 case "(($ac_try" in
15881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882   *) ac_try_echo=$ac_try;;
15883 esac
15884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15885   (eval "$ac_link") 2>conftest.er1
15886   ac_status=$?
15887   grep -v '^ *+' conftest.er1 >conftest.err
15888   rm -f conftest.er1
15889   cat conftest.err >&5
15890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891   (exit $ac_status); } && {
15892          test -z "$ac_c_werror_flag" ||
15893          test ! -s conftest.err
15894        } && test -s conftest$ac_exeext &&
15895        $as_test_x conftest$ac_exeext; then
15896   eval "$as_ac_var=yes"
15897 else
15898   echo "$as_me: failed program was:" >&5
15899 sed 's/^/| /' conftest.$ac_ext >&5
15900
15901         eval "$as_ac_var=no"
15902 fi
15903
15904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15905       conftest$ac_exeext conftest.$ac_ext
15906 fi
15907 ac_res=`eval echo '${'$as_ac_var'}'`
15908                { echo "$as_me:$LINENO: result: $ac_res" >&5
15909 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_var'}'` = yes; then
15911   cat >>confdefs.h <<_ACEOF
15912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15913 _ACEOF
15914  SKIP_SETEUID=yes
15915 fi
15916 done
15917
15918 fi
15919 if test -z "$SKIP_SETEUID"; then
15920
15921 for ac_func in seteuid
15922 do
15923 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15924 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15925 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15926 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15927   echo $ECHO_N "(cached) $ECHO_C" >&6
15928 else
15929   cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h.  */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h.  */
15935 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15936    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15937 #define $ac_func innocuous_$ac_func
15938
15939 /* System header to define __stub macros and hopefully few prototypes,
15940     which can conflict with char $ac_func (); below.
15941     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15942     <limits.h> exists even on freestanding compilers.  */
15943
15944 #ifdef __STDC__
15945 # include <limits.h>
15946 #else
15947 # include <assert.h>
15948 #endif
15949
15950 #undef $ac_func
15951
15952 /* Override any GCC internal prototype to avoid an error.
15953    Use char because int might match the return type of a GCC
15954    builtin and then its argument prototype would still apply.  */
15955 #ifdef __cplusplus
15956 extern "C"
15957 #endif
15958 char $ac_func ();
15959 /* The GNU C library defines this for functions which it implements
15960     to always fail with ENOSYS.  Some functions are actually named
15961     something starting with __ and the normal name is an alias.  */
15962 #if defined __stub_$ac_func || defined __stub___$ac_func
15963 choke me
15964 #endif
15965
15966 int
15967 main ()
15968 {
15969 return $ac_func ();
15970   ;
15971   return 0;
15972 }
15973 _ACEOF
15974 rm -f conftest.$ac_objext conftest$ac_exeext
15975 if { (ac_try="$ac_link"
15976 case "(($ac_try" in
15977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978   *) ac_try_echo=$ac_try;;
15979 esac
15980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15981   (eval "$ac_link") 2>conftest.er1
15982   ac_status=$?
15983   grep -v '^ *+' conftest.er1 >conftest.err
15984   rm -f conftest.er1
15985   cat conftest.err >&5
15986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15987   (exit $ac_status); } && {
15988          test -z "$ac_c_werror_flag" ||
15989          test ! -s conftest.err
15990        } && test -s conftest$ac_exeext &&
15991        $as_test_x conftest$ac_exeext; then
15992   eval "$as_ac_var=yes"
15993 else
15994   echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997         eval "$as_ac_var=no"
15998 fi
15999
16000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16001       conftest$ac_exeext conftest.$ac_ext
16002 fi
16003 ac_res=`eval echo '${'$as_ac_var'}'`
16004                { echo "$as_me:$LINENO: result: $ac_res" >&5
16005 echo "${ECHO_T}$ac_res" >&6; }
16006 if test `eval echo '${'$as_ac_var'}'` = yes; then
16007   cat >>confdefs.h <<_ACEOF
16008 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16009 _ACEOF
16010
16011 fi
16012 done
16013
16014 fi
16015 if test X"$with_interfaces" != X"no"; then
16016
16017 for ac_func in getifaddrs
16018 do
16019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16020 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16022 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16023   echo $ECHO_N "(cached) $ECHO_C" >&6
16024 else
16025   cat >conftest.$ac_ext <<_ACEOF
16026 /* confdefs.h.  */
16027 _ACEOF
16028 cat confdefs.h >>conftest.$ac_ext
16029 cat >>conftest.$ac_ext <<_ACEOF
16030 /* end confdefs.h.  */
16031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16032    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16033 #define $ac_func innocuous_$ac_func
16034
16035 /* System header to define __stub macros and hopefully few prototypes,
16036     which can conflict with char $ac_func (); below.
16037     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16038     <limits.h> exists even on freestanding compilers.  */
16039
16040 #ifdef __STDC__
16041 # include <limits.h>
16042 #else
16043 # include <assert.h>
16044 #endif
16045
16046 #undef $ac_func
16047
16048 /* Override any GCC internal prototype to avoid an error.
16049    Use char because int might match the return type of a GCC
16050    builtin and then its argument prototype would still apply.  */
16051 #ifdef __cplusplus
16052 extern "C"
16053 #endif
16054 char $ac_func ();
16055 /* The GNU C library defines this for functions which it implements
16056     to always fail with ENOSYS.  Some functions are actually named
16057     something starting with __ and the normal name is an alias.  */
16058 #if defined __stub_$ac_func || defined __stub___$ac_func
16059 choke me
16060 #endif
16061
16062 int
16063 main ()
16064 {
16065 return $ac_func ();
16066   ;
16067   return 0;
16068 }
16069 _ACEOF
16070 rm -f conftest.$ac_objext conftest$ac_exeext
16071 if { (ac_try="$ac_link"
16072 case "(($ac_try" in
16073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16074   *) ac_try_echo=$ac_try;;
16075 esac
16076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16077   (eval "$ac_link") 2>conftest.er1
16078   ac_status=$?
16079   grep -v '^ *+' conftest.er1 >conftest.err
16080   rm -f conftest.er1
16081   cat conftest.err >&5
16082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16083   (exit $ac_status); } && {
16084          test -z "$ac_c_werror_flag" ||
16085          test ! -s conftest.err
16086        } && test -s conftest$ac_exeext &&
16087        $as_test_x conftest$ac_exeext; then
16088   eval "$as_ac_var=yes"
16089 else
16090   echo "$as_me: failed program was:" >&5
16091 sed 's/^/| /' conftest.$ac_ext >&5
16092
16093         eval "$as_ac_var=no"
16094 fi
16095
16096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16097       conftest$ac_exeext conftest.$ac_ext
16098 fi
16099 ac_res=`eval echo '${'$as_ac_var'}'`
16100                { echo "$as_me:$LINENO: result: $ac_res" >&5
16101 echo "${ECHO_T}$ac_res" >&6; }
16102 if test `eval echo '${'$as_ac_var'}'` = yes; then
16103   cat >>confdefs.h <<_ACEOF
16104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16105 _ACEOF
16106
16107 for ac_func in freeifaddrs
16108 do
16109 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16110 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16111 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16113   echo $ECHO_N "(cached) $ECHO_C" >&6
16114 else
16115   cat >conftest.$ac_ext <<_ACEOF
16116 /* confdefs.h.  */
16117 _ACEOF
16118 cat confdefs.h >>conftest.$ac_ext
16119 cat >>conftest.$ac_ext <<_ACEOF
16120 /* end confdefs.h.  */
16121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16123 #define $ac_func innocuous_$ac_func
16124
16125 /* System header to define __stub macros and hopefully few prototypes,
16126     which can conflict with char $ac_func (); below.
16127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16128     <limits.h> exists even on freestanding compilers.  */
16129
16130 #ifdef __STDC__
16131 # include <limits.h>
16132 #else
16133 # include <assert.h>
16134 #endif
16135
16136 #undef $ac_func
16137
16138 /* Override any GCC internal prototype to avoid an error.
16139    Use char because int might match the return type of a GCC
16140    builtin and then its argument prototype would still apply.  */
16141 #ifdef __cplusplus
16142 extern "C"
16143 #endif
16144 char $ac_func ();
16145 /* The GNU C library defines this for functions which it implements
16146     to always fail with ENOSYS.  Some functions are actually named
16147     something starting with __ and the normal name is an alias.  */
16148 #if defined __stub_$ac_func || defined __stub___$ac_func
16149 choke me
16150 #endif
16151
16152 int
16153 main ()
16154 {
16155 return $ac_func ();
16156   ;
16157   return 0;
16158 }
16159 _ACEOF
16160 rm -f conftest.$ac_objext conftest$ac_exeext
16161 if { (ac_try="$ac_link"
16162 case "(($ac_try" in
16163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164   *) ac_try_echo=$ac_try;;
16165 esac
16166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167   (eval "$ac_link") 2>conftest.er1
16168   ac_status=$?
16169   grep -v '^ *+' conftest.er1 >conftest.err
16170   rm -f conftest.er1
16171   cat conftest.err >&5
16172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173   (exit $ac_status); } && {
16174          test -z "$ac_c_werror_flag" ||
16175          test ! -s conftest.err
16176        } && test -s conftest$ac_exeext &&
16177        $as_test_x conftest$ac_exeext; then
16178   eval "$as_ac_var=yes"
16179 else
16180   echo "$as_me: failed program was:" >&5
16181 sed 's/^/| /' conftest.$ac_ext >&5
16182
16183         eval "$as_ac_var=no"
16184 fi
16185
16186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16187       conftest$ac_exeext conftest.$ac_ext
16188 fi
16189 ac_res=`eval echo '${'$as_ac_var'}'`
16190                { echo "$as_me:$LINENO: result: $ac_res" >&5
16191 echo "${ECHO_T}$ac_res" >&6; }
16192 if test `eval echo '${'$as_ac_var'}'` = yes; then
16193   cat >>confdefs.h <<_ACEOF
16194 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16195 _ACEOF
16196
16197 fi
16198 done
16199
16200 fi
16201 done
16202
16203 fi
16204 if test -z "$BROKEN_GETCWD"; then
16205
16206 for ac_func in getcwd
16207 do
16208 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16209 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16210 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16211 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16212   echo $ECHO_N "(cached) $ECHO_C" >&6
16213 else
16214   cat >conftest.$ac_ext <<_ACEOF
16215 /* confdefs.h.  */
16216 _ACEOF
16217 cat confdefs.h >>conftest.$ac_ext
16218 cat >>conftest.$ac_ext <<_ACEOF
16219 /* end confdefs.h.  */
16220 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16221    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16222 #define $ac_func innocuous_$ac_func
16223
16224 /* System header to define __stub macros and hopefully few prototypes,
16225     which can conflict with char $ac_func (); below.
16226     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16227     <limits.h> exists even on freestanding compilers.  */
16228
16229 #ifdef __STDC__
16230 # include <limits.h>
16231 #else
16232 # include <assert.h>
16233 #endif
16234
16235 #undef $ac_func
16236
16237 /* Override any GCC internal prototype to avoid an error.
16238    Use char because int might match the return type of a GCC
16239    builtin and then its argument prototype would still apply.  */
16240 #ifdef __cplusplus
16241 extern "C"
16242 #endif
16243 char $ac_func ();
16244 /* The GNU C library defines this for functions which it implements
16245     to always fail with ENOSYS.  Some functions are actually named
16246     something starting with __ and the normal name is an alias.  */
16247 #if defined __stub_$ac_func || defined __stub___$ac_func
16248 choke me
16249 #endif
16250
16251 int
16252 main ()
16253 {
16254 return $ac_func ();
16255   ;
16256   return 0;
16257 }
16258 _ACEOF
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (ac_try="$ac_link"
16261 case "(($ac_try" in
16262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263   *) ac_try_echo=$ac_try;;
16264 esac
16265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16266   (eval "$ac_link") 2>conftest.er1
16267   ac_status=$?
16268   grep -v '^ *+' conftest.er1 >conftest.err
16269   rm -f conftest.er1
16270   cat conftest.err >&5
16271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16272   (exit $ac_status); } && {
16273          test -z "$ac_c_werror_flag" ||
16274          test ! -s conftest.err
16275        } && test -s conftest$ac_exeext &&
16276        $as_test_x conftest$ac_exeext; then
16277   eval "$as_ac_var=yes"
16278 else
16279   echo "$as_me: failed program was:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16281
16282         eval "$as_ac_var=no"
16283 fi
16284
16285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16286       conftest$ac_exeext conftest.$ac_ext
16287 fi
16288 ac_res=`eval echo '${'$as_ac_var'}'`
16289                { echo "$as_me:$LINENO: result: $ac_res" >&5
16290 echo "${ECHO_T}$ac_res" >&6; }
16291 if test `eval echo '${'$as_ac_var'}'` = yes; then
16292   cat >>confdefs.h <<_ACEOF
16293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16294 _ACEOF
16295
16296 else
16297   case " $LIBOBJS " in
16298   *" $ac_func.$ac_objext "* ) ;;
16299   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
16300  ;;
16301 esac
16302
16303 fi
16304 done
16305
16306
16307 fi
16308
16309 for ac_func in glob
16310 do
16311 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16312 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16313 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16314 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   cat >conftest.$ac_ext <<_ACEOF
16318 /* confdefs.h.  */
16319 _ACEOF
16320 cat confdefs.h >>conftest.$ac_ext
16321 cat >>conftest.$ac_ext <<_ACEOF
16322 /* end confdefs.h.  */
16323 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16324    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16325 #define $ac_func innocuous_$ac_func
16326
16327 /* System header to define __stub macros and hopefully few prototypes,
16328     which can conflict with char $ac_func (); below.
16329     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16330     <limits.h> exists even on freestanding compilers.  */
16331
16332 #ifdef __STDC__
16333 # include <limits.h>
16334 #else
16335 # include <assert.h>
16336 #endif
16337
16338 #undef $ac_func
16339
16340 /* Override any GCC internal prototype to avoid an error.
16341    Use char because int might match the return type of a GCC
16342    builtin and then its argument prototype would still apply.  */
16343 #ifdef __cplusplus
16344 extern "C"
16345 #endif
16346 char $ac_func ();
16347 /* The GNU C library defines this for functions which it implements
16348     to always fail with ENOSYS.  Some functions are actually named
16349     something starting with __ and the normal name is an alias.  */
16350 #if defined __stub_$ac_func || defined __stub___$ac_func
16351 choke me
16352 #endif
16353
16354 int
16355 main ()
16356 {
16357 return $ac_func ();
16358   ;
16359   return 0;
16360 }
16361 _ACEOF
16362 rm -f conftest.$ac_objext conftest$ac_exeext
16363 if { (ac_try="$ac_link"
16364 case "(($ac_try" in
16365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16366   *) ac_try_echo=$ac_try;;
16367 esac
16368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16369   (eval "$ac_link") 2>conftest.er1
16370   ac_status=$?
16371   grep -v '^ *+' conftest.er1 >conftest.err
16372   rm -f conftest.er1
16373   cat conftest.err >&5
16374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16375   (exit $ac_status); } && {
16376          test -z "$ac_c_werror_flag" ||
16377          test ! -s conftest.err
16378        } && test -s conftest$ac_exeext &&
16379        $as_test_x conftest$ac_exeext; then
16380   eval "$as_ac_var=yes"
16381 else
16382   echo "$as_me: failed program was:" >&5
16383 sed 's/^/| /' conftest.$ac_ext >&5
16384
16385         eval "$as_ac_var=no"
16386 fi
16387
16388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16389       conftest$ac_exeext conftest.$ac_ext
16390 fi
16391 ac_res=`eval echo '${'$as_ac_var'}'`
16392                { echo "$as_me:$LINENO: result: $ac_res" >&5
16393 echo "${ECHO_T}$ac_res" >&6; }
16394 if test `eval echo '${'$as_ac_var'}'` = yes; then
16395   cat >>confdefs.h <<_ACEOF
16396 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16397 _ACEOF
16398  { echo "$as_me:$LINENO: checking for GLOB_BRACE and GLOB_TILDE in glob.h" >&5
16399 echo $ECHO_N "checking for GLOB_BRACE and GLOB_TILDE in glob.h... $ECHO_C" >&6; }
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406 #include <glob.h>
16407 int
16408 main ()
16409 {
16410 int i = GLOB_BRACE | GLOB_TILDE; (void)i;
16411   ;
16412   return 0;
16413 }
16414 _ACEOF
16415 rm -f conftest.$ac_objext
16416 if { (ac_try="$ac_compile"
16417 case "(($ac_try" in
16418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419   *) ac_try_echo=$ac_try;;
16420 esac
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422   (eval "$ac_compile") 2>conftest.er1
16423   ac_status=$?
16424   grep -v '^ *+' conftest.er1 >conftest.err
16425   rm -f conftest.er1
16426   cat conftest.err >&5
16427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16428   (exit $ac_status); } && {
16429          test -z "$ac_c_werror_flag" ||
16430          test ! -s conftest.err
16431        } && test -s conftest.$ac_objext; then
16432   cat >>confdefs.h <<\_ACEOF
16433 #define HAVE_EXTENDED_GLOB 1
16434 _ACEOF
16435
16436     { echo "$as_me:$LINENO: result: yes" >&5
16437 echo "${ECHO_T}yes" >&6; }
16438 else
16439   echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16441
16442         case " $LIBOBJS " in
16443   *" glob.$ac_objext "* ) ;;
16444   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16445  ;;
16446 esac
16447
16448     { echo "$as_me:$LINENO: result: no" >&5
16449 echo "${ECHO_T}no" >&6; }
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16453 else
16454   case " $LIBOBJS " in
16455   *" glob.$ac_objext "* ) ;;
16456   *) LIBOBJS="$LIBOBJS glob.$ac_objext"
16457  ;;
16458 esac
16459
16460 fi
16461 done
16462
16463
16464
16465 for ac_func in lockf flock
16466 do
16467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16471   echo $ECHO_N "(cached) $ECHO_C" >&6
16472 else
16473   cat >conftest.$ac_ext <<_ACEOF
16474 /* confdefs.h.  */
16475 _ACEOF
16476 cat confdefs.h >>conftest.$ac_ext
16477 cat >>conftest.$ac_ext <<_ACEOF
16478 /* end confdefs.h.  */
16479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16481 #define $ac_func innocuous_$ac_func
16482
16483 /* System header to define __stub macros and hopefully few prototypes,
16484     which can conflict with char $ac_func (); below.
16485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16486     <limits.h> exists even on freestanding compilers.  */
16487
16488 #ifdef __STDC__
16489 # include <limits.h>
16490 #else
16491 # include <assert.h>
16492 #endif
16493
16494 #undef $ac_func
16495
16496 /* Override any GCC internal prototype to avoid an error.
16497    Use char because int might match the return type of a GCC
16498    builtin and then its argument prototype would still apply.  */
16499 #ifdef __cplusplus
16500 extern "C"
16501 #endif
16502 char $ac_func ();
16503 /* The GNU C library defines this for functions which it implements
16504     to always fail with ENOSYS.  Some functions are actually named
16505     something starting with __ and the normal name is an alias.  */
16506 #if defined __stub_$ac_func || defined __stub___$ac_func
16507 choke me
16508 #endif
16509
16510 int
16511 main ()
16512 {
16513 return $ac_func ();
16514   ;
16515   return 0;
16516 }
16517 _ACEOF
16518 rm -f conftest.$ac_objext conftest$ac_exeext
16519 if { (ac_try="$ac_link"
16520 case "(($ac_try" in
16521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16522   *) ac_try_echo=$ac_try;;
16523 esac
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525   (eval "$ac_link") 2>conftest.er1
16526   ac_status=$?
16527   grep -v '^ *+' conftest.er1 >conftest.err
16528   rm -f conftest.er1
16529   cat conftest.err >&5
16530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531   (exit $ac_status); } && {
16532          test -z "$ac_c_werror_flag" ||
16533          test ! -s conftest.err
16534        } && test -s conftest$ac_exeext &&
16535        $as_test_x conftest$ac_exeext; then
16536   eval "$as_ac_var=yes"
16537 else
16538   echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541         eval "$as_ac_var=no"
16542 fi
16543
16544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16545       conftest$ac_exeext conftest.$ac_ext
16546 fi
16547 ac_res=`eval echo '${'$as_ac_var'}'`
16548                { echo "$as_me:$LINENO: result: $ac_res" >&5
16549 echo "${ECHO_T}$ac_res" >&6; }
16550 if test `eval echo '${'$as_ac_var'}'` = yes; then
16551   cat >>confdefs.h <<_ACEOF
16552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16553 _ACEOF
16554  break
16555 fi
16556 done
16557
16558
16559
16560 for ac_func in waitpid wait3
16561 do
16562 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16563 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16564 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16565 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16566   echo $ECHO_N "(cached) $ECHO_C" >&6
16567 else
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16575    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16576 #define $ac_func innocuous_$ac_func
16577
16578 /* System header to define __stub macros and hopefully few prototypes,
16579     which can conflict with char $ac_func (); below.
16580     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16581     <limits.h> exists even on freestanding compilers.  */
16582
16583 #ifdef __STDC__
16584 # include <limits.h>
16585 #else
16586 # include <assert.h>
16587 #endif
16588
16589 #undef $ac_func
16590
16591 /* Override any GCC internal prototype to avoid an error.
16592    Use char because int might match the return type of a GCC
16593    builtin and then its argument prototype would still apply.  */
16594 #ifdef __cplusplus
16595 extern "C"
16596 #endif
16597 char $ac_func ();
16598 /* The GNU C library defines this for functions which it implements
16599     to always fail with ENOSYS.  Some functions are actually named
16600     something starting with __ and the normal name is an alias.  */
16601 #if defined __stub_$ac_func || defined __stub___$ac_func
16602 choke me
16603 #endif
16604
16605 int
16606 main ()
16607 {
16608 return $ac_func ();
16609   ;
16610   return 0;
16611 }
16612 _ACEOF
16613 rm -f conftest.$ac_objext conftest$ac_exeext
16614 if { (ac_try="$ac_link"
16615 case "(($ac_try" in
16616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16617   *) ac_try_echo=$ac_try;;
16618 esac
16619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16620   (eval "$ac_link") 2>conftest.er1
16621   ac_status=$?
16622   grep -v '^ *+' conftest.er1 >conftest.err
16623   rm -f conftest.er1
16624   cat conftest.err >&5
16625   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16626   (exit $ac_status); } && {
16627          test -z "$ac_c_werror_flag" ||
16628          test ! -s conftest.err
16629        } && test -s conftest$ac_exeext &&
16630        $as_test_x conftest$ac_exeext; then
16631   eval "$as_ac_var=yes"
16632 else
16633   echo "$as_me: failed program was:" >&5
16634 sed 's/^/| /' conftest.$ac_ext >&5
16635
16636         eval "$as_ac_var=no"
16637 fi
16638
16639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640       conftest$ac_exeext conftest.$ac_ext
16641 fi
16642 ac_res=`eval echo '${'$as_ac_var'}'`
16643                { echo "$as_me:$LINENO: result: $ac_res" >&5
16644 echo "${ECHO_T}$ac_res" >&6; }
16645 if test `eval echo '${'$as_ac_var'}'` = yes; then
16646   cat >>confdefs.h <<_ACEOF
16647 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16648 _ACEOF
16649  break
16650 fi
16651 done
16652
16653
16654
16655 for ac_func in innetgr _innetgr
16656 do
16657 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16660 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16661   echo $ECHO_N "(cached) $ECHO_C" >&6
16662 else
16663   cat >conftest.$ac_ext <<_ACEOF
16664 /* confdefs.h.  */
16665 _ACEOF
16666 cat confdefs.h >>conftest.$ac_ext
16667 cat >>conftest.$ac_ext <<_ACEOF
16668 /* end confdefs.h.  */
16669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16670    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16671 #define $ac_func innocuous_$ac_func
16672
16673 /* System header to define __stub macros and hopefully few prototypes,
16674     which can conflict with char $ac_func (); below.
16675     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16676     <limits.h> exists even on freestanding compilers.  */
16677
16678 #ifdef __STDC__
16679 # include <limits.h>
16680 #else
16681 # include <assert.h>
16682 #endif
16683
16684 #undef $ac_func
16685
16686 /* Override any GCC internal prototype to avoid an error.
16687    Use char because int might match the return type of a GCC
16688    builtin and then its argument prototype would still apply.  */
16689 #ifdef __cplusplus
16690 extern "C"
16691 #endif
16692 char $ac_func ();
16693 /* The GNU C library defines this for functions which it implements
16694     to always fail with ENOSYS.  Some functions are actually named
16695     something starting with __ and the normal name is an alias.  */
16696 #if defined __stub_$ac_func || defined __stub___$ac_func
16697 choke me
16698 #endif
16699
16700 int
16701 main ()
16702 {
16703 return $ac_func ();
16704   ;
16705   return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712   *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715   (eval "$ac_link") 2>conftest.er1
16716   ac_status=$?
16717   grep -v '^ *+' conftest.er1 >conftest.err
16718   rm -f conftest.er1
16719   cat conftest.err >&5
16720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721   (exit $ac_status); } && {
16722          test -z "$ac_c_werror_flag" ||
16723          test ! -s conftest.err
16724        } && test -s conftest$ac_exeext &&
16725        $as_test_x conftest$ac_exeext; then
16726   eval "$as_ac_var=yes"
16727 else
16728   echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731         eval "$as_ac_var=no"
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735       conftest$ac_exeext conftest.$ac_ext
16736 fi
16737 ac_res=`eval echo '${'$as_ac_var'}'`
16738                { echo "$as_me:$LINENO: result: $ac_res" >&5
16739 echo "${ECHO_T}$ac_res" >&6; }
16740 if test `eval echo '${'$as_ac_var'}'` = yes; then
16741   cat >>confdefs.h <<_ACEOF
16742 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16743 _ACEOF
16744
16745 for ac_func in getdomainname
16746 do
16747 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16748 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16749 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16750 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16751   echo $ECHO_N "(cached) $ECHO_C" >&6
16752 else
16753   cat >conftest.$ac_ext <<_ACEOF
16754 /* confdefs.h.  */
16755 _ACEOF
16756 cat confdefs.h >>conftest.$ac_ext
16757 cat >>conftest.$ac_ext <<_ACEOF
16758 /* end confdefs.h.  */
16759 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16760    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16761 #define $ac_func innocuous_$ac_func
16762
16763 /* System header to define __stub macros and hopefully few prototypes,
16764     which can conflict with char $ac_func (); below.
16765     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16766     <limits.h> exists even on freestanding compilers.  */
16767
16768 #ifdef __STDC__
16769 # include <limits.h>
16770 #else
16771 # include <assert.h>
16772 #endif
16773
16774 #undef $ac_func
16775
16776 /* Override any GCC internal prototype to avoid an error.
16777    Use char because int might match the return type of a GCC
16778    builtin and then its argument prototype would still apply.  */
16779 #ifdef __cplusplus
16780 extern "C"
16781 #endif
16782 char $ac_func ();
16783 /* The GNU C library defines this for functions which it implements
16784     to always fail with ENOSYS.  Some functions are actually named
16785     something starting with __ and the normal name is an alias.  */
16786 #if defined __stub_$ac_func || defined __stub___$ac_func
16787 choke me
16788 #endif
16789
16790 int
16791 main ()
16792 {
16793 return $ac_func ();
16794   ;
16795   return 0;
16796 }
16797 _ACEOF
16798 rm -f conftest.$ac_objext conftest$ac_exeext
16799 if { (ac_try="$ac_link"
16800 case "(($ac_try" in
16801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802   *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805   (eval "$ac_link") 2>conftest.er1
16806   ac_status=$?
16807   grep -v '^ *+' conftest.er1 >conftest.err
16808   rm -f conftest.er1
16809   cat conftest.err >&5
16810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811   (exit $ac_status); } && {
16812          test -z "$ac_c_werror_flag" ||
16813          test ! -s conftest.err
16814        } && test -s conftest$ac_exeext &&
16815        $as_test_x conftest$ac_exeext; then
16816   eval "$as_ac_var=yes"
16817 else
16818   echo "$as_me: failed program was:" >&5
16819 sed 's/^/| /' conftest.$ac_ext >&5
16820
16821         eval "$as_ac_var=no"
16822 fi
16823
16824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16825       conftest$ac_exeext conftest.$ac_ext
16826 fi
16827 ac_res=`eval echo '${'$as_ac_var'}'`
16828                { echo "$as_me:$LINENO: result: $ac_res" >&5
16829 echo "${ECHO_T}$ac_res" >&6; }
16830 if test `eval echo '${'$as_ac_var'}'` = yes; then
16831   cat >>confdefs.h <<_ACEOF
16832 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16833 _ACEOF
16834
16835 fi
16836 done
16837  break
16838 fi
16839 done
16840
16841
16842 for ac_func in utimes
16843 do
16844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16848   echo $ECHO_N "(cached) $ECHO_C" >&6
16849 else
16850   cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16857    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16858 #define $ac_func innocuous_$ac_func
16859
16860 /* System header to define __stub macros and hopefully few prototypes,
16861     which can conflict with char $ac_func (); below.
16862     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16863     <limits.h> exists even on freestanding compilers.  */
16864
16865 #ifdef __STDC__
16866 # include <limits.h>
16867 #else
16868 # include <assert.h>
16869 #endif
16870
16871 #undef $ac_func
16872
16873 /* Override any GCC internal prototype to avoid an error.
16874    Use char because int might match the return type of a GCC
16875    builtin and then its argument prototype would still apply.  */
16876 #ifdef __cplusplus
16877 extern "C"
16878 #endif
16879 char $ac_func ();
16880 /* The GNU C library defines this for functions which it implements
16881     to always fail with ENOSYS.  Some functions are actually named
16882     something starting with __ and the normal name is an alias.  */
16883 #if defined __stub_$ac_func || defined __stub___$ac_func
16884 choke me
16885 #endif
16886
16887 int
16888 main ()
16889 {
16890 return $ac_func ();
16891   ;
16892   return 0;
16893 }
16894 _ACEOF
16895 rm -f conftest.$ac_objext conftest$ac_exeext
16896 if { (ac_try="$ac_link"
16897 case "(($ac_try" in
16898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16899   *) ac_try_echo=$ac_try;;
16900 esac
16901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16902   (eval "$ac_link") 2>conftest.er1
16903   ac_status=$?
16904   grep -v '^ *+' conftest.er1 >conftest.err
16905   rm -f conftest.er1
16906   cat conftest.err >&5
16907   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908   (exit $ac_status); } && {
16909          test -z "$ac_c_werror_flag" ||
16910          test ! -s conftest.err
16911        } && test -s conftest$ac_exeext &&
16912        $as_test_x conftest$ac_exeext; then
16913   eval "$as_ac_var=yes"
16914 else
16915   echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16917
16918         eval "$as_ac_var=no"
16919 fi
16920
16921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16922       conftest$ac_exeext conftest.$ac_ext
16923 fi
16924 ac_res=`eval echo '${'$as_ac_var'}'`
16925                { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927 if test `eval echo '${'$as_ac_var'}'` = yes; then
16928   cat >>confdefs.h <<_ACEOF
16929 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16930 _ACEOF
16931
16932
16933 for ac_func in futimes futimesat
16934 do
16935 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16937 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16939   echo $ECHO_N "(cached) $ECHO_C" >&6
16940 else
16941   cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h.  */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h.  */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
16949 #define $ac_func innocuous_$ac_func
16950
16951 /* System header to define __stub macros and hopefully few prototypes,
16952     which can conflict with char $ac_func (); below.
16953     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954     <limits.h> exists even on freestanding compilers.  */
16955
16956 #ifdef __STDC__
16957 # include <limits.h>
16958 #else
16959 # include <assert.h>
16960 #endif
16961
16962 #undef $ac_func
16963
16964 /* Override any GCC internal prototype to avoid an error.
16965    Use char because int might match the return type of a GCC
16966    builtin and then its argument prototype would still apply.  */
16967 #ifdef __cplusplus
16968 extern "C"
16969 #endif
16970 char $ac_func ();
16971 /* The GNU C library defines this for functions which it implements
16972     to always fail with ENOSYS.  Some functions are actually named
16973     something starting with __ and the normal name is an alias.  */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16975 choke me
16976 #endif
16977
16978 int
16979 main ()
16980 {
16981 return $ac_func ();
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990   *) ac_try_echo=$ac_try;;
16991 esac
16992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16993   (eval "$ac_link") 2>conftest.er1
16994   ac_status=$?
16995   grep -v '^ *+' conftest.er1 >conftest.err
16996   rm -f conftest.er1
16997   cat conftest.err >&5
16998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999   (exit $ac_status); } && {
17000          test -z "$ac_c_werror_flag" ||
17001          test ! -s conftest.err
17002        } && test -s conftest$ac_exeext &&
17003        $as_test_x conftest$ac_exeext; then
17004   eval "$as_ac_var=yes"
17005 else
17006   echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009         eval "$as_ac_var=no"
17010 fi
17011
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013       conftest$ac_exeext conftest.$ac_ext
17014 fi
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016                { echo "$as_me:$LINENO: result: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019   cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17021 _ACEOF
17022  break
17023 fi
17024 done
17025
17026 else
17027
17028 for ac_func in futime
17029 do
17030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17034   echo $ECHO_N "(cached) $ECHO_C" >&6
17035 else
17036   cat >conftest.$ac_ext <<_ACEOF
17037 /* confdefs.h.  */
17038 _ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h.  */
17042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17043    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17044 #define $ac_func innocuous_$ac_func
17045
17046 /* System header to define __stub macros and hopefully few prototypes,
17047     which can conflict with char $ac_func (); below.
17048     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17049     <limits.h> exists even on freestanding compilers.  */
17050
17051 #ifdef __STDC__
17052 # include <limits.h>
17053 #else
17054 # include <assert.h>
17055 #endif
17056
17057 #undef $ac_func
17058
17059 /* Override any GCC internal prototype to avoid an error.
17060    Use char because int might match the return type of a GCC
17061    builtin and then its argument prototype would still apply.  */
17062 #ifdef __cplusplus
17063 extern "C"
17064 #endif
17065 char $ac_func ();
17066 /* The GNU C library defines this for functions which it implements
17067     to always fail with ENOSYS.  Some functions are actually named
17068     something starting with __ and the normal name is an alias.  */
17069 #if defined __stub_$ac_func || defined __stub___$ac_func
17070 choke me
17071 #endif
17072
17073 int
17074 main ()
17075 {
17076 return $ac_func ();
17077   ;
17078   return 0;
17079 }
17080 _ACEOF
17081 rm -f conftest.$ac_objext conftest$ac_exeext
17082 if { (ac_try="$ac_link"
17083 case "(($ac_try" in
17084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17085   *) ac_try_echo=$ac_try;;
17086 esac
17087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17088   (eval "$ac_link") 2>conftest.er1
17089   ac_status=$?
17090   grep -v '^ *+' conftest.er1 >conftest.err
17091   rm -f conftest.er1
17092   cat conftest.err >&5
17093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094   (exit $ac_status); } && {
17095          test -z "$ac_c_werror_flag" ||
17096          test ! -s conftest.err
17097        } && test -s conftest$ac_exeext &&
17098        $as_test_x conftest$ac_exeext; then
17099   eval "$as_ac_var=yes"
17100 else
17101   echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17103
17104         eval "$as_ac_var=no"
17105 fi
17106
17107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17108       conftest$ac_exeext conftest.$ac_ext
17109 fi
17110 ac_res=`eval echo '${'$as_ac_var'}'`
17111                { echo "$as_me:$LINENO: result: $ac_res" >&5
17112 echo "${ECHO_T}$ac_res" >&6; }
17113 if test `eval echo '${'$as_ac_var'}'` = yes; then
17114   cat >>confdefs.h <<_ACEOF
17115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17116 _ACEOF
17117
17118 fi
17119 done
17120  case " $LIBOBJS " in
17121   *" utimes.$ac_objext "* ) ;;
17122   *) LIBOBJS="$LIBOBJS utimes.$ac_objext"
17123  ;;
17124 esac
17125
17126 fi
17127 done
17128
17129 { echo "$as_me:$LINENO: checking for working fnmatch with FNM_CASEFOLD" >&5
17130 echo $ECHO_N "checking for working fnmatch with FNM_CASEFOLD... $ECHO_C" >&6; }
17131 if test "${sudo_cv_func_fnmatch+set}" = set; then
17132   echo $ECHO_N "(cached) $ECHO_C" >&6
17133 else
17134   rm -f conftestdata; > conftestdata
17135 if test "$cross_compiling" = yes; then
17136   sudo_cv_func_fnmatch=no
17137 else
17138   cat >conftest.$ac_ext <<_ACEOF
17139 /* confdefs.h.  */
17140 _ACEOF
17141 cat confdefs.h >>conftest.$ac_ext
17142 cat >>conftest.$ac_ext <<_ACEOF
17143 /* end confdefs.h.  */
17144 #include <fnmatch.h>
17145 main() { exit(fnmatch("/*/bin/echo *", "/usr/bin/echo just a test", FNM_CASEFOLD)); }
17146 _ACEOF
17147 rm -f conftest$ac_exeext
17148 if { (ac_try="$ac_link"
17149 case "(($ac_try" in
17150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151   *) ac_try_echo=$ac_try;;
17152 esac
17153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17154   (eval "$ac_link") 2>&5
17155   ac_status=$?
17156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17158   { (case "(($ac_try" in
17159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160   *) ac_try_echo=$ac_try;;
17161 esac
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163   (eval "$ac_try") 2>&5
17164   ac_status=$?
17165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17166   (exit $ac_status); }; }; then
17167   sudo_cv_func_fnmatch=yes
17168 else
17169   echo "$as_me: program exited with status $ac_status" >&5
17170 echo "$as_me: failed program was:" >&5
17171 sed 's/^/| /' conftest.$ac_ext >&5
17172
17173 ( exit $ac_status )
17174 sudo_cv_func_fnmatch=no
17175 fi
17176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17177 fi
17178
17179
17180 rm -f core core.* *.core
17181 fi
17182
17183 { echo "$as_me:$LINENO: result: $sudo_cv_func_fnmatch" >&5
17184 echo "${ECHO_T}$sudo_cv_func_fnmatch" >&6; }
17185 if test $sudo_cv_func_fnmatch = yes; then
17186   cat >>confdefs.h <<\_ACEOF
17187 #define HAVE_FNMATCH 1
17188 _ACEOF
17189
17190 else
17191   case " $LIBOBJS " in
17192   *" fnmatch.$ac_objext "* ) ;;
17193   *) LIBOBJS="$LIBOBJS fnmatch.$ac_objext"
17194  ;;
17195 esac
17196
17197 fi
17198
17199 { echo "$as_me:$LINENO: checking for isblank" >&5
17200 echo $ECHO_N "checking for isblank... $ECHO_C" >&6; }
17201 if test "${sudo_cv_func_isblank+set}" = set; then
17202   echo $ECHO_N "(cached) $ECHO_C" >&6
17203 else
17204   cat >conftest.$ac_ext <<_ACEOF
17205 /* confdefs.h.  */
17206 _ACEOF
17207 cat confdefs.h >>conftest.$ac_ext
17208 cat >>conftest.$ac_ext <<_ACEOF
17209 /* end confdefs.h.  */
17210 #include <ctype.h>
17211 int
17212 main ()
17213 {
17214 return (isblank('a'));
17215   ;
17216   return 0;
17217 }
17218 _ACEOF
17219 rm -f conftest.$ac_objext conftest$ac_exeext
17220 if { (ac_try="$ac_link"
17221 case "(($ac_try" in
17222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223   *) ac_try_echo=$ac_try;;
17224 esac
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226   (eval "$ac_link") 2>conftest.er1
17227   ac_status=$?
17228   grep -v '^ *+' conftest.er1 >conftest.err
17229   rm -f conftest.er1
17230   cat conftest.err >&5
17231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232   (exit $ac_status); } && {
17233          test -z "$ac_c_werror_flag" ||
17234          test ! -s conftest.err
17235        } && test -s conftest$ac_exeext &&
17236        $as_test_x conftest$ac_exeext; then
17237   sudo_cv_func_isblank=yes
17238 else
17239   echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17241
17242         sudo_cv_func_isblank=no
17243 fi
17244
17245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17246       conftest$ac_exeext conftest.$ac_ext
17247 fi
17248 { echo "$as_me:$LINENO: result: $sudo_cv_func_isblank" >&5
17249 echo "${ECHO_T}$sudo_cv_func_isblank" >&6; }
17250
17251   if test "$sudo_cv_func_isblank" = "yes"; then
17252
17253 cat >>confdefs.h <<\_ACEOF
17254 #define HAVE_ISBLANK 1
17255 _ACEOF
17256
17257   else
17258     case " $LIBOBJS " in
17259   *" isblank.$ac_objext "* ) ;;
17260   *) LIBOBJS="$LIBOBJS isblank.$ac_objext"
17261  ;;
17262 esac
17263
17264   fi
17265
17266
17267
17268
17269
17270
17271
17272 for ac_func in memrchr strerror strcasecmp sigaction strlcpy strlcat
17273 do
17274 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17277 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17278   echo $ECHO_N "(cached) $ECHO_C" >&6
17279 else
17280   cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17287    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17288 #define $ac_func innocuous_$ac_func
17289
17290 /* System header to define __stub macros and hopefully few prototypes,
17291     which can conflict with char $ac_func (); below.
17292     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17293     <limits.h> exists even on freestanding compilers.  */
17294
17295 #ifdef __STDC__
17296 # include <limits.h>
17297 #else
17298 # include <assert.h>
17299 #endif
17300
17301 #undef $ac_func
17302
17303 /* Override any GCC internal prototype to avoid an error.
17304    Use char because int might match the return type of a GCC
17305    builtin and then its argument prototype would still apply.  */
17306 #ifdef __cplusplus
17307 extern "C"
17308 #endif
17309 char $ac_func ();
17310 /* The GNU C library defines this for functions which it implements
17311     to always fail with ENOSYS.  Some functions are actually named
17312     something starting with __ and the normal name is an alias.  */
17313 #if defined __stub_$ac_func || defined __stub___$ac_func
17314 choke me
17315 #endif
17316
17317 int
17318 main ()
17319 {
17320 return $ac_func ();
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 rm -f conftest.$ac_objext conftest$ac_exeext
17326 if { (ac_try="$ac_link"
17327 case "(($ac_try" in
17328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17329   *) ac_try_echo=$ac_try;;
17330 esac
17331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17332   (eval "$ac_link") 2>conftest.er1
17333   ac_status=$?
17334   grep -v '^ *+' conftest.er1 >conftest.err
17335   rm -f conftest.er1
17336   cat conftest.err >&5
17337   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17338   (exit $ac_status); } && {
17339          test -z "$ac_c_werror_flag" ||
17340          test ! -s conftest.err
17341        } && test -s conftest$ac_exeext &&
17342        $as_test_x conftest$ac_exeext; then
17343   eval "$as_ac_var=yes"
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348         eval "$as_ac_var=no"
17349 fi
17350
17351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17352       conftest$ac_exeext conftest.$ac_ext
17353 fi
17354 ac_res=`eval echo '${'$as_ac_var'}'`
17355                { echo "$as_me:$LINENO: result: $ac_res" >&5
17356 echo "${ECHO_T}$ac_res" >&6; }
17357 if test `eval echo '${'$as_ac_var'}'` = yes; then
17358   cat >>confdefs.h <<_ACEOF
17359 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17360 _ACEOF
17361
17362 else
17363   case " $LIBOBJS " in
17364   *" $ac_func.$ac_objext "* ) ;;
17365   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
17366  ;;
17367 esac
17368
17369 fi
17370 done
17371
17372
17373
17374 for ac_func in closefrom
17375 do
17376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17377 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17379 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17380   echo $ECHO_N "(cached) $ECHO_C" >&6
17381 else
17382   cat >conftest.$ac_ext <<_ACEOF
17383 /* confdefs.h.  */
17384 _ACEOF
17385 cat confdefs.h >>conftest.$ac_ext
17386 cat >>conftest.$ac_ext <<_ACEOF
17387 /* end confdefs.h.  */
17388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17389    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17390 #define $ac_func innocuous_$ac_func
17391
17392 /* System header to define __stub macros and hopefully few prototypes,
17393     which can conflict with char $ac_func (); below.
17394     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17395     <limits.h> exists even on freestanding compilers.  */
17396
17397 #ifdef __STDC__
17398 # include <limits.h>
17399 #else
17400 # include <assert.h>
17401 #endif
17402
17403 #undef $ac_func
17404
17405 /* Override any GCC internal prototype to avoid an error.
17406    Use char because int might match the return type of a GCC
17407    builtin and then its argument prototype would still apply.  */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 char $ac_func ();
17412 /* The GNU C library defines this for functions which it implements
17413     to always fail with ENOSYS.  Some functions are actually named
17414     something starting with __ and the normal name is an alias.  */
17415 #if defined __stub_$ac_func || defined __stub___$ac_func
17416 choke me
17417 #endif
17418
17419 int
17420 main ()
17421 {
17422 return $ac_func ();
17423   ;
17424   return 0;
17425 }
17426 _ACEOF
17427 rm -f conftest.$ac_objext conftest$ac_exeext
17428 if { (ac_try="$ac_link"
17429 case "(($ac_try" in
17430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17431   *) ac_try_echo=$ac_try;;
17432 esac
17433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17434   (eval "$ac_link") 2>conftest.er1
17435   ac_status=$?
17436   grep -v '^ *+' conftest.er1 >conftest.err
17437   rm -f conftest.er1
17438   cat conftest.err >&5
17439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17440   (exit $ac_status); } && {
17441          test -z "$ac_c_werror_flag" ||
17442          test ! -s conftest.err
17443        } && test -s conftest$ac_exeext &&
17444        $as_test_x conftest$ac_exeext; then
17445   eval "$as_ac_var=yes"
17446 else
17447   echo "$as_me: failed program was:" >&5
17448 sed 's/^/| /' conftest.$ac_ext >&5
17449
17450         eval "$as_ac_var=no"
17451 fi
17452
17453 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17454       conftest$ac_exeext conftest.$ac_ext
17455 fi
17456 ac_res=`eval echo '${'$as_ac_var'}'`
17457                { echo "$as_me:$LINENO: result: $ac_res" >&5
17458 echo "${ECHO_T}$ac_res" >&6; }
17459 if test `eval echo '${'$as_ac_var'}'` = yes; then
17460   cat >>confdefs.h <<_ACEOF
17461 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17462 _ACEOF
17463
17464 else
17465   case " $LIBOBJS " in
17466   *" closefrom.$ac_objext "* ) ;;
17467   *) LIBOBJS="$LIBOBJS closefrom.$ac_objext"
17468  ;;
17469 esac
17470
17471     { echo "$as_me:$LINENO: checking whether F_CLOSEM is declared" >&5
17472 echo $ECHO_N "checking whether F_CLOSEM is declared... $ECHO_C" >&6; }
17473 if test "${ac_cv_have_decl_F_CLOSEM+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h.  */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h.  */
17482  #include <limits.h>
17483           #include <fcntl.h>
17484
17485 int
17486 main ()
17487 {
17488 #ifndef F_CLOSEM
17489   (void) F_CLOSEM;
17490 #endif
17491
17492   ;
17493   return 0;
17494 }
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500   *) ac_try_echo=$ac_try;;
17501 esac
17502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17503   (eval "$ac_compile") 2>conftest.er1
17504   ac_status=$?
17505   grep -v '^ *+' conftest.er1 >conftest.err
17506   rm -f conftest.er1
17507   cat conftest.err >&5
17508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17509   (exit $ac_status); } && {
17510          test -z "$ac_c_werror_flag" ||
17511          test ! -s conftest.err
17512        } && test -s conftest.$ac_objext; then
17513   ac_cv_have_decl_F_CLOSEM=yes
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518         ac_cv_have_decl_F_CLOSEM=no
17519 fi
17520
17521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17522 fi
17523 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_F_CLOSEM" >&5
17524 echo "${ECHO_T}$ac_cv_have_decl_F_CLOSEM" >&6; }
17525 if test $ac_cv_have_decl_F_CLOSEM = yes; then
17526   cat >>confdefs.h <<\_ACEOF
17527 #define HAVE_FCNTL_CLOSEM 1
17528 _ACEOF
17529
17530 fi
17531
17532
17533 fi
17534 done
17535
17536
17537 for ac_func in mkstemp
17538 do
17539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17543   echo $ECHO_N "(cached) $ECHO_C" >&6
17544 else
17545   cat >conftest.$ac_ext <<_ACEOF
17546 /* confdefs.h.  */
17547 _ACEOF
17548 cat confdefs.h >>conftest.$ac_ext
17549 cat >>conftest.$ac_ext <<_ACEOF
17550 /* end confdefs.h.  */
17551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17552    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17553 #define $ac_func innocuous_$ac_func
17554
17555 /* System header to define __stub macros and hopefully few prototypes,
17556     which can conflict with char $ac_func (); below.
17557     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17558     <limits.h> exists even on freestanding compilers.  */
17559
17560 #ifdef __STDC__
17561 # include <limits.h>
17562 #else
17563 # include <assert.h>
17564 #endif
17565
17566 #undef $ac_func
17567
17568 /* Override any GCC internal prototype to avoid an error.
17569    Use char because int might match the return type of a GCC
17570    builtin and then its argument prototype would still apply.  */
17571 #ifdef __cplusplus
17572 extern "C"
17573 #endif
17574 char $ac_func ();
17575 /* The GNU C library defines this for functions which it implements
17576     to always fail with ENOSYS.  Some functions are actually named
17577     something starting with __ and the normal name is an alias.  */
17578 #if defined __stub_$ac_func || defined __stub___$ac_func
17579 choke me
17580 #endif
17581
17582 int
17583 main ()
17584 {
17585 return $ac_func ();
17586   ;
17587   return 0;
17588 }
17589 _ACEOF
17590 rm -f conftest.$ac_objext conftest$ac_exeext
17591 if { (ac_try="$ac_link"
17592 case "(($ac_try" in
17593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17594   *) ac_try_echo=$ac_try;;
17595 esac
17596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17597   (eval "$ac_link") 2>conftest.er1
17598   ac_status=$?
17599   grep -v '^ *+' conftest.er1 >conftest.err
17600   rm -f conftest.er1
17601   cat conftest.err >&5
17602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603   (exit $ac_status); } && {
17604          test -z "$ac_c_werror_flag" ||
17605          test ! -s conftest.err
17606        } && test -s conftest$ac_exeext &&
17607        $as_test_x conftest$ac_exeext; then
17608   eval "$as_ac_var=yes"
17609 else
17610   echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17612
17613         eval "$as_ac_var=no"
17614 fi
17615
17616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17617       conftest$ac_exeext conftest.$ac_ext
17618 fi
17619 ac_res=`eval echo '${'$as_ac_var'}'`
17620                { echo "$as_me:$LINENO: result: $ac_res" >&5
17621 echo "${ECHO_T}$ac_res" >&6; }
17622 if test `eval echo '${'$as_ac_var'}'` = yes; then
17623   cat >>confdefs.h <<_ACEOF
17624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17625 _ACEOF
17626
17627 else
17628   SUDO_OBJS="${SUDO_OBJS} mkstemp.o"
17629
17630
17631 for ac_func in random lrand48
17632 do
17633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17637   echo $ECHO_N "(cached) $ECHO_C" >&6
17638 else
17639   cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h.  */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h.  */
17645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17647 #define $ac_func innocuous_$ac_func
17648
17649 /* System header to define __stub macros and hopefully few prototypes,
17650     which can conflict with char $ac_func (); below.
17651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17652     <limits.h> exists even on freestanding compilers.  */
17653
17654 #ifdef __STDC__
17655 # include <limits.h>
17656 #else
17657 # include <assert.h>
17658 #endif
17659
17660 #undef $ac_func
17661
17662 /* Override any GCC internal prototype to avoid an error.
17663    Use char because int might match the return type of a GCC
17664    builtin and then its argument prototype would still apply.  */
17665 #ifdef __cplusplus
17666 extern "C"
17667 #endif
17668 char $ac_func ();
17669 /* The GNU C library defines this for functions which it implements
17670     to always fail with ENOSYS.  Some functions are actually named
17671     something starting with __ and the normal name is an alias.  */
17672 #if defined __stub_$ac_func || defined __stub___$ac_func
17673 choke me
17674 #endif
17675
17676 int
17677 main ()
17678 {
17679 return $ac_func ();
17680   ;
17681   return 0;
17682 }
17683 _ACEOF
17684 rm -f conftest.$ac_objext conftest$ac_exeext
17685 if { (ac_try="$ac_link"
17686 case "(($ac_try" in
17687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688   *) ac_try_echo=$ac_try;;
17689 esac
17690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17691   (eval "$ac_link") 2>conftest.er1
17692   ac_status=$?
17693   grep -v '^ *+' conftest.er1 >conftest.err
17694   rm -f conftest.er1
17695   cat conftest.err >&5
17696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17697   (exit $ac_status); } && {
17698          test -z "$ac_c_werror_flag" ||
17699          test ! -s conftest.err
17700        } && test -s conftest$ac_exeext &&
17701        $as_test_x conftest$ac_exeext; then
17702   eval "$as_ac_var=yes"
17703 else
17704   echo "$as_me: failed program was:" >&5
17705 sed 's/^/| /' conftest.$ac_ext >&5
17706
17707         eval "$as_ac_var=no"
17708 fi
17709
17710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17711       conftest$ac_exeext conftest.$ac_ext
17712 fi
17713 ac_res=`eval echo '${'$as_ac_var'}'`
17714                { echo "$as_me:$LINENO: result: $ac_res" >&5
17715 echo "${ECHO_T}$ac_res" >&6; }
17716 if test `eval echo '${'$as_ac_var'}'` = yes; then
17717   cat >>confdefs.h <<_ACEOF
17718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17719 _ACEOF
17720  break
17721 fi
17722 done
17723
17724
17725 fi
17726 done
17727
17728
17729
17730
17731
17732 for ac_func in snprintf vsnprintf asprintf vasprintf
17733 do
17734 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17738   echo $ECHO_N "(cached) $ECHO_C" >&6
17739 else
17740   cat >conftest.$ac_ext <<_ACEOF
17741 /* confdefs.h.  */
17742 _ACEOF
17743 cat confdefs.h >>conftest.$ac_ext
17744 cat >>conftest.$ac_ext <<_ACEOF
17745 /* end confdefs.h.  */
17746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17747    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17748 #define $ac_func innocuous_$ac_func
17749
17750 /* System header to define __stub macros and hopefully few prototypes,
17751     which can conflict with char $ac_func (); below.
17752     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17753     <limits.h> exists even on freestanding compilers.  */
17754
17755 #ifdef __STDC__
17756 # include <limits.h>
17757 #else
17758 # include <assert.h>
17759 #endif
17760
17761 #undef $ac_func
17762
17763 /* Override any GCC internal prototype to avoid an error.
17764    Use char because int might match the return type of a GCC
17765    builtin and then its argument prototype would still apply.  */
17766 #ifdef __cplusplus
17767 extern "C"
17768 #endif
17769 char $ac_func ();
17770 /* The GNU C library defines this for functions which it implements
17771     to always fail with ENOSYS.  Some functions are actually named
17772     something starting with __ and the normal name is an alias.  */
17773 #if defined __stub_$ac_func || defined __stub___$ac_func
17774 choke me
17775 #endif
17776
17777 int
17778 main ()
17779 {
17780 return $ac_func ();
17781   ;
17782   return 0;
17783 }
17784 _ACEOF
17785 rm -f conftest.$ac_objext conftest$ac_exeext
17786 if { (ac_try="$ac_link"
17787 case "(($ac_try" in
17788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17789   *) ac_try_echo=$ac_try;;
17790 esac
17791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17792   (eval "$ac_link") 2>conftest.er1
17793   ac_status=$?
17794   grep -v '^ *+' conftest.er1 >conftest.err
17795   rm -f conftest.er1
17796   cat conftest.err >&5
17797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17798   (exit $ac_status); } && {
17799          test -z "$ac_c_werror_flag" ||
17800          test ! -s conftest.err
17801        } && test -s conftest$ac_exeext &&
17802        $as_test_x conftest$ac_exeext; then
17803   eval "$as_ac_var=yes"
17804 else
17805   echo "$as_me: failed program was:" >&5
17806 sed 's/^/| /' conftest.$ac_ext >&5
17807
17808         eval "$as_ac_var=no"
17809 fi
17810
17811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17812       conftest$ac_exeext conftest.$ac_ext
17813 fi
17814 ac_res=`eval echo '${'$as_ac_var'}'`
17815                { echo "$as_me:$LINENO: result: $ac_res" >&5
17816 echo "${ECHO_T}$ac_res" >&6; }
17817 if test `eval echo '${'$as_ac_var'}'` = yes; then
17818   cat >>confdefs.h <<_ACEOF
17819 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17820 _ACEOF
17821
17822 else
17823   NEED_SNPRINTF=1
17824 fi
17825 done
17826
17827 if test X"$ac_cv_type_struct_timespec" != X"no"; then
17828     { echo "$as_me:$LINENO: checking for struct stat.st_mtim" >&5
17829 echo $ECHO_N "checking for struct stat.st_mtim... $ECHO_C" >&6; }
17830 if test "${ac_cv_member_struct_stat_st_mtim+set}" = set; then
17831   echo $ECHO_N "(cached) $ECHO_C" >&6
17832 else
17833   cat >conftest.$ac_ext <<_ACEOF
17834 /* confdefs.h.  */
17835 _ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h.  */
17839 $ac_includes_default
17840 int
17841 main ()
17842 {
17843 static struct stat ac_aggr;
17844 if (ac_aggr.st_mtim)
17845 return 0;
17846   ;
17847   return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854   *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857   (eval "$ac_compile") 2>conftest.er1
17858   ac_status=$?
17859   grep -v '^ *+' conftest.er1 >conftest.err
17860   rm -f conftest.er1
17861   cat conftest.err >&5
17862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863   (exit $ac_status); } && {
17864          test -z "$ac_c_werror_flag" ||
17865          test ! -s conftest.err
17866        } && test -s conftest.$ac_objext; then
17867   ac_cv_member_struct_stat_st_mtim=yes
17868 else
17869   echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872         cat >conftest.$ac_ext <<_ACEOF
17873 /* confdefs.h.  */
17874 _ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h.  */
17878 $ac_includes_default
17879 int
17880 main ()
17881 {
17882 static struct stat ac_aggr;
17883 if (sizeof ac_aggr.st_mtim)
17884 return 0;
17885   ;
17886   return 0;
17887 }
17888 _ACEOF
17889 rm -f conftest.$ac_objext
17890 if { (ac_try="$ac_compile"
17891 case "(($ac_try" in
17892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17893   *) ac_try_echo=$ac_try;;
17894 esac
17895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17896   (eval "$ac_compile") 2>conftest.er1
17897   ac_status=$?
17898   grep -v '^ *+' conftest.er1 >conftest.err
17899   rm -f conftest.er1
17900   cat conftest.err >&5
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); } && {
17903          test -z "$ac_c_werror_flag" ||
17904          test ! -s conftest.err
17905        } && test -s conftest.$ac_objext; then
17906   ac_cv_member_struct_stat_st_mtim=yes
17907 else
17908   echo "$as_me: failed program was:" >&5
17909 sed 's/^/| /' conftest.$ac_ext >&5
17910
17911         ac_cv_member_struct_stat_st_mtim=no
17912 fi
17913
17914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17915 fi
17916
17917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17918 fi
17919 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim" >&5
17920 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim" >&6; }
17921 if test $ac_cv_member_struct_stat_st_mtim = yes; then
17922   cat >>confdefs.h <<\_ACEOF
17923 #define HAVE_ST_MTIM 1
17924 _ACEOF
17925
17926         { echo "$as_me:$LINENO: checking for struct stat.st_mtim.st__tim" >&5
17927 echo $ECHO_N "checking for struct stat.st_mtim.st__tim... $ECHO_C" >&6; }
17928 if test "${ac_cv_member_struct_stat_st_mtim_st__tim+set}" = set; then
17929   echo $ECHO_N "(cached) $ECHO_C" >&6
17930 else
17931   cat >conftest.$ac_ext <<_ACEOF
17932 /* confdefs.h.  */
17933 _ACEOF
17934 cat confdefs.h >>conftest.$ac_ext
17935 cat >>conftest.$ac_ext <<_ACEOF
17936 /* end confdefs.h.  */
17937 $ac_includes_default
17938 int
17939 main ()
17940 {
17941 static struct stat ac_aggr;
17942 if (ac_aggr.st_mtim.st__tim)
17943 return 0;
17944   ;
17945   return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952   *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955   (eval "$ac_compile") 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } && {
17962          test -z "$ac_c_werror_flag" ||
17963          test ! -s conftest.err
17964        } && test -s conftest.$ac_objext; then
17965   ac_cv_member_struct_stat_st_mtim_st__tim=yes
17966 else
17967   echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970         cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h.  */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h.  */
17976 $ac_includes_default
17977 int
17978 main ()
17979 {
17980 static struct stat ac_aggr;
17981 if (sizeof ac_aggr.st_mtim.st__tim)
17982 return 0;
17983   ;
17984   return 0;
17985 }
17986 _ACEOF
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991   *) ac_try_echo=$ac_try;;
17992 esac
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994   (eval "$ac_compile") 2>conftest.er1
17995   ac_status=$?
17996   grep -v '^ *+' conftest.er1 >conftest.err
17997   rm -f conftest.er1
17998   cat conftest.err >&5
17999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000   (exit $ac_status); } && {
18001          test -z "$ac_c_werror_flag" ||
18002          test ! -s conftest.err
18003        } && test -s conftest.$ac_objext; then
18004   ac_cv_member_struct_stat_st_mtim_st__tim=yes
18005 else
18006   echo "$as_me: failed program was:" >&5
18007 sed 's/^/| /' conftest.$ac_ext >&5
18008
18009         ac_cv_member_struct_stat_st_mtim_st__tim=no
18010 fi
18011
18012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18013 fi
18014
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 fi
18017 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtim_st__tim" >&5
18018 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtim_st__tim" >&6; }
18019 if test $ac_cv_member_struct_stat_st_mtim_st__tim = yes; then
18020   cat >>confdefs.h <<\_ACEOF
18021 #define HAVE_ST__TIM 1
18022 _ACEOF
18023
18024 fi
18025
18026 else
18027   { echo "$as_me:$LINENO: checking for struct stat.st_mtimespec" >&5
18028 echo $ECHO_N "checking for struct stat.st_mtimespec... $ECHO_C" >&6; }
18029 if test "${ac_cv_member_struct_stat_st_mtimespec+set}" = set; then
18030   echo $ECHO_N "(cached) $ECHO_C" >&6
18031 else
18032   cat >conftest.$ac_ext <<_ACEOF
18033 /* confdefs.h.  */
18034 _ACEOF
18035 cat confdefs.h >>conftest.$ac_ext
18036 cat >>conftest.$ac_ext <<_ACEOF
18037 /* end confdefs.h.  */
18038 $ac_includes_default
18039 int
18040 main ()
18041 {
18042 static struct stat ac_aggr;
18043 if (ac_aggr.st_mtimespec)
18044 return 0;
18045   ;
18046   return 0;
18047 }
18048 _ACEOF
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053   *) ac_try_echo=$ac_try;;
18054 esac
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056   (eval "$ac_compile") 2>conftest.er1
18057   ac_status=$?
18058   grep -v '^ *+' conftest.er1 >conftest.err
18059   rm -f conftest.er1
18060   cat conftest.err >&5
18061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062   (exit $ac_status); } && {
18063          test -z "$ac_c_werror_flag" ||
18064          test ! -s conftest.err
18065        } && test -s conftest.$ac_objext; then
18066   ac_cv_member_struct_stat_st_mtimespec=yes
18067 else
18068   echo "$as_me: failed program was:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18070
18071         cat >conftest.$ac_ext <<_ACEOF
18072 /* confdefs.h.  */
18073 _ACEOF
18074 cat confdefs.h >>conftest.$ac_ext
18075 cat >>conftest.$ac_ext <<_ACEOF
18076 /* end confdefs.h.  */
18077 $ac_includes_default
18078 int
18079 main ()
18080 {
18081 static struct stat ac_aggr;
18082 if (sizeof ac_aggr.st_mtimespec)
18083 return 0;
18084   ;
18085   return 0;
18086 }
18087 _ACEOF
18088 rm -f conftest.$ac_objext
18089 if { (ac_try="$ac_compile"
18090 case "(($ac_try" in
18091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092   *) ac_try_echo=$ac_try;;
18093 esac
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095   (eval "$ac_compile") 2>conftest.er1
18096   ac_status=$?
18097   grep -v '^ *+' conftest.er1 >conftest.err
18098   rm -f conftest.er1
18099   cat conftest.err >&5
18100   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18101   (exit $ac_status); } && {
18102          test -z "$ac_c_werror_flag" ||
18103          test ! -s conftest.err
18104        } && test -s conftest.$ac_objext; then
18105   ac_cv_member_struct_stat_st_mtimespec=yes
18106 else
18107   echo "$as_me: failed program was:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18109
18110         ac_cv_member_struct_stat_st_mtimespec=no
18111 fi
18112
18113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18114 fi
18115
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 fi
18118 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_mtimespec" >&5
18119 echo "${ECHO_T}$ac_cv_member_struct_stat_st_mtimespec" >&6; }
18120 if test $ac_cv_member_struct_stat_st_mtimespec = yes; then
18121   cat >>confdefs.h <<\_ACEOF
18122 #define HAVE_ST_MTIMESPEC 1
18123 _ACEOF
18124
18125 fi
18126
18127 fi
18128
18129     { echo "$as_me:$LINENO: checking for two-parameter timespecsub" >&5
18130 echo $ECHO_N "checking for two-parameter timespecsub... $ECHO_C" >&6; }
18131     cat >conftest.$ac_ext <<_ACEOF
18132 /* confdefs.h.  */
18133 _ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h.  */
18137 #include <sys/types.h>
18138 #include <sys/time.h>
18139 int
18140 main ()
18141 {
18142 struct timespec ts1, ts2;
18143 ts1.tv_sec = 1; ts1.tv_nsec = 0; ts2.tv_sec = 0; ts2.tv_nsec = 0;
18144 #ifndef timespecsub
18145 #error missing timespecsub
18146 #endif
18147 timespecsub(&ts1, &ts2);
18148   ;
18149   return 0;
18150 }
18151 _ACEOF
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156   *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159   (eval "$ac_compile") 2>conftest.er1
18160   ac_status=$?
18161   grep -v '^ *+' conftest.er1 >conftest.err
18162   rm -f conftest.er1
18163   cat conftest.err >&5
18164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165   (exit $ac_status); } && {
18166          test -z "$ac_c_werror_flag" ||
18167          test ! -s conftest.err
18168        } && test -s conftest.$ac_objext; then
18169   cat >>confdefs.h <<\_ACEOF
18170 #define HAVE_TIMESPECSUB2 1
18171 _ACEOF
18172
18173     { echo "$as_me:$LINENO: result: yes" >&5
18174 echo "${ECHO_T}yes" >&6; }
18175 else
18176   echo "$as_me: failed program was:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18178
18179         { echo "$as_me:$LINENO: result: no" >&5
18180 echo "${ECHO_T}no" >&6; }
18181 fi
18182
18183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18184 fi
18185 cat >conftest.$ac_ext <<_ACEOF
18186 /* confdefs.h.  */
18187 _ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h.  */
18191 #include <sys/types.h>
18192 #include <$ac_header_dirent>
18193 int
18194 main ()
18195 {
18196 DIR *d; (void)dirfd(d);
18197   ;
18198   return 0;
18199 }
18200 _ACEOF
18201 rm -f conftest.$ac_objext conftest$ac_exeext
18202 if { (ac_try="$ac_link"
18203 case "(($ac_try" in
18204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205   *) ac_try_echo=$ac_try;;
18206 esac
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208   (eval "$ac_link") 2>conftest.er1
18209   ac_status=$?
18210   grep -v '^ *+' conftest.er1 >conftest.err
18211   rm -f conftest.er1
18212   cat conftest.err >&5
18213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18214   (exit $ac_status); } && {
18215          test -z "$ac_c_werror_flag" ||
18216          test ! -s conftest.err
18217        } && test -s conftest$ac_exeext &&
18218        $as_test_x conftest$ac_exeext; then
18219   cat >>confdefs.h <<\_ACEOF
18220 #define HAVE_DIRFD 1
18221 _ACEOF
18222
18223 else
18224   echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18226
18227         cat >conftest.$ac_ext <<_ACEOF
18228 /* confdefs.h.  */
18229 _ACEOF
18230 cat confdefs.h >>conftest.$ac_ext
18231 cat >>conftest.$ac_ext <<_ACEOF
18232 /* end confdefs.h.  */
18233 #include <sys/types.h>
18234 #include <$ac_header_dirent>
18235 int
18236 main ()
18237 {
18238 DIR d; memset(&d, 0, sizeof(d)); return(d.dd_fd);
18239   ;
18240   return 0;
18241 }
18242 _ACEOF
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247   *) ac_try_echo=$ac_try;;
18248 esac
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250   (eval "$ac_link") 2>conftest.er1
18251   ac_status=$?
18252   grep -v '^ *+' conftest.er1 >conftest.err
18253   rm -f conftest.er1
18254   cat conftest.err >&5
18255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256   (exit $ac_status); } && {
18257          test -z "$ac_c_werror_flag" ||
18258          test ! -s conftest.err
18259        } && test -s conftest$ac_exeext &&
18260        $as_test_x conftest$ac_exeext; then
18261   cat >>confdefs.h <<\_ACEOF
18262 #define HAVE_DD_FD 1
18263 _ACEOF
18264
18265 else
18266   echo "$as_me: failed program was:" >&5
18267 sed 's/^/| /' conftest.$ac_ext >&5
18268
18269
18270 fi
18271
18272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18273       conftest$ac_exeext conftest.$ac_ext
18274 fi
18275
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277       conftest$ac_exeext conftest.$ac_ext
18278 if test -n "$NEED_SNPRINTF"; then
18279     case " $LIBOBJS " in
18280   *" snprintf.$ac_objext "* ) ;;
18281   *) LIBOBJS="$LIBOBJS snprintf.$ac_objext"
18282  ;;
18283 esac
18284
18285 fi
18286 { echo "$as_me:$LINENO: checking for socket" >&5
18287 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
18288 if test "${ac_cv_func_socket+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   cat >conftest.$ac_ext <<_ACEOF
18292 /* confdefs.h.  */
18293 _ACEOF
18294 cat confdefs.h >>conftest.$ac_ext
18295 cat >>conftest.$ac_ext <<_ACEOF
18296 /* end confdefs.h.  */
18297 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
18298    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18299 #define socket innocuous_socket
18300
18301 /* System header to define __stub macros and hopefully few prototypes,
18302     which can conflict with char socket (); below.
18303     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18304     <limits.h> exists even on freestanding compilers.  */
18305
18306 #ifdef __STDC__
18307 # include <limits.h>
18308 #else
18309 # include <assert.h>
18310 #endif
18311
18312 #undef socket
18313
18314 /* Override any GCC internal prototype to avoid an error.
18315    Use char because int might match the return type of a GCC
18316    builtin and then its argument prototype would still apply.  */
18317 #ifdef __cplusplus
18318 extern "C"
18319 #endif
18320 char socket ();
18321 /* The GNU C library defines this for functions which it implements
18322     to always fail with ENOSYS.  Some functions are actually named
18323     something starting with __ and the normal name is an alias.  */
18324 #if defined __stub_socket || defined __stub___socket
18325 choke me
18326 #endif
18327
18328 int
18329 main ()
18330 {
18331 return socket ();
18332   ;
18333   return 0;
18334 }
18335 _ACEOF
18336 rm -f conftest.$ac_objext conftest$ac_exeext
18337 if { (ac_try="$ac_link"
18338 case "(($ac_try" in
18339   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340   *) ac_try_echo=$ac_try;;
18341 esac
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343   (eval "$ac_link") 2>conftest.er1
18344   ac_status=$?
18345   grep -v '^ *+' conftest.er1 >conftest.err
18346   rm -f conftest.er1
18347   cat conftest.err >&5
18348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349   (exit $ac_status); } && {
18350          test -z "$ac_c_werror_flag" ||
18351          test ! -s conftest.err
18352        } && test -s conftest$ac_exeext &&
18353        $as_test_x conftest$ac_exeext; then
18354   ac_cv_func_socket=yes
18355 else
18356   echo "$as_me: failed program was:" >&5
18357 sed 's/^/| /' conftest.$ac_ext >&5
18358
18359         ac_cv_func_socket=no
18360 fi
18361
18362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18363       conftest$ac_exeext conftest.$ac_ext
18364 fi
18365 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
18366 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
18367 if test $ac_cv_func_socket = yes; then
18368   :
18369 else
18370   { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18371 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18372 if test "${ac_cv_lib_socket_socket+set}" = set; then
18373   echo $ECHO_N "(cached) $ECHO_C" >&6
18374 else
18375   ac_check_lib_save_LIBS=$LIBS
18376 LIBS="-lsocket  $LIBS"
18377 cat >conftest.$ac_ext <<_ACEOF
18378 /* confdefs.h.  */
18379 _ACEOF
18380 cat confdefs.h >>conftest.$ac_ext
18381 cat >>conftest.$ac_ext <<_ACEOF
18382 /* end confdefs.h.  */
18383
18384 /* Override any GCC internal prototype to avoid an error.
18385    Use char because int might match the return type of a GCC
18386    builtin and then its argument prototype would still apply.  */
18387 #ifdef __cplusplus
18388 extern "C"
18389 #endif
18390 char socket ();
18391 int
18392 main ()
18393 {
18394 return socket ();
18395   ;
18396   return 0;
18397 }
18398 _ACEOF
18399 rm -f conftest.$ac_objext conftest$ac_exeext
18400 if { (ac_try="$ac_link"
18401 case "(($ac_try" in
18402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18403   *) ac_try_echo=$ac_try;;
18404 esac
18405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18406   (eval "$ac_link") 2>conftest.er1
18407   ac_status=$?
18408   grep -v '^ *+' conftest.er1 >conftest.err
18409   rm -f conftest.er1
18410   cat conftest.err >&5
18411   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18412   (exit $ac_status); } && {
18413          test -z "$ac_c_werror_flag" ||
18414          test ! -s conftest.err
18415        } && test -s conftest$ac_exeext &&
18416        $as_test_x conftest$ac_exeext; then
18417   ac_cv_lib_socket_socket=yes
18418 else
18419   echo "$as_me: failed program was:" >&5
18420 sed 's/^/| /' conftest.$ac_ext >&5
18421
18422         ac_cv_lib_socket_socket=no
18423 fi
18424
18425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18426       conftest$ac_exeext conftest.$ac_ext
18427 LIBS=$ac_check_lib_save_LIBS
18428 fi
18429 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
18430 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
18431 if test $ac_cv_lib_socket_socket = yes; then
18432   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
18433 else
18434   { echo "$as_me:$LINENO: checking for socket in -linet" >&5
18435 echo $ECHO_N "checking for socket in -linet... $ECHO_C" >&6; }
18436 if test "${ac_cv_lib_inet_socket+set}" = set; then
18437   echo $ECHO_N "(cached) $ECHO_C" >&6
18438 else
18439   ac_check_lib_save_LIBS=$LIBS
18440 LIBS="-linet  $LIBS"
18441 cat >conftest.$ac_ext <<_ACEOF
18442 /* confdefs.h.  */
18443 _ACEOF
18444 cat confdefs.h >>conftest.$ac_ext
18445 cat >>conftest.$ac_ext <<_ACEOF
18446 /* end confdefs.h.  */
18447
18448 /* Override any GCC internal prototype to avoid an error.
18449    Use char because int might match the return type of a GCC
18450    builtin and then its argument prototype would still apply.  */
18451 #ifdef __cplusplus
18452 extern "C"
18453 #endif
18454 char socket ();
18455 int
18456 main ()
18457 {
18458 return socket ();
18459   ;
18460   return 0;
18461 }
18462 _ACEOF
18463 rm -f conftest.$ac_objext conftest$ac_exeext
18464 if { (ac_try="$ac_link"
18465 case "(($ac_try" in
18466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18467   *) ac_try_echo=$ac_try;;
18468 esac
18469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18470   (eval "$ac_link") 2>conftest.er1
18471   ac_status=$?
18472   grep -v '^ *+' conftest.er1 >conftest.err
18473   rm -f conftest.er1
18474   cat conftest.err >&5
18475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18476   (exit $ac_status); } && {
18477          test -z "$ac_c_werror_flag" ||
18478          test ! -s conftest.err
18479        } && test -s conftest$ac_exeext &&
18480        $as_test_x conftest$ac_exeext; then
18481   ac_cv_lib_inet_socket=yes
18482 else
18483   echo "$as_me: failed program was:" >&5
18484 sed 's/^/| /' conftest.$ac_ext >&5
18485
18486         ac_cv_lib_inet_socket=no
18487 fi
18488
18489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18490       conftest$ac_exeext conftest.$ac_ext
18491 LIBS=$ac_check_lib_save_LIBS
18492 fi
18493 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_socket" >&5
18494 echo "${ECHO_T}$ac_cv_lib_inet_socket" >&6; }
18495 if test $ac_cv_lib_inet_socket = yes; then
18496   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18497 else
18498   { echo "$as_me:$LINENO: WARNING: unable to find socket() trying -lsocket -lnsl" >&5
18499 echo "$as_me: WARNING: unable to find socket() trying -lsocket -lnsl" >&2;}
18500 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
18501 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
18502 if test "${ac_cv_lib_socket_socket_lnsl+set}" = set; then
18503   echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505   ac_check_lib_save_LIBS=$LIBS
18506 LIBS="-lsocket -lnsl $LIBS"
18507 cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513
18514 /* Override any GCC internal prototype to avoid an error.
18515    Use char because int might match the return type of a GCC
18516    builtin and then its argument prototype would still apply.  */
18517 #ifdef __cplusplus
18518 extern "C"
18519 #endif
18520 char socket ();
18521 int
18522 main ()
18523 {
18524 return socket ();
18525   ;
18526   return 0;
18527 }
18528 _ACEOF
18529 rm -f conftest.$ac_objext conftest$ac_exeext
18530 if { (ac_try="$ac_link"
18531 case "(($ac_try" in
18532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533   *) ac_try_echo=$ac_try;;
18534 esac
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536   (eval "$ac_link") 2>conftest.er1
18537   ac_status=$?
18538   grep -v '^ *+' conftest.er1 >conftest.err
18539   rm -f conftest.er1
18540   cat conftest.err >&5
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); } && {
18543          test -z "$ac_c_werror_flag" ||
18544          test ! -s conftest.err
18545        } && test -s conftest$ac_exeext &&
18546        $as_test_x conftest$ac_exeext; then
18547   ac_cv_lib_socket_socket_lnsl=yes
18548 else
18549   echo "$as_me: failed program was:" >&5
18550 sed 's/^/| /' conftest.$ac_ext >&5
18551
18552         ac_cv_lib_socket_socket_lnsl=no
18553 fi
18554
18555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18556       conftest$ac_exeext conftest.$ac_ext
18557 LIBS=$ac_check_lib_save_LIBS
18558 fi
18559 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket_lnsl" >&5
18560 echo "${ECHO_T}$ac_cv_lib_socket_socket_lnsl" >&6; }
18561 if test $ac_cv_lib_socket_socket_lnsl = yes; then
18562   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18563 fi
18564
18565 fi
18566
18567 fi
18568
18569 fi
18570
18571 { echo "$as_me:$LINENO: checking for inet_addr" >&5
18572 echo $ECHO_N "checking for inet_addr... $ECHO_C" >&6; }
18573 if test "${ac_cv_func_inet_addr+set}" = set; then
18574   echo $ECHO_N "(cached) $ECHO_C" >&6
18575 else
18576   cat >conftest.$ac_ext <<_ACEOF
18577 /* confdefs.h.  */
18578 _ACEOF
18579 cat confdefs.h >>conftest.$ac_ext
18580 cat >>conftest.$ac_ext <<_ACEOF
18581 /* end confdefs.h.  */
18582 /* Define inet_addr to an innocuous variant, in case <limits.h> declares inet_addr.
18583    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18584 #define inet_addr innocuous_inet_addr
18585
18586 /* System header to define __stub macros and hopefully few prototypes,
18587     which can conflict with char inet_addr (); below.
18588     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18589     <limits.h> exists even on freestanding compilers.  */
18590
18591 #ifdef __STDC__
18592 # include <limits.h>
18593 #else
18594 # include <assert.h>
18595 #endif
18596
18597 #undef inet_addr
18598
18599 /* Override any GCC internal prototype to avoid an error.
18600    Use char because int might match the return type of a GCC
18601    builtin and then its argument prototype would still apply.  */
18602 #ifdef __cplusplus
18603 extern "C"
18604 #endif
18605 char inet_addr ();
18606 /* The GNU C library defines this for functions which it implements
18607     to always fail with ENOSYS.  Some functions are actually named
18608     something starting with __ and the normal name is an alias.  */
18609 #if defined __stub_inet_addr || defined __stub___inet_addr
18610 choke me
18611 #endif
18612
18613 int
18614 main ()
18615 {
18616 return inet_addr ();
18617   ;
18618   return 0;
18619 }
18620 _ACEOF
18621 rm -f conftest.$ac_objext conftest$ac_exeext
18622 if { (ac_try="$ac_link"
18623 case "(($ac_try" in
18624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18625   *) ac_try_echo=$ac_try;;
18626 esac
18627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18628   (eval "$ac_link") 2>conftest.er1
18629   ac_status=$?
18630   grep -v '^ *+' conftest.er1 >conftest.err
18631   rm -f conftest.er1
18632   cat conftest.err >&5
18633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18634   (exit $ac_status); } && {
18635          test -z "$ac_c_werror_flag" ||
18636          test ! -s conftest.err
18637        } && test -s conftest$ac_exeext &&
18638        $as_test_x conftest$ac_exeext; then
18639   ac_cv_func_inet_addr=yes
18640 else
18641   echo "$as_me: failed program was:" >&5
18642 sed 's/^/| /' conftest.$ac_ext >&5
18643
18644         ac_cv_func_inet_addr=no
18645 fi
18646
18647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18648       conftest$ac_exeext conftest.$ac_ext
18649 fi
18650 { echo "$as_me:$LINENO: result: $ac_cv_func_inet_addr" >&5
18651 echo "${ECHO_T}$ac_cv_func_inet_addr" >&6; }
18652 if test $ac_cv_func_inet_addr = yes; then
18653   :
18654 else
18655   { echo "$as_me:$LINENO: checking for __inet_addr" >&5
18656 echo $ECHO_N "checking for __inet_addr... $ECHO_C" >&6; }
18657 if test "${ac_cv_func___inet_addr+set}" = set; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660   cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h.  */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h.  */
18666 /* Define __inet_addr to an innocuous variant, in case <limits.h> declares __inet_addr.
18667    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18668 #define __inet_addr innocuous___inet_addr
18669
18670 /* System header to define __stub macros and hopefully few prototypes,
18671     which can conflict with char __inet_addr (); below.
18672     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18673     <limits.h> exists even on freestanding compilers.  */
18674
18675 #ifdef __STDC__
18676 # include <limits.h>
18677 #else
18678 # include <assert.h>
18679 #endif
18680
18681 #undef __inet_addr
18682
18683 /* Override any GCC internal prototype to avoid an error.
18684    Use char because int might match the return type of a GCC
18685    builtin and then its argument prototype would still apply.  */
18686 #ifdef __cplusplus
18687 extern "C"
18688 #endif
18689 char __inet_addr ();
18690 /* The GNU C library defines this for functions which it implements
18691     to always fail with ENOSYS.  Some functions are actually named
18692     something starting with __ and the normal name is an alias.  */
18693 #if defined __stub___inet_addr || defined __stub_____inet_addr
18694 choke me
18695 #endif
18696
18697 int
18698 main ()
18699 {
18700 return __inet_addr ();
18701   ;
18702   return 0;
18703 }
18704 _ACEOF
18705 rm -f conftest.$ac_objext conftest$ac_exeext
18706 if { (ac_try="$ac_link"
18707 case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_link") 2>conftest.er1
18713   ac_status=$?
18714   grep -v '^ *+' conftest.er1 >conftest.err
18715   rm -f conftest.er1
18716   cat conftest.err >&5
18717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18718   (exit $ac_status); } && {
18719          test -z "$ac_c_werror_flag" ||
18720          test ! -s conftest.err
18721        } && test -s conftest$ac_exeext &&
18722        $as_test_x conftest$ac_exeext; then
18723   ac_cv_func___inet_addr=yes
18724 else
18725   echo "$as_me: failed program was:" >&5
18726 sed 's/^/| /' conftest.$ac_ext >&5
18727
18728         ac_cv_func___inet_addr=no
18729 fi
18730
18731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18732       conftest$ac_exeext conftest.$ac_ext
18733 fi
18734 { echo "$as_me:$LINENO: result: $ac_cv_func___inet_addr" >&5
18735 echo "${ECHO_T}$ac_cv_func___inet_addr" >&6; }
18736 if test $ac_cv_func___inet_addr = yes; then
18737   :
18738 else
18739   { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
18740 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
18741 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   ac_check_lib_save_LIBS=$LIBS
18745 LIBS="-lnsl  $LIBS"
18746 cat >conftest.$ac_ext <<_ACEOF
18747 /* confdefs.h.  */
18748 _ACEOF
18749 cat confdefs.h >>conftest.$ac_ext
18750 cat >>conftest.$ac_ext <<_ACEOF
18751 /* end confdefs.h.  */
18752
18753 /* Override any GCC internal prototype to avoid an error.
18754    Use char because int might match the return type of a GCC
18755    builtin and then its argument prototype would still apply.  */
18756 #ifdef __cplusplus
18757 extern "C"
18758 #endif
18759 char inet_addr ();
18760 int
18761 main ()
18762 {
18763 return inet_addr ();
18764   ;
18765   return 0;
18766 }
18767 _ACEOF
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772   *) ac_try_echo=$ac_try;;
18773 esac
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775   (eval "$ac_link") 2>conftest.er1
18776   ac_status=$?
18777   grep -v '^ *+' conftest.er1 >conftest.err
18778   rm -f conftest.er1
18779   cat conftest.err >&5
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); } && {
18782          test -z "$ac_c_werror_flag" ||
18783          test ! -s conftest.err
18784        } && test -s conftest$ac_exeext &&
18785        $as_test_x conftest$ac_exeext; then
18786   ac_cv_lib_nsl_inet_addr=yes
18787 else
18788   echo "$as_me: failed program was:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18790
18791         ac_cv_lib_nsl_inet_addr=no
18792 fi
18793
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795       conftest$ac_exeext conftest.$ac_ext
18796 LIBS=$ac_check_lib_save_LIBS
18797 fi
18798 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
18799 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
18800 if test $ac_cv_lib_nsl_inet_addr = yes; then
18801   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
18802 else
18803   { echo "$as_me:$LINENO: checking for inet_addr in -linet" >&5
18804 echo $ECHO_N "checking for inet_addr in -linet... $ECHO_C" >&6; }
18805 if test "${ac_cv_lib_inet_inet_addr+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   ac_check_lib_save_LIBS=$LIBS
18809 LIBS="-linet  $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 inet_addr ();
18824 int
18825 main ()
18826 {
18827 return inet_addr ();
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_inet_inet_addr=yes
18851 else
18852   echo "$as_me: failed program was:" >&5
18853 sed 's/^/| /' conftest.$ac_ext >&5
18854
18855         ac_cv_lib_inet_inet_addr=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_inet_inet_addr" >&5
18863 echo "${ECHO_T}$ac_cv_lib_inet_inet_addr" >&6; }
18864 if test $ac_cv_lib_inet_inet_addr = yes; then
18865   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
18866 else
18867   { echo "$as_me:$LINENO: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&5
18868 echo "$as_me: WARNING: unable to find inet_addr() trying -lsocket -lnsl" >&2;}
18869 { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
18870 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
18871 if test "${ac_cv_lib_socket_inet_addr_lnsl+set}" = set; then
18872   echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874   ac_check_lib_save_LIBS=$LIBS
18875 LIBS="-lsocket -lnsl $LIBS"
18876 cat >conftest.$ac_ext <<_ACEOF
18877 /* confdefs.h.  */
18878 _ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h.  */
18882
18883 /* Override any GCC internal prototype to avoid an error.
18884    Use char because int might match the return type of a GCC
18885    builtin and then its argument prototype would still apply.  */
18886 #ifdef __cplusplus
18887 extern "C"
18888 #endif
18889 char inet_addr ();
18890 int
18891 main ()
18892 {
18893 return inet_addr ();
18894   ;
18895   return 0;
18896 }
18897 _ACEOF
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902   *) ac_try_echo=$ac_try;;
18903 esac
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905   (eval "$ac_link") 2>conftest.er1
18906   ac_status=$?
18907   grep -v '^ *+' conftest.er1 >conftest.err
18908   rm -f conftest.er1
18909   cat conftest.err >&5
18910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911   (exit $ac_status); } && {
18912          test -z "$ac_c_werror_flag" ||
18913          test ! -s conftest.err
18914        } && test -s conftest$ac_exeext &&
18915        $as_test_x conftest$ac_exeext; then
18916   ac_cv_lib_socket_inet_addr_lnsl=yes
18917 else
18918   echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921         ac_cv_lib_socket_inet_addr_lnsl=no
18922 fi
18923
18924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18925       conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18927 fi
18928 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr_lnsl" >&5
18929 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr_lnsl" >&6; }
18930 if test $ac_cv_lib_socket_inet_addr_lnsl = yes; then
18931   NET_LIBS="${NET_LIBS} -lsocket -lnsl"; LIBS="${LIBS} -lsocket -lnsl"
18932 fi
18933
18934 fi
18935
18936 fi
18937
18938 fi
18939
18940 fi
18941
18942 { echo "$as_me:$LINENO: checking for syslog" >&5
18943 echo $ECHO_N "checking for syslog... $ECHO_C" >&6; }
18944 if test "${ac_cv_func_syslog+set}" = set; then
18945   echo $ECHO_N "(cached) $ECHO_C" >&6
18946 else
18947   cat >conftest.$ac_ext <<_ACEOF
18948 /* confdefs.h.  */
18949 _ACEOF
18950 cat confdefs.h >>conftest.$ac_ext
18951 cat >>conftest.$ac_ext <<_ACEOF
18952 /* end confdefs.h.  */
18953 /* Define syslog to an innocuous variant, in case <limits.h> declares syslog.
18954    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18955 #define syslog innocuous_syslog
18956
18957 /* System header to define __stub macros and hopefully few prototypes,
18958     which can conflict with char syslog (); below.
18959     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18960     <limits.h> exists even on freestanding compilers.  */
18961
18962 #ifdef __STDC__
18963 # include <limits.h>
18964 #else
18965 # include <assert.h>
18966 #endif
18967
18968 #undef syslog
18969
18970 /* Override any GCC internal prototype to avoid an error.
18971    Use char because int might match the return type of a GCC
18972    builtin and then its argument prototype would still apply.  */
18973 #ifdef __cplusplus
18974 extern "C"
18975 #endif
18976 char syslog ();
18977 /* The GNU C library defines this for functions which it implements
18978     to always fail with ENOSYS.  Some functions are actually named
18979     something starting with __ and the normal name is an alias.  */
18980 #if defined __stub_syslog || defined __stub___syslog
18981 choke me
18982 #endif
18983
18984 int
18985 main ()
18986 {
18987 return syslog ();
18988   ;
18989   return 0;
18990 }
18991 _ACEOF
18992 rm -f conftest.$ac_objext conftest$ac_exeext
18993 if { (ac_try="$ac_link"
18994 case "(($ac_try" in
18995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18996   *) ac_try_echo=$ac_try;;
18997 esac
18998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18999   (eval "$ac_link") 2>conftest.er1
19000   ac_status=$?
19001   grep -v '^ *+' conftest.er1 >conftest.err
19002   rm -f conftest.er1
19003   cat conftest.err >&5
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); } && {
19006          test -z "$ac_c_werror_flag" ||
19007          test ! -s conftest.err
19008        } && test -s conftest$ac_exeext &&
19009        $as_test_x conftest$ac_exeext; then
19010   ac_cv_func_syslog=yes
19011 else
19012   echo "$as_me: failed program was:" >&5
19013 sed 's/^/| /' conftest.$ac_ext >&5
19014
19015         ac_cv_func_syslog=no
19016 fi
19017
19018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19019       conftest$ac_exeext conftest.$ac_ext
19020 fi
19021 { echo "$as_me:$LINENO: result: $ac_cv_func_syslog" >&5
19022 echo "${ECHO_T}$ac_cv_func_syslog" >&6; }
19023 if test $ac_cv_func_syslog = yes; then
19024   :
19025 else
19026   { echo "$as_me:$LINENO: checking for syslog in -lsocket" >&5
19027 echo $ECHO_N "checking for syslog in -lsocket... $ECHO_C" >&6; }
19028 if test "${ac_cv_lib_socket_syslog+set}" = set; then
19029   echo $ECHO_N "(cached) $ECHO_C" >&6
19030 else
19031   ac_check_lib_save_LIBS=$LIBS
19032 LIBS="-lsocket  $LIBS"
19033 cat >conftest.$ac_ext <<_ACEOF
19034 /* confdefs.h.  */
19035 _ACEOF
19036 cat confdefs.h >>conftest.$ac_ext
19037 cat >>conftest.$ac_ext <<_ACEOF
19038 /* end confdefs.h.  */
19039
19040 /* Override any GCC internal prototype to avoid an error.
19041    Use char because int might match the return type of a GCC
19042    builtin and then its argument prototype would still apply.  */
19043 #ifdef __cplusplus
19044 extern "C"
19045 #endif
19046 char syslog ();
19047 int
19048 main ()
19049 {
19050 return syslog ();
19051   ;
19052   return 0;
19053 }
19054 _ACEOF
19055 rm -f conftest.$ac_objext conftest$ac_exeext
19056 if { (ac_try="$ac_link"
19057 case "(($ac_try" in
19058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059   *) ac_try_echo=$ac_try;;
19060 esac
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062   (eval "$ac_link") 2>conftest.er1
19063   ac_status=$?
19064   grep -v '^ *+' conftest.er1 >conftest.err
19065   rm -f conftest.er1
19066   cat conftest.err >&5
19067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068   (exit $ac_status); } && {
19069          test -z "$ac_c_werror_flag" ||
19070          test ! -s conftest.err
19071        } && test -s conftest$ac_exeext &&
19072        $as_test_x conftest$ac_exeext; then
19073   ac_cv_lib_socket_syslog=yes
19074 else
19075   echo "$as_me: failed program was:" >&5
19076 sed 's/^/| /' conftest.$ac_ext >&5
19077
19078         ac_cv_lib_socket_syslog=no
19079 fi
19080
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082       conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS
19084 fi
19085 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_syslog" >&5
19086 echo "${ECHO_T}$ac_cv_lib_socket_syslog" >&6; }
19087 if test $ac_cv_lib_socket_syslog = yes; then
19088   NET_LIBS="${NET_LIBS} -lsocket"; LIBS="${LIBS} -lsocket"
19089 else
19090   { echo "$as_me:$LINENO: checking for syslog in -lnsl" >&5
19091 echo $ECHO_N "checking for syslog in -lnsl... $ECHO_C" >&6; }
19092 if test "${ac_cv_lib_nsl_syslog+set}" = set; then
19093   echo $ECHO_N "(cached) $ECHO_C" >&6
19094 else
19095   ac_check_lib_save_LIBS=$LIBS
19096 LIBS="-lnsl  $LIBS"
19097 cat >conftest.$ac_ext <<_ACEOF
19098 /* confdefs.h.  */
19099 _ACEOF
19100 cat confdefs.h >>conftest.$ac_ext
19101 cat >>conftest.$ac_ext <<_ACEOF
19102 /* end confdefs.h.  */
19103
19104 /* Override any GCC internal prototype to avoid an error.
19105    Use char because int might match the return type of a GCC
19106    builtin and then its argument prototype would still apply.  */
19107 #ifdef __cplusplus
19108 extern "C"
19109 #endif
19110 char syslog ();
19111 int
19112 main ()
19113 {
19114 return syslog ();
19115   ;
19116   return 0;
19117 }
19118 _ACEOF
19119 rm -f conftest.$ac_objext conftest$ac_exeext
19120 if { (ac_try="$ac_link"
19121 case "(($ac_try" in
19122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19123   *) ac_try_echo=$ac_try;;
19124 esac
19125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19126   (eval "$ac_link") 2>conftest.er1
19127   ac_status=$?
19128   grep -v '^ *+' conftest.er1 >conftest.err
19129   rm -f conftest.er1
19130   cat conftest.err >&5
19131   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19132   (exit $ac_status); } && {
19133          test -z "$ac_c_werror_flag" ||
19134          test ! -s conftest.err
19135        } && test -s conftest$ac_exeext &&
19136        $as_test_x conftest$ac_exeext; then
19137   ac_cv_lib_nsl_syslog=yes
19138 else
19139   echo "$as_me: failed program was:" >&5
19140 sed 's/^/| /' conftest.$ac_ext >&5
19141
19142         ac_cv_lib_nsl_syslog=no
19143 fi
19144
19145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19146       conftest$ac_exeext conftest.$ac_ext
19147 LIBS=$ac_check_lib_save_LIBS
19148 fi
19149 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_syslog" >&5
19150 echo "${ECHO_T}$ac_cv_lib_nsl_syslog" >&6; }
19151 if test $ac_cv_lib_nsl_syslog = yes; then
19152   NET_LIBS="${NET_LIBS} -lnsl"; LIBS="${LIBS} -lnsl"
19153 else
19154   { echo "$as_me:$LINENO: checking for syslog in -linet" >&5
19155 echo $ECHO_N "checking for syslog in -linet... $ECHO_C" >&6; }
19156 if test "${ac_cv_lib_inet_syslog+set}" = set; then
19157   echo $ECHO_N "(cached) $ECHO_C" >&6
19158 else
19159   ac_check_lib_save_LIBS=$LIBS
19160 LIBS="-linet  $LIBS"
19161 cat >conftest.$ac_ext <<_ACEOF
19162 /* confdefs.h.  */
19163 _ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h.  */
19167
19168 /* Override any GCC internal prototype to avoid an error.
19169    Use char because int might match the return type of a GCC
19170    builtin and then its argument prototype would still apply.  */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 char syslog ();
19175 int
19176 main ()
19177 {
19178 return syslog ();
19179   ;
19180   return 0;
19181 }
19182 _ACEOF
19183 rm -f conftest.$ac_objext conftest$ac_exeext
19184 if { (ac_try="$ac_link"
19185 case "(($ac_try" in
19186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19187   *) ac_try_echo=$ac_try;;
19188 esac
19189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19190   (eval "$ac_link") 2>conftest.er1
19191   ac_status=$?
19192   grep -v '^ *+' conftest.er1 >conftest.err
19193   rm -f conftest.er1
19194   cat conftest.err >&5
19195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19196   (exit $ac_status); } && {
19197          test -z "$ac_c_werror_flag" ||
19198          test ! -s conftest.err
19199        } && test -s conftest$ac_exeext &&
19200        $as_test_x conftest$ac_exeext; then
19201   ac_cv_lib_inet_syslog=yes
19202 else
19203   echo "$as_me: failed program was:" >&5
19204 sed 's/^/| /' conftest.$ac_ext >&5
19205
19206         ac_cv_lib_inet_syslog=no
19207 fi
19208
19209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19210       conftest$ac_exeext conftest.$ac_ext
19211 LIBS=$ac_check_lib_save_LIBS
19212 fi
19213 { echo "$as_me:$LINENO: result: $ac_cv_lib_inet_syslog" >&5
19214 echo "${ECHO_T}$ac_cv_lib_inet_syslog" >&6; }
19215 if test $ac_cv_lib_inet_syslog = yes; then
19216   NET_LIBS="${NET_LIBS} -linet"; LIBS="${LIBS} -linet"
19217 fi
19218
19219 fi
19220
19221 fi
19222
19223 fi
19224
19225
19226 for ac_func in getprogname
19227 do
19228 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19229 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19230 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19231 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19232   echo $ECHO_N "(cached) $ECHO_C" >&6
19233 else
19234   cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h.  */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h.  */
19240 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19241    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19242 #define $ac_func innocuous_$ac_func
19243
19244 /* System header to define __stub macros and hopefully few prototypes,
19245     which can conflict with char $ac_func (); below.
19246     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19247     <limits.h> exists even on freestanding compilers.  */
19248
19249 #ifdef __STDC__
19250 # include <limits.h>
19251 #else
19252 # include <assert.h>
19253 #endif
19254
19255 #undef $ac_func
19256
19257 /* Override any GCC internal prototype to avoid an error.
19258    Use char because int might match the return type of a GCC
19259    builtin and then its argument prototype would still apply.  */
19260 #ifdef __cplusplus
19261 extern "C"
19262 #endif
19263 char $ac_func ();
19264 /* The GNU C library defines this for functions which it implements
19265     to always fail with ENOSYS.  Some functions are actually named
19266     something starting with __ and the normal name is an alias.  */
19267 #if defined __stub_$ac_func || defined __stub___$ac_func
19268 choke me
19269 #endif
19270
19271 int
19272 main ()
19273 {
19274 return $ac_func ();
19275   ;
19276   return 0;
19277 }
19278 _ACEOF
19279 rm -f conftest.$ac_objext conftest$ac_exeext
19280 if { (ac_try="$ac_link"
19281 case "(($ac_try" in
19282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19283   *) ac_try_echo=$ac_try;;
19284 esac
19285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19286   (eval "$ac_link") 2>conftest.er1
19287   ac_status=$?
19288   grep -v '^ *+' conftest.er1 >conftest.err
19289   rm -f conftest.er1
19290   cat conftest.err >&5
19291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292   (exit $ac_status); } && {
19293          test -z "$ac_c_werror_flag" ||
19294          test ! -s conftest.err
19295        } && test -s conftest$ac_exeext &&
19296        $as_test_x conftest$ac_exeext; then
19297   eval "$as_ac_var=yes"
19298 else
19299   echo "$as_me: failed program was:" >&5
19300 sed 's/^/| /' conftest.$ac_ext >&5
19301
19302         eval "$as_ac_var=no"
19303 fi
19304
19305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19306       conftest$ac_exeext conftest.$ac_ext
19307 fi
19308 ac_res=`eval echo '${'$as_ac_var'}'`
19309                { echo "$as_me:$LINENO: result: $ac_res" >&5
19310 echo "${ECHO_T}$ac_res" >&6; }
19311 if test `eval echo '${'$as_ac_var'}'` = yes; then
19312   cat >>confdefs.h <<_ACEOF
19313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19314 _ACEOF
19315
19316 else
19317
19318     { echo "$as_me:$LINENO: checking for __progname" >&5
19319 echo $ECHO_N "checking for __progname... $ECHO_C" >&6; }
19320     if test "${sudo_cv___progname+set}" = set; then
19321   echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
19323
19324     cat >conftest.$ac_ext <<_ACEOF
19325 /* confdefs.h.  */
19326 _ACEOF
19327 cat confdefs.h >>conftest.$ac_ext
19328 cat >>conftest.$ac_ext <<_ACEOF
19329 /* end confdefs.h.  */
19330
19331 int
19332 main ()
19333 {
19334 extern char *__progname; (void)puts(__progname);
19335   ;
19336   return 0;
19337 }
19338 _ACEOF
19339 rm -f conftest.$ac_objext conftest$ac_exeext
19340 if { (ac_try="$ac_link"
19341 case "(($ac_try" in
19342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19343   *) ac_try_echo=$ac_try;;
19344 esac
19345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19346   (eval "$ac_link") 2>conftest.er1
19347   ac_status=$?
19348   grep -v '^ *+' conftest.er1 >conftest.err
19349   rm -f conftest.er1
19350   cat conftest.err >&5
19351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19352   (exit $ac_status); } && {
19353          test -z "$ac_c_werror_flag" ||
19354          test ! -s conftest.err
19355        } && test -s conftest$ac_exeext &&
19356        $as_test_x conftest$ac_exeext; then
19357   sudo_cv___progname=yes
19358 else
19359   echo "$as_me: failed program was:" >&5
19360 sed 's/^/| /' conftest.$ac_ext >&5
19361
19362         sudo_cv___progname=no
19363 fi
19364
19365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19366       conftest$ac_exeext conftest.$ac_ext
19367 fi
19368
19369     if test "$sudo_cv___progname" = "yes"; then
19370         cat >>confdefs.h <<\_ACEOF
19371 #define HAVE___PROGNAME 1
19372 _ACEOF
19373
19374     else
19375         case " $LIBOBJS " in
19376   *" getprogname.$ac_objext "* ) ;;
19377   *) LIBOBJS="$LIBOBJS getprogname.$ac_objext"
19378  ;;
19379 esac
19380
19381     fi
19382     { echo "$as_me:$LINENO: result: $sudo_cv___progname" >&5
19383 echo "${ECHO_T}$sudo_cv___progname" >&6; }
19384
19385 fi
19386 done
19387
19388
19389
19390 if test -z "${AUTH_EXCL}${AUTH_REG}" -a -n "$AUTH_EXCL_DEF"; then
19391     for auth in $AUTH_EXCL_DEF; do
19392         case $auth in
19393             AIX_AUTH)   with_aixauth=maybe;;
19394             BSD_AUTH)   with_bsdauth=maybe;;
19395             PAM)        with_pam=maybe;;
19396             SIA)        CHECKSIA=true;;
19397         esac
19398     done
19399 fi
19400
19401 if test ${with_pam-"no"} != "no"; then
19402                 { echo "$as_me:$LINENO: checking for main in -ldl" >&5
19403 echo $ECHO_N "checking for main in -ldl... $ECHO_C" >&6; }
19404 if test "${ac_cv_lib_dl_main+set}" = set; then
19405   echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407   ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-ldl  $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416
19417 int
19418 main ()
19419 {
19420 return main ();
19421   ;
19422   return 0;
19423 }
19424 _ACEOF
19425 rm -f conftest.$ac_objext conftest$ac_exeext
19426 if { (ac_try="$ac_link"
19427 case "(($ac_try" in
19428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19429   *) ac_try_echo=$ac_try;;
19430 esac
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432   (eval "$ac_link") 2>conftest.er1
19433   ac_status=$?
19434   grep -v '^ *+' conftest.er1 >conftest.err
19435   rm -f conftest.er1
19436   cat conftest.err >&5
19437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19438   (exit $ac_status); } && {
19439          test -z "$ac_c_werror_flag" ||
19440          test ! -s conftest.err
19441        } && test -s conftest$ac_exeext &&
19442        $as_test_x conftest$ac_exeext; then
19443   ac_cv_lib_dl_main=yes
19444 else
19445   echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19447
19448         ac_cv_lib_dl_main=no
19449 fi
19450
19451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19452       conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19454 fi
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_main" >&5
19456 echo "${ECHO_T}$ac_cv_lib_dl_main" >&6; }
19457 if test $ac_cv_lib_dl_main = yes; then
19458   SUDO_LIBS="${SUDO_LIBS} -lpam -ldl"
19459 else
19460   SUDO_LIBS="${SUDO_LIBS} -lpam"
19461 fi
19462
19463     ac_cv_lib_dl=ac_cv_lib_dl_main
19464
19465
19466
19467 for ac_header in security/pam_appl.h pam/pam_appl.h
19468 do
19469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19471   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19474   echo $ECHO_N "(cached) $ECHO_C" >&6
19475 fi
19476 ac_res=`eval echo '${'$as_ac_Header'}'`
19477                { echo "$as_me:$LINENO: result: $ac_res" >&5
19478 echo "${ECHO_T}$ac_res" >&6; }
19479 else
19480   # Is the header compilable?
19481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19483 cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 $ac_includes_default
19490 #include <$ac_header>
19491 _ACEOF
19492 rm -f conftest.$ac_objext
19493 if { (ac_try="$ac_compile"
19494 case "(($ac_try" in
19495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19496   *) ac_try_echo=$ac_try;;
19497 esac
19498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19499   (eval "$ac_compile") 2>conftest.er1
19500   ac_status=$?
19501   grep -v '^ *+' conftest.er1 >conftest.err
19502   rm -f conftest.er1
19503   cat conftest.err >&5
19504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19505   (exit $ac_status); } && {
19506          test -z "$ac_c_werror_flag" ||
19507          test ! -s conftest.err
19508        } && test -s conftest.$ac_objext; then
19509   ac_header_compiler=yes
19510 else
19511   echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.$ac_ext >&5
19513
19514         ac_header_compiler=no
19515 fi
19516
19517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19519 echo "${ECHO_T}$ac_header_compiler" >&6; }
19520
19521 # Is the header present?
19522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19524 cat >conftest.$ac_ext <<_ACEOF
19525 /* confdefs.h.  */
19526 _ACEOF
19527 cat confdefs.h >>conftest.$ac_ext
19528 cat >>conftest.$ac_ext <<_ACEOF
19529 /* end confdefs.h.  */
19530 #include <$ac_header>
19531 _ACEOF
19532 if { (ac_try="$ac_cpp conftest.$ac_ext"
19533 case "(($ac_try" in
19534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19535   *) ac_try_echo=$ac_try;;
19536 esac
19537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19538   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19539   ac_status=$?
19540   grep -v '^ *+' conftest.er1 >conftest.err
19541   rm -f conftest.er1
19542   cat conftest.err >&5
19543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19544   (exit $ac_status); } >/dev/null && {
19545          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19546          test ! -s conftest.err
19547        }; then
19548   ac_header_preproc=yes
19549 else
19550   echo "$as_me: failed program was:" >&5
19551 sed 's/^/| /' conftest.$ac_ext >&5
19552
19553   ac_header_preproc=no
19554 fi
19555
19556 rm -f conftest.err conftest.$ac_ext
19557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19558 echo "${ECHO_T}$ac_header_preproc" >&6; }
19559
19560 # So?  What about this header?
19561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19562   yes:no: )
19563     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19565     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19567     ac_header_preproc=yes
19568     ;;
19569   no:yes:* )
19570     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19572     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19573 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19574     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19576     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19577 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19578     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19580     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19582
19583     ;;
19584 esac
19585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19588   echo $ECHO_N "(cached) $ECHO_C" >&6
19589 else
19590   eval "$as_ac_Header=\$ac_header_preproc"
19591 fi
19592 ac_res=`eval echo '${'$as_ac_Header'}'`
19593                { echo "$as_me:$LINENO: result: $ac_res" >&5
19594 echo "${ECHO_T}$ac_res" >&6; }
19595
19596 fi
19597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19598   cat >>confdefs.h <<_ACEOF
19599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19600 _ACEOF
19601  with_pam=yes; break
19602 fi
19603
19604 done
19605
19606     if test "$with_pam" = "yes"; then
19607         cat >>confdefs.h <<\_ACEOF
19608 #define HAVE_PAM 1
19609 _ACEOF
19610
19611         AUTH_OBJS="$AUTH_OBJS pam.o";
19612         AUTH_EXCL=PAM
19613         { echo "$as_me:$LINENO: checking whether to use PAM session support" >&5
19614 echo $ECHO_N "checking whether to use PAM session support... $ECHO_C" >&6; }
19615         # Check whether --enable-pam_session was given.
19616 if test "${enable_pam_session+set}" = set; then
19617   enableval=$enable_pam_session;  case "$enableval" in
19618                 yes)    { echo "$as_me:$LINENO: result: yes" >&5
19619 echo "${ECHO_T}yes" >&6; }
19620                         ;;
19621                 no)             { echo "$as_me:$LINENO: result: no" >&5
19622 echo "${ECHO_T}no" >&6; }
19623
19624 cat >>confdefs.h <<\_ACEOF
19625 #define NO_PAM_SESSION
19626 _ACEOF
19627
19628                             ;;
19629                 *)              { echo "$as_me:$LINENO: result: no" >&5
19630 echo "${ECHO_T}no" >&6; }
19631                             { echo "$as_me:$LINENO: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&5
19632 echo "$as_me: WARNING: Ignoring unknown argument to --enable-pam-session: $enableval" >&2;}
19633                             ;;
19634             esac
19635 else
19636   { echo "$as_me:$LINENO: result: yes" >&5
19637 echo "${ECHO_T}yes" >&6; }
19638 fi
19639
19640         case $host in
19641             *-*-linux*|*-*-solaris*)
19642                     # dgettext() may be defined to dgettext_libintl in the
19643                     # header file, so first check that it links w/ additional
19644                     # libs, then try with -lintl
19645                     cat >conftest.$ac_ext <<_ACEOF
19646 /* confdefs.h.  */
19647 _ACEOF
19648 cat confdefs.h >>conftest.$ac_ext
19649 cat >>conftest.$ac_ext <<_ACEOF
19650 /* end confdefs.h.  */
19651 #include <libintl.h>
19652 int
19653 main ()
19654 {
19655 (void)dgettext((char *)0, (char *)0);
19656   ;
19657   return 0;
19658 }
19659 _ACEOF
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (ac_try="$ac_link"
19662 case "(($ac_try" in
19663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664   *) ac_try_echo=$ac_try;;
19665 esac
19666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19667   (eval "$ac_link") 2>conftest.er1
19668   ac_status=$?
19669   grep -v '^ *+' conftest.er1 >conftest.err
19670   rm -f conftest.er1
19671   cat conftest.err >&5
19672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19673   (exit $ac_status); } && {
19674          test -z "$ac_c_werror_flag" ||
19675          test ! -s conftest.err
19676        } && test -s conftest$ac_exeext &&
19677        $as_test_x conftest$ac_exeext; then
19678   cat >>confdefs.h <<\_ACEOF
19679 #define HAVE_DGETTEXT 1
19680 _ACEOF
19681
19682 else
19683   echo "$as_me: failed program was:" >&5
19684 sed 's/^/| /' conftest.$ac_ext >&5
19685
19686         { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
19687 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
19688 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
19689   echo $ECHO_N "(cached) $ECHO_C" >&6
19690 else
19691   ac_check_lib_save_LIBS=$LIBS
19692 LIBS="-lintl  $LIBS"
19693 cat >conftest.$ac_ext <<_ACEOF
19694 /* confdefs.h.  */
19695 _ACEOF
19696 cat confdefs.h >>conftest.$ac_ext
19697 cat >>conftest.$ac_ext <<_ACEOF
19698 /* end confdefs.h.  */
19699
19700 /* Override any GCC internal prototype to avoid an error.
19701    Use char because int might match the return type of a GCC
19702    builtin and then its argument prototype would still apply.  */
19703 #ifdef __cplusplus
19704 extern "C"
19705 #endif
19706 char dgettext ();
19707 int
19708 main ()
19709 {
19710 return dgettext ();
19711   ;
19712   return 0;
19713 }
19714 _ACEOF
19715 rm -f conftest.$ac_objext conftest$ac_exeext
19716 if { (ac_try="$ac_link"
19717 case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_link") 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } && {
19729          test -z "$ac_c_werror_flag" ||
19730          test ! -s conftest.err
19731        } && test -s conftest$ac_exeext &&
19732        $as_test_x conftest$ac_exeext; then
19733   ac_cv_lib_intl_dgettext=yes
19734 else
19735   echo "$as_me: failed program was:" >&5
19736 sed 's/^/| /' conftest.$ac_ext >&5
19737
19738         ac_cv_lib_intl_dgettext=no
19739 fi
19740
19741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19742       conftest$ac_exeext conftest.$ac_ext
19743 LIBS=$ac_check_lib_save_LIBS
19744 fi
19745 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
19746 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
19747 if test $ac_cv_lib_intl_dgettext = yes; then
19748   LIBS="${LIBS} -lintl"
19749                         cat >>confdefs.h <<\_ACEOF
19750 #define HAVE_DGETTEXT 1
19751 _ACEOF
19752
19753 fi
19754
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758       conftest$ac_exeext conftest.$ac_ext
19759                     ;;
19760         esac
19761     fi
19762 fi
19763
19764 if test ${with_aixauth-'no'} != "no"; then
19765     if test X"$with_aixauth" != X"maybe" -o X"$AUTH_EXCL" = X""; then
19766         { echo "$as_me:$LINENO: using AIX general authentication" >&5
19767 echo "$as_me: using AIX general authentication" >&6;}
19768         cat >>confdefs.h <<\_ACEOF
19769 #define HAVE_AIXAUTH 1
19770 _ACEOF
19771
19772         AUTH_OBJS="$AUTH_OBJS aix_auth.o";
19773         SUDO_LIBS="${SUDO_LIBS} -ls"
19774         AUTH_EXCL=AIX_AUTH
19775     fi
19776 fi
19777
19778 if test ${with_bsdauth-'no'} != "no"; then
19779     if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19780   { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19781 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19782 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19783   echo $ECHO_N "(cached) $ECHO_C" >&6
19784 fi
19785 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19786 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19787 else
19788   # Is the header compilable?
19789 { echo "$as_me:$LINENO: checking bsd_auth.h usability" >&5
19790 echo $ECHO_N "checking bsd_auth.h usability... $ECHO_C" >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h.  */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h.  */
19797 $ac_includes_default
19798 #include <bsd_auth.h>
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804   *) ac_try_echo=$ac_try;;
19805 esac
19806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19807   (eval "$ac_compile") 2>conftest.er1
19808   ac_status=$?
19809   grep -v '^ *+' conftest.er1 >conftest.err
19810   rm -f conftest.er1
19811   cat conftest.err >&5
19812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19813   (exit $ac_status); } && {
19814          test -z "$ac_c_werror_flag" ||
19815          test ! -s conftest.err
19816        } && test -s conftest.$ac_objext; then
19817   ac_header_compiler=yes
19818 else
19819   echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19821
19822         ac_header_compiler=no
19823 fi
19824
19825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19827 echo "${ECHO_T}$ac_header_compiler" >&6; }
19828
19829 # Is the header present?
19830 { echo "$as_me:$LINENO: checking bsd_auth.h presence" >&5
19831 echo $ECHO_N "checking bsd_auth.h presence... $ECHO_C" >&6; }
19832 cat >conftest.$ac_ext <<_ACEOF
19833 /* confdefs.h.  */
19834 _ACEOF
19835 cat confdefs.h >>conftest.$ac_ext
19836 cat >>conftest.$ac_ext <<_ACEOF
19837 /* end confdefs.h.  */
19838 #include <bsd_auth.h>
19839 _ACEOF
19840 if { (ac_try="$ac_cpp conftest.$ac_ext"
19841 case "(($ac_try" in
19842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843   *) ac_try_echo=$ac_try;;
19844 esac
19845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19846   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19847   ac_status=$?
19848   grep -v '^ *+' conftest.er1 >conftest.err
19849   rm -f conftest.er1
19850   cat conftest.err >&5
19851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19852   (exit $ac_status); } >/dev/null && {
19853          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19854          test ! -s conftest.err
19855        }; then
19856   ac_header_preproc=yes
19857 else
19858   echo "$as_me: failed program was:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19860
19861   ac_header_preproc=no
19862 fi
19863
19864 rm -f conftest.err conftest.$ac_ext
19865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19866 echo "${ECHO_T}$ac_header_preproc" >&6; }
19867
19868 # So?  What about this header?
19869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19870   yes:no: )
19871     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&5
19872 echo "$as_me: WARNING: bsd_auth.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19873     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the compiler's result" >&5
19874 echo "$as_me: WARNING: bsd_auth.h: proceeding with the compiler's result" >&2;}
19875     ac_header_preproc=yes
19876     ;;
19877   no:yes:* )
19878     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: present but cannot be compiled" >&5
19879 echo "$as_me: WARNING: bsd_auth.h: present but cannot be compiled" >&2;}
19880     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&5
19881 echo "$as_me: WARNING: bsd_auth.h:     check for missing prerequisite headers?" >&2;}
19882     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: see the Autoconf documentation" >&5
19883 echo "$as_me: WARNING: bsd_auth.h: see the Autoconf documentation" >&2;}
19884     { echo "$as_me:$LINENO: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&5
19885 echo "$as_me: WARNING: bsd_auth.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19886     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&5
19887 echo "$as_me: WARNING: bsd_auth.h: proceeding with the preprocessor's result" >&2;}
19888     { echo "$as_me:$LINENO: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&5
19889 echo "$as_me: WARNING: bsd_auth.h: in the future, the compiler will take precedence" >&2;}
19890
19891     ;;
19892 esac
19893 { echo "$as_me:$LINENO: checking for bsd_auth.h" >&5
19894 echo $ECHO_N "checking for bsd_auth.h... $ECHO_C" >&6; }
19895 if test "${ac_cv_header_bsd_auth_h+set}" = set; then
19896   echo $ECHO_N "(cached) $ECHO_C" >&6
19897 else
19898   ac_cv_header_bsd_auth_h=$ac_header_preproc
19899 fi
19900 { echo "$as_me:$LINENO: result: $ac_cv_header_bsd_auth_h" >&5
19901 echo "${ECHO_T}$ac_cv_header_bsd_auth_h" >&6; }
19902
19903 fi
19904 if test $ac_cv_header_bsd_auth_h = yes; then
19905   cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_BSD_AUTH_H 1
19907 _ACEOF
19908
19909         AUTH_OBJS="$AUTH_OBJS bsdauth.o"
19910         BSDAUTH_USAGE='[-a auth_type] '
19911         AUTH_EXCL=BSD_AUTH; BAMAN=""
19912 else
19913   { { echo "$as_me:$LINENO: error: BSD authentication was specified but bsd_auth.h could not be found" >&5
19914 echo "$as_me: error: BSD authentication was specified but bsd_auth.h could not be found" >&2;}
19915    { (exit 1); exit 1; }; }
19916 fi
19917
19918
19919 fi
19920
19921 if test ${CHECKSIA-'false'} = "true"; then
19922
19923 for ac_func in sia_ses_init
19924 do
19925 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19926 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19927 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19928 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19929   echo $ECHO_N "(cached) $ECHO_C" >&6
19930 else
19931   cat >conftest.$ac_ext <<_ACEOF
19932 /* confdefs.h.  */
19933 _ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h.  */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19939 #define $ac_func innocuous_$ac_func
19940
19941 /* System header to define __stub macros and hopefully few prototypes,
19942     which can conflict with char $ac_func (); below.
19943     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944     <limits.h> exists even on freestanding compilers.  */
19945
19946 #ifdef __STDC__
19947 # include <limits.h>
19948 #else
19949 # include <assert.h>
19950 #endif
19951
19952 #undef $ac_func
19953
19954 /* Override any GCC internal prototype to avoid an error.
19955    Use char because int might match the return type of a GCC
19956    builtin and then its argument prototype would still apply.  */
19957 #ifdef __cplusplus
19958 extern "C"
19959 #endif
19960 char $ac_func ();
19961 /* The GNU C library defines this for functions which it implements
19962     to always fail with ENOSYS.  Some functions are actually named
19963     something starting with __ and the normal name is an alias.  */
19964 #if defined __stub_$ac_func || defined __stub___$ac_func
19965 choke me
19966 #endif
19967
19968 int
19969 main ()
19970 {
19971 return $ac_func ();
19972   ;
19973   return 0;
19974 }
19975 _ACEOF
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980   *) ac_try_echo=$ac_try;;
19981 esac
19982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19983   (eval "$ac_link") 2>conftest.er1
19984   ac_status=$?
19985   grep -v '^ *+' conftest.er1 >conftest.err
19986   rm -f conftest.er1
19987   cat conftest.err >&5
19988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19989   (exit $ac_status); } && {
19990          test -z "$ac_c_werror_flag" ||
19991          test ! -s conftest.err
19992        } && test -s conftest$ac_exeext &&
19993        $as_test_x conftest$ac_exeext; then
19994   eval "$as_ac_var=yes"
19995 else
19996   echo "$as_me: failed program was:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19998
19999         eval "$as_ac_var=no"
20000 fi
20001
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003       conftest$ac_exeext conftest.$ac_ext
20004 fi
20005 ac_res=`eval echo '${'$as_ac_var'}'`
20006                { echo "$as_me:$LINENO: result: $ac_res" >&5
20007 echo "${ECHO_T}$ac_res" >&6; }
20008 if test `eval echo '${'$as_ac_var'}'` = yes; then
20009   cat >>confdefs.h <<_ACEOF
20010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20011 _ACEOF
20012  found=true
20013 else
20014   found=false
20015 fi
20016 done
20017
20018     if test "$found" = "true"; then
20019         AUTH_EXCL=SIA
20020         AUTH_OBJS="$AUTH_OBJS sia.o"
20021     fi
20022 fi
20023
20024 if test ${with_fwtk-'no'} != "no"; then
20025     if test "$with_fwtk" != "yes"; then
20026
20027     if test X"$with_rpath" = X"yes"; then
20028         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk} -R${with_fwtk}"
20029     else
20030         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_fwtk}"
20031     fi
20032     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20033         blibpath_add="${blibpath_add}:${with_fwtk}"
20034     fi
20035
20036         CPPFLAGS="${CPPFLAGS} -I${with_fwtk}"
20037         with_fwtk=yes
20038     fi
20039     SUDO_LIBS="${SUDO_LIBS} -lauth -lfwall"
20040     AUTH_OBJS="$AUTH_OBJS fwtk.o"
20041 fi
20042
20043 if test ${with_SecurID-'no'} != "no"; then
20044     if test "$with_SecurID" != "yes"; then
20045         :
20046     elif test -d /usr/ace/examples; then
20047         with_SecurID=/usr/ace/examples
20048     else
20049         with_SecurID=/usr/ace
20050     fi
20051     CPPFLAGS="${CPPFLAGS} -I${with_SecurID}"
20052     _LDFLAGS="${LDFLAGS}"
20053
20054     if test X"$with_rpath" = X"yes"; then
20055         LDFLAGS="${LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20056     else
20057         LDFLAGS="${LDFLAGS} -L${with_SecurID}"
20058     fi
20059     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20060         blibpath_add="${blibpath_add}:${with_SecurID}"
20061     fi
20062
20063     #
20064     # Determine whether to use the new or old SecurID API
20065     #
20066     { echo "$as_me:$LINENO: checking for SD_Init in -laceclnt" >&5
20067 echo $ECHO_N "checking for SD_Init in -laceclnt... $ECHO_C" >&6; }
20068 if test "${ac_cv_lib_aceclnt_SD_Init_______lpthread_______+set}" = set; then
20069   echo $ECHO_N "(cached) $ECHO_C" >&6
20070 else
20071   ac_check_lib_save_LIBS=$LIBS
20072 LIBS="-laceclnt
20073             -lpthread
20074
20075      $LIBS"
20076 cat >conftest.$ac_ext <<_ACEOF
20077 /* confdefs.h.  */
20078 _ACEOF
20079 cat confdefs.h >>conftest.$ac_ext
20080 cat >>conftest.$ac_ext <<_ACEOF
20081 /* end confdefs.h.  */
20082
20083 /* Override any GCC internal prototype to avoid an error.
20084    Use char because int might match the return type of a GCC
20085    builtin and then its argument prototype would still apply.  */
20086 #ifdef __cplusplus
20087 extern "C"
20088 #endif
20089 char SD_Init ();
20090 int
20091 main ()
20092 {
20093 return SD_Init ();
20094   ;
20095   return 0;
20096 }
20097 _ACEOF
20098 rm -f conftest.$ac_objext conftest$ac_exeext
20099 if { (ac_try="$ac_link"
20100 case "(($ac_try" in
20101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102   *) ac_try_echo=$ac_try;;
20103 esac
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105   (eval "$ac_link") 2>conftest.er1
20106   ac_status=$?
20107   grep -v '^ *+' conftest.er1 >conftest.err
20108   rm -f conftest.er1
20109   cat conftest.err >&5
20110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20111   (exit $ac_status); } && {
20112          test -z "$ac_c_werror_flag" ||
20113          test ! -s conftest.err
20114        } && test -s conftest$ac_exeext &&
20115        $as_test_x conftest$ac_exeext; then
20116   ac_cv_lib_aceclnt_SD_Init_______lpthread_______=yes
20117 else
20118   echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20120
20121         ac_cv_lib_aceclnt_SD_Init_______lpthread_______=no
20122 fi
20123
20124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20125       conftest$ac_exeext conftest.$ac_ext
20126 LIBS=$ac_check_lib_save_LIBS
20127 fi
20128 { echo "$as_me:$LINENO: result: $ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&5
20129 echo "${ECHO_T}$ac_cv_lib_aceclnt_SD_Init_______lpthread_______" >&6; }
20130 if test $ac_cv_lib_aceclnt_SD_Init_______lpthread_______ = yes; then
20131
20132             AUTH_OBJS="$AUTH_OBJS securid5.o";
20133             SUDO_LIBS="${SUDO_LIBS} -laceclnt -lpthread"
20134
20135
20136
20137     if test X"$with_rpath" = X"yes"; then
20138         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID} -R${with_SecurID}"
20139     else
20140         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_SecurID}"
20141     fi
20142     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20143         blibpath_add="${blibpath_add}:${with_SecurID}"
20144     fi
20145
20146
20147 else
20148
20149             AUTH_OBJS="$AUTH_OBJS securid.o";
20150             SUDO_LIBS="${SUDO_LIBS} ${with_SecurID}/sdiclient.a"
20151
20152 fi
20153
20154     LDFLAGS="${_LDFLAGS}"
20155 fi
20156
20157
20158 if test -z "${AUTH_EXCL}" -a -n "$AUTH_DEF"; then
20159     for auth in $AUTH_DEF; do
20160         case $auth in
20161             passwd)     : ${with_passwd='maybe'};;
20162         esac
20163     done
20164 fi
20165
20166 if test ${with_kerb4-'no'} != "no"; then
20167     cat >>confdefs.h <<\_ACEOF
20168 #define HAVE_KERB4 1
20169 _ACEOF
20170
20171                 O_LDFLAGS="$LDFLAGS"
20172     if test "$with_kerb4" = "yes"; then
20173         found=no
20174         O_CPPFLAGS="$CPPFLAGS"
20175         for dir in "" "kerberosIV/" "krb4/" "kerberos4/" "kerberosv4/"; do
20176             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20177             cat >conftest.$ac_ext <<_ACEOF
20178 #include <krb.h>
20179 _ACEOF
20180 if { (ac_try="$ac_cpp conftest.$ac_ext"
20181 case "(($ac_try" in
20182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20183   *) ac_try_echo=$ac_try;;
20184 esac
20185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20186   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20187   ac_status=$?
20188   grep -v '^ *+' conftest.er1 >conftest.err
20189   rm -f conftest.er1
20190   cat conftest.err >&5
20191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20192   (exit $ac_status); } >/dev/null && {
20193          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20194          test ! -s conftest.err
20195        }; then
20196   found=yes; break
20197 else
20198   echo "$as_me: failed program was:" >&5
20199 sed 's/^/| /' conftest.$ac_ext >&5
20200
20201
20202 fi
20203
20204 rm -f conftest.err conftest.$ac_ext
20205         done
20206         test X"$found" = X"no" && CPPFLAGS="$O_CPPFLAGS"
20207     else
20208
20209     if test X"$with_rpath" = X"yes"; then
20210         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20211     else
20212         LDFLAGS="${LDFLAGS} -L${with_kerb4}/lib"
20213     fi
20214     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
20215         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20216     fi
20217
20218
20219     if test X"$with_rpath" = X"yes"; then
20220         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib -R${with_kerb4}/lib"
20221     else
20222         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb4}/lib"
20223     fi
20224     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20225         blibpath_add="${blibpath_add}:${with_kerb4}/lib"
20226     fi
20227
20228         CPPFLAGS="$CPPFLAGS -I${with_kerb4}/include"
20229         if test "${ac_cv_header_krb_h+set}" = set; then
20230   { echo "$as_me:$LINENO: checking for krb.h" >&5
20231 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20232 if test "${ac_cv_header_krb_h+set}" = set; then
20233   echo $ECHO_N "(cached) $ECHO_C" >&6
20234 fi
20235 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20236 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20237 else
20238   # Is the header compilable?
20239 { echo "$as_me:$LINENO: checking krb.h usability" >&5
20240 echo $ECHO_N "checking krb.h usability... $ECHO_C" >&6; }
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h.  */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h.  */
20247 $ac_includes_default
20248 #include <krb.h>
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254   *) ac_try_echo=$ac_try;;
20255 esac
20256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20257   (eval "$ac_compile") 2>conftest.er1
20258   ac_status=$?
20259   grep -v '^ *+' conftest.er1 >conftest.err
20260   rm -f conftest.er1
20261   cat conftest.err >&5
20262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20263   (exit $ac_status); } && {
20264          test -z "$ac_c_werror_flag" ||
20265          test ! -s conftest.err
20266        } && test -s conftest.$ac_objext; then
20267   ac_header_compiler=yes
20268 else
20269   echo "$as_me: failed program was:" >&5
20270 sed 's/^/| /' conftest.$ac_ext >&5
20271
20272         ac_header_compiler=no
20273 fi
20274
20275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20277 echo "${ECHO_T}$ac_header_compiler" >&6; }
20278
20279 # Is the header present?
20280 { echo "$as_me:$LINENO: checking krb.h presence" >&5
20281 echo $ECHO_N "checking krb.h presence... $ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20283 /* confdefs.h.  */
20284 _ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h.  */
20288 #include <krb.h>
20289 _ACEOF
20290 if { (ac_try="$ac_cpp conftest.$ac_ext"
20291 case "(($ac_try" in
20292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20293   *) ac_try_echo=$ac_try;;
20294 esac
20295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20296   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20297   ac_status=$?
20298   grep -v '^ *+' conftest.er1 >conftest.err
20299   rm -f conftest.er1
20300   cat conftest.err >&5
20301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20302   (exit $ac_status); } >/dev/null && {
20303          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20304          test ! -s conftest.err
20305        }; then
20306   ac_header_preproc=yes
20307 else
20308   echo "$as_me: failed program was:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20310
20311   ac_header_preproc=no
20312 fi
20313
20314 rm -f conftest.err conftest.$ac_ext
20315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20316 echo "${ECHO_T}$ac_header_preproc" >&6; }
20317
20318 # So?  What about this header?
20319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20320   yes:no: )
20321     { echo "$as_me:$LINENO: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&5
20322 echo "$as_me: WARNING: krb.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20323     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the compiler's result" >&5
20324 echo "$as_me: WARNING: krb.h: proceeding with the compiler's result" >&2;}
20325     ac_header_preproc=yes
20326     ;;
20327   no:yes:* )
20328     { echo "$as_me:$LINENO: WARNING: krb.h: present but cannot be compiled" >&5
20329 echo "$as_me: WARNING: krb.h: present but cannot be compiled" >&2;}
20330     { echo "$as_me:$LINENO: WARNING: krb.h:     check for missing prerequisite headers?" >&5
20331 echo "$as_me: WARNING: krb.h:     check for missing prerequisite headers?" >&2;}
20332     { echo "$as_me:$LINENO: WARNING: krb.h: see the Autoconf documentation" >&5
20333 echo "$as_me: WARNING: krb.h: see the Autoconf documentation" >&2;}
20334     { echo "$as_me:$LINENO: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&5
20335 echo "$as_me: WARNING: krb.h:     section \"Present But Cannot Be Compiled\"" >&2;}
20336     { echo "$as_me:$LINENO: WARNING: krb.h: proceeding with the preprocessor's result" >&5
20337 echo "$as_me: WARNING: krb.h: proceeding with the preprocessor's result" >&2;}
20338     { echo "$as_me:$LINENO: WARNING: krb.h: in the future, the compiler will take precedence" >&5
20339 echo "$as_me: WARNING: krb.h: in the future, the compiler will take precedence" >&2;}
20340
20341     ;;
20342 esac
20343 { echo "$as_me:$LINENO: checking for krb.h" >&5
20344 echo $ECHO_N "checking for krb.h... $ECHO_C" >&6; }
20345 if test "${ac_cv_header_krb_h+set}" = set; then
20346   echo $ECHO_N "(cached) $ECHO_C" >&6
20347 else
20348   ac_cv_header_krb_h=$ac_header_preproc
20349 fi
20350 { echo "$as_me:$LINENO: result: $ac_cv_header_krb_h" >&5
20351 echo "${ECHO_T}$ac_cv_header_krb_h" >&6; }
20352
20353 fi
20354 if test $ac_cv_header_krb_h = yes; then
20355   found=yes
20356 else
20357   found=no
20358 fi
20359
20360
20361     fi
20362     if test X"$found" = X"no"; then
20363         { 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
20364 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;}
20365     fi
20366
20367                 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20368 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20369 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20370   echo $ECHO_N "(cached) $ECHO_C" >&6
20371 else
20372   ac_check_lib_save_LIBS=$LIBS
20373 LIBS="-ldes  $LIBS"
20374 cat >conftest.$ac_ext <<_ACEOF
20375 /* confdefs.h.  */
20376 _ACEOF
20377 cat confdefs.h >>conftest.$ac_ext
20378 cat >>conftest.$ac_ext <<_ACEOF
20379 /* end confdefs.h.  */
20380
20381 /* Override any GCC internal prototype to avoid an error.
20382    Use char because int might match the return type of a GCC
20383    builtin and then its argument prototype would still apply.  */
20384 #ifdef __cplusplus
20385 extern "C"
20386 #endif
20387 char des_cbc_encrypt ();
20388 int
20389 main ()
20390 {
20391 return des_cbc_encrypt ();
20392   ;
20393   return 0;
20394 }
20395 _ACEOF
20396 rm -f conftest.$ac_objext conftest$ac_exeext
20397 if { (ac_try="$ac_link"
20398 case "(($ac_try" in
20399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400   *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403   (eval "$ac_link") 2>conftest.er1
20404   ac_status=$?
20405   grep -v '^ *+' conftest.er1 >conftest.err
20406   rm -f conftest.er1
20407   cat conftest.err >&5
20408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409   (exit $ac_status); } && {
20410          test -z "$ac_c_werror_flag" ||
20411          test ! -s conftest.err
20412        } && test -s conftest$ac_exeext &&
20413        $as_test_x conftest$ac_exeext; then
20414   ac_cv_lib_des_des_cbc_encrypt=yes
20415 else
20416   echo "$as_me: failed program was:" >&5
20417 sed 's/^/| /' conftest.$ac_ext >&5
20418
20419         ac_cv_lib_des_des_cbc_encrypt=no
20420 fi
20421
20422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20423       conftest$ac_exeext conftest.$ac_ext
20424 LIBS=$ac_check_lib_save_LIBS
20425 fi
20426 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20427 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20428 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20429   K4LIBS="-ldes"
20430 else
20431
20432         { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20433 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20434 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20435   echo $ECHO_N "(cached) $ECHO_C" >&6
20436 else
20437   ac_check_lib_save_LIBS=$LIBS
20438 LIBS="-ldes425  $LIBS"
20439 cat >conftest.$ac_ext <<_ACEOF
20440 /* confdefs.h.  */
20441 _ACEOF
20442 cat confdefs.h >>conftest.$ac_ext
20443 cat >>conftest.$ac_ext <<_ACEOF
20444 /* end confdefs.h.  */
20445
20446 /* Override any GCC internal prototype to avoid an error.
20447    Use char because int might match the return type of a GCC
20448    builtin and then its argument prototype would still apply.  */
20449 #ifdef __cplusplus
20450 extern "C"
20451 #endif
20452 char des_cbc_encrypt ();
20453 int
20454 main ()
20455 {
20456 return des_cbc_encrypt ();
20457   ;
20458   return 0;
20459 }
20460 _ACEOF
20461 rm -f conftest.$ac_objext conftest$ac_exeext
20462 if { (ac_try="$ac_link"
20463 case "(($ac_try" in
20464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20465   *) ac_try_echo=$ac_try;;
20466 esac
20467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20468   (eval "$ac_link") 2>conftest.er1
20469   ac_status=$?
20470   grep -v '^ *+' conftest.er1 >conftest.err
20471   rm -f conftest.er1
20472   cat conftest.err >&5
20473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20474   (exit $ac_status); } && {
20475          test -z "$ac_c_werror_flag" ||
20476          test ! -s conftest.err
20477        } && test -s conftest$ac_exeext &&
20478        $as_test_x conftest$ac_exeext; then
20479   ac_cv_lib_des425_des_cbc_encrypt=yes
20480 else
20481   echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484         ac_cv_lib_des425_des_cbc_encrypt=no
20485 fi
20486
20487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20488       conftest$ac_exeext conftest.$ac_ext
20489 LIBS=$ac_check_lib_save_LIBS
20490 fi
20491 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20492 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20493 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20494   K4LIBS="-ldes425"
20495 else
20496   K4LIBS=""
20497 fi
20498
20499
20500 fi
20501
20502                 { echo "$as_me:$LINENO: checking whether we are using KTH Kerberos IV" >&5
20503 echo $ECHO_N "checking whether we are using KTH Kerberos IV... $ECHO_C" >&6; }
20504     cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h.  */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h.  */
20510 #include <krb.h>
20511 int
20512 main ()
20513 {
20514 const char *tmp = krb4_version;
20515   ;
20516   return 0;
20517 }
20518 _ACEOF
20519 rm -f conftest.$ac_objext
20520 if { (ac_try="$ac_compile"
20521 case "(($ac_try" in
20522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523   *) ac_try_echo=$ac_try;;
20524 esac
20525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20526   (eval "$ac_compile") 2>conftest.er1
20527   ac_status=$?
20528   grep -v '^ *+' conftest.er1 >conftest.err
20529   rm -f conftest.er1
20530   cat conftest.err >&5
20531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532   (exit $ac_status); } && {
20533          test -z "$ac_c_werror_flag" ||
20534          test ! -s conftest.err
20535        } && test -s conftest.$ac_objext; then
20536
20537             { echo "$as_me:$LINENO: result: yes" >&5
20538 echo "${ECHO_T}yes" >&6; }
20539             K4LIBS="${K4LIBS} -lcom_err"
20540             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20541 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20542 if test "${ac_cv_lib_roken_main+set}" = set; then
20543   echo $ECHO_N "(cached) $ECHO_C" >&6
20544 else
20545   ac_check_lib_save_LIBS=$LIBS
20546 LIBS="-lroken  $LIBS"
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h.  */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h.  */
20553
20554
20555 int
20556 main ()
20557 {
20558 return main ();
20559   ;
20560   return 0;
20561 }
20562 _ACEOF
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (ac_try="$ac_link"
20565 case "(($ac_try" in
20566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20567   *) ac_try_echo=$ac_try;;
20568 esac
20569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20570   (eval "$ac_link") 2>conftest.er1
20571   ac_status=$?
20572   grep -v '^ *+' conftest.er1 >conftest.err
20573   rm -f conftest.er1
20574   cat conftest.err >&5
20575   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576   (exit $ac_status); } && {
20577          test -z "$ac_c_werror_flag" ||
20578          test ! -s conftest.err
20579        } && test -s conftest$ac_exeext &&
20580        $as_test_x conftest$ac_exeext; then
20581   ac_cv_lib_roken_main=yes
20582 else
20583   echo "$as_me: failed program was:" >&5
20584 sed 's/^/| /' conftest.$ac_ext >&5
20585
20586         ac_cv_lib_roken_main=no
20587 fi
20588
20589 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20590       conftest$ac_exeext conftest.$ac_ext
20591 LIBS=$ac_check_lib_save_LIBS
20592 fi
20593 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
20594 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
20595 if test $ac_cv_lib_roken_main = yes; then
20596   K4LIBS="${K4LIBS} -lroken"
20597 fi
20598
20599
20600 else
20601   echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20603
20604
20605             { echo "$as_me:$LINENO: result: no" >&5
20606 echo "${ECHO_T}no" >&6; }
20607
20608
20609 fi
20610
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612                 as_ac_Lib=`echo "ac_cv_lib_krb_main$K4LIBS" | $as_tr_sh`
20613 { echo "$as_me:$LINENO: checking for main in -lkrb" >&5
20614 echo $ECHO_N "checking for main in -lkrb... $ECHO_C" >&6; }
20615 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20616   echo $ECHO_N "(cached) $ECHO_C" >&6
20617 else
20618   ac_check_lib_save_LIBS=$LIBS
20619 LIBS="-lkrb $K4LIBS $LIBS"
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h.  */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h.  */
20626
20627
20628 int
20629 main ()
20630 {
20631 return main ();
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest.$ac_objext conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643   (eval "$ac_link") 2>conftest.er1
20644   ac_status=$?
20645   grep -v '^ *+' conftest.er1 >conftest.err
20646   rm -f conftest.er1
20647   cat conftest.err >&5
20648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649   (exit $ac_status); } && {
20650          test -z "$ac_c_werror_flag" ||
20651          test ! -s conftest.err
20652        } && test -s conftest$ac_exeext &&
20653        $as_test_x conftest$ac_exeext; then
20654   eval "$as_ac_Lib=yes"
20655 else
20656   echo "$as_me: failed program was:" >&5
20657 sed 's/^/| /' conftest.$ac_ext >&5
20658
20659         eval "$as_ac_Lib=no"
20660 fi
20661
20662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20663       conftest$ac_exeext conftest.$ac_ext
20664 LIBS=$ac_check_lib_save_LIBS
20665 fi
20666 ac_res=`eval echo '${'$as_ac_Lib'}'`
20667                { echo "$as_me:$LINENO: result: $ac_res" >&5
20668 echo "${ECHO_T}$ac_res" >&6; }
20669 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20670   K4LIBS="-lkrb $K4LIBS"
20671 else
20672
20673         as_ac_Lib=`echo "ac_cv_lib_krb4_main$K4LIBS" | $as_tr_sh`
20674 { echo "$as_me:$LINENO: checking for main in -lkrb4" >&5
20675 echo $ECHO_N "checking for main in -lkrb4... $ECHO_C" >&6; }
20676 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
20677   echo $ECHO_N "(cached) $ECHO_C" >&6
20678 else
20679   ac_check_lib_save_LIBS=$LIBS
20680 LIBS="-lkrb4 $K4LIBS $LIBS"
20681 cat >conftest.$ac_ext <<_ACEOF
20682 /* confdefs.h.  */
20683 _ACEOF
20684 cat confdefs.h >>conftest.$ac_ext
20685 cat >>conftest.$ac_ext <<_ACEOF
20686 /* end confdefs.h.  */
20687
20688
20689 int
20690 main ()
20691 {
20692 return main ();
20693   ;
20694   return 0;
20695 }
20696 _ACEOF
20697 rm -f conftest.$ac_objext conftest$ac_exeext
20698 if { (ac_try="$ac_link"
20699 case "(($ac_try" in
20700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20701   *) ac_try_echo=$ac_try;;
20702 esac
20703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20704   (eval "$ac_link") 2>conftest.er1
20705   ac_status=$?
20706   grep -v '^ *+' conftest.er1 >conftest.err
20707   rm -f conftest.er1
20708   cat conftest.err >&5
20709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710   (exit $ac_status); } && {
20711          test -z "$ac_c_werror_flag" ||
20712          test ! -s conftest.err
20713        } && test -s conftest$ac_exeext &&
20714        $as_test_x conftest$ac_exeext; then
20715   eval "$as_ac_Lib=yes"
20716 else
20717   echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720         eval "$as_ac_Lib=no"
20721 fi
20722
20723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20724       conftest$ac_exeext conftest.$ac_ext
20725 LIBS=$ac_check_lib_save_LIBS
20726 fi
20727 ac_res=`eval echo '${'$as_ac_Lib'}'`
20728                { echo "$as_me:$LINENO: result: $ac_res" >&5
20729 echo "${ECHO_T}$ac_res" >&6; }
20730 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
20731   K4LIBS="-lkrb4 $K4LIBS"
20732 else
20733   K4LIBS="-lkrb $K4LIBS"
20734             { 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
20735 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;}
20736
20737 fi
20738
20739
20740 fi
20741
20742     LDFLAGS="$O_LDFLAGS"
20743     SUDO_LIBS="${SUDO_LIBS} $K4LIBS"
20744     AUTH_OBJS="$AUTH_OBJS kerb4.o"
20745 fi
20746
20747 if test ${with_kerb5-'no'} != "no"; then
20748     # Extract the first word of "krb5-config", so it can be a program name with args.
20749 set dummy krb5-config; ac_word=$2
20750 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20751 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20752 if test "${ac_cv_prog_KRB5CONFIG+set}" = set; then
20753   echo $ECHO_N "(cached) $ECHO_C" >&6
20754 else
20755   if test -n "$KRB5CONFIG"; then
20756   ac_cv_prog_KRB5CONFIG="$KRB5CONFIG" # Let the user override the test.
20757 else
20758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20759 for as_dir in $PATH
20760 do
20761   IFS=$as_save_IFS
20762   test -z "$as_dir" && as_dir=.
20763   for ac_exec_ext in '' $ac_executable_extensions; do
20764   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20765     ac_cv_prog_KRB5CONFIG="yes"
20766     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20767     break 2
20768   fi
20769 done
20770 done
20771 IFS=$as_save_IFS
20772
20773   test -z "$ac_cv_prog_KRB5CONFIG" && ac_cv_prog_KRB5CONFIG=""""
20774 fi
20775 fi
20776 KRB5CONFIG=$ac_cv_prog_KRB5CONFIG
20777 if test -n "$KRB5CONFIG"; then
20778   { echo "$as_me:$LINENO: result: $KRB5CONFIG" >&5
20779 echo "${ECHO_T}$KRB5CONFIG" >&6; }
20780 else
20781   { echo "$as_me:$LINENO: result: no" >&5
20782 echo "${ECHO_T}no" >&6; }
20783 fi
20784
20785
20786     if test -n "$KRB5CONFIG"; then
20787         cat >>confdefs.h <<\_ACEOF
20788 #define HAVE_KERB5 1
20789 _ACEOF
20790
20791         AUTH_OBJS="$AUTH_OBJS kerb5.o"
20792         CPPFLAGS="$CPPFLAGS `krb5-config --cflags`"
20793         SUDO_LIBS="$SUDO_LIBS `krb5-config --libs`"
20794                                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20795 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20796         cat >conftest.$ac_ext <<_ACEOF
20797 /* confdefs.h.  */
20798 _ACEOF
20799 cat confdefs.h >>conftest.$ac_ext
20800 cat >>conftest.$ac_ext <<_ACEOF
20801 /* end confdefs.h.  */
20802 #include <krb5.h>
20803 int
20804 main ()
20805 {
20806 const char *tmp = heimdal_version;
20807   ;
20808   return 0;
20809 }
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815   *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818   (eval "$ac_compile") 2>conftest.er1
20819   ac_status=$?
20820   grep -v '^ *+' conftest.er1 >conftest.err
20821   rm -f conftest.er1
20822   cat conftest.err >&5
20823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824   (exit $ac_status); } && {
20825          test -z "$ac_c_werror_flag" ||
20826          test ! -s conftest.err
20827        } && test -s conftest.$ac_objext; then
20828
20829                 { echo "$as_me:$LINENO: result: yes" >&5
20830 echo "${ECHO_T}yes" >&6; }
20831                 cat >>confdefs.h <<\_ACEOF
20832 #define HAVE_HEIMDAL 1
20833 _ACEOF
20834
20835
20836 else
20837   echo "$as_me: failed program was:" >&5
20838 sed 's/^/| /' conftest.$ac_ext >&5
20839
20840
20841                 { echo "$as_me:$LINENO: result: no" >&5
20842 echo "${ECHO_T}no" >&6; }
20843
20844
20845 fi
20846
20847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20848     fi
20849 fi
20850 if test ${with_kerb5-'no'} != "no" -a -z "$KRB5CONFIG"; then
20851     cat >>confdefs.h <<\_ACEOF
20852 #define HAVE_KERB5 1
20853 _ACEOF
20854
20855                 if test "$with_kerb5" = "yes"; then
20856         found=no
20857         O_CPPFLAGS="$CPPFLAGS"
20858         for dir in "" "kerberosV/" "krb5/" "kerberos5/" "kerberosv5/"; do
20859             CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
20860             cat >conftest.$ac_ext <<_ACEOF
20861 #include <krb5.h>
20862 _ACEOF
20863 if { (ac_try="$ac_cpp conftest.$ac_ext"
20864 case "(($ac_try" in
20865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866   *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20870   ac_status=$?
20871   grep -v '^ *+' conftest.er1 >conftest.err
20872   rm -f conftest.er1
20873   cat conftest.err >&5
20874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875   (exit $ac_status); } >/dev/null && {
20876          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20877          test ! -s conftest.err
20878        }; then
20879   found=yes; break
20880 else
20881   echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884
20885 fi
20886
20887 rm -f conftest.err conftest.$ac_ext
20888         done
20889         if test X"$found" = X"no"; then
20890             CPPFLAGS="$O_CPPFLAGS"
20891             { 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
20892 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;}
20893         fi
20894     else
20895
20896     if test X"$with_rpath" = X"yes"; then
20897         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib -R${with_kerb5}/lib"
20898     else
20899         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_kerb5}/lib"
20900     fi
20901     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
20902         blibpath_add="${blibpath_add}:${with_kerb5}/lib"
20903     fi
20904
20905         CPPFLAGS="$CPPFLAGS -I${with_kerb5}/include"
20906     fi
20907
20908                 { echo "$as_me:$LINENO: checking whether we are using Heimdal" >&5
20909 echo $ECHO_N "checking whether we are using Heimdal... $ECHO_C" >&6; }
20910     cat >conftest.$ac_ext <<_ACEOF
20911 /* confdefs.h.  */
20912 _ACEOF
20913 cat confdefs.h >>conftest.$ac_ext
20914 cat >>conftest.$ac_ext <<_ACEOF
20915 /* end confdefs.h.  */
20916 #include <krb5.h>
20917 int
20918 main ()
20919 {
20920 const char *tmp = heimdal_version;
20921   ;
20922   return 0;
20923 }
20924 _ACEOF
20925 rm -f conftest.$ac_objext
20926 if { (ac_try="$ac_compile"
20927 case "(($ac_try" in
20928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929   *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932   (eval "$ac_compile") 2>conftest.er1
20933   ac_status=$?
20934   grep -v '^ *+' conftest.er1 >conftest.err
20935   rm -f conftest.er1
20936   cat conftest.err >&5
20937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938   (exit $ac_status); } && {
20939          test -z "$ac_c_werror_flag" ||
20940          test ! -s conftest.err
20941        } && test -s conftest.$ac_objext; then
20942
20943             { echo "$as_me:$LINENO: result: yes" >&5
20944 echo "${ECHO_T}yes" >&6; }
20945             cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_HEIMDAL 1
20947 _ACEOF
20948
20949             # XXX - need to check whether -lcrypo is needed!
20950             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lcrypto -ldes -lcom_err -lasn1"
20951             { echo "$as_me:$LINENO: checking for main in -lroken" >&5
20952 echo $ECHO_N "checking for main in -lroken... $ECHO_C" >&6; }
20953 if test "${ac_cv_lib_roken_main+set}" = set; then
20954   echo $ECHO_N "(cached) $ECHO_C" >&6
20955 else
20956   ac_check_lib_save_LIBS=$LIBS
20957 LIBS="-lroken  $LIBS"
20958 cat >conftest.$ac_ext <<_ACEOF
20959 /* confdefs.h.  */
20960 _ACEOF
20961 cat confdefs.h >>conftest.$ac_ext
20962 cat >>conftest.$ac_ext <<_ACEOF
20963 /* end confdefs.h.  */
20964
20965
20966 int
20967 main ()
20968 {
20969 return main ();
20970   ;
20971   return 0;
20972 }
20973 _ACEOF
20974 rm -f conftest.$ac_objext conftest$ac_exeext
20975 if { (ac_try="$ac_link"
20976 case "(($ac_try" in
20977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978   *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981   (eval "$ac_link") 2>conftest.er1
20982   ac_status=$?
20983   grep -v '^ *+' conftest.er1 >conftest.err
20984   rm -f conftest.er1
20985   cat conftest.err >&5
20986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987   (exit $ac_status); } && {
20988          test -z "$ac_c_werror_flag" ||
20989          test ! -s conftest.err
20990        } && test -s conftest$ac_exeext &&
20991        $as_test_x conftest$ac_exeext; then
20992   ac_cv_lib_roken_main=yes
20993 else
20994   echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20996
20997         ac_cv_lib_roken_main=no
20998 fi
20999
21000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001       conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_check_lib_save_LIBS
21003 fi
21004 { echo "$as_me:$LINENO: result: $ac_cv_lib_roken_main" >&5
21005 echo "${ECHO_T}$ac_cv_lib_roken_main" >&6; }
21006 if test $ac_cv_lib_roken_main = yes; then
21007   SUDO_LIBS="${SUDO_LIBS} -lroken"
21008 fi
21009
21010
21011 else
21012   echo "$as_me: failed program was:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21014
21015
21016             { echo "$as_me:$LINENO: result: no" >&5
21017 echo "${ECHO_T}no" >&6; }
21018             SUDO_LIBS="${SUDO_LIBS} -lkrb5 -lk5crypto -lcom_err"
21019             { echo "$as_me:$LINENO: checking for main in -lkrb5support" >&5
21020 echo $ECHO_N "checking for main in -lkrb5support... $ECHO_C" >&6; }
21021 if test "${ac_cv_lib_krb5support_main+set}" = set; then
21022   echo $ECHO_N "(cached) $ECHO_C" >&6
21023 else
21024   ac_check_lib_save_LIBS=$LIBS
21025 LIBS="-lkrb5support  $LIBS"
21026 cat >conftest.$ac_ext <<_ACEOF
21027 /* confdefs.h.  */
21028 _ACEOF
21029 cat confdefs.h >>conftest.$ac_ext
21030 cat >>conftest.$ac_ext <<_ACEOF
21031 /* end confdefs.h.  */
21032
21033
21034 int
21035 main ()
21036 {
21037 return main ();
21038   ;
21039   return 0;
21040 }
21041 _ACEOF
21042 rm -f conftest.$ac_objext conftest$ac_exeext
21043 if { (ac_try="$ac_link"
21044 case "(($ac_try" in
21045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046   *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049   (eval "$ac_link") 2>conftest.er1
21050   ac_status=$?
21051   grep -v '^ *+' conftest.er1 >conftest.err
21052   rm -f conftest.er1
21053   cat conftest.err >&5
21054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055   (exit $ac_status); } && {
21056          test -z "$ac_c_werror_flag" ||
21057          test ! -s conftest.err
21058        } && test -s conftest$ac_exeext &&
21059        $as_test_x conftest$ac_exeext; then
21060   ac_cv_lib_krb5support_main=yes
21061 else
21062   echo "$as_me: failed program was:" >&5
21063 sed 's/^/| /' conftest.$ac_ext >&5
21064
21065         ac_cv_lib_krb5support_main=no
21066 fi
21067
21068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21069       conftest$ac_exeext conftest.$ac_ext
21070 LIBS=$ac_check_lib_save_LIBS
21071 fi
21072 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5support_main" >&5
21073 echo "${ECHO_T}$ac_cv_lib_krb5support_main" >&6; }
21074 if test $ac_cv_lib_krb5support_main = yes; then
21075   SUDO_LIBS="${SUDO_LIBS} -lkrb5support,"
21076 fi
21077
21078
21079 fi
21080
21081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21082     AUTH_OBJS="$AUTH_OBJS kerb5.o"
21083     _LIBS="$LIBS"
21084     LIBS="${LIBS} ${SUDO_LIBS}"
21085
21086
21087
21088 for ac_func in krb5_verify_user krb5_init_secure_context krb5_get_init_creds_opt_alloc
21089 do
21090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21091 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21094   echo $ECHO_N "(cached) $ECHO_C" >&6
21095 else
21096   cat >conftest.$ac_ext <<_ACEOF
21097 /* confdefs.h.  */
21098 _ACEOF
21099 cat confdefs.h >>conftest.$ac_ext
21100 cat >>conftest.$ac_ext <<_ACEOF
21101 /* end confdefs.h.  */
21102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21103    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21104 #define $ac_func innocuous_$ac_func
21105
21106 /* System header to define __stub macros and hopefully few prototypes,
21107     which can conflict with char $ac_func (); below.
21108     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21109     <limits.h> exists even on freestanding compilers.  */
21110
21111 #ifdef __STDC__
21112 # include <limits.h>
21113 #else
21114 # include <assert.h>
21115 #endif
21116
21117 #undef $ac_func
21118
21119 /* Override any GCC internal prototype to avoid an error.
21120    Use char because int might match the return type of a GCC
21121    builtin and then its argument prototype would still apply.  */
21122 #ifdef __cplusplus
21123 extern "C"
21124 #endif
21125 char $ac_func ();
21126 /* The GNU C library defines this for functions which it implements
21127     to always fail with ENOSYS.  Some functions are actually named
21128     something starting with __ and the normal name is an alias.  */
21129 #if defined __stub_$ac_func || defined __stub___$ac_func
21130 choke me
21131 #endif
21132
21133 int
21134 main ()
21135 {
21136 return $ac_func ();
21137   ;
21138   return 0;
21139 }
21140 _ACEOF
21141 rm -f conftest.$ac_objext conftest$ac_exeext
21142 if { (ac_try="$ac_link"
21143 case "(($ac_try" in
21144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21145   *) ac_try_echo=$ac_try;;
21146 esac
21147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21148   (eval "$ac_link") 2>conftest.er1
21149   ac_status=$?
21150   grep -v '^ *+' conftest.er1 >conftest.err
21151   rm -f conftest.er1
21152   cat conftest.err >&5
21153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154   (exit $ac_status); } && {
21155          test -z "$ac_c_werror_flag" ||
21156          test ! -s conftest.err
21157        } && test -s conftest$ac_exeext &&
21158        $as_test_x conftest$ac_exeext; then
21159   eval "$as_ac_var=yes"
21160 else
21161   echo "$as_me: failed program was:" >&5
21162 sed 's/^/| /' conftest.$ac_ext >&5
21163
21164         eval "$as_ac_var=no"
21165 fi
21166
21167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21168       conftest$ac_exeext conftest.$ac_ext
21169 fi
21170 ac_res=`eval echo '${'$as_ac_var'}'`
21171                { echo "$as_me:$LINENO: result: $ac_res" >&5
21172 echo "${ECHO_T}$ac_res" >&6; }
21173 if test `eval echo '${'$as_ac_var'}'` = yes; then
21174   cat >>confdefs.h <<_ACEOF
21175 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21176 _ACEOF
21177
21178 fi
21179 done
21180
21181     { echo "$as_me:$LINENO: checking whether krb5_get_init_creds_opt_free takes a two argument2" >&5
21182 echo $ECHO_N "checking whether krb5_get_init_creds_opt_free takes a two argument2... $ECHO_C" >&6; }
21183 if test "${sudo_cv_krb5_get_init_creds_opt_free_two_args+set}" = set; then
21184   echo $ECHO_N "(cached) $ECHO_C" >&6
21185 else
21186
21187             cat >conftest.$ac_ext <<_ACEOF
21188 /* confdefs.h.  */
21189 _ACEOF
21190 cat confdefs.h >>conftest.$ac_ext
21191 cat >>conftest.$ac_ext <<_ACEOF
21192 /* end confdefs.h.  */
21193 #include <krb5.h>
21194 int
21195 main ()
21196 {
21197
21198                     krb5_context context = NULL;
21199                     krb5_get_init_creds_opt *opts = NULL;
21200                     krb5_get_init_creds_opt_free(context, opts);
21201
21202   ;
21203   return 0;
21204 }
21205 _ACEOF
21206 rm -f conftest.$ac_objext
21207 if { (ac_try="$ac_compile"
21208 case "(($ac_try" in
21209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21210   *) ac_try_echo=$ac_try;;
21211 esac
21212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21213   (eval "$ac_compile") 2>conftest.er1
21214   ac_status=$?
21215   grep -v '^ *+' conftest.er1 >conftest.err
21216   rm -f conftest.er1
21217   cat conftest.err >&5
21218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219   (exit $ac_status); } && {
21220          test -z "$ac_c_werror_flag" ||
21221          test ! -s conftest.err
21222        } && test -s conftest.$ac_objext; then
21223   sudo_cv_krb5_get_init_creds_opt_free_two_args=yes
21224 else
21225   echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21227
21228         sudo_cv_krb5_get_init_creds_opt_free_two_args=no
21229
21230 fi
21231
21232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21233
21234
21235 fi
21236 { echo "$as_me:$LINENO: result: $sudo_cv_krb5_get_init_creds_opt_free_two_args" >&5
21237 echo "${ECHO_T}$sudo_cv_krb5_get_init_creds_opt_free_two_args" >&6; }
21238     if test X"$sudo_cv_krb5_get_init_creds_opt_free_two_args" = X"yes"; then
21239         cat >>confdefs.h <<\_ACEOF
21240 #define HAVE_KRB5_GET_INIT_CREDS_OPT_FREE_TWO_ARGS 1
21241 _ACEOF
21242
21243     fi
21244     LIBS="$_LIBS"
21245 fi
21246
21247 if test ${with_AFS-'no'} = "yes"; then
21248
21249     # looks like the "standard" place for AFS libs is /usr/afsws/lib
21250     AFSLIBDIRS="/usr/lib/afs /usr/afsws/lib /usr/afsws/lib/afs"
21251     for i in $AFSLIBDIRS; do
21252         if test -d ${i}; then
21253
21254     if test X"$with_rpath" = X"yes"; then
21255         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i -R$i"
21256     else
21257         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L$i"
21258     fi
21259     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21260         blibpath_add="${blibpath_add}:$i"
21261     fi
21262
21263             FOUND_AFSLIBDIR=true
21264         fi
21265     done
21266     if test -z "$FOUND_AFSLIBDIR"; then
21267         { 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
21268 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;}
21269     fi
21270
21271     # Order is important here.  Note that we build AFS_LIBS from right to left
21272     # since AFS_LIBS may be initialized with BSD compat libs that must go last
21273     AFS_LIBS="-laudit ${AFS_LIBS}"
21274     for i in $AFSLIBDIRS; do
21275         if test -f ${i}/util.a; then
21276             AFS_LIBS="${i}/util.a ${AFS_LIBS}"
21277             FOUND_UTIL_A=true
21278             break;
21279         fi
21280     done
21281     if test -z "$FOUND_UTIL_A"; then
21282         AFS_LIBS="-lutil ${AFS_LIBS}"
21283     fi
21284     AFS_LIBS="-lkauth -lprot -lubik -lauth -lrxkad -lsys -ldes -lrx -llwp -lcom_err ${AFS_LIBS}"
21285
21286     # AFS includes may live in /usr/include on some machines...
21287     for i in /usr/afsws/include; do
21288         if test -d ${i}; then
21289             CPPFLAGS="${CPPFLAGS} -I${i}"
21290             FOUND_AFSINCDIR=true
21291         fi
21292     done
21293
21294     if test -z "$FOUND_AFSLIBDIR"; then
21295         { 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
21296 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;}
21297     fi
21298
21299     AUTH_OBJS="$AUTH_OBJS afs.o"
21300 fi
21301
21302 if test ${with_DCE-'no'} = "yes"; then
21303     DCE_OBJS="${DCE_OBJS} dce_pwent.o"
21304     SUDO_LIBS="${SUDO_LIBS} -ldce"
21305     AUTH_OBJS="$AUTH_OBJS dce.o"
21306 fi
21307
21308 if test ${with_skey-'no'} = "yes"; then
21309     O_LDFLAGS="$LDFLAGS"
21310     if test "$with_skey" != "yes"; then
21311         CPPFLAGS="${CPPFLAGS} -I${with_skey}/include"
21312
21313     if test X"$with_rpath" = X"yes"; then
21314         LDFLAGS="${LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21315     else
21316         LDFLAGS="${LDFLAGS} -L${with_skey}/lib"
21317     fi
21318     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21319         blibpath_add="${blibpath_add}:${with_skey}/lib"
21320     fi
21321
21322
21323     if test X"$with_rpath" = X"yes"; then
21324         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib -R${with_skey}/lib"
21325     else
21326         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_skey}/lib"
21327     fi
21328     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21329         blibpath_add="${blibpath_add}:${with_skey}/lib"
21330     fi
21331
21332         cat >conftest.$ac_ext <<_ACEOF
21333 #include <skey.h>
21334 _ACEOF
21335 if { (ac_try="$ac_cpp conftest.$ac_ext"
21336 case "(($ac_try" in
21337   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21338   *) ac_try_echo=$ac_try;;
21339 esac
21340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21341   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21342   ac_status=$?
21343   grep -v '^ *+' conftest.er1 >conftest.err
21344   rm -f conftest.er1
21345   cat conftest.err >&5
21346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21347   (exit $ac_status); } >/dev/null && {
21348          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21349          test ! -s conftest.err
21350        }; then
21351   found=yes
21352 else
21353   echo "$as_me: failed program was:" >&5
21354 sed 's/^/| /' conftest.$ac_ext >&5
21355
21356   found=no
21357 fi
21358
21359 rm -f conftest.err conftest.$ac_ext
21360     else
21361         found=no
21362         O_CPPFLAGS="$CPPFLAGS"
21363         for dir in "" "/usr/local" "/usr/contrib"; do
21364             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21365             cat >conftest.$ac_ext <<_ACEOF
21366 #include <skey.h>
21367 _ACEOF
21368 if { (ac_try="$ac_cpp conftest.$ac_ext"
21369 case "(($ac_try" in
21370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21371   *) ac_try_echo=$ac_try;;
21372 esac
21373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21374   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21375   ac_status=$?
21376   grep -v '^ *+' conftest.er1 >conftest.err
21377   rm -f conftest.er1
21378   cat conftest.err >&5
21379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21380   (exit $ac_status); } >/dev/null && {
21381          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21382          test ! -s conftest.err
21383        }; then
21384   found=yes; break
21385 else
21386   echo "$as_me: failed program was:" >&5
21387 sed 's/^/| /' conftest.$ac_ext >&5
21388
21389
21390 fi
21391
21392 rm -f conftest.err conftest.$ac_ext
21393         done
21394         if test "$found" = "no" -o -z "$dir"; then
21395             CPPFLAGS="$O_CPPFLAGS"
21396         else
21397
21398     if test X"$with_rpath" = X"yes"; then
21399         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21400     else
21401         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21402     fi
21403     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21404         blibpath_add="${blibpath_add}:${dir}/lib"
21405     fi
21406
21407
21408     if test X"$with_rpath" = X"yes"; then
21409         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21410     else
21411         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21412     fi
21413     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21414         blibpath_add="${blibpath_add}:${dir}/lib"
21415     fi
21416
21417         fi
21418     fi
21419     if test "$found" = "no"; then
21420         { 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
21421 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;}
21422     fi
21423     { echo "$as_me:$LINENO: checking for main in -lskey" >&5
21424 echo $ECHO_N "checking for main in -lskey... $ECHO_C" >&6; }
21425 if test "${ac_cv_lib_skey_main+set}" = set; then
21426   echo $ECHO_N "(cached) $ECHO_C" >&6
21427 else
21428   ac_check_lib_save_LIBS=$LIBS
21429 LIBS="-lskey  $LIBS"
21430 cat >conftest.$ac_ext <<_ACEOF
21431 /* confdefs.h.  */
21432 _ACEOF
21433 cat confdefs.h >>conftest.$ac_ext
21434 cat >>conftest.$ac_ext <<_ACEOF
21435 /* end confdefs.h.  */
21436
21437
21438 int
21439 main ()
21440 {
21441 return main ();
21442   ;
21443   return 0;
21444 }
21445 _ACEOF
21446 rm -f conftest.$ac_objext conftest$ac_exeext
21447 if { (ac_try="$ac_link"
21448 case "(($ac_try" in
21449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450   *) ac_try_echo=$ac_try;;
21451 esac
21452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21453   (eval "$ac_link") 2>conftest.er1
21454   ac_status=$?
21455   grep -v '^ *+' conftest.er1 >conftest.err
21456   rm -f conftest.er1
21457   cat conftest.err >&5
21458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21459   (exit $ac_status); } && {
21460          test -z "$ac_c_werror_flag" ||
21461          test ! -s conftest.err
21462        } && test -s conftest$ac_exeext &&
21463        $as_test_x conftest$ac_exeext; then
21464   ac_cv_lib_skey_main=yes
21465 else
21466   echo "$as_me: failed program was:" >&5
21467 sed 's/^/| /' conftest.$ac_ext >&5
21468
21469         ac_cv_lib_skey_main=no
21470 fi
21471
21472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21473       conftest$ac_exeext conftest.$ac_ext
21474 LIBS=$ac_check_lib_save_LIBS
21475 fi
21476 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_main" >&5
21477 echo "${ECHO_T}$ac_cv_lib_skey_main" >&6; }
21478 if test $ac_cv_lib_skey_main = yes; then
21479   found=yes
21480 else
21481   { 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
21482 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;}
21483 fi
21484
21485     { echo "$as_me:$LINENO: checking for skeyaccess in -lskey" >&5
21486 echo $ECHO_N "checking for skeyaccess in -lskey... $ECHO_C" >&6; }
21487 if test "${ac_cv_lib_skey_skeyaccess+set}" = set; then
21488   echo $ECHO_N "(cached) $ECHO_C" >&6
21489 else
21490   ac_check_lib_save_LIBS=$LIBS
21491 LIBS="-lskey  $LIBS"
21492 cat >conftest.$ac_ext <<_ACEOF
21493 /* confdefs.h.  */
21494 _ACEOF
21495 cat confdefs.h >>conftest.$ac_ext
21496 cat >>conftest.$ac_ext <<_ACEOF
21497 /* end confdefs.h.  */
21498
21499 /* Override any GCC internal prototype to avoid an error.
21500    Use char because int might match the return type of a GCC
21501    builtin and then its argument prototype would still apply.  */
21502 #ifdef __cplusplus
21503 extern "C"
21504 #endif
21505 char skeyaccess ();
21506 int
21507 main ()
21508 {
21509 return skeyaccess ();
21510   ;
21511   return 0;
21512 }
21513 _ACEOF
21514 rm -f conftest.$ac_objext conftest$ac_exeext
21515 if { (ac_try="$ac_link"
21516 case "(($ac_try" in
21517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518   *) ac_try_echo=$ac_try;;
21519 esac
21520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21521   (eval "$ac_link") 2>conftest.er1
21522   ac_status=$?
21523   grep -v '^ *+' conftest.er1 >conftest.err
21524   rm -f conftest.er1
21525   cat conftest.err >&5
21526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21527   (exit $ac_status); } && {
21528          test -z "$ac_c_werror_flag" ||
21529          test ! -s conftest.err
21530        } && test -s conftest$ac_exeext &&
21531        $as_test_x conftest$ac_exeext; then
21532   ac_cv_lib_skey_skeyaccess=yes
21533 else
21534   echo "$as_me: failed program was:" >&5
21535 sed 's/^/| /' conftest.$ac_ext >&5
21536
21537         ac_cv_lib_skey_skeyaccess=no
21538 fi
21539
21540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21541       conftest$ac_exeext conftest.$ac_ext
21542 LIBS=$ac_check_lib_save_LIBS
21543 fi
21544 { echo "$as_me:$LINENO: result: $ac_cv_lib_skey_skeyaccess" >&5
21545 echo "${ECHO_T}$ac_cv_lib_skey_skeyaccess" >&6; }
21546 if test $ac_cv_lib_skey_skeyaccess = yes; then
21547   cat >>confdefs.h <<\_ACEOF
21548 #define HAVE_SKEYACCESS 1
21549 _ACEOF
21550
21551 fi
21552
21553     LDFLAGS="$O_LDFLAGS"
21554     SUDO_LIBS="${SUDO_LIBS} -lskey"
21555     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21556 fi
21557
21558 if test ${with_opie-'no'} = "yes"; then
21559     O_LDFLAGS="$LDFLAGS"
21560     if test "$with_opie" != "yes"; then
21561         CPPFLAGS="${CPPFLAGS} -I${with_opie}/include"
21562
21563     if test X"$with_rpath" = X"yes"; then
21564         LDFLAGS="${LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21565     else
21566         LDFLAGS="${LDFLAGS} -L${with_opie}/lib"
21567     fi
21568     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21569         blibpath_add="${blibpath_add}:${with_opie}/lib"
21570     fi
21571
21572
21573     if test X"$with_rpath" = X"yes"; then
21574         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib -R${with_opie}/lib"
21575     else
21576         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_opie}/lib"
21577     fi
21578     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21579         blibpath_add="${blibpath_add}:${with_opie}/lib"
21580     fi
21581
21582         cat >conftest.$ac_ext <<_ACEOF
21583 #include <opie.h>
21584 _ACEOF
21585 if { (ac_try="$ac_cpp conftest.$ac_ext"
21586 case "(($ac_try" in
21587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588   *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21592   ac_status=$?
21593   grep -v '^ *+' conftest.er1 >conftest.err
21594   rm -f conftest.er1
21595   cat conftest.err >&5
21596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597   (exit $ac_status); } >/dev/null && {
21598          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21599          test ! -s conftest.err
21600        }; then
21601   found=yes
21602 else
21603   echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606   found=no
21607 fi
21608
21609 rm -f conftest.err conftest.$ac_ext
21610     else
21611         found=no
21612         O_CPPFLAGS="$CPPFLAGS"
21613         for dir in "" "/usr/local" "/usr/contrib"; do
21614             test -n "$dir" && CPPFLAGS="$O_CPPFLAGS -I${dir}/include"
21615             cat >conftest.$ac_ext <<_ACEOF
21616 #include <opie.h>
21617 _ACEOF
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621   *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21625   ac_status=$?
21626   grep -v '^ *+' conftest.er1 >conftest.err
21627   rm -f conftest.er1
21628   cat conftest.err >&5
21629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630   (exit $ac_status); } >/dev/null && {
21631          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21632          test ! -s conftest.err
21633        }; then
21634   found=yes; break
21635 else
21636   echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639
21640 fi
21641
21642 rm -f conftest.err conftest.$ac_ext
21643         done
21644         if test "$found" = "no" -o -z "$dir"; then
21645             CPPFLAGS="$O_CPPFLAGS"
21646         else
21647
21648     if test X"$with_rpath" = X"yes"; then
21649         LDFLAGS="${LDFLAGS} -L${dir}/lib -R${dir}/lib"
21650     else
21651         LDFLAGS="${LDFLAGS} -L${dir}/lib"
21652     fi
21653     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
21654         blibpath_add="${blibpath_add}:${dir}/lib"
21655     fi
21656
21657
21658     if test X"$with_rpath" = X"yes"; then
21659         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib -R${dir}/lib"
21660     else
21661         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${dir}/lib"
21662     fi
21663     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
21664         blibpath_add="${blibpath_add}:${dir}/lib"
21665     fi
21666
21667         fi
21668     fi
21669     if test "$found" = "no"; then
21670         { 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
21671 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;}
21672     fi
21673     { echo "$as_me:$LINENO: checking for main in -lopie" >&5
21674 echo $ECHO_N "checking for main in -lopie... $ECHO_C" >&6; }
21675 if test "${ac_cv_lib_opie_main+set}" = set; then
21676   echo $ECHO_N "(cached) $ECHO_C" >&6
21677 else
21678   ac_check_lib_save_LIBS=$LIBS
21679 LIBS="-lopie  $LIBS"
21680 cat >conftest.$ac_ext <<_ACEOF
21681 /* confdefs.h.  */
21682 _ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h.  */
21686
21687
21688 int
21689 main ()
21690 {
21691 return main ();
21692   ;
21693   return 0;
21694 }
21695 _ACEOF
21696 rm -f conftest.$ac_objext conftest$ac_exeext
21697 if { (ac_try="$ac_link"
21698 case "(($ac_try" in
21699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700   *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703   (eval "$ac_link") 2>conftest.er1
21704   ac_status=$?
21705   grep -v '^ *+' conftest.er1 >conftest.err
21706   rm -f conftest.er1
21707   cat conftest.err >&5
21708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21709   (exit $ac_status); } && {
21710          test -z "$ac_c_werror_flag" ||
21711          test ! -s conftest.err
21712        } && test -s conftest$ac_exeext &&
21713        $as_test_x conftest$ac_exeext; then
21714   ac_cv_lib_opie_main=yes
21715 else
21716   echo "$as_me: failed program was:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21718
21719         ac_cv_lib_opie_main=no
21720 fi
21721
21722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21723       conftest$ac_exeext conftest.$ac_ext
21724 LIBS=$ac_check_lib_save_LIBS
21725 fi
21726 { echo "$as_me:$LINENO: result: $ac_cv_lib_opie_main" >&5
21727 echo "${ECHO_T}$ac_cv_lib_opie_main" >&6; }
21728 if test $ac_cv_lib_opie_main = yes; then
21729   found=yes
21730 else
21731   { 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
21732 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;}
21733 fi
21734
21735     LDFLAGS="$O_LDFLAGS"
21736     SUDO_LIBS="${SUDO_LIBS} -lopie"
21737     AUTH_OBJS="$AUTH_OBJS rfc1938.o"
21738 fi
21739
21740 if test ${with_passwd-'no'} != "no"; then
21741                 if test -z "$LIB_CRYPT" -a "$with_passwd" != "no"; then
21742         { echo "$as_me:$LINENO: checking for library containing crypt" >&5
21743 echo $ECHO_N "checking for library containing crypt... $ECHO_C" >&6; }
21744 if test "${ac_cv_search_crypt+set}" = set; then
21745   echo $ECHO_N "(cached) $ECHO_C" >&6
21746 else
21747   ac_func_search_save_LIBS=$LIBS
21748 cat >conftest.$ac_ext <<_ACEOF
21749 /* confdefs.h.  */
21750 _ACEOF
21751 cat confdefs.h >>conftest.$ac_ext
21752 cat >>conftest.$ac_ext <<_ACEOF
21753 /* end confdefs.h.  */
21754
21755 /* Override any GCC internal prototype to avoid an error.
21756    Use char because int might match the return type of a GCC
21757    builtin and then its argument prototype would still apply.  */
21758 #ifdef __cplusplus
21759 extern "C"
21760 #endif
21761 char crypt ();
21762 int
21763 main ()
21764 {
21765 return crypt ();
21766   ;
21767   return 0;
21768 }
21769 _ACEOF
21770 for ac_lib in '' crypt crypt_d ufc; do
21771   if test -z "$ac_lib"; then
21772     ac_res="none required"
21773   else
21774     ac_res=-l$ac_lib
21775     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
21776   fi
21777   rm -f conftest.$ac_objext conftest$ac_exeext
21778 if { (ac_try="$ac_link"
21779 case "(($ac_try" in
21780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21781   *) ac_try_echo=$ac_try;;
21782 esac
21783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21784   (eval "$ac_link") 2>conftest.er1
21785   ac_status=$?
21786   grep -v '^ *+' conftest.er1 >conftest.err
21787   rm -f conftest.er1
21788   cat conftest.err >&5
21789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21790   (exit $ac_status); } && {
21791          test -z "$ac_c_werror_flag" ||
21792          test ! -s conftest.err
21793        } && test -s conftest$ac_exeext &&
21794        $as_test_x conftest$ac_exeext; then
21795   ac_cv_search_crypt=$ac_res
21796 else
21797   echo "$as_me: failed program was:" >&5
21798 sed 's/^/| /' conftest.$ac_ext >&5
21799
21800
21801 fi
21802
21803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21804       conftest$ac_exeext
21805   if test "${ac_cv_search_crypt+set}" = set; then
21806   break
21807 fi
21808 done
21809 if test "${ac_cv_search_crypt+set}" = set; then
21810   :
21811 else
21812   ac_cv_search_crypt=no
21813 fi
21814 rm conftest.$ac_ext
21815 LIBS=$ac_func_search_save_LIBS
21816 fi
21817 { echo "$as_me:$LINENO: result: $ac_cv_search_crypt" >&5
21818 echo "${ECHO_T}$ac_cv_search_crypt" >&6; }
21819 ac_res=$ac_cv_search_crypt
21820 if test "$ac_res" != no; then
21821   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21822   test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
21823 fi
21824
21825     fi
21826
21827     if test "$CHECKSHADOW" = "true" -a -n "$shadow_funcs"; then
21828         _LIBS="$LIBS"
21829         LIBS="$LIBS $shadow_libs"
21830         found=no
21831
21832 for ac_func in $shadow_funcs
21833 do
21834 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21835 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21836 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21837 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21838   echo $ECHO_N "(cached) $ECHO_C" >&6
21839 else
21840   cat >conftest.$ac_ext <<_ACEOF
21841 /* confdefs.h.  */
21842 _ACEOF
21843 cat confdefs.h >>conftest.$ac_ext
21844 cat >>conftest.$ac_ext <<_ACEOF
21845 /* end confdefs.h.  */
21846 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21848 #define $ac_func innocuous_$ac_func
21849
21850 /* System header to define __stub macros and hopefully few prototypes,
21851     which can conflict with char $ac_func (); below.
21852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21853     <limits.h> exists even on freestanding compilers.  */
21854
21855 #ifdef __STDC__
21856 # include <limits.h>
21857 #else
21858 # include <assert.h>
21859 #endif
21860
21861 #undef $ac_func
21862
21863 /* Override any GCC internal prototype to avoid an error.
21864    Use char because int might match the return type of a GCC
21865    builtin and then its argument prototype would still apply.  */
21866 #ifdef __cplusplus
21867 extern "C"
21868 #endif
21869 char $ac_func ();
21870 /* The GNU C library defines this for functions which it implements
21871     to always fail with ENOSYS.  Some functions are actually named
21872     something starting with __ and the normal name is an alias.  */
21873 #if defined __stub_$ac_func || defined __stub___$ac_func
21874 choke me
21875 #endif
21876
21877 int
21878 main ()
21879 {
21880 return $ac_func ();
21881   ;
21882   return 0;
21883 }
21884 _ACEOF
21885 rm -f conftest.$ac_objext conftest$ac_exeext
21886 if { (ac_try="$ac_link"
21887 case "(($ac_try" in
21888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21889   *) ac_try_echo=$ac_try;;
21890 esac
21891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21892   (eval "$ac_link") 2>conftest.er1
21893   ac_status=$?
21894   grep -v '^ *+' conftest.er1 >conftest.err
21895   rm -f conftest.er1
21896   cat conftest.err >&5
21897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898   (exit $ac_status); } && {
21899          test -z "$ac_c_werror_flag" ||
21900          test ! -s conftest.err
21901        } && test -s conftest$ac_exeext &&
21902        $as_test_x conftest$ac_exeext; then
21903   eval "$as_ac_var=yes"
21904 else
21905   echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908         eval "$as_ac_var=no"
21909 fi
21910
21911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21912       conftest$ac_exeext conftest.$ac_ext
21913 fi
21914 ac_res=`eval echo '${'$as_ac_var'}'`
21915                { echo "$as_me:$LINENO: result: $ac_res" >&5
21916 echo "${ECHO_T}$ac_res" >&6; }
21917 if test `eval echo '${'$as_ac_var'}'` = yes; then
21918   cat >>confdefs.h <<_ACEOF
21919 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21920 _ACEOF
21921  found=yes
21922 fi
21923 done
21924
21925         if test "$found" = "yes"; then
21926             SUDO_LIBS="$SUDO_LIBS $shadow_libs"
21927         elif test -n "$shadow_libs_optional"; then
21928             LIBS="$LIBS $shadow_libs_optional"
21929
21930 for ac_func in $shadow_funcs
21931 do
21932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21936   echo $ECHO_N "(cached) $ECHO_C" >&6
21937 else
21938   cat >conftest.$ac_ext <<_ACEOF
21939 /* confdefs.h.  */
21940 _ACEOF
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h.  */
21944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21945    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21946 #define $ac_func innocuous_$ac_func
21947
21948 /* System header to define __stub macros and hopefully few prototypes,
21949     which can conflict with char $ac_func (); below.
21950     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21951     <limits.h> exists even on freestanding compilers.  */
21952
21953 #ifdef __STDC__
21954 # include <limits.h>
21955 #else
21956 # include <assert.h>
21957 #endif
21958
21959 #undef $ac_func
21960
21961 /* Override any GCC internal prototype to avoid an error.
21962    Use char because int might match the return type of a GCC
21963    builtin and then its argument prototype would still apply.  */
21964 #ifdef __cplusplus
21965 extern "C"
21966 #endif
21967 char $ac_func ();
21968 /* The GNU C library defines this for functions which it implements
21969     to always fail with ENOSYS.  Some functions are actually named
21970     something starting with __ and the normal name is an alias.  */
21971 #if defined __stub_$ac_func || defined __stub___$ac_func
21972 choke me
21973 #endif
21974
21975 int
21976 main ()
21977 {
21978 return $ac_func ();
21979   ;
21980   return 0;
21981 }
21982 _ACEOF
21983 rm -f conftest.$ac_objext conftest$ac_exeext
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987   *) ac_try_echo=$ac_try;;
21988 esac
21989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21990   (eval "$ac_link") 2>conftest.er1
21991   ac_status=$?
21992   grep -v '^ *+' conftest.er1 >conftest.err
21993   rm -f conftest.er1
21994   cat conftest.err >&5
21995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996   (exit $ac_status); } && {
21997          test -z "$ac_c_werror_flag" ||
21998          test ! -s conftest.err
21999        } && test -s conftest$ac_exeext &&
22000        $as_test_x conftest$ac_exeext; then
22001   eval "$as_ac_var=yes"
22002 else
22003   echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006         eval "$as_ac_var=no"
22007 fi
22008
22009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22010       conftest$ac_exeext conftest.$ac_ext
22011 fi
22012 ac_res=`eval echo '${'$as_ac_var'}'`
22013                { echo "$as_me:$LINENO: result: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22015 if test `eval echo '${'$as_ac_var'}'` = yes; then
22016   cat >>confdefs.h <<_ACEOF
22017 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22018 _ACEOF
22019  found=yes
22020 fi
22021 done
22022
22023             if test "$found" = "yes"; then
22024                 SUDO_LIBS="$SUDO_LIBS $shadow_libs $shadow_libs_optional"
22025             fi
22026         fi
22027         if test "$found" = "yes"; then
22028             case "$shadow_funcs" in
22029                 *getprpwnam*) SECUREWARE=1;;
22030             esac
22031             test -n "$shadow_defs" && OSDEFS="${OSDEFS} $shadow_defs"
22032         else
22033             LIBS="$_LIBS"
22034         fi
22035         CHECKSHADOW=false
22036     fi
22037     if test "$CHECKSHADOW" = "true"; then
22038         { echo "$as_me:$LINENO: checking for library containing getspnam" >&5
22039 echo $ECHO_N "checking for library containing getspnam... $ECHO_C" >&6; }
22040 if test "${ac_cv_search_getspnam+set}" = set; then
22041   echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043   ac_func_search_save_LIBS=$LIBS
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h.  */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h.  */
22050
22051 /* Override any GCC internal prototype to avoid an error.
22052    Use char because int might match the return type of a GCC
22053    builtin and then its argument prototype would still apply.  */
22054 #ifdef __cplusplus
22055 extern "C"
22056 #endif
22057 char getspnam ();
22058 int
22059 main ()
22060 {
22061 return getspnam ();
22062   ;
22063   return 0;
22064 }
22065 _ACEOF
22066 for ac_lib in '' gen; do
22067   if test -z "$ac_lib"; then
22068     ac_res="none required"
22069   else
22070     ac_res=-l$ac_lib
22071     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22072   fi
22073   rm -f conftest.$ac_objext conftest$ac_exeext
22074 if { (ac_try="$ac_link"
22075 case "(($ac_try" in
22076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22077   *) ac_try_echo=$ac_try;;
22078 esac
22079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22080   (eval "$ac_link") 2>conftest.er1
22081   ac_status=$?
22082   grep -v '^ *+' conftest.er1 >conftest.err
22083   rm -f conftest.er1
22084   cat conftest.err >&5
22085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086   (exit $ac_status); } && {
22087          test -z "$ac_c_werror_flag" ||
22088          test ! -s conftest.err
22089        } && test -s conftest$ac_exeext &&
22090        $as_test_x conftest$ac_exeext; then
22091   ac_cv_search_getspnam=$ac_res
22092 else
22093   echo "$as_me: failed program was:" >&5
22094 sed 's/^/| /' conftest.$ac_ext >&5
22095
22096
22097 fi
22098
22099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22100       conftest$ac_exeext
22101   if test "${ac_cv_search_getspnam+set}" = set; then
22102   break
22103 fi
22104 done
22105 if test "${ac_cv_search_getspnam+set}" = set; then
22106   :
22107 else
22108   ac_cv_search_getspnam=no
22109 fi
22110 rm conftest.$ac_ext
22111 LIBS=$ac_func_search_save_LIBS
22112 fi
22113 { echo "$as_me:$LINENO: result: $ac_cv_search_getspnam" >&5
22114 echo "${ECHO_T}$ac_cv_search_getspnam" >&6; }
22115 ac_res=$ac_cv_search_getspnam
22116 if test "$ac_res" != no; then
22117   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22118   cat >>confdefs.h <<\_ACEOF
22119 #define HAVE_GETSPNAM 1
22120 _ACEOF
22121  CHECKSHADOW=false; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22122 fi
22123
22124     fi
22125     if test "$CHECKSHADOW" = "true"; then
22126         { echo "$as_me:$LINENO: checking for library containing getprpwnam" >&5
22127 echo $ECHO_N "checking for library containing getprpwnam... $ECHO_C" >&6; }
22128 if test "${ac_cv_search_getprpwnam+set}" = set; then
22129   echo $ECHO_N "(cached) $ECHO_C" >&6
22130 else
22131   ac_func_search_save_LIBS=$LIBS
22132 cat >conftest.$ac_ext <<_ACEOF
22133 /* confdefs.h.  */
22134 _ACEOF
22135 cat confdefs.h >>conftest.$ac_ext
22136 cat >>conftest.$ac_ext <<_ACEOF
22137 /* end confdefs.h.  */
22138
22139 /* Override any GCC internal prototype to avoid an error.
22140    Use char because int might match the return type of a GCC
22141    builtin and then its argument prototype would still apply.  */
22142 #ifdef __cplusplus
22143 extern "C"
22144 #endif
22145 char getprpwnam ();
22146 int
22147 main ()
22148 {
22149 return getprpwnam ();
22150   ;
22151   return 0;
22152 }
22153 _ACEOF
22154 for ac_lib in '' sec security prot; do
22155   if test -z "$ac_lib"; then
22156     ac_res="none required"
22157   else
22158     ac_res=-l$ac_lib
22159     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22160   fi
22161   rm -f conftest.$ac_objext conftest$ac_exeext
22162 if { (ac_try="$ac_link"
22163 case "(($ac_try" in
22164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22165   *) ac_try_echo=$ac_try;;
22166 esac
22167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22168   (eval "$ac_link") 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } && {
22175          test -z "$ac_c_werror_flag" ||
22176          test ! -s conftest.err
22177        } && test -s conftest$ac_exeext &&
22178        $as_test_x conftest$ac_exeext; then
22179   ac_cv_search_getprpwnam=$ac_res
22180 else
22181   echo "$as_me: failed program was:" >&5
22182 sed 's/^/| /' conftest.$ac_ext >&5
22183
22184
22185 fi
22186
22187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22188       conftest$ac_exeext
22189   if test "${ac_cv_search_getprpwnam+set}" = set; then
22190   break
22191 fi
22192 done
22193 if test "${ac_cv_search_getprpwnam+set}" = set; then
22194   :
22195 else
22196   ac_cv_search_getprpwnam=no
22197 fi
22198 rm conftest.$ac_ext
22199 LIBS=$ac_func_search_save_LIBS
22200 fi
22201 { echo "$as_me:$LINENO: result: $ac_cv_search_getprpwnam" >&5
22202 echo "${ECHO_T}$ac_cv_search_getprpwnam" >&6; }
22203 ac_res=$ac_cv_search_getprpwnam
22204 if test "$ac_res" != no; then
22205   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22206   cat >>confdefs.h <<\_ACEOF
22207 #define HAVE_GETPRPWNAM 1
22208 _ACEOF
22209  CHECKSHADOW=false; SECUREWARE=1; test -n "$ac_lib" && SUDO_LIBS="${SUDO_LIBS} $ac_res"
22210 fi
22211
22212     fi
22213     if test -n "$SECUREWARE"; then
22214
22215
22216
22217 for ac_func in bigcrypt set_auth_parameters initprivs
22218 do
22219 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22220 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22221 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22222 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22223   echo $ECHO_N "(cached) $ECHO_C" >&6
22224 else
22225   cat >conftest.$ac_ext <<_ACEOF
22226 /* confdefs.h.  */
22227 _ACEOF
22228 cat confdefs.h >>conftest.$ac_ext
22229 cat >>conftest.$ac_ext <<_ACEOF
22230 /* end confdefs.h.  */
22231 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22232    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22233 #define $ac_func innocuous_$ac_func
22234
22235 /* System header to define __stub macros and hopefully few prototypes,
22236     which can conflict with char $ac_func (); below.
22237     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22238     <limits.h> exists even on freestanding compilers.  */
22239
22240 #ifdef __STDC__
22241 # include <limits.h>
22242 #else
22243 # include <assert.h>
22244 #endif
22245
22246 #undef $ac_func
22247
22248 /* Override any GCC internal prototype to avoid an error.
22249    Use char because int might match the return type of a GCC
22250    builtin and then its argument prototype would still apply.  */
22251 #ifdef __cplusplus
22252 extern "C"
22253 #endif
22254 char $ac_func ();
22255 /* The GNU C library defines this for functions which it implements
22256     to always fail with ENOSYS.  Some functions are actually named
22257     something starting with __ and the normal name is an alias.  */
22258 #if defined __stub_$ac_func || defined __stub___$ac_func
22259 choke me
22260 #endif
22261
22262 int
22263 main ()
22264 {
22265 return $ac_func ();
22266   ;
22267   return 0;
22268 }
22269 _ACEOF
22270 rm -f conftest.$ac_objext conftest$ac_exeext
22271 if { (ac_try="$ac_link"
22272 case "(($ac_try" in
22273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22274   *) ac_try_echo=$ac_try;;
22275 esac
22276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22277   (eval "$ac_link") 2>conftest.er1
22278   ac_status=$?
22279   grep -v '^ *+' conftest.er1 >conftest.err
22280   rm -f conftest.er1
22281   cat conftest.err >&5
22282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283   (exit $ac_status); } && {
22284          test -z "$ac_c_werror_flag" ||
22285          test ! -s conftest.err
22286        } && test -s conftest$ac_exeext &&
22287        $as_test_x conftest$ac_exeext; then
22288   eval "$as_ac_var=yes"
22289 else
22290   echo "$as_me: failed program was:" >&5
22291 sed 's/^/| /' conftest.$ac_ext >&5
22292
22293         eval "$as_ac_var=no"
22294 fi
22295
22296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22297       conftest$ac_exeext conftest.$ac_ext
22298 fi
22299 ac_res=`eval echo '${'$as_ac_var'}'`
22300                { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302 if test `eval echo '${'$as_ac_var'}'` = yes; then
22303   cat >>confdefs.h <<_ACEOF
22304 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22305 _ACEOF
22306
22307 fi
22308 done
22309
22310         AUTH_OBJS="$AUTH_OBJS secureware.o"
22311     fi
22312 fi
22313
22314 if test ${with_ldap-'no'} != "no"; then
22315     _LDFLAGS="$LDFLAGS"
22316     if test "$with_ldap" != "yes"; then
22317
22318     if test X"$with_rpath" = X"yes"; then
22319         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22320     else
22321         SUDO_LDFLAGS="${SUDO_LDFLAGS} -L${with_ldap}/lib"
22322     fi
22323     if test X"$blibpath" != X"" -a "SUDO_LDFLAGS" = "SUDO_LDFLAGS"; then
22324         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22325     fi
22326
22327
22328     if test X"$with_rpath" = X"yes"; then
22329         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib -R${with_ldap}/lib"
22330     else
22331         LDFLAGS="${LDFLAGS} -L${with_ldap}/lib"
22332     fi
22333     if test X"$blibpath" != X"" -a "LDFLAGS" = "SUDO_LDFLAGS"; then
22334         blibpath_add="${blibpath_add}:${with_ldap}/lib"
22335     fi
22336
22337         CPPFLAGS="${CPPFLAGS} -I${with_ldap}/include"
22338         with_ldap=yes
22339         LDAP=""
22340     fi
22341     SUDO_OBJS="${SUDO_OBJS} ldap.o"
22342
22343     { echo "$as_me:$LINENO: checking for LDAP libraries" >&5
22344 echo $ECHO_N "checking for LDAP libraries... $ECHO_C" >&6; }
22345     LDAP_LIBS=""
22346     _LIBS="$LIBS"
22347     found=no
22348     for l in -lldap -llber '-lssl -lcrypto'; do
22349         LIBS="${LIBS} $l"
22350         LDAP_LIBS="${LDAP_LIBS} $l"
22351         cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h.  */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h.  */
22357 #include <sys/types.h>
22358         #include <lber.h>
22359         #include <ldap.h>
22360 int
22361 main ()
22362 {
22363 (void)ldap_init(0, 0)
22364   ;
22365   return 0;
22366 }
22367 _ACEOF
22368 rm -f conftest.$ac_objext conftest$ac_exeext
22369 if { (ac_try="$ac_link"
22370 case "(($ac_try" in
22371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22372   *) ac_try_echo=$ac_try;;
22373 esac
22374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22375   (eval "$ac_link") 2>conftest.er1
22376   ac_status=$?
22377   grep -v '^ *+' conftest.er1 >conftest.err
22378   rm -f conftest.er1
22379   cat conftest.err >&5
22380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22381   (exit $ac_status); } && {
22382          test -z "$ac_c_werror_flag" ||
22383          test ! -s conftest.err
22384        } && test -s conftest$ac_exeext &&
22385        $as_test_x conftest$ac_exeext; then
22386   found=yes; break
22387 else
22388   echo "$as_me: failed program was:" >&5
22389 sed 's/^/| /' conftest.$ac_ext >&5
22390
22391
22392 fi
22393
22394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22395       conftest$ac_exeext conftest.$ac_ext
22396     done
22397         if test "$found" = "no"; then
22398         LIBS="${_LIBS} -lldap"
22399         LDAP_LIBS="-lldap"
22400         { echo "$as_me:$LINENO: result: not found, using -lldap" >&5
22401 echo "${ECHO_T}not found, using -lldap" >&6; }
22402     else
22403         { echo "$as_me:$LINENO: result: $LDAP_LIBS" >&5
22404 echo "${ECHO_T}$LDAP_LIBS" >&6; }
22405     fi
22406         OLIBS="$LIBS"
22407     { echo "$as_me:$LINENO: checking for library containing ber_set_option" >&5
22408 echo $ECHO_N "checking for library containing ber_set_option... $ECHO_C" >&6; }
22409 if test "${ac_cv_search_ber_set_option+set}" = set; then
22410   echo $ECHO_N "(cached) $ECHO_C" >&6
22411 else
22412   ac_func_search_save_LIBS=$LIBS
22413 cat >conftest.$ac_ext <<_ACEOF
22414 /* confdefs.h.  */
22415 _ACEOF
22416 cat confdefs.h >>conftest.$ac_ext
22417 cat >>conftest.$ac_ext <<_ACEOF
22418 /* end confdefs.h.  */
22419
22420 /* Override any GCC internal prototype to avoid an error.
22421    Use char because int might match the return type of a GCC
22422    builtin and then its argument prototype would still apply.  */
22423 #ifdef __cplusplus
22424 extern "C"
22425 #endif
22426 char ber_set_option ();
22427 int
22428 main ()
22429 {
22430 return ber_set_option ();
22431   ;
22432   return 0;
22433 }
22434 _ACEOF
22435 for ac_lib in '' lber; do
22436   if test -z "$ac_lib"; then
22437     ac_res="none required"
22438   else
22439     ac_res=-l$ac_lib
22440     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
22441   fi
22442   rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446   *) ac_try_echo=$ac_try;;
22447 esac
22448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22449   (eval "$ac_link") 2>conftest.er1
22450   ac_status=$?
22451   grep -v '^ *+' conftest.er1 >conftest.err
22452   rm -f conftest.er1
22453   cat conftest.err >&5
22454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22455   (exit $ac_status); } && {
22456          test -z "$ac_c_werror_flag" ||
22457          test ! -s conftest.err
22458        } && test -s conftest$ac_exeext &&
22459        $as_test_x conftest$ac_exeext; then
22460   ac_cv_search_ber_set_option=$ac_res
22461 else
22462   echo "$as_me: failed program was:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22464
22465
22466 fi
22467
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22469       conftest$ac_exeext
22470   if test "${ac_cv_search_ber_set_option+set}" = set; then
22471   break
22472 fi
22473 done
22474 if test "${ac_cv_search_ber_set_option+set}" = set; then
22475   :
22476 else
22477   ac_cv_search_ber_set_option=no
22478 fi
22479 rm conftest.$ac_ext
22480 LIBS=$ac_func_search_save_LIBS
22481 fi
22482 { echo "$as_me:$LINENO: result: $ac_cv_search_ber_set_option" >&5
22483 echo "${ECHO_T}$ac_cv_search_ber_set_option" >&6; }
22484 ac_res=$ac_cv_search_ber_set_option
22485 if test "$ac_res" != no; then
22486   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22487   found=yes
22488 else
22489   found=no
22490 fi
22491
22492     if test X"$found" = X"yes" -a X"$LIBS" != X"$OLIBS"; then
22493         LDAP_LIBS="$LDAP_LIBS -llber"
22494     fi
22495         { echo "$as_me:$LINENO: checking whether lber.h is needed" >&5
22496 echo $ECHO_N "checking whether lber.h is needed... $ECHO_C" >&6; }
22497     cat >conftest.$ac_ext <<_ACEOF
22498 /* confdefs.h.  */
22499 _ACEOF
22500 cat confdefs.h >>conftest.$ac_ext
22501 cat >>conftest.$ac_ext <<_ACEOF
22502 /* end confdefs.h.  */
22503 #include <sys/types.h>
22504     #include <ldap.h>
22505 int
22506 main ()
22507 {
22508 (void)ldap_init(0, 0)
22509   ;
22510   return 0;
22511 }
22512 _ACEOF
22513 rm -f conftest.$ac_objext conftest$ac_exeext
22514 if { (ac_try="$ac_link"
22515 case "(($ac_try" in
22516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22517   *) ac_try_echo=$ac_try;;
22518 esac
22519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22520   (eval "$ac_link") 2>conftest.er1
22521   ac_status=$?
22522   grep -v '^ *+' conftest.er1 >conftest.err
22523   rm -f conftest.er1
22524   cat conftest.err >&5
22525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22526   (exit $ac_status); } && {
22527          test -z "$ac_c_werror_flag" ||
22528          test ! -s conftest.err
22529        } && test -s conftest$ac_exeext &&
22530        $as_test_x conftest$ac_exeext; then
22531   { echo "$as_me:$LINENO: result: no" >&5
22532 echo "${ECHO_T}no" >&6; }
22533 else
22534   echo "$as_me: failed program was:" >&5
22535 sed 's/^/| /' conftest.$ac_ext >&5
22536
22537
22538     { echo "$as_me:$LINENO: result: yes" >&5
22539 echo "${ECHO_T}yes" >&6; }
22540     cat >>confdefs.h <<\_ACEOF
22541 #define HAVE_LBER_H 1
22542 _ACEOF
22543
22544 fi
22545
22546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22547       conftest$ac_exeext conftest.$ac_ext
22548
22549
22550
22551
22552
22553
22554
22555
22556
22557
22558
22559 for ac_func in ldap_initialize ldap_start_tls_s ldap_sasl_interactive_bind_s ldapssl_init ldapssl_set_strength ldap_search_ext_s ldap_unbind_ext_s ldap_str2dn ldap_create ldap_sasl_bind_s
22560 do
22561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22565   echo $ECHO_N "(cached) $ECHO_C" >&6
22566 else
22567   cat >conftest.$ac_ext <<_ACEOF
22568 /* confdefs.h.  */
22569 _ACEOF
22570 cat confdefs.h >>conftest.$ac_ext
22571 cat >>conftest.$ac_ext <<_ACEOF
22572 /* end confdefs.h.  */
22573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22575 #define $ac_func innocuous_$ac_func
22576
22577 /* System header to define __stub macros and hopefully few prototypes,
22578     which can conflict with char $ac_func (); below.
22579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22580     <limits.h> exists even on freestanding compilers.  */
22581
22582 #ifdef __STDC__
22583 # include <limits.h>
22584 #else
22585 # include <assert.h>
22586 #endif
22587
22588 #undef $ac_func
22589
22590 /* Override any GCC internal prototype to avoid an error.
22591    Use char because int might match the return type of a GCC
22592    builtin and then its argument prototype would still apply.  */
22593 #ifdef __cplusplus
22594 extern "C"
22595 #endif
22596 char $ac_func ();
22597 /* The GNU C library defines this for functions which it implements
22598     to always fail with ENOSYS.  Some functions are actually named
22599     something starting with __ and the normal name is an alias.  */
22600 #if defined __stub_$ac_func || defined __stub___$ac_func
22601 choke me
22602 #endif
22603
22604 int
22605 main ()
22606 {
22607 return $ac_func ();
22608   ;
22609   return 0;
22610 }
22611 _ACEOF
22612 rm -f conftest.$ac_objext conftest$ac_exeext
22613 if { (ac_try="$ac_link"
22614 case "(($ac_try" in
22615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616   *) ac_try_echo=$ac_try;;
22617 esac
22618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22619   (eval "$ac_link") 2>conftest.er1
22620   ac_status=$?
22621   grep -v '^ *+' conftest.er1 >conftest.err
22622   rm -f conftest.er1
22623   cat conftest.err >&5
22624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625   (exit $ac_status); } && {
22626          test -z "$ac_c_werror_flag" ||
22627          test ! -s conftest.err
22628        } && test -s conftest$ac_exeext &&
22629        $as_test_x conftest$ac_exeext; then
22630   eval "$as_ac_var=yes"
22631 else
22632   echo "$as_me: failed program was:" >&5
22633 sed 's/^/| /' conftest.$ac_ext >&5
22634
22635         eval "$as_ac_var=no"
22636 fi
22637
22638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22639       conftest$ac_exeext conftest.$ac_ext
22640 fi
22641 ac_res=`eval echo '${'$as_ac_var'}'`
22642                { echo "$as_me:$LINENO: result: $ac_res" >&5
22643 echo "${ECHO_T}$ac_res" >&6; }
22644 if test `eval echo '${'$as_ac_var'}'` = yes; then
22645   cat >>confdefs.h <<_ACEOF
22646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22647 _ACEOF
22648
22649 fi
22650 done
22651
22652
22653 for ac_header in sasl/sasl.h
22654 do
22655 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22657   { echo "$as_me:$LINENO: checking for $ac_header" >&5
22658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22660   echo $ECHO_N "(cached) $ECHO_C" >&6
22661 fi
22662 ac_res=`eval echo '${'$as_ac_Header'}'`
22663                { echo "$as_me:$LINENO: result: $ac_res" >&5
22664 echo "${ECHO_T}$ac_res" >&6; }
22665 else
22666   # Is the header compilable?
22667 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22668 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22669 cat >conftest.$ac_ext <<_ACEOF
22670 /* confdefs.h.  */
22671 _ACEOF
22672 cat confdefs.h >>conftest.$ac_ext
22673 cat >>conftest.$ac_ext <<_ACEOF
22674 /* end confdefs.h.  */
22675 $ac_includes_default
22676 #include <$ac_header>
22677 _ACEOF
22678 rm -f conftest.$ac_objext
22679 if { (ac_try="$ac_compile"
22680 case "(($ac_try" in
22681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22682   *) ac_try_echo=$ac_try;;
22683 esac
22684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22685   (eval "$ac_compile") 2>conftest.er1
22686   ac_status=$?
22687   grep -v '^ *+' conftest.er1 >conftest.err
22688   rm -f conftest.er1
22689   cat conftest.err >&5
22690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22691   (exit $ac_status); } && {
22692          test -z "$ac_c_werror_flag" ||
22693          test ! -s conftest.err
22694        } && test -s conftest.$ac_objext; then
22695   ac_header_compiler=yes
22696 else
22697   echo "$as_me: failed program was:" >&5
22698 sed 's/^/| /' conftest.$ac_ext >&5
22699
22700         ac_header_compiler=no
22701 fi
22702
22703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22704 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22705 echo "${ECHO_T}$ac_header_compiler" >&6; }
22706
22707 # Is the header present?
22708 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22709 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22710 cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h.  */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h.  */
22716 #include <$ac_header>
22717 _ACEOF
22718 if { (ac_try="$ac_cpp conftest.$ac_ext"
22719 case "(($ac_try" in
22720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22721   *) ac_try_echo=$ac_try;;
22722 esac
22723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22724   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22725   ac_status=$?
22726   grep -v '^ *+' conftest.er1 >conftest.err
22727   rm -f conftest.er1
22728   cat conftest.err >&5
22729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730   (exit $ac_status); } >/dev/null && {
22731          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22732          test ! -s conftest.err
22733        }; then
22734   ac_header_preproc=yes
22735 else
22736   echo "$as_me: failed program was:" >&5
22737 sed 's/^/| /' conftest.$ac_ext >&5
22738
22739   ac_header_preproc=no
22740 fi
22741
22742 rm -f conftest.err conftest.$ac_ext
22743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22744 echo "${ECHO_T}$ac_header_preproc" >&6; }
22745
22746 # So?  What about this header?
22747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22748   yes:no: )
22749     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22750 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22751     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22752 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22753     ac_header_preproc=yes
22754     ;;
22755   no:yes:* )
22756     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22757 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22758     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22759 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22760     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22761 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22762     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22763 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22764     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22765 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22766     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22767 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22768
22769     ;;
22770 esac
22771 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22773 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22774   echo $ECHO_N "(cached) $ECHO_C" >&6
22775 else
22776   eval "$as_ac_Header=\$ac_header_preproc"
22777 fi
22778 ac_res=`eval echo '${'$as_ac_Header'}'`
22779                { echo "$as_me:$LINENO: result: $ac_res" >&5
22780 echo "${ECHO_T}$ac_res" >&6; }
22781
22782 fi
22783 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22784   cat >>confdefs.h <<_ACEOF
22785 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22786 _ACEOF
22787
22788 fi
22789
22790 done
22791
22792
22793
22794 for ac_header in ldap_ssl.h mps/ldap_ssl.h
22795 do
22796 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22800   echo $ECHO_N "(cached) $ECHO_C" >&6
22801 else
22802   cat >conftest.$ac_ext <<_ACEOF
22803 /* confdefs.h.  */
22804 _ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h.  */
22808 #include <ldap.h>
22809
22810 #include <$ac_header>
22811 _ACEOF
22812 rm -f conftest.$ac_objext
22813 if { (ac_try="$ac_compile"
22814 case "(($ac_try" in
22815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22816   *) ac_try_echo=$ac_try;;
22817 esac
22818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22819   (eval "$ac_compile") 2>conftest.er1
22820   ac_status=$?
22821   grep -v '^ *+' conftest.er1 >conftest.err
22822   rm -f conftest.er1
22823   cat conftest.err >&5
22824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825   (exit $ac_status); } && {
22826          test -z "$ac_c_werror_flag" ||
22827          test ! -s conftest.err
22828        } && test -s conftest.$ac_objext; then
22829   eval "$as_ac_Header=yes"
22830 else
22831   echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.$ac_ext >&5
22833
22834         eval "$as_ac_Header=no"
22835 fi
22836
22837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22838 fi
22839 ac_res=`eval echo '${'$as_ac_Header'}'`
22840                { echo "$as_me:$LINENO: result: $ac_res" >&5
22841 echo "${ECHO_T}$ac_res" >&6; }
22842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22843   cat >>confdefs.h <<_ACEOF
22844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22845 _ACEOF
22846  break
22847 fi
22848
22849 done
22850
22851
22852     if test X"$check_gss_krb5_ccache_name" = X"yes"; then
22853         { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi" >&5
22854 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi... $ECHO_C" >&6; }
22855 if test "${ac_cv_lib_gssapi_gss_krb5_ccache_name+set}" = set; then
22856   echo $ECHO_N "(cached) $ECHO_C" >&6
22857 else
22858   ac_check_lib_save_LIBS=$LIBS
22859 LIBS="-lgssapi  $LIBS"
22860 cat >conftest.$ac_ext <<_ACEOF
22861 /* confdefs.h.  */
22862 _ACEOF
22863 cat confdefs.h >>conftest.$ac_ext
22864 cat >>conftest.$ac_ext <<_ACEOF
22865 /* end confdefs.h.  */
22866
22867 /* Override any GCC internal prototype to avoid an error.
22868    Use char because int might match the return type of a GCC
22869    builtin and then its argument prototype would still apply.  */
22870 #ifdef __cplusplus
22871 extern "C"
22872 #endif
22873 char gss_krb5_ccache_name ();
22874 int
22875 main ()
22876 {
22877 return gss_krb5_ccache_name ();
22878   ;
22879   return 0;
22880 }
22881 _ACEOF
22882 rm -f conftest.$ac_objext conftest$ac_exeext
22883 if { (ac_try="$ac_link"
22884 case "(($ac_try" in
22885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22886   *) ac_try_echo=$ac_try;;
22887 esac
22888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22889   (eval "$ac_link") 2>conftest.er1
22890   ac_status=$?
22891   grep -v '^ *+' conftest.er1 >conftest.err
22892   rm -f conftest.er1
22893   cat conftest.err >&5
22894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895   (exit $ac_status); } && {
22896          test -z "$ac_c_werror_flag" ||
22897          test ! -s conftest.err
22898        } && test -s conftest$ac_exeext &&
22899        $as_test_x conftest$ac_exeext; then
22900   ac_cv_lib_gssapi_gss_krb5_ccache_name=yes
22901 else
22902   echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22904
22905         ac_cv_lib_gssapi_gss_krb5_ccache_name=no
22906 fi
22907
22908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22909       conftest$ac_exeext conftest.$ac_ext
22910 LIBS=$ac_check_lib_save_LIBS
22911 fi
22912 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_gss_krb5_ccache_name" >&5
22913 echo "${ECHO_T}$ac_cv_lib_gssapi_gss_krb5_ccache_name" >&6; }
22914 if test $ac_cv_lib_gssapi_gss_krb5_ccache_name = yes; then
22915   cat >>confdefs.h <<\_ACEOF
22916 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22917 _ACEOF
22918
22919             LDAP_LIBS="${LDAP_LIBS} -lgssapi"
22920 else
22921   { echo "$as_me:$LINENO: checking for gss_krb5_ccache_name in -lgssapi_krb5" >&5
22922 echo $ECHO_N "checking for gss_krb5_ccache_name in -lgssapi_krb5... $ECHO_C" >&6; }
22923 if test "${ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name+set}" = set; then
22924   echo $ECHO_N "(cached) $ECHO_C" >&6
22925 else
22926   ac_check_lib_save_LIBS=$LIBS
22927 LIBS="-lgssapi_krb5  $LIBS"
22928 cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934
22935 /* Override any GCC internal prototype to avoid an error.
22936    Use char because int might match the return type of a GCC
22937    builtin and then its argument prototype would still apply.  */
22938 #ifdef __cplusplus
22939 extern "C"
22940 #endif
22941 char gss_krb5_ccache_name ();
22942 int
22943 main ()
22944 {
22945 return gss_krb5_ccache_name ();
22946   ;
22947   return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (ac_try="$ac_link"
22952 case "(($ac_try" in
22953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954   *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957   (eval "$ac_link") 2>conftest.er1
22958   ac_status=$?
22959   grep -v '^ *+' conftest.er1 >conftest.err
22960   rm -f conftest.er1
22961   cat conftest.err >&5
22962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963   (exit $ac_status); } && {
22964          test -z "$ac_c_werror_flag" ||
22965          test ! -s conftest.err
22966        } && test -s conftest$ac_exeext &&
22967        $as_test_x conftest$ac_exeext; then
22968   ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=yes
22969 else
22970   echo "$as_me: failed program was:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22972
22973         ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name=no
22974 fi
22975
22976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22977       conftest$ac_exeext conftest.$ac_ext
22978 LIBS=$ac_check_lib_save_LIBS
22979 fi
22980 { echo "$as_me:$LINENO: result: $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&5
22981 echo "${ECHO_T}$ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name" >&6; }
22982 if test $ac_cv_lib_gssapi_krb5_gss_krb5_ccache_name = yes; then
22983   cat >>confdefs.h <<\_ACEOF
22984 #define HAVE_GSS_KRB5_CCACHE_NAME 1
22985 _ACEOF
22986
22987                 LDAP_LIBS="${LDAP_LIBS} -lgssapi_krb5"
22988 fi
22989
22990
22991 fi
22992
22993
22994         # gssapi headers may be separate or part of Kerberos V
22995         found=no
22996         O_CPPFLAGS="$CPPFLAGS"
22997         for dir in "" "kerberosV" "krb5" "kerberos5" "kerberosv5"; do
22998             test X"$dir" != X"" && CPPFLAGS="$O_CPPFLAGS -I/usr/include/${dir}"
22999             cat >conftest.$ac_ext <<_ACEOF
23000 #include <gssapi/gssapi.h>
23001 _ACEOF
23002 if { (ac_try="$ac_cpp conftest.$ac_ext"
23003 case "(($ac_try" in
23004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005   *) ac_try_echo=$ac_try;;
23006 esac
23007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23008   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23009   ac_status=$?
23010   grep -v '^ *+' conftest.er1 >conftest.err
23011   rm -f conftest.er1
23012   cat conftest.err >&5
23013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23014   (exit $ac_status); } >/dev/null && {
23015          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23016          test ! -s conftest.err
23017        }; then
23018   found="gssapi/gssapi.h"; break
23019 else
23020   echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23022
23023   cat >conftest.$ac_ext <<_ACEOF
23024 #include <gssapi.h>
23025 _ACEOF
23026 if { (ac_try="$ac_cpp conftest.$ac_ext"
23027 case "(($ac_try" in
23028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23029   *) ac_try_echo=$ac_try;;
23030 esac
23031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23032   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23033   ac_status=$?
23034   grep -v '^ *+' conftest.er1 >conftest.err
23035   rm -f conftest.er1
23036   cat conftest.err >&5
23037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23038   (exit $ac_status); } >/dev/null && {
23039          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23040          test ! -s conftest.err
23041        }; then
23042   found="gssapi.h"; break
23043 else
23044   echo "$as_me: failed program was:" >&5
23045 sed 's/^/| /' conftest.$ac_ext >&5
23046
23047
23048 fi
23049
23050 rm -f conftest.err conftest.$ac_ext
23051 fi
23052
23053 rm -f conftest.err conftest.$ac_ext
23054         done
23055         if test X"$found" != X"no"; then
23056
23057 for ac_header in $found
23058 do
23059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23061   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23064   echo $ECHO_N "(cached) $ECHO_C" >&6
23065 fi
23066 ac_res=`eval echo '${'$as_ac_Header'}'`
23067                { echo "$as_me:$LINENO: result: $ac_res" >&5
23068 echo "${ECHO_T}$ac_res" >&6; }
23069 else
23070   # Is the header compilable?
23071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23073 cat >conftest.$ac_ext <<_ACEOF
23074 /* confdefs.h.  */
23075 _ACEOF
23076 cat confdefs.h >>conftest.$ac_ext
23077 cat >>conftest.$ac_ext <<_ACEOF
23078 /* end confdefs.h.  */
23079 $ac_includes_default
23080 #include <$ac_header>
23081 _ACEOF
23082 rm -f conftest.$ac_objext
23083 if { (ac_try="$ac_compile"
23084 case "(($ac_try" in
23085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23086   *) ac_try_echo=$ac_try;;
23087 esac
23088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23089   (eval "$ac_compile") 2>conftest.er1
23090   ac_status=$?
23091   grep -v '^ *+' conftest.er1 >conftest.err
23092   rm -f conftest.er1
23093   cat conftest.err >&5
23094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095   (exit $ac_status); } && {
23096          test -z "$ac_c_werror_flag" ||
23097          test ! -s conftest.err
23098        } && test -s conftest.$ac_objext; then
23099   ac_header_compiler=yes
23100 else
23101   echo "$as_me: failed program was:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23103
23104         ac_header_compiler=no
23105 fi
23106
23107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23108 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23109 echo "${ECHO_T}$ac_header_compiler" >&6; }
23110
23111 # Is the header present?
23112 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23113 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23114 cat >conftest.$ac_ext <<_ACEOF
23115 /* confdefs.h.  */
23116 _ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h.  */
23120 #include <$ac_header>
23121 _ACEOF
23122 if { (ac_try="$ac_cpp conftest.$ac_ext"
23123 case "(($ac_try" in
23124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125   *) ac_try_echo=$ac_try;;
23126 esac
23127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23128   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23129   ac_status=$?
23130   grep -v '^ *+' conftest.er1 >conftest.err
23131   rm -f conftest.er1
23132   cat conftest.err >&5
23133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134   (exit $ac_status); } >/dev/null && {
23135          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23136          test ! -s conftest.err
23137        }; then
23138   ac_header_preproc=yes
23139 else
23140   echo "$as_me: failed program was:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23142
23143   ac_header_preproc=no
23144 fi
23145
23146 rm -f conftest.err conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23148 echo "${ECHO_T}$ac_header_preproc" >&6; }
23149
23150 # So?  What about this header?
23151 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23152   yes:no: )
23153     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23154 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23155     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23156 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23157     ac_header_preproc=yes
23158     ;;
23159   no:yes:* )
23160     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23161 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23162     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23163 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23164     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23165 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23166     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23167 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23168     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23169 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23170     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23171 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23172
23173     ;;
23174 esac
23175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23178   echo $ECHO_N "(cached) $ECHO_C" >&6
23179 else
23180   eval "$as_ac_Header=\$ac_header_preproc"
23181 fi
23182 ac_res=`eval echo '${'$as_ac_Header'}'`
23183                { echo "$as_me:$LINENO: result: $ac_res" >&5
23184 echo "${ECHO_T}$ac_res" >&6; }
23185
23186 fi
23187 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23188   cat >>confdefs.h <<_ACEOF
23189 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23190 _ACEOF
23191
23192 fi
23193
23194 done
23195
23196             if test X"$found" = X"gssapi/gssapi.h"; then
23197
23198 for ac_header in gssapi/gssapi_krb5.h
23199 do
23200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23202   { echo "$as_me:$LINENO: checking for $ac_header" >&5
23203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23205   echo $ECHO_N "(cached) $ECHO_C" >&6
23206 fi
23207 ac_res=`eval echo '${'$as_ac_Header'}'`
23208                { echo "$as_me:$LINENO: result: $ac_res" >&5
23209 echo "${ECHO_T}$ac_res" >&6; }
23210 else
23211   # Is the header compilable?
23212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23214 cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220 $ac_includes_default
23221 #include <$ac_header>
23222 _ACEOF
23223 rm -f conftest.$ac_objext
23224 if { (ac_try="$ac_compile"
23225 case "(($ac_try" in
23226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23227   *) ac_try_echo=$ac_try;;
23228 esac
23229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23230   (eval "$ac_compile") 2>conftest.er1
23231   ac_status=$?
23232   grep -v '^ *+' conftest.er1 >conftest.err
23233   rm -f conftest.er1
23234   cat conftest.err >&5
23235   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236   (exit $ac_status); } && {
23237          test -z "$ac_c_werror_flag" ||
23238          test ! -s conftest.err
23239        } && test -s conftest.$ac_objext; then
23240   ac_header_compiler=yes
23241 else
23242   echo "$as_me: failed program was:" >&5
23243 sed 's/^/| /' conftest.$ac_ext >&5
23244
23245         ac_header_compiler=no
23246 fi
23247
23248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23250 echo "${ECHO_T}$ac_header_compiler" >&6; }
23251
23252 # Is the header present?
23253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23255 cat >conftest.$ac_ext <<_ACEOF
23256 /* confdefs.h.  */
23257 _ACEOF
23258 cat confdefs.h >>conftest.$ac_ext
23259 cat >>conftest.$ac_ext <<_ACEOF
23260 /* end confdefs.h.  */
23261 #include <$ac_header>
23262 _ACEOF
23263 if { (ac_try="$ac_cpp conftest.$ac_ext"
23264 case "(($ac_try" in
23265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23266   *) ac_try_echo=$ac_try;;
23267 esac
23268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23269   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23270   ac_status=$?
23271   grep -v '^ *+' conftest.er1 >conftest.err
23272   rm -f conftest.er1
23273   cat conftest.err >&5
23274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23275   (exit $ac_status); } >/dev/null && {
23276          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23277          test ! -s conftest.err
23278        }; then
23279   ac_header_preproc=yes
23280 else
23281   echo "$as_me: failed program was:" >&5
23282 sed 's/^/| /' conftest.$ac_ext >&5
23283
23284   ac_header_preproc=no
23285 fi
23286
23287 rm -f conftest.err conftest.$ac_ext
23288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23289 echo "${ECHO_T}$ac_header_preproc" >&6; }
23290
23291 # So?  What about this header?
23292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23293   yes:no: )
23294     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23296     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23298     ac_header_preproc=yes
23299     ;;
23300   no:yes:* )
23301     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23303     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23304 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23305     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23307     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23308 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23309     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23311     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23313
23314     ;;
23315 esac
23316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23319   echo $ECHO_N "(cached) $ECHO_C" >&6
23320 else
23321   eval "$as_ac_Header=\$ac_header_preproc"
23322 fi
23323 ac_res=`eval echo '${'$as_ac_Header'}'`
23324                { echo "$as_me:$LINENO: result: $ac_res" >&5
23325 echo "${ECHO_T}$ac_res" >&6; }
23326
23327 fi
23328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23329   cat >>confdefs.h <<_ACEOF
23330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23331 _ACEOF
23332
23333 fi
23334
23335 done
23336
23337             fi
23338         else
23339             CPPFLAGS="$O_CPPFLAGS"
23340             { echo "$as_me:$LINENO: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&5
23341 echo "$as_me: WARNING: Unable to locate gssapi.h, you will have to edit the Makefile and add -I/path/to/gssapi/includes to CPPFLAGS" >&2;}
23342         fi
23343     fi
23344
23345     SUDO_LIBS="${SUDO_LIBS} ${LDAP_LIBS}"
23346     LIBS="$_LIBS"
23347     LDFLAGS="$_LDFLAGS"
23348 fi
23349
23350 if test -n "$blibpath"; then
23351     if test -n "$blibpath_add"; then
23352         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}${blibpath_add}"
23353     elif test -n "$with_blibpath" -a "$with_blibpath" != "yes"; then
23354         SUDO_LDFLAGS="$SUDO_LDFLAGS -Wl,-blibpath:${blibpath}"
23355     fi
23356 fi
23357
23358 { echo "$as_me:$LINENO: checking for log file location" >&5
23359 echo $ECHO_N "checking for log file location... $ECHO_C" >&6; }
23360 if test -n "$with_logpath"; then
23361     { echo "$as_me:$LINENO: result: $with_logpath" >&5
23362 echo "${ECHO_T}$with_logpath" >&6; }
23363     cat >>confdefs.h <<EOF
23364 #define _PATH_SUDO_LOGFILE "$with_logpath"
23365 EOF
23366
23367 elif test -d "/var/log"; then
23368     { echo "$as_me:$LINENO: result: /var/log/sudo.log" >&5
23369 echo "${ECHO_T}/var/log/sudo.log" >&6; }
23370     cat >>confdefs.h <<\EOF
23371 #define _PATH_SUDO_LOGFILE "/var/log/sudo.log"
23372 EOF
23373
23374 elif test -d "/var/adm"; then
23375     { echo "$as_me:$LINENO: result: /var/adm/sudo.log" >&5
23376 echo "${ECHO_T}/var/adm/sudo.log" >&6; }
23377     cat >>confdefs.h <<\EOF
23378 #define _PATH_SUDO_LOGFILE "/var/adm/sudo.log"
23379 EOF
23380
23381 elif test -d "/usr/adm"; then
23382     { echo "$as_me:$LINENO: result: /usr/adm/sudo.log" >&5
23383 echo "${ECHO_T}/usr/adm/sudo.log" >&6; }
23384     cat >>confdefs.h <<\EOF
23385 #define _PATH_SUDO_LOGFILE "/usr/adm/sudo.log"
23386 EOF
23387
23388 else
23389     { echo "$as_me:$LINENO: result: unknown" >&5
23390 echo "${ECHO_T}unknown" >&6; }
23391 fi
23392
23393 { echo "$as_me:$LINENO: checking for timestamp file location" >&5
23394 echo $ECHO_N "checking for timestamp file location... $ECHO_C" >&6; }
23395 if test -n "$with_timedir"; then
23396     { echo "$as_me:$LINENO: result: $with_timedir" >&5
23397 echo "${ECHO_T}$with_timedir" >&6; }
23398     cat >>confdefs.h <<EOF
23399 #define _PATH_SUDO_TIMEDIR "$with_timedir"
23400 EOF
23401
23402     timedir="$with_timedir"
23403 elif test -d "/var/run"; then
23404     { echo "$as_me:$LINENO: result: /var/run/sudo" >&5
23405 echo "${ECHO_T}/var/run/sudo" >&6; }
23406     cat >>confdefs.h <<\EOF
23407 #define _PATH_SUDO_TIMEDIR "/var/run/sudo"
23408 EOF
23409
23410     timedir="/var/run/sudo"
23411 elif test -d "/var/adm"; then
23412     { echo "$as_me:$LINENO: result: /var/adm/sudo" >&5
23413 echo "${ECHO_T}/var/adm/sudo" >&6; }
23414     cat >>confdefs.h <<\EOF
23415 #define _PATH_SUDO_TIMEDIR "/var/adm/sudo"
23416 EOF
23417
23418     timedir="/var/adm/sudo"
23419 else
23420     { echo "$as_me:$LINENO: result: /usr/adm/sudo" >&5
23421 echo "${ECHO_T}/usr/adm/sudo" >&6; }
23422     cat >>confdefs.h <<\EOF
23423 #define _PATH_SUDO_TIMEDIR "/usr/adm/sudo"
23424 EOF
23425
23426     timedir="/usr/adm/sudo"
23427 fi
23428
23429
23430 case "$with_passwd" in
23431 yes|maybe)
23432     AUTH_OBJS="$AUTH_OBJS passwd.o"
23433     ;;
23434 *)
23435     cat >>confdefs.h <<\_ACEOF
23436 #define WITHOUT_PASSWD 1
23437 _ACEOF
23438
23439     if test -z "$AUTH_OBJS"; then
23440         { { echo "$as_me:$LINENO: error: no authentication methods defined." >&5
23441 echo "$as_me: error: no authentication methods defined." >&2;}
23442    { (exit 1); exit 1; }; }
23443     fi
23444     ;;
23445 esac
23446 AUTH_OBJS=${AUTH_OBJS# }
23447 _AUTH=`echo "$AUTH_OBJS" | sed 's/\.o//g'`
23448 { echo "$as_me:$LINENO: using the following authentication methods: $_AUTH" >&5
23449 echo "$as_me: using the following authentication methods: $_AUTH" >&6;}
23450
23451 if test -n "$LIBS"; then
23452     L="$LIBS"
23453     LIBS=
23454     for l in ${L}; do
23455         dupe=0
23456         for sl in ${SUDO_LIBS} ${NET_LIBS}; do
23457             test $l = $sl && dupe=1
23458         done
23459         test $dupe = 0 && LIBS="${LIBS} $l"
23460     done
23461 fi
23462
23463 test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
23464
23465 if test X"$with_noexec" != X"no" -o X"$with_selinux" != X"no"; then
23466     oexec_prefix="$exec_prefix"
23467     if test "$exec_prefix" = '$(prefix)'; then
23468         if test "$prefix" = "NONE"; then
23469             exec_prefix="$ac_default_prefix"
23470         else
23471             exec_prefix="$prefix"
23472         fi
23473     fi
23474     if test X"$with_noexec" != X"no"; then
23475         PROGS="${PROGS} sudo_noexec.la"
23476         INSTALL_NOEXEC="install-noexec"
23477
23478         eval noexec_file="$with_noexec"
23479
23480 cat >>confdefs.h <<_ACEOF
23481 #define _PATH_SUDO_NOEXEC "$noexec_file"
23482 _ACEOF
23483
23484     fi
23485     if test X"$with_selinux" != X"no"; then
23486         eval sesh_file="$libexecdir/sesh"
23487
23488 cat >>confdefs.h <<_ACEOF
23489 #define _PATH_SUDO_SESH "$sesh_file"
23490 _ACEOF
23491
23492     fi
23493     exec_prefix="$oexec_prefix"
23494 fi
23495
23496 ac_config_files="$ac_config_files Makefile sudo.man visudo.man sudoers.man sudoers.ldap.man sudo_usage.h"
23497
23498 cat >confcache <<\_ACEOF
23499 # This file is a shell script that caches the results of configure
23500 # tests run on this system so they can be shared between configure
23501 # scripts and configure runs, see configure's option --config-cache.
23502 # It is not useful on other systems.  If it contains results you don't
23503 # want to keep, you may remove or edit it.
23504 #
23505 # config.status only pays attention to the cache file if you give it
23506 # the --recheck option to rerun configure.
23507 #
23508 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23509 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23510 # following values.
23511
23512 _ACEOF
23513
23514 # The following way of writing the cache mishandles newlines in values,
23515 # but we know of no workaround that is simple, portable, and efficient.
23516 # So, we kill variables containing newlines.
23517 # Ultrix sh set writes to stderr and can't be redirected directly,
23518 # and sets the high bit in the cache file unless we assign to the vars.
23519 (
23520   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23521     eval ac_val=\$$ac_var
23522     case $ac_val in #(
23523     *${as_nl}*)
23524       case $ac_var in #(
23525       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23526 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23527       esac
23528       case $ac_var in #(
23529       _ | IFS | as_nl) ;; #(
23530       *) $as_unset $ac_var ;;
23531       esac ;;
23532     esac
23533   done
23534
23535   (set) 2>&1 |
23536     case $as_nl`(ac_space=' '; set) 2>&1` in #(
23537     *${as_nl}ac_space=\ *)
23538       # `set' does not quote correctly, so add quotes (double-quote
23539       # substitution turns \\\\ into \\, and sed turns \\ into \).
23540       sed -n \
23541         "s/'/'\\\\''/g;
23542           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23543       ;; #(
23544     *)
23545       # `set' quotes correctly as required by POSIX, so do not add quotes.
23546       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23547       ;;
23548     esac |
23549     sort
23550 ) |
23551   sed '
23552      /^ac_cv_env_/b end
23553      t clear
23554      :clear
23555      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23556      t end
23557      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23558      :end' >>confcache
23559 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23560   if test -w "$cache_file"; then
23561     test "x$cache_file" != "x/dev/null" &&
23562       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23563 echo "$as_me: updating cache $cache_file" >&6;}
23564     cat confcache >$cache_file
23565   else
23566     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23567 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23568   fi
23569 fi
23570 rm -f confcache
23571
23572 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23573 # Let make expand exec_prefix.
23574 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23575
23576 DEFS=-DHAVE_CONFIG_H
23577
23578 ac_libobjs=
23579 ac_ltlibobjs=
23580 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23581   # 1. Remove the extension, and $U if already installed.
23582   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23583   ac_i=`echo "$ac_i" | sed "$ac_script"`
23584   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
23585   #    will be set to the directory where LIBOBJS objects are built.
23586   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23587   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23588 done
23589 LIBOBJS=$ac_libobjs
23590
23591 LTLIBOBJS=$ac_ltlibobjs
23592
23593
23594
23595 : ${CONFIG_STATUS=./config.status}
23596 ac_clean_files_save=$ac_clean_files
23597 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23598 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23599 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23600 cat >$CONFIG_STATUS <<_ACEOF
23601 #! $SHELL
23602 # Generated by $as_me.
23603 # Run this file to recreate the current configuration.
23604 # Compiler output produced by configure, useful for debugging
23605 # configure, is in config.log if it exists.
23606
23607 debug=false
23608 ac_cs_recheck=false
23609 ac_cs_silent=false
23610 SHELL=\${CONFIG_SHELL-$SHELL}
23611 _ACEOF
23612
23613 cat >>$CONFIG_STATUS <<\_ACEOF
23614 ## --------------------- ##
23615 ## M4sh Initialization.  ##
23616 ## --------------------- ##
23617
23618 # Be more Bourne compatible
23619 DUALCASE=1; export DUALCASE # for MKS sh
23620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23621   emulate sh
23622   NULLCMD=:
23623   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23624   # is contrary to our usage.  Disable this feature.
23625   alias -g '${1+"$@"}'='"$@"'
23626   setopt NO_GLOB_SUBST
23627 else
23628   case `(set -o) 2>/dev/null` in
23629   *posix*) set -o posix ;;
23630 esac
23631
23632 fi
23633
23634
23635
23636
23637 # PATH needs CR
23638 # Avoid depending upon Character Ranges.
23639 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23640 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23641 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23642 as_cr_digits='0123456789'
23643 as_cr_alnum=$as_cr_Letters$as_cr_digits
23644
23645 # The user is always right.
23646 if test "${PATH_SEPARATOR+set}" != set; then
23647   echo "#! /bin/sh" >conf$$.sh
23648   echo  "exit 0"   >>conf$$.sh
23649   chmod +x conf$$.sh
23650   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23651     PATH_SEPARATOR=';'
23652   else
23653     PATH_SEPARATOR=:
23654   fi
23655   rm -f conf$$.sh
23656 fi
23657
23658 # Support unset when possible.
23659 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23660   as_unset=unset
23661 else
23662   as_unset=false
23663 fi
23664
23665
23666 # IFS
23667 # We need space, tab and new line, in precisely that order.  Quoting is
23668 # there to prevent editors from complaining about space-tab.
23669 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23670 # splitting by setting IFS to empty value.)
23671 as_nl='
23672 '
23673 IFS=" ""        $as_nl"
23674
23675 # Find who we are.  Look in the path if we contain no directory separator.
23676 case $0 in
23677   *[\\/]* ) as_myself=$0 ;;
23678   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23679 for as_dir in $PATH
23680 do
23681   IFS=$as_save_IFS
23682   test -z "$as_dir" && as_dir=.
23683   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23684 done
23685 IFS=$as_save_IFS
23686
23687      ;;
23688 esac
23689 # We did not find ourselves, most probably we were run as `sh COMMAND'
23690 # in which case we are not to be found in the path.
23691 if test "x$as_myself" = x; then
23692   as_myself=$0
23693 fi
23694 if test ! -f "$as_myself"; then
23695   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23696   { (exit 1); exit 1; }
23697 fi
23698
23699 # Work around bugs in pre-3.0 UWIN ksh.
23700 for as_var in ENV MAIL MAILPATH
23701 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23702 done
23703 PS1='$ '
23704 PS2='> '
23705 PS4='+ '
23706
23707 # NLS nuisances.
23708 for as_var in \
23709   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23710   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23711   LC_TELEPHONE LC_TIME
23712 do
23713   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23714     eval $as_var=C; export $as_var
23715   else
23716     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23717   fi
23718 done
23719
23720 # Required to use basename.
23721 if expr a : '\(a\)' >/dev/null 2>&1 &&
23722    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23723   as_expr=expr
23724 else
23725   as_expr=false
23726 fi
23727
23728 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23729   as_basename=basename
23730 else
23731   as_basename=false
23732 fi
23733
23734
23735 # Name of the executable.
23736 as_me=`$as_basename -- "$0" ||
23737 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23738          X"$0" : 'X\(//\)$' \| \
23739          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23740 echo X/"$0" |
23741     sed '/^.*\/\([^/][^/]*\)\/*$/{
23742             s//\1/
23743             q
23744           }
23745           /^X\/\(\/\/\)$/{
23746             s//\1/
23747             q
23748           }
23749           /^X\/\(\/\).*/{
23750             s//\1/
23751             q
23752           }
23753           s/.*/./; q'`
23754
23755 # CDPATH.
23756 $as_unset CDPATH
23757
23758
23759
23760   as_lineno_1=$LINENO
23761   as_lineno_2=$LINENO
23762   test "x$as_lineno_1" != "x$as_lineno_2" &&
23763   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23764
23765   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23766   # uniformly replaced by the line number.  The first 'sed' inserts a
23767   # line-number line after each line using $LINENO; the second 'sed'
23768   # does the real work.  The second script uses 'N' to pair each
23769   # line-number line with the line containing $LINENO, and appends
23770   # trailing '-' during substitution so that $LINENO is not a special
23771   # case at line end.
23772   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23773   # scripts with optimization help from Paolo Bonzini.  Blame Lee
23774   # E. McMahon (1931-1989) for sed's syntax.  :-)
23775   sed -n '
23776     p
23777     /[$]LINENO/=
23778   ' <$as_myself |
23779     sed '
23780       s/[$]LINENO.*/&-/
23781       t lineno
23782       b
23783       :lineno
23784       N
23785       :loop
23786       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23787       t loop
23788       s/-\n.*//
23789     ' >$as_me.lineno &&
23790   chmod +x "$as_me.lineno" ||
23791     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23792    { (exit 1); exit 1; }; }
23793
23794   # Don't try to exec as it changes $[0], causing all sort of problems
23795   # (the dirname of $[0] is not the place where we might find the
23796   # original and so on.  Autoconf is especially sensitive to this).
23797   . "./$as_me.lineno"
23798   # Exit status is that of the last command.
23799   exit
23800 }
23801
23802
23803 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23804   as_dirname=dirname
23805 else
23806   as_dirname=false
23807 fi
23808
23809 ECHO_C= ECHO_N= ECHO_T=
23810 case `echo -n x` in
23811 -n*)
23812   case `echo 'x\c'` in
23813   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
23814   *)   ECHO_C='\c';;
23815   esac;;
23816 *)
23817   ECHO_N='-n';;
23818 esac
23819
23820 if expr a : '\(a\)' >/dev/null 2>&1 &&
23821    test "X`expr 00001 : '.*\(...\)'`" = X001; then
23822   as_expr=expr
23823 else
23824   as_expr=false
23825 fi
23826
23827 rm -f conf$$ conf$$.exe conf$$.file
23828 if test -d conf$$.dir; then
23829   rm -f conf$$.dir/conf$$.file
23830 else
23831   rm -f conf$$.dir
23832   mkdir conf$$.dir
23833 fi
23834 echo >conf$$.file
23835 if ln -s conf$$.file conf$$ 2>/dev/null; then
23836   as_ln_s='ln -s'
23837   # ... but there are two gotchas:
23838   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23839   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23840   # In both cases, we have to default to `cp -p'.
23841   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23842     as_ln_s='cp -p'
23843 elif ln conf$$.file conf$$ 2>/dev/null; then
23844   as_ln_s=ln
23845 else
23846   as_ln_s='cp -p'
23847 fi
23848 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23849 rmdir conf$$.dir 2>/dev/null
23850
23851 if mkdir -p . 2>/dev/null; then
23852   as_mkdir_p=:
23853 else
23854   test -d ./-p && rmdir ./-p
23855   as_mkdir_p=false
23856 fi
23857
23858 if test -x / >/dev/null 2>&1; then
23859   as_test_x='test -x'
23860 else
23861   if ls -dL / >/dev/null 2>&1; then
23862     as_ls_L_option=L
23863   else
23864     as_ls_L_option=
23865   fi
23866   as_test_x='
23867     eval sh -c '\''
23868       if test -d "$1"; then
23869         test -d "$1/.";
23870       else
23871         case $1 in
23872         -*)set "./$1";;
23873         esac;
23874         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23875         ???[sx]*):;;*)false;;esac;fi
23876     '\'' sh
23877   '
23878 fi
23879 as_executable_p=$as_test_x
23880
23881 # Sed expression to map a string onto a valid CPP name.
23882 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23883
23884 # Sed expression to map a string onto a valid variable name.
23885 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23886
23887
23888 exec 6>&1
23889
23890 # Save the log message, to keep $[0] and so on meaningful, and to
23891 # report actual input values of CONFIG_FILES etc. instead of their
23892 # values after options handling.
23893 ac_log="
23894 This file was extended by sudo $as_me 1.7, which was
23895 generated by GNU Autoconf 2.61.  Invocation command line was
23896
23897   CONFIG_FILES    = $CONFIG_FILES
23898   CONFIG_HEADERS  = $CONFIG_HEADERS
23899   CONFIG_LINKS    = $CONFIG_LINKS
23900   CONFIG_COMMANDS = $CONFIG_COMMANDS
23901   $ $0 $@
23902
23903 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23904 "
23905
23906 _ACEOF
23907
23908 cat >>$CONFIG_STATUS <<_ACEOF
23909 # Files that config.status was made for.
23910 config_files="$ac_config_files"
23911 config_headers="$ac_config_headers"
23912
23913 _ACEOF
23914
23915 cat >>$CONFIG_STATUS <<\_ACEOF
23916 ac_cs_usage="\
23917 \`$as_me' instantiates files from templates according to the
23918 current configuration.
23919
23920 Usage: $0 [OPTIONS] [FILE]...
23921
23922   -h, --help       print this help, then exit
23923   -V, --version    print version number and configuration settings, then exit
23924   -q, --quiet      do not print progress messages
23925   -d, --debug      don't remove temporary files
23926       --recheck    update $as_me by reconfiguring in the same conditions
23927   --file=FILE[:TEMPLATE]
23928                    instantiate the configuration file FILE
23929   --header=FILE[:TEMPLATE]
23930                    instantiate the configuration header FILE
23931
23932 Configuration files:
23933 $config_files
23934
23935 Configuration headers:
23936 $config_headers
23937
23938 Report bugs to <bug-autoconf@gnu.org>."
23939
23940 _ACEOF
23941 cat >>$CONFIG_STATUS <<_ACEOF
23942 ac_cs_version="\\
23943 sudo config.status 1.7
23944 configured by $0, generated by GNU Autoconf 2.61,
23945   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23946
23947 Copyright (C) 2006 Free Software Foundation, Inc.
23948 This config.status script is free software; the Free Software Foundation
23949 gives unlimited permission to copy, distribute and modify it."
23950
23951 ac_pwd='$ac_pwd'
23952 srcdir='$srcdir'
23953 _ACEOF
23954
23955 cat >>$CONFIG_STATUS <<\_ACEOF
23956 # If no file are specified by the user, then we need to provide default
23957 # value.  By we need to know if files were specified by the user.
23958 ac_need_defaults=:
23959 while test $# != 0
23960 do
23961   case $1 in
23962   --*=*)
23963     ac_option=`expr "X$1" : 'X\([^=]*\)='`
23964     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23965     ac_shift=:
23966     ;;
23967   *)
23968     ac_option=$1
23969     ac_optarg=$2
23970     ac_shift=shift
23971     ;;
23972   esac
23973
23974   case $ac_option in
23975   # Handling of the options.
23976   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23977     ac_cs_recheck=: ;;
23978   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23979     echo "$ac_cs_version"; exit ;;
23980   --debug | --debu | --deb | --de | --d | -d )
23981     debug=: ;;
23982   --file | --fil | --fi | --f )
23983     $ac_shift
23984     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23985     ac_need_defaults=false;;
23986   --header | --heade | --head | --hea )
23987     $ac_shift
23988     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23989     ac_need_defaults=false;;
23990   --he | --h)
23991     # Conflict between --help and --header
23992     { echo "$as_me: error: ambiguous option: $1
23993 Try \`$0 --help' for more information." >&2
23994    { (exit 1); exit 1; }; };;
23995   --help | --hel | -h )
23996     echo "$ac_cs_usage"; exit ;;
23997   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23998   | -silent | --silent | --silen | --sile | --sil | --si | --s)
23999     ac_cs_silent=: ;;
24000
24001   # This is an error.
24002   -*) { echo "$as_me: error: unrecognized option: $1
24003 Try \`$0 --help' for more information." >&2
24004    { (exit 1); exit 1; }; } ;;
24005
24006   *) ac_config_targets="$ac_config_targets $1"
24007      ac_need_defaults=false ;;
24008
24009   esac
24010   shift
24011 done
24012
24013 ac_configure_extra_args=
24014
24015 if $ac_cs_silent; then
24016   exec 6>/dev/null
24017   ac_configure_extra_args="$ac_configure_extra_args --silent"
24018 fi
24019
24020 _ACEOF
24021 cat >>$CONFIG_STATUS <<_ACEOF
24022 if \$ac_cs_recheck; then
24023   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24024   CONFIG_SHELL=$SHELL
24025   export CONFIG_SHELL
24026   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24027 fi
24028
24029 _ACEOF
24030 cat >>$CONFIG_STATUS <<\_ACEOF
24031 exec 5>>config.log
24032 {
24033   echo
24034   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24035 ## Running $as_me. ##
24036 _ASBOX
24037   echo "$ac_log"
24038 } >&5
24039
24040 _ACEOF
24041 cat >>$CONFIG_STATUS <<_ACEOF
24042 _ACEOF
24043
24044 cat >>$CONFIG_STATUS <<\_ACEOF
24045
24046 # Handling of arguments.
24047 for ac_config_target in $ac_config_targets
24048 do
24049   case $ac_config_target in
24050     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24051     "pathnames.h") CONFIG_HEADERS="$CONFIG_HEADERS pathnames.h" ;;
24052     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24053     "sudo.man") CONFIG_FILES="$CONFIG_FILES sudo.man" ;;
24054     "visudo.man") CONFIG_FILES="$CONFIG_FILES visudo.man" ;;
24055     "sudoers.man") CONFIG_FILES="$CONFIG_FILES sudoers.man" ;;
24056     "sudoers.ldap.man") CONFIG_FILES="$CONFIG_FILES sudoers.ldap.man" ;;
24057     "sudo_usage.h") CONFIG_FILES="$CONFIG_FILES sudo_usage.h" ;;
24058
24059   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24060 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24061    { (exit 1); exit 1; }; };;
24062   esac
24063 done
24064
24065
24066 # If the user did not use the arguments to specify the items to instantiate,
24067 # then the envvar interface is used.  Set only those that are not.
24068 # We use the long form for the default assignment because of an extremely
24069 # bizarre bug on SunOS 4.1.3.
24070 if $ac_need_defaults; then
24071   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24072   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24073 fi
24074
24075 # Have a temporary directory for convenience.  Make it in the build tree
24076 # simply because there is no reason against having it here, and in addition,
24077 # creating and moving files from /tmp can sometimes cause problems.
24078 # Hook for its removal unless debugging.
24079 # Note that there is a small window in which the directory will not be cleaned:
24080 # after its creation but before its name has been assigned to `$tmp'.
24081 $debug ||
24082 {
24083   tmp=
24084   trap 'exit_status=$?
24085   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24086 ' 0
24087   trap '{ (exit 1); exit 1; }' 1 2 13 15
24088 }
24089 # Create a (secure) tmp directory for tmp files.
24090
24091 {
24092   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24093   test -n "$tmp" && test -d "$tmp"
24094 }  ||
24095 {
24096   tmp=./conf$$-$RANDOM
24097   (umask 077 && mkdir "$tmp")
24098 } ||
24099 {
24100    echo "$me: cannot create a temporary directory in ." >&2
24101    { (exit 1); exit 1; }
24102 }
24103
24104 #
24105 # Set up the sed scripts for CONFIG_FILES section.
24106 #
24107
24108 # No need to generate the scripts if there are no CONFIG_FILES.
24109 # This happens for instance when ./config.status config.h
24110 if test -n "$CONFIG_FILES"; then
24111
24112 _ACEOF
24113
24114
24115
24116 ac_delim='%!_!# '
24117 for ac_last_try in false false false false false :; do
24118   cat >conf$$subs.sed <<_ACEOF
24119 SHELL!$SHELL$ac_delim
24120 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24121 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24122 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24123 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24124 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24125 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24126 exec_prefix!$exec_prefix$ac_delim
24127 prefix!$prefix$ac_delim
24128 program_transform_name!$program_transform_name$ac_delim
24129 bindir!$bindir$ac_delim
24130 sbindir!$sbindir$ac_delim
24131 libexecdir!$libexecdir$ac_delim
24132 datarootdir!$datarootdir$ac_delim
24133 datadir!$datadir$ac_delim
24134 sysconfdir!$sysconfdir$ac_delim
24135 sharedstatedir!$sharedstatedir$ac_delim
24136 localstatedir!$localstatedir$ac_delim
24137 includedir!$includedir$ac_delim
24138 oldincludedir!$oldincludedir$ac_delim
24139 docdir!$docdir$ac_delim
24140 infodir!$infodir$ac_delim
24141 htmldir!$htmldir$ac_delim
24142 dvidir!$dvidir$ac_delim
24143 pdfdir!$pdfdir$ac_delim
24144 psdir!$psdir$ac_delim
24145 libdir!$libdir$ac_delim
24146 localedir!$localedir$ac_delim
24147 mandir!$mandir$ac_delim
24148 DEFS!$DEFS$ac_delim
24149 ECHO_C!$ECHO_C$ac_delim
24150 ECHO_N!$ECHO_N$ac_delim
24151 ECHO_T!$ECHO_T$ac_delim
24152 LIBS!$LIBS$ac_delim
24153 build_alias!$build_alias$ac_delim
24154 host_alias!$host_alias$ac_delim
24155 target_alias!$target_alias$ac_delim
24156 LIBTOOL!$LIBTOOL$ac_delim
24157 CFLAGS!$CFLAGS$ac_delim
24158 PROGS!$PROGS$ac_delim
24159 CPPFLAGS!$CPPFLAGS$ac_delim
24160 LDFLAGS!$LDFLAGS$ac_delim
24161 SUDO_LDFLAGS!$SUDO_LDFLAGS$ac_delim
24162 SUDO_OBJS!$SUDO_OBJS$ac_delim
24163 SUDO_LIBS!$SUDO_LIBS$ac_delim
24164 NET_LIBS!$NET_LIBS$ac_delim
24165 AFS_LIBS!$AFS_LIBS$ac_delim
24166 GETGROUPS_LIB!$GETGROUPS_LIB$ac_delim
24167 OSDEFS!$OSDEFS$ac_delim
24168 AUTH_OBJS!$AUTH_OBJS$ac_delim
24169 MANTYPE!$MANTYPE$ac_delim
24170 MAN_POSTINSTALL!$MAN_POSTINSTALL$ac_delim
24171 SUDOERS_MODE!$SUDOERS_MODE$ac_delim
24172 SUDOERS_UID!$SUDOERS_UID$ac_delim
24173 SUDOERS_GID!$SUDOERS_GID$ac_delim
24174 DEV!$DEV$ac_delim
24175 SELINUX!$SELINUX$ac_delim
24176 BAMAN!$BAMAN$ac_delim
24177 LCMAN!$LCMAN$ac_delim
24178 SEMAN!$SEMAN$ac_delim
24179 devdir!$devdir$ac_delim
24180 mansectsu!$mansectsu$ac_delim
24181 mansectform!$mansectform$ac_delim
24182 mansrcdir!$mansrcdir$ac_delim
24183 NOEXECFILE!$NOEXECFILE$ac_delim
24184 NOEXECDIR!$NOEXECDIR$ac_delim
24185 noexec_file!$noexec_file$ac_delim
24186 INSTALL_NOEXEC!$INSTALL_NOEXEC$ac_delim
24187 DONT_LEAK_PATH_INFO!$DONT_LEAK_PATH_INFO$ac_delim
24188 BSDAUTH_USAGE!$BSDAUTH_USAGE$ac_delim
24189 SELINUX_USAGE!$SELINUX_USAGE$ac_delim
24190 LDAP!$LDAP$ac_delim
24191 LOGINCAP_USAGE!$LOGINCAP_USAGE$ac_delim
24192 timedir!$timedir$ac_delim
24193 timeout!$timeout$ac_delim
24194 password_timeout!$password_timeout$ac_delim
24195 sudo_umask!$sudo_umask$ac_delim
24196 passprompt!$passprompt$ac_delim
24197 long_otp_prompt!$long_otp_prompt$ac_delim
24198 lecture!$lecture$ac_delim
24199 logfac!$logfac$ac_delim
24200 goodpri!$goodpri$ac_delim
24201 badpri!$badpri$ac_delim
24202 loglen!$loglen$ac_delim
24203 ignore_dot!$ignore_dot$ac_delim
24204 mail_no_user!$mail_no_user$ac_delim
24205 mail_no_host!$mail_no_host$ac_delim
24206 mail_no_perms!$mail_no_perms$ac_delim
24207 mailto!$mailto$ac_delim
24208 mailsub!$mailsub$ac_delim
24209 badpass_message!$badpass_message$ac_delim
24210 fqdn!$fqdn$ac_delim
24211 runas_default!$runas_default$ac_delim
24212 env_editor!$env_editor$ac_delim
24213 passwd_tries!$passwd_tries$ac_delim
24214 tty_tickets!$tty_tickets$ac_delim
24215 insults!$insults$ac_delim
24216 _ACEOF
24217
24218   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24219     break
24220   elif $ac_last_try; then
24221     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24222 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24223    { (exit 1); exit 1; }; }
24224   else
24225     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24226   fi
24227 done
24228
24229 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24230 if test -n "$ac_eof"; then
24231   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24232   ac_eof=`expr $ac_eof + 1`
24233 fi
24234
24235 cat >>$CONFIG_STATUS <<_ACEOF
24236 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24237 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24238 _ACEOF
24239 sed '
24240 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24241 s/^/s,@/; s/!/@,|#_!!_#|/
24242 :n
24243 t n
24244 s/'"$ac_delim"'$/,g/; t
24245 s/$/\\/; p
24246 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24247 ' >>$CONFIG_STATUS <conf$$subs.sed
24248 rm -f conf$$subs.sed
24249 cat >>$CONFIG_STATUS <<_ACEOF
24250 CEOF$ac_eof
24251 _ACEOF
24252
24253
24254 ac_delim='%!_!# '
24255 for ac_last_try in false false false false false :; do
24256   cat >conf$$subs.sed <<_ACEOF
24257 root_sudo!$root_sudo$ac_delim
24258 path_info!$path_info$ac_delim
24259 ldap_conf!$ldap_conf$ac_delim
24260 ldap_secret!$ldap_secret$ac_delim
24261 nsswitch_conf!$nsswitch_conf$ac_delim
24262 EGREPPROG!$EGREPPROG$ac_delim
24263 CC!$CC$ac_delim
24264 ac_ct_CC!$ac_ct_CC$ac_delim
24265 EXEEXT!$EXEEXT$ac_delim
24266 OBJEXT!$OBJEXT$ac_delim
24267 CPP!$CPP$ac_delim
24268 build!$build$ac_delim
24269 build_cpu!$build_cpu$ac_delim
24270 build_vendor!$build_vendor$ac_delim
24271 build_os!$build_os$ac_delim
24272 host!$host$ac_delim
24273 host_cpu!$host_cpu$ac_delim
24274 host_vendor!$host_vendor$ac_delim
24275 host_os!$host_os$ac_delim
24276 target!$target$ac_delim
24277 target_cpu!$target_cpu$ac_delim
24278 target_vendor!$target_vendor$ac_delim
24279 target_os!$target_os$ac_delim
24280 SED!$SED$ac_delim
24281 GREP!$GREP$ac_delim
24282 EGREP!$EGREP$ac_delim
24283 LN_S!$LN_S$ac_delim
24284 ECHO!$ECHO$ac_delim
24285 AR!$AR$ac_delim
24286 RANLIB!$RANLIB$ac_delim
24287 STRIP!$STRIP$ac_delim
24288 DSYMUTIL!$DSYMUTIL$ac_delim
24289 NMEDIT!$NMEDIT$ac_delim
24290 UNAMEPROG!$UNAMEPROG$ac_delim
24291 TRPROG!$TRPROG$ac_delim
24292 NROFFPROG!$NROFFPROG$ac_delim
24293 YACC!$YACC$ac_delim
24294 YFLAGS!$YFLAGS$ac_delim
24295 LIBOBJS!$LIBOBJS$ac_delim
24296 KRB5CONFIG!$KRB5CONFIG$ac_delim
24297 LTLIBOBJS!$LTLIBOBJS$ac_delim
24298 _ACEOF
24299
24300   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 41; then
24301     break
24302   elif $ac_last_try; then
24303     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24304 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24305    { (exit 1); exit 1; }; }
24306   else
24307     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24308   fi
24309 done
24310
24311 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24312 if test -n "$ac_eof"; then
24313   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24314   ac_eof=`expr $ac_eof + 1`
24315 fi
24316
24317 cat >>$CONFIG_STATUS <<_ACEOF
24318 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24319 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24320 _ACEOF
24321 sed '
24322 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24323 s/^/s,@/; s/!/@,|#_!!_#|/
24324 :n
24325 t n
24326 s/'"$ac_delim"'$/,g/; t
24327 s/$/\\/; p
24328 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24329 ' >>$CONFIG_STATUS <conf$$subs.sed
24330 rm -f conf$$subs.sed
24331 cat >>$CONFIG_STATUS <<_ACEOF
24332 :end
24333 s/|#_!!_#|//g
24334 CEOF$ac_eof
24335 _ACEOF
24336
24337
24338 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24339 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24340 # trailing colons and then remove the whole line if VPATH becomes empty
24341 # (actually we leave an empty line to preserve line numbers).
24342 if test "x$srcdir" = x.; then
24343   ac_vpsub='/^[  ]*VPATH[        ]*=/{
24344 s/:*\$(srcdir):*/:/
24345 s/:*\${srcdir}:*/:/
24346 s/:*@srcdir@:*/:/
24347 s/^\([^=]*=[     ]*\):*/\1/
24348 s/:*$//
24349 s/^[^=]*=[       ]*$//
24350 }'
24351 fi
24352
24353 cat >>$CONFIG_STATUS <<\_ACEOF
24354 fi # test -n "$CONFIG_FILES"
24355
24356
24357 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS
24358 do
24359   case $ac_tag in
24360   :[FHLC]) ac_mode=$ac_tag; continue;;
24361   esac
24362   case $ac_mode$ac_tag in
24363   :[FHL]*:*);;
24364   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24365 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24366    { (exit 1); exit 1; }; };;
24367   :[FH]-) ac_tag=-:-;;
24368   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24369   esac
24370   ac_save_IFS=$IFS
24371   IFS=:
24372   set x $ac_tag
24373   IFS=$ac_save_IFS
24374   shift
24375   ac_file=$1
24376   shift
24377
24378   case $ac_mode in
24379   :L) ac_source=$1;;
24380   :[FH])
24381     ac_file_inputs=
24382     for ac_f
24383     do
24384       case $ac_f in
24385       -) ac_f="$tmp/stdin";;
24386       *) # Look for the file first in the build tree, then in the source tree
24387          # (if the path is not absolute).  The absolute path cannot be DOS-style,
24388          # because $ac_f cannot contain `:'.
24389          test -f "$ac_f" ||
24390            case $ac_f in
24391            [\\/$]*) false;;
24392            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24393            esac ||
24394            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24395 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24396    { (exit 1); exit 1; }; };;
24397       esac
24398       ac_file_inputs="$ac_file_inputs $ac_f"
24399     done
24400
24401     # Let's still pretend it is `configure' which instantiates (i.e., don't
24402     # use $as_me), people would be surprised to read:
24403     #    /* config.h.  Generated by config.status.  */
24404     configure_input="Generated from "`IFS=:
24405           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24406     if test x"$ac_file" != x-; then
24407       configure_input="$ac_file.  $configure_input"
24408       { echo "$as_me:$LINENO: creating $ac_file" >&5
24409 echo "$as_me: creating $ac_file" >&6;}
24410     fi
24411
24412     case $ac_tag in
24413     *:-:* | *:-) cat >"$tmp/stdin";;
24414     esac
24415     ;;
24416   esac
24417
24418   ac_dir=`$as_dirname -- "$ac_file" ||
24419 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24420          X"$ac_file" : 'X\(//\)[^/]' \| \
24421          X"$ac_file" : 'X\(//\)$' \| \
24422          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24423 echo X"$ac_file" |
24424     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24425             s//\1/
24426             q
24427           }
24428           /^X\(\/\/\)[^/].*/{
24429             s//\1/
24430             q
24431           }
24432           /^X\(\/\/\)$/{
24433             s//\1/
24434             q
24435           }
24436           /^X\(\/\).*/{
24437             s//\1/
24438             q
24439           }
24440           s/.*/./; q'`
24441   { as_dir="$ac_dir"
24442   case $as_dir in #(
24443   -*) as_dir=./$as_dir;;
24444   esac
24445   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24446     as_dirs=
24447     while :; do
24448       case $as_dir in #(
24449       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24450       *) as_qdir=$as_dir;;
24451       esac
24452       as_dirs="'$as_qdir' $as_dirs"
24453       as_dir=`$as_dirname -- "$as_dir" ||
24454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24455          X"$as_dir" : 'X\(//\)[^/]' \| \
24456          X"$as_dir" : 'X\(//\)$' \| \
24457          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24458 echo X"$as_dir" |
24459     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24460             s//\1/
24461             q
24462           }
24463           /^X\(\/\/\)[^/].*/{
24464             s//\1/
24465             q
24466           }
24467           /^X\(\/\/\)$/{
24468             s//\1/
24469             q
24470           }
24471           /^X\(\/\).*/{
24472             s//\1/
24473             q
24474           }
24475           s/.*/./; q'`
24476       test -d "$as_dir" && break
24477     done
24478     test -z "$as_dirs" || eval "mkdir $as_dirs"
24479   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24480 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24481    { (exit 1); exit 1; }; }; }
24482   ac_builddir=.
24483
24484 case "$ac_dir" in
24485 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24486 *)
24487   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24488   # A ".." for each directory in $ac_dir_suffix.
24489   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24490   case $ac_top_builddir_sub in
24491   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24492   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24493   esac ;;
24494 esac
24495 ac_abs_top_builddir=$ac_pwd
24496 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24497 # for backward compatibility:
24498 ac_top_builddir=$ac_top_build_prefix
24499
24500 case $srcdir in
24501   .)  # We are building in place.
24502     ac_srcdir=.
24503     ac_top_srcdir=$ac_top_builddir_sub
24504     ac_abs_top_srcdir=$ac_pwd ;;
24505   [\\/]* | ?:[\\/]* )  # Absolute name.
24506     ac_srcdir=$srcdir$ac_dir_suffix;
24507     ac_top_srcdir=$srcdir
24508     ac_abs_top_srcdir=$srcdir ;;
24509   *) # Relative name.
24510     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24511     ac_top_srcdir=$ac_top_build_prefix$srcdir
24512     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24513 esac
24514 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24515
24516
24517   case $ac_mode in
24518   :F)
24519   #
24520   # CONFIG_FILE
24521   #
24522
24523 _ACEOF
24524
24525 cat >>$CONFIG_STATUS <<\_ACEOF
24526 # If the template does not know about datarootdir, expand it.
24527 # FIXME: This hack should be removed a few years after 2.60.
24528 ac_datarootdir_hack=; ac_datarootdir_seen=
24529
24530 case `sed -n '/datarootdir/ {
24531   p
24532   q
24533 }
24534 /@datadir@/p
24535 /@docdir@/p
24536 /@infodir@/p
24537 /@localedir@/p
24538 /@mandir@/p
24539 ' $ac_file_inputs` in
24540 *datarootdir*) ac_datarootdir_seen=yes;;
24541 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24542   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24543 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24544 _ACEOF
24545 cat >>$CONFIG_STATUS <<_ACEOF
24546   ac_datarootdir_hack='
24547   s&@datadir@&$datadir&g
24548   s&@docdir@&$docdir&g
24549   s&@infodir@&$infodir&g
24550   s&@localedir@&$localedir&g
24551   s&@mandir@&$mandir&g
24552     s&\\\${datarootdir}&$datarootdir&g' ;;
24553 esac
24554 _ACEOF
24555
24556 # Neutralize VPATH when `$srcdir' = `.'.
24557 # Shell code in configure.ac might set extrasub.
24558 # FIXME: do we really want to maintain this feature?
24559 cat >>$CONFIG_STATUS <<_ACEOF
24560   sed "$ac_vpsub
24561 $extrasub
24562 _ACEOF
24563 cat >>$CONFIG_STATUS <<\_ACEOF
24564 :t
24565 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24566 s&@configure_input@&$configure_input&;t t
24567 s&@top_builddir@&$ac_top_builddir_sub&;t t
24568 s&@srcdir@&$ac_srcdir&;t t
24569 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24570 s&@top_srcdir@&$ac_top_srcdir&;t t
24571 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24572 s&@builddir@&$ac_builddir&;t t
24573 s&@abs_builddir@&$ac_abs_builddir&;t t
24574 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24575 $ac_datarootdir_hack
24576 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24577
24578 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24579   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24580   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24581   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24582 which seems to be undefined.  Please make sure it is defined." >&5
24583 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24584 which seems to be undefined.  Please make sure it is defined." >&2;}
24585
24586   rm -f "$tmp/stdin"
24587   case $ac_file in
24588   -) cat "$tmp/out"; rm -f "$tmp/out";;
24589   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24590   esac
24591  ;;
24592   :H)
24593   #
24594   # CONFIG_HEADER
24595   #
24596 _ACEOF
24597
24598 # Transform confdefs.h into a sed script `conftest.defines', that
24599 # substitutes the proper values into config.h.in to produce config.h.
24600 rm -f conftest.defines conftest.tail
24601 # First, append a space to every undef/define line, to ease matching.
24602 echo 's/$/ /' >conftest.defines
24603 # Then, protect against being on the right side of a sed subst, or in
24604 # an unquoted here document, in config.status.  If some macros were
24605 # called several times there might be several #defines for the same
24606 # symbol, which is useless.  But do not sort them, since the last
24607 # AC_DEFINE must be honored.
24608 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24609 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24610 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24611 # PARAMS is the parameter list in the macro definition--in most cases, it's
24612 # just an empty string.
24613 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
24614 ac_dB='\\)[      (].*,\\1define\\2'
24615 ac_dC=' '
24616 ac_dD=' ,'
24617
24618 uniq confdefs.h |
24619   sed -n '
24620         t rset
24621         :rset
24622         s/^[     ]*#[    ]*define[       ][      ]*//
24623         t ok
24624         d
24625         :ok
24626         s/[\\&,]/\\&/g
24627         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24628         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24629   ' >>conftest.defines
24630
24631 # Remove the space that was appended to ease matching.
24632 # Then replace #undef with comments.  This is necessary, for
24633 # example, in the case of _POSIX_SOURCE, which is predefined and required
24634 # on some systems where configure will not decide to define it.
24635 # (The regexp can be short, since the line contains either #define or #undef.)
24636 echo 's/ $//
24637 s,^[     #]*u.*,/* & */,' >>conftest.defines
24638
24639 # Break up conftest.defines:
24640 ac_max_sed_lines=50
24641
24642 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24643 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24644 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24645 # et cetera.
24646 ac_in='$ac_file_inputs'
24647 ac_out='"$tmp/out1"'
24648 ac_nxt='"$tmp/out2"'
24649
24650 while :
24651 do
24652   # Write a here document:
24653     cat >>$CONFIG_STATUS <<_ACEOF
24654     # First, check the format of the line:
24655     cat >"\$tmp/defines.sed" <<\\CEOF
24656 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
24657 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
24658 b
24659 :def
24660 _ACEOF
24661   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24662   echo 'CEOF
24663     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24664   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24665   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24666   grep . conftest.tail >/dev/null || break
24667   rm -f conftest.defines
24668   mv conftest.tail conftest.defines
24669 done
24670 rm -f conftest.defines conftest.tail
24671
24672 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24673 cat >>$CONFIG_STATUS <<\_ACEOF
24674   if test x"$ac_file" != x-; then
24675     echo "/* $configure_input  */" >"$tmp/config.h"
24676     cat "$ac_result" >>"$tmp/config.h"
24677     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24678       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24679 echo "$as_me: $ac_file is unchanged" >&6;}
24680     else
24681       rm -f $ac_file
24682       mv "$tmp/config.h" $ac_file
24683     fi
24684   else
24685     echo "/* $configure_input  */"
24686     cat "$ac_result"
24687   fi
24688   rm -f "$tmp/out12"
24689 # Compute $ac_file's index in $config_headers.
24690 _am_arg=$ac_file
24691 _am_stamp_count=1
24692 for _am_header in $config_headers :; do
24693   case $_am_header in
24694     $_am_arg | $_am_arg:* )
24695       break ;;
24696     * )
24697       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24698   esac
24699 done
24700 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24701 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24702          X"$_am_arg" : 'X\(//\)[^/]' \| \
24703          X"$_am_arg" : 'X\(//\)$' \| \
24704          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24705 echo X"$_am_arg" |
24706     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24707             s//\1/
24708             q
24709           }
24710           /^X\(\/\/\)[^/].*/{
24711             s//\1/
24712             q
24713           }
24714           /^X\(\/\/\)$/{
24715             s//\1/
24716             q
24717           }
24718           /^X\(\/\).*/{
24719             s//\1/
24720             q
24721           }
24722           s/.*/./; q'`/stamp-h$_am_stamp_count
24723  ;;
24724
24725
24726   esac
24727
24728 done # for ac_tag
24729
24730
24731 { (exit 0); exit 0; }
24732 _ACEOF
24733 chmod +x $CONFIG_STATUS
24734 ac_clean_files=$ac_clean_files_save
24735
24736
24737 # configure is writing to config.log, and then calls config.status.
24738 # config.status does its own redirection, appending to config.log.
24739 # Unfortunately, on DOS this fails, as config.log is still kept open
24740 # by configure, so config.status won't be able to write to it; its
24741 # output is simply discarded.  So we exec the FD to /dev/null,
24742 # effectively closing config.log, so it can be properly (re)opened and
24743 # appended to by config.status.  When coming back to configure, we
24744 # need to make the FD available again.
24745 if test "$no_create" != yes; then
24746   ac_cs_success=:
24747   ac_config_status_args=
24748   test "$silent" = yes &&
24749     ac_config_status_args="$ac_config_status_args --quiet"
24750   exec 5>/dev/null
24751   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24752   exec 5>>config.log
24753   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24754   # would make configure fail if this is the last instruction.
24755   $ac_cs_success || { (exit 1); exit 1; }
24756 fi
24757
24758
24759 if test "$with_pam" = "yes"; then
24760     case $host in
24761         *-*-linux*)
24762             { echo "$as_me:$LINENO: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&5
24763 echo "$as_me: You will need to customize sample.pam and install it as /etc/pam.d/sudo" >&6;}
24764             ;;
24765     esac
24766 fi
24767
24768
24769
24770
24771
24772
24773
24774
24775
24776
24777
24778
24779
24780
24781
24782
24783
24784
24785
24786
24787
24788
24789
24790
24791
24792
24793
24794
24795
24796
24797
24798
24799
24800
24801
24802
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834
24835
24836
24837
24838
24839
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849
24850
24851
24852
24853
24854
24855
24856
24857
24858
24859
24860
24861
24862
24863
24864
24865
24866
24867
24868
24869
24870
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899
24900
24901
24902
24903
24904
24905
24906
24907
24908
24909
24910
24911
24912
24913
24914
24915
24916
24917
24918
24919
24920
24921
24922
24923